execute, spawn-pipe: Escape '*' characters in arguments on Windows.
[gnulib.git] / ChangeLog
1 2012-05-08  Bruno Haible  <bruno@clisp.org>
2
3         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5
6 2012-05-08  Bruno Haible  <bruno@clisp.org>
7
8         Tests for module 'system-quote'.
9         * modules/system-quote-tests: New file.
10         * tests/test-system-quote.sh: New file.
11         * tests/test-system-quote-main.c: New file.
12         * tests/test-system-quote-child.c: New file.
13
14         New module 'system-quote'.
15         * lib/system-quote.h: New file.
16         * lib/system-quote.c: New file.
17         * modules/system-quote: New file.
18
19 2012-05-08  Bruno Haible  <bruno@clisp.org>
20
21         sh-quote: Make C++ safe and allow multiple inclusion.
22         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
23         declarations in extern "C".
24
25 2012-05-08  Bruno Haible  <bruno@clisp.org>
26
27         sh-quote tests: Make tests stricter.
28         * tests/test-sh-quote.c (check_one): Check the return value of
29         shell_quote_copy.
30         (main): Check a string with a CR character. Check a string that
31         contains UCHAR_MAX.
32
33 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
34
35         warnings.m4: provide a means to specify the program to compile.
36         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
37         (gl_WARN_ADD): here.
38         Use gl_AS_VAR_APPEND.
39         Support an argument to specify the program to compile.
40         (gl_WARN_ADD): Accept an argument to specify the program to compile.
41         AC_SUBST the WARN_CFLAGS when they are used.
42         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
43         leave this to gl_WARN_ADD.
44
45 2012-05-08  Eric Blake  <eblake@redhat.com>
46
47         doc: recommendations on gettext version
48         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
49         choice between versions.
50         * DEPENDENCIES (gettext): Cover both approaches.
51
52 2012-05-08  Jim Meyering  <meyering@redhat.com>
53
54         init.sh: explain why EXEEXT support uses aliases rather than functions
55         * tests/init.sh: Add a comment.
56
57         init.sh: don't let bash aliases interfere with tests
58         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
59         is bash.  This avoids problems for those who alias standard commands to
60         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
61         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
62
63 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
64
65         stdint: be more consistent with glibc, SunOS libc
66         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
67         (gl_int_fast16_t, gl_uint_fast16_t)
68         (gl_int_fast32_t, gl_uint_fast32_t)
69         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
70         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
71         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72         Be consistent with glibc by default, and with SunOS 5.10 and later
73         if __sun is defined.  This lessens the likelihood of clashes if
74         code compiled for older hosts is combined with code compiled for
75         newer ones.  Problem reported by Niels Möller in
76         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
77
78 2012-05-07  Eric Blake  <eblake@redhat.com>
79
80         isatty: relax license to LGPLv2+
81         * modules/isatty (License): Relax license.
82
83 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84
85         stat-size: comment fix
86         * lib/stat-size.h: Remove obsolete comment about indenting.
87
88 2012-05-06  Bruno Haible  <bruno@clisp.org>
89
90         Tests for module 'sh-quote'.
91         * modules/sh-quote-tests: New file.
92         * tests/test-sh-quote.c: New file.
93
94 2012-05-06  Bruno Haible  <bruno@clisp.org>
95
96         sh-quote: Improve shell_quote_argv's signature.
97         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
98         * lib/sh-quote.c (shell_quote_argv): Likewise.
99
100 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
101
102         stdint: document issues with int_fast8_t etc.
103         * doc/posix-headers/stdint.texi (stdint.h): Say that other
104         stdint.h substitutes may define these types differently.  See
105         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
106
107 2012-05-05  Bruno Haible  <bruno@clisp.org>
108
109         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
111         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
112         or 'guessing no (mishandles large arguments)'.
113
114 2012-05-05  Bruno Haible  <bruno@clisp.org>
115
116         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
117         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
118         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
119         set gl_cv_func_link_follows_symlink to "guessing no".
120
121 2012-05-05  Bruno Haible  <bruno@clisp.org>
122
123         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
124         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
125         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
126         "guessing no".
127         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
128
129 2012-05-05  Bruno Haible  <bruno@clisp.org>
130
131         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
132         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
133         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
134         set gl_cv_struct_dirent_d_ino to "guessing yes".
135
136 2012-05-05  Bruno Haible  <bruno@clisp.org>
137
138         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
139         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
140         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
141         "guessing yes".
142
143 2012-05-05  Bruno Haible  <bruno@clisp.org>
144
145         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
146         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
147         compiling to a glibc system, set gl_cv_func_signbit and
148         gl_cv_func_signbit_gcc to "guessing yes".
149
150 2012-05-05  Bruno Haible  <bruno@clisp.org>
151
152         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
153         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
154         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
155         to "guessing yes".
156         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
157         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
158
159 2012-05-05  Bruno Haible  <bruno@clisp.org>
160
161         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
162         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
163         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
164         gl_cv_func_realpath_works to "guessing yes".
165
166 2012-05-05  Bruno Haible  <bruno@clisp.org>
167
168         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
169         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
170         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
171
172 2012-05-04  Bruno Haible  <bruno@clisp.org>
173
174         Tweak last commit.
175         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
176         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
177
178 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
179
180         unistd_h: make it easier to avoid sys_types_h
181         This is useful for Emacs, which has its own method of porting to
182         Windows, and which therefore does not need the sys_types_h module.
183         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
184         code moved here from gl_SYS_TYPES_H.
185         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
186         using the code directly.
187         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
188         gl_SYS_TYPES_H.
189         * modules/sys_types (Files):
190         * modules/unistd (Files): Add m4/off_t.m4.
191
192 2012-05-03  Bruno Haible  <bruno@clisp.org>
193
194         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
195         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
196         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
197         "guessing yes" or "guessing no".
198         (gl_FUNC_LSTAT): Update.
199         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
200         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
201         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
202
203 2012-05-03  Bruno Haible  <bruno@clisp.org>
204
205         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
206         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
207         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
208         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
209         cross-compiling, choose the first alternative on glibc systems.
210         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
211
212 2012-05-03  Bruno Haible  <bruno@clisp.org>
213
214         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
215         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
216         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
217
218 2012-05-03  Bruno Haible  <bruno@clisp.org>
219
220         chown: Avoid "guessing no" when cross-compiling to glibc systems.
221         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
222
223 2012-05-03  Bruno Haible  <bruno@clisp.org>
224
225         Avoid "guessing no" guesses when cross-compiling to glibc systems.
226         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
227         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
228         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
229         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
230         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
231         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
232         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
233         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
234         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
235         compiling to glibc systems, set gl_cv_func_chown_slash_works,
236         gl_cv_func_chown_ctime_works to "guessing yes".
237         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
238         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
239         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
240         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
241         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
243         compiling to glibc systems, set gl_cv_func_open_directory_works to
244         "guessing yes".
245         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
246         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
247         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
248         "guessing yes".
249         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
250         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
251         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
252         compiling to glibc systems, set gl_cv_func_floorf_ieee to
253         "guessing yes".
254         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
255         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
256         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
257         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
258         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
259         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
260         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
261         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
262         "guessing yes".
263         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
264         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
265         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
266         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
267         "guessing yes".
268         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
269         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
270         "guessing yes".
271         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
272         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
273         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
274         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
275         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
276         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
277         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
278         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
279         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
280         compiling to glibc systems, set gl_cv_func_log10f_ieee to
281         "guessing yes".
282         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
283         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
284         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
285         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
286         "guessing yes".
287         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
288         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
289         "guessing yes".
290         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
291         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
292         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
293         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
294         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
295         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
296         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
297         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
298         compiling to glibc systems, set gl_cv_func_mkfifo_works to
299         "guessing yes".
300         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
301         compiling to glibc systems, set gl_cv_func_mknod_works to
302         "guessing yes".
303         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
304         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
305         "guessing yes".
306         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
307         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
308         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
309         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
310         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
311         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
312         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
313         compiling to glibc systems, set gl_cv_func_svid_putenv to
314         "guessing yes".
315         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
316         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
317         "guessing yes".
318         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
319         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
320         "guessing yes".
321         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
322         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
323         to "guessing yes".
324         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
325         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
326         to "guessing yes".
327         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
328         compiling to glibc systems, set gl_cv_func_rmdir_works to
329         "guessing yes".
330         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
331         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
332         gl_cv_func_unlink_parent_fails to "guessing yes".
333         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
334         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
335         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
336         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
337         gl_cv_func_rename_dest_works to "guessing yes".
338         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
339         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
341         compiling to glibc systems, set gl_cv_func_roundf_ieee to
342         "guessing yes".
343         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
344         compiling to glibc systems, set gl_cv_func_roundl_ieee to
345         "guessing yes".
346         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
347         compiling to glibc systems, set gl_cv_func_setenv_works to
348         "guessing yes".
349         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
350         compiling to glibc systems, set gl_cv_func_unsetenv_works to
351         "guessing yes".
352         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
353         compiling to glibc systems, set gl_cv_func_sleep_works to
354         "guessing yes".
355         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
356         compiling to glibc systems, set gl_cv_func_stat_file_slash to
357         "guessing yes".
358         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
359         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
360         "guessing yes".
361         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
362         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
363         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
364         compiling to glibc systems, set gl_cv_func_truncf_ieee to
365         "guessing yes".
366         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
367         compiling to glibc systems, set gl_cv_func_truncl_ieee to
368         "guessing yes".
369         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
370         compiling to glibc systems, set gl_cv_func_usleep_works to
371         "guessing yes".
372         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
373         compiling to glibc systems, set gl_cv_func_futimesat_works to
374         "guessing yes".
375
376 2012-05-03  Bruno Haible  <bruno@clisp.org>
377
378         Say "guessing yes" or "guessing no" when cross-compiling.
379         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
380         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
381         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
382         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
383         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
384         am_cv_func_working_getline to "guessing yes" or "guessing no".
385         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
386         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
387         (gl_FUNC_MEMMEM): When cross-compiling, set
388         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
389         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
390         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
392         set gl_cv_func_strcasestr_works_always to "guessing yes" or
393         "guessing no".
394         (gl_FUNC_STRCASESTR): When cross-compiling, set
395         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
396         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
397         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
398         (gl_FUNC_STRSTR): When cross-compiling, set
399         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
400         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
401         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
402         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
403         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
404
405 2012-05-01  Bruno Haible  <bruno@clisp.org>
406
407         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
408         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
409         * build-aux/reloc-ldflags: Likewise.
410         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
411
412 2012-05-01  Bruno Haible  <bruno@clisp.org>
413
414         gnulib-tool: Remove transitional code.
415         * gnulib-tool: Don't warn about --import with 0 arguments any more.
416         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
417
418 2012-05-01  Bruno Haible  <bruno@clisp.org>
419
420         getcwd: Fix misindentation.
421         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
422
423 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
424
425         exclude: process exclude and include directives in order
426         This restores the pre-2009 behavior, and is part of a fix of a
427         grep bug reported by Quentin Arce in
428         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
429         * lib/exclude.c (struct exclude): Remove 'tail' member.
430         (new_exclude_segment): Prepend the new segment instead of appending.
431         Return void, since that's now more convenient.
432         (file_pattern_matches): Renamed from excluded_file_pattern_p.
433         (file_name_matches): Renamed from excluded_file_name_p.
434         (file_pattern_matches, file_name_matches):
435         Return true if the pattern matches, not if it excludes.
436         All callers changed.
437         (excluded_file_name): Process the list in reverse order;
438         since the list is now reversed this restores the pre-2009 behavior.
439         (add_exclude): Adjust to new reversed-order list.  Use local var
440         rather than macro, for clarity.
441         * tests/test-exclude7.sh: Adjust to corrected behavior.
442
443         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
444         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
445         it's not possible here.  Handle the case of \ at end of pattern
446         without dumping core.
447         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
448
449         _Noreturn: future-proof non-GNU and non-MSVC compilers
450         * build-aux/snippet/_Noreturn.h (_Noreturn):
451         * m4/gnulib-common.m4 (gl_COMMON_BODY):
452         Do not define _Noreturn if __STDC_VERSION__ indicates this is
453         C11 or later.  This is more likely to work with random future C
454         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
455         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
456
457         exclude: handle wildcards with FNM_EXTMATCH
458         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
459         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
460         comment that "has wildcards" really means "has or may have
461         wildcards".  Simplify by avoiding the need to call strcspn.
462
463 2012-04-29  Bruno Haible  <bruno@clisp.org>
464
465         gnulib-tool: Fix list of authors.
466         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
467
468 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
469
470         bootstrap: support Automake-NG in $buildreq
471         * bootstrap (check_versions): Handle automake and aclocal from
472         Automake-NG specially.  They can be specified as respectively
473         the "automake-ng" and "aclocal-ng" requirements.
474
475 2012-04-25  Eric Blake  <eblake@redhat.com>
476
477         bootstrap: only force latest Makefile.in.in for gettext module
478         * build-aux/bootstrap (with_gettext): Only install latest
479         Makefile.in.in for projects requesting bleeding edge gettext.
480
481 2012-04-22  Bruno Haible  <bruno@clisp.org>
482
483         doc: Mention reason for replacement on glibc/Linux systems.
484         * doc/posix-functions/dprintf.texi: Mention the problem with special
485         'long double' values.
486         * doc/posix-functions/fprintf.texi: Likewise.
487         * doc/posix-functions/printf.texi: Likewise.
488         * doc/posix-functions/snprintf.texi: Likewise.
489         * doc/posix-functions/sprintf.texi: Likewise.
490         * doc/posix-functions/vdprintf.texi: Likewise.
491         * doc/posix-functions/vfprintf.texi: Likewise.
492         * doc/posix-functions/vprintf.texi: Likewise.
493         * doc/posix-functions/vsnprintf.texi: Likewise.
494         * doc/posix-functions/vsprintf.texi: Likewise.
495         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
496         platforms with F_DUPFD_CLOEXEC problems.
497         * doc/posix-functions/glob.texi: Mention which platforms are affected
498         by the problem with symbolic links.
499         * doc/posix-functions/linkat.texi: Mention the problem with
500         AT_SYMLINK_FOLLOW on Linux.
501
502 2012-04-22  Bruno Haible  <bruno@clisp.org>
503
504         pwrite: Don't replace on all platforms.
505         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
506
507 2012-04-22  Bruno Haible  <bruno@clisp.org>
508
509         rint* tests: Avoid gcc warnings.
510         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
511         * tests/test-rintf.c (INFINITY, NAN): Likewise.
512         * tests/test-rintl.c (INFINITY, NAN): Likewise.
513
514 2012-04-21  Bruno Haible  <bruno@clisp.org>
515
516         users.txt: Update.
517         * users.txt: Add freedink, wdiff. Update URLs for projects that have
518         switched from CVS to git, bzr, or svn.
519
520 2012-04-21  Bruno Haible  <bruno@clisp.org>
521
522         Large File Support for native Windows platforms.
523
524         * m4/largefile.m4 (gl_LARGEFILE): New macro.
525         * modules/largefile (configure.ac): Require gl_LARGEFILE.
526
527         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
528         type.
529         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
530         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
531         * doc/posix-headers/sys_types.texi: Mention the effect of the
532         'largefile' module.
533
534         * lib/fcntl.in.h: Add comments about off_t.
535         * modules/fcntl-h (Depends-on): Add sys_types.
536
537         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
538         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
539         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
540         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
541         * modules/unistd (Depends-on): Add sys_types.
542         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
543
544         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
545         instead of lseek.
546         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
547         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
548         * modules/lseek (Depends-on): Add sys_types.
549
550         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
551         msvc-nothrow.h.
552         (SetFileSize): New function.
553         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
554         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
555         if Large File Support is requested.
556         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
557         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
558
559         * lib/stdio.in.h: Add comments about off_t.
560         * modules/stdio (Depends-on): Add sys_types.
561
562         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
563         instead of ftello.
564         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
565         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
566         (gl_PREREQ_FTELLO): New macro.
567         * modules/ftello (Depends-on): Add sys_types.
568         (configure.ac): Incoke gl_PREREQ_FTELLO.
569
570         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
571         instead of fseeko.
572         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
573         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
574         (gl_PREREQ_FSEEKO): New macro.
575         * modules/fseeko (Depends-on): Add sys_types.
576         (configure.ac): Invoke gl_PREREQ_FSEEKO.
577
578         * lib/sys_stat.in.h: Add comments about off_t.
579         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
580         64-bit integer for st_size in 'struct stat'.
581         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
582         Define _GL_WINDOWS_64_BIT_ST_SIZE.
583         * modules/sys_stat (Depends-on): Add sys_types.
584         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
585
586         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
587         instead of stat or _stat.
588
589         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
590         'struct _stati64' instead of fstat and 'struct stat'.
591         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
592         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
593
594         Reported by Ray Satiro <raysatiro@yahoo.com>.
595
596 2012-04-19  Eric Blake  <eblake@redhat.com>
597
598         bootstrap: accommodate older libtool
599         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
600         Reported by Daniel P. Berrange.
601
602 2012-04-19  Jim Meyering  <meyering@redhat.com>
603
604         announce-gen: avoid failure due to lack of Digest::SHA1
605         Even with the preferred Digest::SHA available, this script
606         would fail when the backup module, Digest::SHA1, was not installed.
607         * build-aux/announce-gen: Quote the conditional use of "use".
608         Reported by Reuben Thomas in:
609         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
610
611         bootstrap: don't let a user's CDPATH setting affect this script
612         When CDPATH is set, cd will sometimes generate output.
613         When "cd" is run in a subshell whose output matters, that
614         surprising-to-some output can cause malfunction.
615         Unsetting CDPATH turns off this shell "feature."
616         * build-aux/bootstrap (CDPATH): Unset.
617         Reported by Reuben Thomas in:
618         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
619         and inspired by his patch here:
620         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
621
622 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
623         and Jim Meyering  <meyering@redhat.com>
624
625         maint.mk: catch "see @xref{}" and similar
626         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
627         prohibit "See also @xref{", "Also see @pxref{", and similar.
628
629 2012-04-16  Jim Meyering  <meyering@redhat.com>
630
631         bootstrap: really use gnulib's po/Makefile.in.in
632         * build-aux/bootstrap: Correct the source file name in previous change.
633         Reported by Akim Demaille.
634
635         configmake: correct minor inconsistency in Makefile rule
636         * modules/configmake (Makefile.am): All other rules like this one
637         run the final "mv -f ..." in the same backslash-continued command
638         as the one that does everything else.  This one put the mv -f ...
639         command on a separate, non-backslash-continued line.
640         Make it like the others.
641
642         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
643         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
644         the one from gettext.  Reported by Akim Demaille.
645
646 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
647
648         Fix recursion of install-* into po directories.
649         Bison's install-pdf bug reported by Hans Aberg at
650         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
651         * build-aux/po/Makefile.in.in (install-dvi, install-html)
652         (install-info, install-pdf, install-ps): New targets.
653
654 2012-04-16  Jim Meyering  <meyering@redhat.com>
655
656         maint: avoid spurious "make sc_maint" failure
657         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
658         exempt all *.class file names, for lib/javaversion.class.
659
660 2012-04-15  Bruno Haible  <bruno@clisp.org>
661
662         lseek: Make configure test independent of environment.
663         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
664         Windows, we know that lseek() on pipes is broken; skip the runtime
665         test.
666
667 2012-04-14  Bruno Haible  <bruno@clisp.org>
668
669         stat: Bypass buggy override in mingw64.
670         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
671         * lib/stat.c (stat) [mingw64]: Define to _stat.
672         * doc/posix-functions/stat.texi: Mention mingw64 bug.
673
674 2012-04-14  Bruno Haible  <bruno@clisp.org>
675
676         pathmax: Fix compilation error on MSVC 9.
677         * modules/pathmax (Depends-on): Add unistd.
678
679 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
680
681         README: document pointer comparison assumption
682         * README (Portability guidelines): Document assumption about
683         pointer comparisons, in response to a recent bug-gnulib comment by
684         Jeffrey Kegler.
685
686 2012-04-12  Bruno Haible  <bruno@clisp.org>
687
688         Tests for module 'getrusage'.
689         * modules/getrusage-tests: New file.
690         * tests/test-getrusage.c: New file.
691
692         New module 'getrusage'.
693         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
694         warn-on-use.h.
695         (getrusage): New declaration.
696         * lib/getrusage.c: New file.
697         * m4/getrusage.m4: New file.
698         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
699         is declared.
700         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
701         HAVE_GETRUSAGE.
702         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
703         snippet/c++defs, snippet/warn-on-use.
704         (Makefile.am): Update generation of sys/resource.h. Substitute
705         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
706         * modules/getrusage: New file.
707         * doc/posix-functions/getrusage.texi: Mention the new module.
708
709 2012-04-12  Bruno Haible  <bruno@clisp.org>
710
711         Tests for module 'sys_resource'.
712         * modules/sys_resource-tests: New file.
713         * tests/test-sys_resource.c: New file.
714
715         New module 'sys_resource'.
716         * lib/sys_resource.in.h: New file.
717         * m4/sys_resource_h.m4: New file.
718         * modules/sys_resource: New file.
719         * doc/posix-headers/sys_resource.texi: Mention the new module.
720
721 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
722
723         ioctl: Fix compilation error on mingw.
724         * lib/ioctl.c: Include <windows.h>.
725         Also reported by Ray Satiro <raysatiro@yahoo.com>.
726
727 2012-04-04  Jim Meyering  <meyering@redhat.com>
728
729         regex: correct #pragma guard expression
730         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
731         not 4.3.  Correct its cpp guard expression.
732
733 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
734
735         regex: remove unnecessary type punning
736         Problem reported by Vladimir Serbinenko in
737         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
738         * lib/regex.h (struct re_pattern_buffer): Change the type of
739         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
740         Fix comment to match code.
741         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
742         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
743         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
744         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
745         (set_regs):
746         Omit no-longer-necessary casts.
747
748 2012-04-03  Bruno Haible  <bruno@clisp.org>
749
750         Tests for module 'ilogbl'.
751         * modules/ilogbl-tests: New file.
752         * tests/test-ilogbl.c: New file.
753
754         New module 'ilogbl'.
755         * lib/math.in.h (ilogbl): New declaration.
756         * lib/ilogbl.c: New file.
757         * m4/ilogbl.m4: New file.
758         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
760         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
761         Split sed invocation, to avoid the limit of 100 substitutions of
762         HP-UX 'sed'.
763         * modules/ilogbl: New file.
764         * tests/test-math-c++.cc: Check the declaration of ilogbl.
765         * doc/posix-functions/ilogbl.texi: Mention the new module.
766
767 2012-04-03  Bruno Haible  <bruno@clisp.org>
768
769         Tests for module 'ilogbf'.
770         * modules/ilogbf-tests: New file.
771         * tests/test-ilogbf.c: New file.
772
773         New module 'ilogbf'.
774         * lib/math.in.h (ilogbf): New declaration.
775         * lib/ilogbf.c: New file.
776         * m4/ilogbf.m4: New file.
777         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
778         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
779         REPLACE_ILOGBF.
780         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
781         REPLACE_ILOGBF.
782         * modules/ilogbf: New file.
783         * tests/test-math-c++.cc: Check the declaration of ilogbf.
784         * doc/posix-functions/ilogbf.texi: Mention the new module.
785
786 2012-04-03  Bruno Haible  <bruno@clisp.org>
787
788         Tests for module 'ilogb'.
789         * modules/ilogb-tests: New file.
790         * tests/test-ilogb.c: New file.
791         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
792         tests/test-logb-ieee.h.
793
794         New module 'ilogb'.
795         * lib/math.in.h (ilogb): New declaration.
796         * lib/ilogb.c: New file.
797         * m4/ilogb.m4: New file.
798         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
800         REPLACE_ILOGB.
801         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
802         REPLACE_ILOGB.
803         * modules/ilogb: New file.
804         * tests/test-math-c++.cc: Check the declaration of ilogb.
805         * doc/posix-functions/ilogb.texi: Mention the new module.
806
807 2012-04-03  Bruno Haible  <bruno@clisp.org>
808
809         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
810         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
811         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
812         (main): Check their values.
813         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
814         problem.
815
816 2012-04-03  Bruno Haible  <bruno@clisp.org>
817
818         Tests for module 'logbl-ieee'.
819         * modules/logbl-ieee-tests: New file.
820         * tests/test-logbl-ieee.c: New file.
821
822         New module 'logbl-ieee'.
823         * modules/logbl-ieee: New file.
824
825         Tests for module 'logb-ieee'.
826         * modules/logb-ieee-tests: New file.
827         * tests/test-logb-ieee.c: New file.
828
829         New module 'logb-ieee'.
830         * modules/logb-ieee: New file.
831
832         Tests for module 'logbf-ieee'.
833         * modules/logbf-ieee-tests: New file.
834         * tests/test-logbf-ieee.c: New file.
835         * tests/test-logb-ieee.h: New file.
836
837         New module 'logbf-ieee'.
838         * modules/logbf-ieee: New file.
839
840 2012-04-03  Bruno Haible  <bruno@clisp.org>
841
842         Tests for module 'logbl'.
843         * modules/logbl-tests: New file.
844         * tests/test-logbl.c: New file.
845
846         New module 'logbl'.
847         * lib/math.in.h (logbl): New declaration.
848         * lib/logbl.c: New file.
849         * m4/logbl.m4: New file.
850         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
852         REPLACE_LOGBL.
853         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
854         REPLACE_LOGBL.
855         * modules/logbl: New file.
856         * tests/test-math-c++.cc: Check the declaration of logbl.
857         * doc/posix-functions/logbl.texi: Mention the new module.
858
859 2012-04-02  Bruno Haible  <bruno@clisp.org>
860
861         Tests for module 'logbf'.
862         * modules/logbf-tests: New file.
863         * tests/test-logbf.c: New file.
864
865         New module 'logbf'.
866         * lib/math.in.h (logbf): New declaration.
867         * lib/logbf.c: New file.
868         * m4/logbf.m4: New file.
869         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
871         REPLACE_LOGBF.
872         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
873         REPLACE_LOGBF.
874         * modules/logbf: New file.
875         * tests/test-math-c++.cc: Check the declaration of logbf.
876         * doc/posix-functions/logbf.texi: Mention the new module.
877
878 2012-04-02  Bruno Haible  <bruno@clisp.org>
879
880         logb tests: More tests.
881         * tests/test-logb.h: New file, based on tests/test-logb.c and
882         tests/test-frexp.h.
883         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
884         (main): Just invoke test_function.
885         * modules/logb-tests (Files): Add tests/test-logb.h,
886         tests/minus-zero.h, tests/randomd.c.
887         (Makefile.am): Add randomd.c to test_logb_SOURCES.
888
889         logb: Provide replacement and workarounds.
890         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
891         is 1.
892         * lib/logb.c: New file.
893         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
894         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
896         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
897         * modules/logb (Files): Add lib/logb.c.
898         (Depends-on): Add isfinite, frexp, isnand.
899         (configure.ac): Compile the replacement code logb.c if needed.
900         * tests/test-math-c++.cc: Check the declaration of logb.
901         * doc/posix-functions/logb.texi: Mention the replacement and the bug
902         with subnormal numbers.
903
904 2012-04-02  Bruno Haible  <bruno@clisp.org>
905
906         log10* tests: Speed up.
907         * tests/test-log10.h (test_function): Reduce amount of random numbers
908         to test.
909
910 2012-04-01  Bruno Haible  <bruno@clisp.org>
911
912         logf-ieee: Fix test whether logf works.
913         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
914
915 2012-04-01  Bruno Haible  <bruno@clisp.org>
916
917         log10l: Work around log10l-ieee test failure on IRIX 6.5.
918         * lib/log10l.c: Include <float.h>
919         (log10l): On IRIX, normalize the +Infinity value.
920         * modules/log10l (Depends-on): Add 'float'.
921         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
922         +Infinity.
923
924         log10f-ieee: Work around test failure on NetBSD 5.1.
925         * m4/log10f-ieee.m4: New file.
926         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
927         test whether log10f works with a negative argument. Replace it if not.
928         * lib/log10f.c (log10f): For negative arguments, return NaN.
929         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
930         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
931         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
932
933         log10f-ieee: Work around test failure on Solaris 9.
934         * modules/log10f-ieee (Depends-on): Add log10-ieee.
935         (configure.ac): Require gl_FUNC_LOG10F.
936
937         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
938         * m4/log10-ieee.m4: New file.
939         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
940         whether log10 works with a negative argument. Replace it if not.
941         * lib/log10.c (log10): For negative arguments, return NaN.
942         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
943         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
944         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
945
946         Tests for module 'log10l-ieee'.
947         * modules/log10l-ieee-tests: New file.
948         * tests/test-log10l-ieee.c: New file.
949
950         New module 'log10l-ieee'.
951         * modules/log10l-ieee: New file.
952
953         Tests for module 'log10-ieee'.
954         * modules/log10-ieee-tests: New file.
955         * tests/test-log10-ieee.c: New file.
956
957         New module 'log10-ieee'.
958         * modules/log10-ieee: New file.
959
960         Tests for module 'log10f-ieee'.
961         * modules/log10f-ieee-tests: New file.
962         * tests/test-log10f-ieee.c: New file.
963         * tests/test-log10-ieee.h: New file.
964
965         New module 'log10f-ieee'.
966         * modules/log10f-ieee: New file.
967
968 2012-04-01  Bruno Haible  <bruno@clisp.org>
969
970         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
971         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
972         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
973         workaround.
974         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
975         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
977         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
978         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
979         (Depends-on): Update conditions.
980         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
981         IRIX 6.5, OSF/1 5.1 problems.
982
983 2012-04-01  Bruno Haible  <bruno@clisp.org>
984
985         log10f: Work around OSF/1 5.1 bug.
986         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
987         * lib/log10f.c (log10f): If logf exists, use it and provide just the
988         workaround.
989         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
990         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
992         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
993         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
994         (Depends-on): Update conditions.
995         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
996
997 2012-04-01  Bruno Haible  <bruno@clisp.org>
998
999         log10: Work around OSF/1 5.1 bug.
1000         * lib/math.in.h (log10): New declaration.
1001         * lib/log10.c: New file.
1002         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1003         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1004         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1006         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1007         * modules/log10 (Files): Add lib/log10.c.
1008         (Depends-on): Add math.
1009         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1010         * tests/test-math-c++.cc: Check the declaration of log10.
1011         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1012
1013 2012-03-31  Bruno Haible  <bruno@clisp.org>
1014
1015         log10l tests: More tests.
1016         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1017         tests/minus-zero.h, tests/randoml.c.
1018         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1019         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1020         (main): Invoke test_function.
1021
1022         log10f tests: More tests.
1023         * modules/log10f-tests (Files): Add tests/test-log10.h,
1024         tests/minus-zero.h, tests/randomf.c.
1025         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1026         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1027         (main): Invoke test_function.
1028
1029         log10 tests: More tests.
1030         * tests/test-log10.h: New file.
1031         * modules/log10-tests (Files): Add tests/test-log10.h,
1032         tests/minus-zero.h, tests/randomd.c.
1033         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1034         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1035         (main): Invoke test_function.
1036
1037 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1038
1039         fflush: Fix syntax error.
1040         * lib/fflush.c: Include unused-parameter.h, needed for
1041         _GL_UNUSED_PARAMETER.
1042         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1043
1044 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1045
1046         regex: pacify GCC when compiling GRUB
1047         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1048         a diagnostic.  Reported by Vladimir Serbinenko in
1049         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1050
1051 2012-03-29  Eric Blake  <eblake@redhat.com>
1052
1053         stdio: don't assume gets any more
1054         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1055         support.
1056         * modules/stdio (Makefile.am): Likewise.
1057         * lib/stdio-read.c (gets): Likewise.
1058         * tests/test-stdio-c++.cc: Likewise.
1059         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1060         * lib/stdio.in.h (gets): Make warning occur in more places.
1061         * doc/posix-functions/gets.texi (gets): Update documentation.
1062         Reported by Christer Solskogen.
1063
1064         maint.mk: fix syntax checks without exclusions
1065         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1066         Reported by Daniel P. Berrange.
1067
1068         strerror_r: avoid compiler warning
1069         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1070         level.
1071
1072         fflush: avoid compiler warning
1073         * lib/fflush.c (update_fpos_cache): Mark variables that are
1074         potentially unused.
1075
1076 2012-03-25  Bruno Haible  <bruno@clisp.org>
1077
1078         Tests for module 'localeconv'.
1079         * modules/localeconv-tests: New file.
1080         * tests/test-localeconv.c: New file.
1081
1082         New module 'localeconv'.
1083         * lib/locale.in.h (localeconv): New declaration.
1084         * lib/localeconv.c: New file.
1085         * m4/localeconv.m4: New file.
1086         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1087         REPLACE_LOCALECONV.
1088         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1089         REPLACE_LOCALECONV.
1090         * modules/localeconv: New file.
1091         * modules/nl_langinfo (Depends-on): Add localeconv.
1092         * modules/human (Depends-on): Likewise.
1093         * doc/posix-functions/localeconv.texi: Mention the new module.
1094
1095 2012-03-25  Bruno Haible  <bruno@clisp.org>
1096
1097         locale: Provide a complete 'struct lconv'.
1098         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1099         'struct lconv' does not contain int_p_cs_precedes.
1100         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1101         * doc/posix-headers/locale.texi: Update.
1102
1103         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1104         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1105         * doc/posix-headers/locale.texi: Update.
1106
1107         locale: Provide a working 'struct lconv'.
1108         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1109         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1110         'struct lconv' does not even contain decimal_point.
1111         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1112         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1113         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1114         * doc/posix-headers/locale.texi: Mention the problems with
1115         'struct lconv'.
1116         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1117
1118 2012-03-24  Bruno Haible  <bruno@clisp.org>
1119
1120         Enable common subexpression optimization in GCC.
1121         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1122         macros.
1123         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1124         GCC attribute 'const'.
1125         (uc_locale_language): Declare with GCC attribute 'pure'.
1126         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1127         with GCC attribute 'const'.
1128         * lib/unictype.in.h (uc_is_general_category_withtable,
1129         uc_combining_class, uc_combining_class_name,
1130         uc_combining_class_long_name, uc_bidi_class_name,
1131         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1132         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1133         uc_decimal_value, uc_digit_value, uc_numeric_value,
1134         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1135         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1136         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1137         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1138         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1139         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1140         Declare with GCC attribute 'const'.
1141         (uc_general_category_name, uc_general_category_long_name,
1142         uc_general_category_byname, uc_general_category,
1143         uc_is_general_category, uc_combining_class_byname,
1144         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1145         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1146         Declare with GCC attribute 'pure'.
1147         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1148         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1149         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1150         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1151         with GCC attribute 'pure'.
1152         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1153         'const'.
1154         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1155         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1156         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1157         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1158         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1159         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1160         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1161         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1162         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1163         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1164         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1165         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1166         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1167         GCC attribute 'pure'.
1168         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1169         'const'.
1170         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1171         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1172         u32_strwidth): Declare with GCC attribute 'pure'.
1173
1174         Enable common subexpression optimization in GCC.
1175         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1176         (alphasort): Declare with GCC attribute 'pure'.
1177         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1178         (atoll): Declare with GCC attribute 'pure'.
1179         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1180         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1181         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1182         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1183         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1184         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1185         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1186
1187 2012-03-24  Bruno Haible  <bruno@clisp.org>
1188
1189         gnulib-tool: Avoid unintended error output from 'cmp'.
1190         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1191         "cmp -s", not "cmp > /dev/null".
1192
1193 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1194
1195         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1196
1197         It's not just Automake versions < 1.9b that creates an empty
1198         pkgdatadir at installation time if pkgdata_DATA is specified
1199         to empty; modern automake versions do this as well, at least
1200         until automake 1.11.4 (not yet released at the moment of writing,
1201         but soon to appear).  That behaviour was generally considered a
1202         feature rather than a bug, at least until this discussion:
1203         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1204
1205         See also automake bugs #10997 and #11030.
1206
1207         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1208         reference to relevant automake bug numbers.
1209         (func_emit_tests_Makefile_am): Likewise.
1210
1211 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1212
1213         announce-gen: use Digest::SHA when possible
1214         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1215         back to Digest::SHA1 if necessary.
1216
1217 2012-03-20  Jim Meyering  <meyering@redhat.com>
1218
1219         tests: avoid gcc warnings about argv vs. const initializers
1220         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1221         warnings about discarding 'const' qualifier from pointer target type.
1222         * tests/test-posix_spawn2.c (main): Likewise.
1223
1224 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1225
1226         README-release: simplify slightly
1227         * top/README-release: Run "git checkout master" only once.
1228
1229 2012-03-15  Mark Wielaard  <mark@klomp.org>
1230
1231         git-merge-changelog: add specific example on how to use with hg.
1232         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1233
1234 2012-03-18  Mark Wielaard  <mark@klomp.org>
1235
1236         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1237
1238 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1239
1240         git-version-gen: don't let "prefix" envvar cause trouble
1241         * build-aux/git-version-gen (prefix): Initialize properly,
1242         so as not to use a value specified via the environment.
1243         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1244
1245 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1246
1247         regex: diagnose too-large repeat counts in EREs
1248         Previously, the code did not diagnose the too-large repeat count
1249         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1250         as if it were 'b\{1000000000}', which is unexpected.
1251         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1252         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1253         is a reasonable one for this problem.  Another option would be to
1254         create a new REG_OVERFLOW error for repeat counts that are too large.
1255         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1256         count is too large, so that the caller can distinguish the two cases.
1257         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1258         "Too large" return code, and that repeat counts are one example of this.
1259
1260 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1261
1262         doc: some glibc x32 integer width issues
1263         * doc/posix-headers/sys_types.texi (sys/types.h):
1264         * doc/posix-headers/time.texi (time.h):
1265         Mention that glibc x32 does not conform to POSIX in a couple of
1266         areas related to integer widths.
1267
1268 2012-03-15  Bruno Haible  <bruno@clisp.org>
1269
1270         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1271         * lib/fma.c (VOLATILE): New macro.
1272         (FUNC): Use it to work around a GCC compiler bug.
1273
1274 2012-03-13  Bruno Haible  <bruno@clisp.org>
1275
1276         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1277         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1278         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1279         REPLACE_HYPOTL to 1.
1280         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1281
1282 2012-03-13  Bruno Haible  <bruno@clisp.org>
1283
1284         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1285         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1286         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1287         REPLACE_REMAINDERL to 1.
1288         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1289         bug.
1290
1291 2012-03-13  Bruno Haible  <bruno@clisp.org>
1292
1293         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1294         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1295         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1296         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1297         too big rounding errors.
1298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1299         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1300         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1301         (Depends-on): Update conditions.
1302         * tests/test-sqrtl.c (my_ldexpl): New function.
1303         (main): Add test of a particular value.
1304         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1305
1306 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1307
1308         doc: Update timer_* platform portability notes.
1309         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1310         that always return ENOSYS.
1311         * doc/posix-functions/timer_delete.texi: Likewise.
1312         * doc/posix-functions/timer_gettime.texi: Likewise.
1313         * doc/posix-functions/timer_settime.texi: Likewise.
1314
1315 2012-03-13  Bruno Haible  <bruno@clisp.org>
1316
1317         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1318         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1319         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1320         REPLACE_CBRTL to 1.
1321         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1322
1323 2012-03-13  Bruno Haible  <bruno@clisp.org>
1324
1325         remainderl: Avoid compilation error on AIX >= 5.2.
1326         * lib/math.in.h (remainderl): Undefine macro from the system header.
1327
1328 2012-03-13  Bruno Haible  <bruno@clisp.org>
1329
1330         Avoid compilation errors with MSVC option -fp:strict.
1331         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1332         * lib/cbrtf.c: Likewise.
1333         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1334
1335 2012-03-12  Bruno Haible  <bruno@clisp.org>
1336
1337         uninorm: Don't crash in out-of-memory conditions.
1338         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1339         gracefully.
1340         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1341         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1342
1343 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1344
1345         quote: fix syntax-check
1346         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1347         also exports quote_quoting_options.
1348
1349 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1350
1351         Collapse list of copyright years to ranges.  See
1352         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1353         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1354         build-aux/csharpexec.sh.in, build-aux/gnupload,
1355         build-aux/install-reloc, build-aux/javacomp.sh.in,
1356         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1357         build-aux/move-if-change, build-aux/reloc-ldflags,
1358         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1359
1360 2012-03-11  Bruno Haible  <bruno@clisp.org>
1361
1362         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1363         * m4/log2f-ieee.m4: New file.
1364         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1365         whether log2f works with a minus zero argument. Replace it if not.
1366         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1367         (Depends-on): Add log2-ieee.
1368         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1369         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1370
1371         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1372         * m4/log2-ieee.m4: New file.
1373         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1374         whether log2 works with a minus zero argument. Replace it if not.
1375         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1376         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1377         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1378
1379         Tests for module 'log2l-ieee'.
1380         * modules/log2l-ieee-tests: New file.
1381         * tests/test-log2l-ieee.c: New file.
1382
1383         New module 'log2l-ieee'.
1384         * modules/log2l-ieee: New file.
1385
1386         Tests for module 'log2-ieee'.
1387         * modules/log2-ieee-tests: New file.
1388         * tests/test-log2-ieee.c: New file.
1389
1390         New module 'log2-ieee'.
1391         * modules/log2-ieee: New file.
1392
1393         Tests for module 'log2f-ieee'.
1394         * modules/log2f-ieee-tests: New file.
1395         * tests/test-log2f-ieee.c: New file.
1396         * tests/test-log2-ieee.h: New file.
1397
1398         New module 'log2f-ieee'.
1399         * modules/log2f-ieee: New file.
1400
1401 2012-03-11  Bruno Haible  <bruno@clisp.org>
1402
1403         Tests for module 'log2l'.
1404         * modules/log2l-tests: New file.
1405         * tests/test-log2l.c: New file.
1406
1407         New module 'log2l'.
1408         * lib/math.in.h (log2l): New declaration.
1409         * lib/log2l.c: New file.
1410         * m4/log2l.m4: New file.
1411         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1413         REPLACE_LOG2L.
1414         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1415         REPLACE_LOG2L.
1416         * modules/log2l: New file.
1417         * tests/test-math-c++.cc: Check the declaration of log2l.
1418         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1419         and OSF/1 problems.
1420
1421 2012-03-11  Bruno Haible  <bruno@clisp.org>
1422
1423         Tests for module 'log2f'.
1424         * modules/log2f-tests: New file.
1425         * tests/test-log2f.c: New file.
1426
1427         New module 'log2f'.
1428         * lib/math.in.h (log2f): New declaration.
1429         * lib/log2f.c: New file.
1430         * m4/log2f.m4: New file.
1431         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1433         REPLACE_LOG2F.
1434         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1435         REPLACE_LOG2F.
1436         * modules/log2f: New file.
1437         * tests/test-math-c++.cc: Check the declaration of log2f.
1438         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1439         and OSF/1 and Cygwin problems.
1440
1441 2012-03-11  Bruno Haible  <bruno@clisp.org>
1442
1443         Tests for module 'log2'.
1444         * modules/log2-tests: New file.
1445         * tests/test-log2.c: New file.
1446         * tests/test-log2.h: New file.
1447
1448         New module 'log2'.
1449         * lib/math.in.h (log2): New declaration.
1450         * lib/log2.c: New file.
1451         * m4/log2.m4: New file.
1452         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1454         REPLACE_LOG2.
1455         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1456         REPLACE_LOG2.
1457         * modules/log2: New file.
1458         * tests/test-math-c++.cc: Check the declaration of log2.
1459         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1460         and OSF/1 and Cygwin problems.
1461
1462 2012-03-11  Bruno Haible  <bruno@clisp.org>
1463
1464         exp2* tests: More tests.
1465         * tests/test-exp2.h (test_function): Test all integral arguments that
1466         don't need to overflow or denormalized numbers.
1467         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1468         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1469         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1470
1471 2012-03-10  Bruno Haible  <bruno@clisp.org>
1472
1473         log1pl-ieee: Work around test failure on AIX 7.1.
1474         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1475
1476         log1pl-ieee: Work around test failure on IRIX 6.5.
1477         * m4/log1pl-ieee.m4: New file.
1478         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1479         test whether log1pl works with a minus zero argument. Replace it if
1480         not.
1481         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1483         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1484         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1485         (Depends-on): Update conditions.
1486         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1487         m4/signbit.m4.
1488         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1489         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1490
1491         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1492         * m4/log1pf-ieee.m4: New file.
1493         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1494         test whether log1pf works with a minus zero argument. Replace it if
1495         not.
1496         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1497         m4/signbit.m4.
1498         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1499         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1500
1501         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1502         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1503         (configure.ac): Require gl_FUNC_LOG1PF.
1504
1505         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1506         * m4/log1p-ieee.m4: New file.
1507         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1508         whether log1p works with a minus zero argument. Replace it if not.
1509         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1511         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1512         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1513         (Depends-on): Update conditions.
1514         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1515         m4/signbit.m4.
1516         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1517         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1518
1519         Tests for module 'log1pl-ieee'.
1520         * modules/log1pl-ieee-tests: New file.
1521         * tests/test-log1pl-ieee.c: New file.
1522
1523         New module 'log1pl-ieee'.
1524         * modules/log1pl-ieee: New file.
1525
1526         Tests for module 'log1p-ieee'.
1527         * modules/log1p-ieee-tests: New file.
1528         * tests/test-log1p-ieee.c: New file.
1529
1530         New module 'log1p-ieee'.
1531         * modules/log1p-ieee: New file.
1532
1533         Tests for module 'log1pf-ieee'.
1534         * modules/log1pf-ieee-tests: New file.
1535         * tests/test-log1pf-ieee.c: New file.
1536         * tests/test-log1p-ieee.h: New file.
1537
1538         New module 'log1pf-ieee'.
1539         * modules/log1pf-ieee: New file.
1540
1541 2012-03-10  Bruno Haible  <bruno@clisp.org>
1542
1543         Tests for module 'log1pl'.
1544         * modules/log1pl-tests: New file.
1545         * tests/test-log1pl.c: New file.
1546
1547         New module 'log1pl'.
1548         * lib/math.in.h (log1pl): New declaration.
1549         * lib/log1pl.c: New file.
1550         * m4/log1pl.m4: New file.
1551         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1553         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1554         * modules/log1pl: New file.
1555         * tests/test-math-c++.cc: Check the declaration of log1pl.
1556         * doc/posix-functions/log1pl.texi: Mention the new module.
1557
1558 2012-03-10  Bruno Haible  <bruno@clisp.org>
1559
1560         Tests for module 'log1pf'.
1561         * modules/log1pf-tests: New file.
1562         * tests/test-log1pf.c: New file.
1563
1564         New module 'log1pf'.
1565         * lib/math.in.h (log1pf): New declaration.
1566         * lib/log1pf.c: New file.
1567         * m4/log1pf.m4: New file.
1568         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1570         REPLACE_LOG1PF.
1571         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1572         REPLACE_LOG1PF.
1573         * modules/log1pf: New file.
1574         * tests/test-math-c++.cc: Check the declaration of log1pf.
1575         * doc/posix-functions/log1pf.texi: Mention the new module.
1576
1577 2012-03-10  Bruno Haible  <bruno@clisp.org>
1578
1579         log1p tests: More tests.
1580         * tests/test-log1p.h: New file.
1581         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1582         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1583         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1584         (main): Invoke test_function.
1585
1586         log1p: Provide replacement for Minix and MSVC.
1587         * lib/math.in.h (log1p): New declaration.
1588         * lib/log1p.c: New file.
1589         * m4/log1p.m4: New file.
1590         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1592         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1593         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1594         (Depends-on): Add math, isnand, log, round.
1595         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1596         HAVE_LOG1P is 0.
1597         * tests/test-math-c++.cc: Check the declaration of log1p.
1598         * doc/posix-functions/log1p.texi: Mention the replacement.
1599
1600 2012-03-10  Bruno Haible  <bruno@clisp.org>
1601
1602         math tests: Small simplification.
1603         * tests/test-exp.h (test_function): Use the same err_bound for
1604         'double' on platforms with sizeof (long double) == sizeof (double)
1605         than on platforms with sizeof (long double) > sizeof (double).
1606         * tests/test-exp2.h (test_function): Likewise.
1607         * tests/test-expm1.h (test_function): Likewise.
1608         * tests/test-log.h (test_function): Likewise.
1609
1610 2012-03-10  Bruno Haible  <bruno@clisp.org>
1611
1612         Fix some comments.
1613         * lib/expl.c: Fix an ambiguous comment.
1614         * lib/expm1.c: Likewise.
1615         * lib/expm1l.c: Likewise.
1616         * lib/exp2.c: Likewise.
1617         * lib/exp2l.c: Likewise.
1618
1619 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1620
1621         regex: allow inclusion of <regex.h> before <limits.h>
1622         Without this patch, portable programs had to include <limits.h> before
1623         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1624         I ran into this problem with a test version of GNU grep on Solaris 8.
1625         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1626         This is done conditionally so that this change can be merged
1627         back to glibc.
1628         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1629         using the included regex.
1630
1631         fts: depend on fdopendir
1632         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1633         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1634         problem was introduced when fdopendir was split out.
1635
1636 2012-03-10  Bruno Haible  <bruno@clisp.org>
1637
1638         Remove unused variables.
1639         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1640         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1641
1642 2012-03-10  Bruno Haible  <bruno@clisp.org>
1643
1644         isnanf-nolibm: Fix last commit.
1645         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1646
1647         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1648         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1649
1650 2012-03-10  Bruno Haible  <bruno@clisp.org>
1651
1652         logf-ieee: Work around test failure on NetBSD 5.1.
1653         * m4/logf-ieee.m4: New file.
1654         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1655         whether logf works with a negative argument. Replace it if not.
1656         * lib/logf.c (logf): For negative arguments, return NaN.
1657         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1658         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1659         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1660
1661         logf-ieee: Work around test failure on Solaris 9.
1662         * modules/logf-ieee (Depends-on): Add log-ieee.
1663         (configure.ac): Require gl_FUNC_LOGF.
1664
1665         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1666         * m4/log-ieee.m4: New file.
1667         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1668         log works with a negative argument. Replace it if not.
1669         * lib/log.c (log): For negative arguments, return NaN.
1670         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1671         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1672         * doc/posix-functions/log.texi: Mention the log-ieee module.
1673
1674         Tests for module 'logl-ieee'.
1675         * modules/logl-ieee-tests: New file.
1676         * tests/test-logl-ieee.c: New file.
1677
1678         New module 'logl-ieee'.
1679         * modules/logl-ieee: New file.
1680
1681         Tests for module 'log-ieee'.
1682         * modules/log-ieee-tests: New file.
1683         * tests/test-log-ieee.c: New file.
1684
1685         New module 'log-ieee'.
1686         * modules/log-ieee: New file.
1687
1688         Tests for module 'logf-ieee'.
1689         * modules/logf-ieee-tests: New file.
1690         * tests/test-logf-ieee.c: New file.
1691         * tests/test-log-ieee.h: New file.
1692
1693         New module 'logf-ieee'.
1694         * modules/logf-ieee: New file.
1695
1696 2012-03-10  Bruno Haible  <bruno@clisp.org>
1697
1698         log: Fix bug introduced on 2012-03-09.
1699         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1700
1701 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1702
1703         timer-time: link explicitly with pthreads on glibc
1704         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1705         to support static linking, when newer glibc is
1706         detected, as that contains pthread emulation of
1707         POSIX timer functions where required.
1708         * modules/timer-time: Depend on threadlib to
1709         pull in the appropriate library to link.
1710
1711 2012-03-10  Bruno Haible  <bruno@clisp.org>
1712
1713         log* tests: More tests.
1714         * tests/test-log.h: New file.
1715         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1716         (main): Invoke test_function.
1717         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1718         (main): Invoke test_function.
1719         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1720         (main): Invoke test_function.
1721         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1722         tests/randomd.c.
1723         (Makefile.am): Add randomd.c to test_log_SOURCES.
1724         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1725         tests/randomf.c.
1726         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1727         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1728         tests/randoml.c.
1729         (Depends-on): Add 'float'.
1730         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1731
1732 2012-03-09  Bruno Haible  <bruno@clisp.org>
1733
1734         logl: Work around OSF/1 5.1 bug.
1735         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1736         * lib/logl.c (logl): If logl exists, use it and provide just the
1737         workaround.
1738         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1739         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1741         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1742         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1743         (Depends-on): Update conditions.
1744         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1745
1746 2012-03-09  Bruno Haible  <bruno@clisp.org>
1747
1748         logf: Work around OSF/1 5.1 bug.
1749         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1750         * lib/logf.c (logf): If logf exists, use it and provide just the
1751         workaround.
1752         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1753         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1755         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1756         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1757         (Depends-on): Update conditions.
1758         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1759
1760 2012-03-09  Bruno Haible  <bruno@clisp.org>
1761
1762         log: Work around OSF/1 5.1 bug.
1763         * lib/math.in.h (log): New declaration.
1764         * lib/log.c: New file.
1765         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1766         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1767         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1769         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1770         * modules/log (Files): Add lib/log.c.
1771         (Depends-on): Add math.
1772         (configure.ac): If REPLACE_LOG is 1, compile an override.
1773         * tests/test-math-c++.cc: Check the declaration of log.
1774         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1775
1776 2012-03-09  Jim Meyering  <meyering@redhat.com>
1777
1778         readtokens.c: adjust wording in a comment
1779         * lib/readtokens.c: Insert omitted "that" in a comment.
1780
1781 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1782
1783         modechange: add notations +40, 00440, etc.
1784         * lib/modechange.c (mode_compile): Support new notations
1785         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1786
1787 2012-03-08  Bruno Haible  <bruno@clisp.org>
1788
1789         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1790         * m4/exp2l-ieee.m4: New file.
1791         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1792         test whether exp2l works with a NaN argument and with a negative
1793         infinity argument. Replace it if not.
1794         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1796         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1797         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1798         (Depends-on): Update conditions.
1799         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1800         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1801         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1802
1803         Tests for module 'exp2l-ieee'.
1804         * modules/exp2l-ieee-tests: New file.
1805         * tests/test-exp2l-ieee.c: New file.
1806
1807         New module 'exp2l-ieee'.
1808         * modules/exp2l-ieee: New file.
1809
1810         Tests for module 'exp2-ieee'.
1811         * modules/exp2-ieee-tests: New file.
1812         * tests/test-exp2-ieee.c: New file.
1813
1814         New module 'exp2-ieee'.
1815         * modules/exp2-ieee: New file.
1816
1817         Tests for module 'exp2f-ieee'.
1818         * modules/exp2f-ieee-tests: New file.
1819         * tests/test-exp2f-ieee.c: New file.
1820         * tests/test-exp2-ieee.h: New file.
1821
1822         New module 'exp2f-ieee'.
1823         * modules/exp2f-ieee: New file.
1824
1825 2012-03-08  Bruno Haible  <bruno@clisp.org>
1826
1827         Tests for module 'exp2l'.
1828         * modules/exp2l-tests: New file.
1829         * tests/test-exp2l.c: New file.
1830
1831         New module 'exp2l'.
1832         * lib/math.in.h (exp2l): New declaration.
1833         * lib/exp2l.c: New file.
1834         * lib/expl-table.c: New file, extracted from lib/expl.c.
1835         * lib/expl.c (gl_expl_table): New declaration.
1836         (expl): Remove expl_table. Update reference.
1837         * m4/exp2l.m4: New file.
1838         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1840         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1841         * modules/exp2l: New file.
1842         * modules/expl (Files): Add lib/expl-table.c.
1843         (configure.ac): Compile also expl-table.c.
1844         * tests/test-math-c++.cc: Check the declaration of exp2l.
1845         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1846         problem.
1847
1848 2012-03-08  Bruno Haible  <bruno@clisp.org>
1849
1850         Tests for module 'exp2f'.
1851         * modules/exp2f-tests: New file.
1852         * tests/test-exp2f.c: New file.
1853
1854         New module 'exp2f'.
1855         * lib/math.in.h (exp2f): New declaration.
1856         * lib/exp2f.c: New file.
1857         * m4/exp2f.m4: New file.
1858         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1860         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1861         * modules/exp2f: New file.
1862         * tests/test-math-c++.cc: Check the declaration of exp2f.
1863         * doc/posix-functions/exp2f.texi: Mention the new module and the
1864         IRIX problem.
1865
1866 2012-03-08  Bruno Haible  <bruno@clisp.org>
1867
1868         Tests for module 'exp2'.
1869         * modules/exp2-tests: New file.
1870         * tests/test-exp2.c: New file.
1871         * tests/test-exp2.h: New file.
1872
1873         New module 'exp2'.
1874         * lib/math.in.h (exp2): New declaration.
1875         * lib/exp2.c: New file.
1876         * m4/exp2.m4: New file.
1877         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1879         REPLACE_EXP2.
1880         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1881         REPLACE_EXP2.
1882         * modules/exp2: New file.
1883         * tests/test-math-c++.cc: Check the declaration of exp2.
1884         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1885         and OpenBSD problems.
1886
1887 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1888
1889         savedir: fix comment typo
1890         * lib/savedir.c (savedirstream): Fix typo in comment.
1891
1892 2012-03-08  Bruno Haible  <bruno@clisp.org>
1893
1894         test-readtokens.c: use const; remove unwarranted cast
1895         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1896
1897 2012-03-08  Bruno Haible  <bruno@clisp.org>
1898
1899         fmal: Avoid compilation error on AIX.
1900         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1901         AIX 5.2..7.1.
1902
1903 2012-03-08  Bruno Haible  <bruno@clisp.org>
1904
1905         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1906         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1907         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1908         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1909         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1910         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1911         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1912
1913 2012-03-08  Bruno Haible  <bruno@clisp.org>
1914
1915         remainderf: Override buggy system function on IRIX 6.5.
1916         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1917         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1918         when it exists.
1919         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1920
1921 2012-03-08  Jim Meyering  <meyering@redhat.com>
1922
1923         test-readtokens.c: avoid const-related compilation warnings
1924         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1925
1926 2012-03-07  Jim Meyering  <meyering@redhat.com>
1927             Bruno Haible  <bruno@clisp.org>
1928
1929         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1930         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1931         tests/randomd.c.
1932         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1933         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1934         tests/randoml.c.
1935         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1936
1937 2012-03-07  Bruno Haible  <bruno@clisp.org>
1938
1939         expm1l: Avoid compilation error on AIX.
1940         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1941         AIX 5.2..7.1.
1942
1943 2012-03-07  Bruno Haible  <bruno@clisp.org>
1944
1945         expm1l: Don't override undeclared system function on IRIX 6.5.
1946         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1947         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1948         it exists. Set HAVE_DECL_EXPM1L.
1949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1950         HAVE_EXPM1L.
1951         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1952         HAVE_EXPM1L.
1953         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1954
1955 2012-03-07  Bruno Haible  <bruno@clisp.org>
1956
1957         remainderl: Don't override undeclared system function on IRIX 6.5.
1958         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1959         HAVE_REMAINDERL.
1960         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1961         declared when it exists. Set HAVE_DECL_REMAINDERL.
1962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1963         not HAVE_REMAINDERL.
1964         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1965         HAVE_REMAINDERL.
1966         * doc/posix-functions/remainderl.texi: Mention missing declaration
1967         problem.
1968
1969 2012-03-07  Bruno Haible  <bruno@clisp.org>
1970
1971         rintf: Don't override undeclared system function on IRIX 6.5.
1972         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1973         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1974         exists. Set HAVE_DECL_RINTF.
1975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1976         HAVE_RINTF.
1977         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1978         HAVE_RINTF.
1979         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1980
1981 2012-03-07  Bruno Haible  <bruno@clisp.org>
1982
1983         roundl: Avoid compilation error on AIX.
1984         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1985         AIX 5.2..7.1.
1986
1987 2012-03-07  Bruno Haible  <bruno@clisp.org>
1988
1989         roundl: Don't override undeclared system function on IRIX 6.5.
1990         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1991         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1992         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1993         * modules/roundl (configure.ac): For replacement code, test
1994         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1995         (Depends-on): Update conditions.
1996         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1997
1998 2012-03-07  Bruno Haible  <bruno@clisp.org>
1999
2000         roundf: Don't override undeclared system function on IRIX 6.5.
2001         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2002         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2003         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2004         * modules/roundf (configure.ac): For replacement code, test
2005         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2006         (Depends-on): Update conditions.
2007         * modules/roundf-ieee (Depends-on): Update conditions.
2008         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2009
2010 2012-03-07  Bruno Haible  <bruno@clisp.org>
2011
2012         round: Don't override undeclared system function on IRIX 6.5.
2013         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2014         argument.
2015         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2016         also when it is not declared. Set HAVE_ROUND. For replacement code,
2017         test HAVE_ROUND, not HAVE_DECL_ROUND.
2018         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2019         not HAVE_DECL_ROUND.
2020         (Depends-on): Update conditions.
2021         * modules/round-ieee (Depends-on): Update conditions.
2022         * doc/posix-functions/round.texi: Mention the IRIX problem.
2023
2024 2012-03-07  Bruno Haible  <bruno@clisp.org>
2025
2026         copysignf: Don't override undeclared system function on IRIX 6.5.
2027         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2028         HAVE_COPYSIGNF.
2029         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2030         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2032         not HAVE_COPYSIGNF.
2033         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2034         HAVE_COPYSIGNF.
2035         * doc/posix-functions/copysignf.texi: Mention missing declaration
2036         problem.
2037
2038 2012-03-07  Jim Meyering  <meyering@redhat.com>
2039
2040         readtokens: add tests
2041         * modules/readtokens-tests: New file.
2042         * tests/test-readtokens.c: New file.
2043
2044 2012-03-07  Jim Meyering  <meyering@redhat.com>
2045
2046         quotearg: the module must now include quote.h
2047         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2048         So must the module.
2049         * modules/quotearg (Files): Add quote.h.
2050
2051 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2052
2053         readtokens: avoid core dumps with unusual calling patterns
2054         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2055         * lib/readtokens.c: Include limits.h.
2056         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2057         (readtoken): Don't cache the delimiters; the cache code was buggy
2058         if !delim && saved_delim, or if the new n_delim differs from the old.
2059         Also, it wasn't thread-safe.
2060
2061 2012-03-07  Bruno Haible  <bruno@clisp.org>
2062
2063         quote: Adhere to common module description layout.
2064         * modules/quote (Makefile.am): Add back empty section.
2065
2066 2012-03-06  Akim Demaille  <demaille@gostai.com>
2067
2068         quote: fuse into quotearg
2069         This patch is made for the benefit of Bison.
2070         quote does not leave the choice of the quoting style to the user.
2071         quoting_style provides poor customizability, yet quoting_options,
2072         which is very rich, is hidden inside quotearg.c.  So in order to
2073         allow quote customization, move its implementation to quotearg.c.
2074         * lib/quote.c: Remove.
2075         * modules/quote: Adjust.
2076         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2077         warning: provide all the members of literal structs.
2078         (quote_quoting_options): New.
2079         (quote, quote_n): Import implementation from quote.c.
2080         * lib/quote.h: Import the comments from quote.c.
2081         (quote_quoting_options): New.
2082
2083 2012-03-06  Bruno Haible  <bruno@clisp.org>
2084
2085         Tests for module 'expm1l-ieee'.
2086         * modules/expm1l-ieee-tests: New file.
2087         * tests/test-expm1l-ieee.c: New file.
2088
2089         New module 'expm1l-ieee'.
2090         * modules/expm1l-ieee: New file.
2091
2092         Tests for module 'expm1f-ieee'.
2093         * modules/expm1f-ieee-tests: New file.
2094         * tests/test-expm1f-ieee.c: New file.
2095
2096         New module 'expm1f-ieee'.
2097         * modules/expm1f-ieee: New file.
2098
2099         Tests for module 'expm1-ieee'.
2100         * modules/expm1-ieee-tests: New file.
2101         * tests/test-expm1-ieee.c: New file.
2102         * tests/test-expm1-ieee.h: New file.
2103
2104         New module 'expm1-ieee'.
2105         * modules/expm1-ieee: New file.
2106         * m4/expm1-ieee.m4: New file.
2107         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2108         whether expm1 works with a minus zero argument. Replace it if not.
2109         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2111         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2112         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2113         (Depends-on): Update conditions.
2114         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2115         AIX problem.
2116
2117 2012-03-06  Bruno Haible  <bruno@clisp.org>
2118
2119         Work around expm1f bug on IRIX 6.5.
2120         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2121         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2122         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2123         not work.
2124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2125         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2126         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2127         (Depends-on): Update conditions.
2128         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2129
2130 2012-03-06  Bruno Haible  <bruno@clisp.org>
2131
2132         Tests for module 'expm1l'.
2133         * modules/expm1l-tests: New file.
2134         * tests/test-expm1l.c: New file.
2135
2136         New module 'expm1l'.
2137         * lib/math.in.h (expm1l): New declaration.
2138         * lib/expm1l.c: New file.
2139         * m4/expm1l.m4: New file.
2140         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2142         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2143         * modules/expm1l: New file.
2144         * tests/test-math-c++.cc: Check the declaration of expm1l.
2145         * doc/posix-functions/expm1l.texi: Mention the new module.
2146
2147 2012-03-06  Bruno Haible  <bruno@clisp.org>
2148
2149         Tests for module 'expm1f'.
2150         * modules/expm1f-tests: New file.
2151         * tests/test-expm1f.c: New file.
2152
2153         New module 'expm1f'.
2154         * lib/math.in.h (expm1f): New declaration.
2155         * lib/expm1f.c: New file.
2156         * m4/expm1f.m4: New file.
2157         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2159         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2160         * modules/expm1f: New file.
2161         * tests/test-math-c++.cc: Check the declaration of expm1f.
2162         * doc/posix-functions/expm1f.texi: Mention the new module.
2163
2164 2012-03-06  Bruno Haible  <bruno@clisp.org>
2165
2166         Tests for module 'expm1'.
2167         * modules/expm1-tests: New file.
2168         * tests/test-expm1.c: New file.
2169         * tests/test-expm1.h: New file.
2170
2171         New module 'expm1'.
2172         * lib/math.in.h (expm1): New declaration.
2173         * lib/expm1.c: New file.
2174         * m4/expm1.m4: New file.
2175         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2177         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2178         * modules/expm1: New file.
2179         * tests/test-math-c++.cc: Check the declaration of expm1.
2180         * doc/posix-functions/expm1.texi: Mention the new module.
2181
2182 2012-03-06  Bruno Haible  <bruno@clisp.org>
2183
2184         math: Ensure declarations of math functions.
2185         * modules/acosf (Depends-on): Add 'extensions'.
2186         * modules/asinf (Depends-on): Likewise.
2187         * modules/atan2f (Depends-on): Likewise.
2188         * modules/atanf (Depends-on): Likewise.
2189         * modules/cbrt (Depends-on): Likewise.
2190         * modules/cbrtf (Depends-on): Likewise.
2191         * modules/cbrtl (Depends-on): Likewise.
2192         * modules/copysignf (Depends-on): Likewise.
2193         * modules/copysignl (Depends-on): Likewise.
2194         * modules/cosf (Depends-on): Likewise.
2195         * modules/coshf (Depends-on): Likewise.
2196         * modules/expf (Depends-on): Likewise.
2197         * modules/fabsf (Depends-on): Likewise.
2198         * modules/fabsl (Depends-on): Likewise.
2199         * modules/fmaf (Depends-on): Likewise.
2200         * modules/fmal (Depends-on): Likewise.
2201         * modules/fmodf (Depends-on): Likewise.
2202         * modules/fmodl (Depends-on): Likewise.
2203         * modules/frexpf (Depends-on): Likewise.
2204         * modules/frexpl (Depends-on): Likewise.
2205         * modules/hypot (Depends-on): Likewise.
2206         * modules/hypotf (Depends-on): Likewise.
2207         * modules/hypotl (Depends-on): Likewise.
2208         * modules/ldexpf (Depends-on): Likewise.
2209         * modules/ldexpl (Depends-on): Likewise.
2210         * modules/log10f (Depends-on): Likewise.
2211         * modules/log10l (Depends-on): Likewise.
2212         * modules/log1p (Depends-on): Likewise.
2213         * modules/logb (Depends-on): Likewise.
2214         * modules/logf (Depends-on): Likewise.
2215         * modules/modff (Depends-on): Likewise.
2216         * modules/modfl (Depends-on): Likewise.
2217         * modules/powf (Depends-on): Likewise.
2218         * modules/remainderf (Depends-on): Likewise.
2219         * modules/remainderl (Depends-on): Likewise.
2220         * modules/rintf (Depends-on): Likewise.
2221         * modules/rintl (Depends-on): Likewise.
2222         * modules/sinf (Depends-on): Likewise.
2223         * modules/sinhf (Depends-on): Likewise.
2224         * modules/sqrtf (Depends-on): Likewise.
2225         * modules/tanf (Depends-on): Likewise.
2226         * modules/tanhf (Depends-on): Likewise.
2227         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2228         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2229         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2230         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2231         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2232         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2233         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2234         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2235         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2236         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2237         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2238         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2239         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2240         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2241         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2242         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2243         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2244         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2245         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2246         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2247         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2248         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2249         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2250         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2251         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2252         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2253         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2254         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2255         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2256         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2257         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2258         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2259         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2260         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2261         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2262         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2263         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2264         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2265         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2266         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2267         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2268
2269 2012-03-06  Bruno Haible  <bruno@clisp.org>
2270
2271         math: Update module names in warnings.
2272         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2273         tanl): Use specific module name in warn-on-use warning.
2274
2275 2012-03-06  Bruno Haible  <bruno@clisp.org>
2276
2277         expl: Simplify computation.
2278         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2279
2280 2012-03-05  Bruno Haible  <bruno@clisp.org>
2281
2282         exp* tests: More tests.
2283         * tests/test-exp.h: New file.
2284         * tests/test-exp.c: Include <float.h> and test-exp.h.
2285         (main): Invoke test_function.
2286         * tests/test-expf.c: Include <float.h> and test-exp.h.
2287         (main): Invoke test_function.
2288         * tests/test-expl.c: Include <float.h> and test-exp.h.
2289         (main): Invoke test_function.
2290         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2291         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2292         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2293         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2294         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2295         (Depends-on): Add 'float'.
2296         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2297
2298         expl: Fix precision of computed result.
2299         * lib/expl.c: Completely rewritten.
2300         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2301         (Maintainer): Add me.
2302         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2303
2304 2012-03-05  Bruno Haible  <bruno@clisp.org>
2305
2306         cbrt* tests: More tests.
2307         * tests/test-cbrt.h: New file.
2308         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2309         (main): Invoke test_function.
2310         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2311         (main): Invoke test_function.
2312         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2313         (main): Invoke test_function.
2314         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2315         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2316         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2317         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2318         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2319         (Depends-on): Add 'float'.
2320         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2321
2322 2012-03-05  Bruno Haible  <bruno@clisp.org>
2323
2324         hypot* tests: More tests.
2325         * tests/test-hypot.h: New file, partially extracted from
2326         tests/test-hypotl.c.
2327         * tests/test-hypot.c: Include test-hypot.h.
2328         (main): Invoke test_function.
2329         * tests/test-hypotf.c: Include test-hypot.h.
2330         (main): Invoke test_function.
2331         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2332         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2333         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2334         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2335         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2336         tests/randomf.c.
2337         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2338         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2339         tests/randoml.c.
2340         (Depends-on): Add 'fpucw', 'float'.
2341         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2342
2343 2012-03-05  Bruno Haible  <bruno@clisp.org>
2344
2345         fpucw: Doc about FreeBSD.
2346         * lib/fpucw.h: Mention FreeBSD in comments.
2347
2348 2012-03-04  Bruno Haible  <bruno@clisp.org>
2349
2350         sqrt* tests: More tests.
2351         * tests/test-sqrt.h: New file.
2352         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2353         (main): Invoke test_function.
2354         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2355         (main): Invoke test_function.
2356         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2357         (main): Invoke test_function.
2358         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2359         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2360         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2361         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2362         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2363         (Depends-on): Add 'float'.
2364         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2365
2366 2012-03-04  Bruno Haible  <bruno@clisp.org>
2367
2368         remainder* tests: More tests.
2369         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2370         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2371         (main): Invoke test_function.
2372         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2373         (main): Invoke test_function.
2374         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2375         (main): Invoke test_function.
2376         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2377         tests/randomd.c.
2378         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2379         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2380         tests/randomf.c.
2381         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2382         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2383         tests/randoml.c.
2384         (Depends-on): Add 'float'.
2385         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2386
2387 2012-03-04  Bruno Haible  <bruno@clisp.org>
2388
2389         remainder, remainderf, remainderl: Fix computation for large quotients.
2390         * lib/remainder.c: Completely rewritten.
2391         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2392         USE_FLOAT.
2393         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2394         USE_LONG_DOUBLE.
2395         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2396         isnand, isinf. Remove round, fma.
2397         * modules/remainderf (Files): Add lib/remainder.c.
2398         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2399         Remove roundf, fmaf.
2400         * modules/remainderl (Files): Add lib/remainder.c.
2401         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2402         isinf. Remove roundl, fmal.
2403         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2404         REMAINDER_LIBM.
2405         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2406         REMAINDERF_LIBM.
2407         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2408         REMAINDERL_LIBM.
2409
2410 2012-03-04  Bruno Haible  <bruno@clisp.org>
2411
2412         fmod* tests: More tests.
2413         * tests/test-fmod.h (my_ldexp): New function.
2414         (test_function): Reduce amount of random numbers to test. Add tests
2415         of very large quotients x / y.
2416         * tests/test-fmod.c (MAX_EXP): New macro.
2417         * tests/test-fmodf.c (MAX_EXP): Likewise.
2418         * tests/test-fmodl.c (MAX_EXP): Likewise.
2419
2420 2012-03-04  Bruno Haible  <bruno@clisp.org>
2421
2422         fmod, fmodl: Fix computation for large quotients x / y.
2423         * lib/fmod.c: Completely rewritten.
2424         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2425         USE_LONG_DOUBLE.
2426         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2427         isnand. Remove fma.
2428         * modules/fmodl (Files): Add lib/fmod.c.
2429         (Depends-on): Add float, isfinite, signbit, fabsl,
2430         frexpl, ldexpl, isnanl. Remove fma.
2431         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2432         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2433
2434 2012-03-03  Bruno Haible  <bruno@clisp.org>
2435
2436         fmod* tests: More tests.
2437         * tests/test-fmod.h: New file.
2438         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2439         (main): Invoke test_function.
2440         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2441         (main): Invoke test_function.
2442         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2443         (main): Invoke test_function.
2444         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2445         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2446         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2447         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2448         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2449         (Depends-on): Add 'float'.
2450         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2451
2452 2012-03-03  Bruno Haible  <bruno@clisp.org>
2453
2454         rint* tests: More tests.
2455         * tests/test-rint.h: New file, partially extracted from
2456         tests/test-rintl.c.
2457         * tests/test-rint.c: Include test-rint.h.
2458         (main): Invoke test_function.
2459         * tests/test-rintf.c: Include test-rint.h.
2460         (main): Invoke test_function.
2461         * tests/test-rintl.c: Include test-rint.h.
2462         (main): Invoke test_function.
2463         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2464         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2465         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2466         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2467         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2468         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2469
2470 2012-03-03  Bruno Haible  <bruno@clisp.org>
2471
2472         modf* tests: More tests.
2473         * tests/test-modf.h: New file.
2474         * tests/test-modf.c: Include <float.h> and test-modf.h.
2475         (main): Invoke test_function.
2476         * tests/test-modff.c: Include <float.h> and test-modf.h.
2477         (main): Invoke test_function.
2478         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2479         (main): Invoke test_function.
2480         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2481         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2482         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2483         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2484         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2485         (Depends-on): Add 'float'.
2486         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2487
2488 2012-03-03  Bruno Haible  <bruno@clisp.org>
2489
2490         fabs* tests: More tests.
2491         * tests/test-fabs.h: New file, partially extracted from
2492         tests/test-fabsl.c.
2493         * tests/test-fabs.c (RANDOM): New macro.
2494         * tests/test-fabsf.c (RANDOM): New macro.
2495         * tests/test-fabsl.c (RANDOM): New macro.
2496         * modules/fabs-tests (Files): Add tests/randomd.c.
2497         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2498         * modules/fabsf-tests (Files): Add tests/randomf.c.
2499         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2500         * modules/fabsl-tests (Files): Add tests/randoml.c.
2501         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2502
2503 2012-03-03  Bruno Haible  <bruno@clisp.org>
2504
2505         ldexp* tests: More tests.
2506         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2507         * tests/test-ldexp.c (RANDOM): New macro.
2508         * tests/test-ldexpf.c (RANDOM): New macro.
2509         * tests/test-ldexpl.c (RANDOM): New macro.
2510         * modules/ldexp-tests (Files): Add tests/randomd.c.
2511         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2512         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2513         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2514         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2515         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2516
2517 2012-03-03  Bruno Haible  <bruno@clisp.org>
2518
2519         frexp* tests: More tests.
2520         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2521         * tests/test-frexp.c (RANDOM): New macro.
2522         * tests/test-frexpf.c (RANDOM): New macro.
2523         * tests/test-frexpl.c (RANDOM): New macro.
2524         * modules/frexp-tests (Files): Add tests/randomd.c.
2525         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2526         * modules/frexpf-tests (Files): Add tests/randomf.c.
2527         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2528         * modules/frexpl-tests (Files): Add tests/randoml.c.
2529         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2530
2531 2012-03-03  Bruno Haible  <bruno@clisp.org>
2532
2533         Support for pseudo-random numbers in tests.
2534         * tests/randomf.c: New file.
2535         * tests/randomd.c: New file.
2536         * tests/randoml.c: New file.
2537         * tests/macros.h (randomf, randomd, randoml): New declarations.
2538
2539 2012-03-03  Bruno Haible  <bruno@clisp.org>
2540
2541         frexp* tests: Refactor.
2542         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2543         * tests/test-frexp.c: Include and use it.
2544         * tests/test-frexpf.c: Likewise.
2545         * tests/test-frexpl.c: Likewise.
2546         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2547         * modules/frexpf-tests (Files): Likewise.
2548         * modules/frexpl-tests (Files): Likewise.
2549
2550 2012-03-02  Jim Meyering  <meyering@redhat.com>
2551
2552         maint: don't specify XZ_OPT=-9ev in dist-related rule
2553         Using xz's -9 option is warranted only if you have a very large
2554         tarball (see xz's documentation for the sizes vs. presets), and
2555         requires 64MiB of memory at decompression time.
2556         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2557         Automake's default of just "-e" is fine.  Override on a
2558         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2559
2560 2012-03-01  Eric Blake  <eblake@redhat.com>
2561
2562         maint.mk: allow announcement for non-gnulib project
2563         * maint.mk (announcement): Skip gnulib version if not used.
2564
2565 2012-03-01  Jim Meyering  <meyering@redhat.com>
2566
2567         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2568         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2569         envvar settings cannot interfere.  Otherwise, setting envvars like
2570         prohibit=foo require=bar, etc. would cause spurious test failures.
2571
2572 2012-03-01  Eric Blake  <eblake@redhat.com>
2573
2574         maint.mk: add per-line exclusions to prohibitions
2575         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2576         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2577         (sc_const_long_option): Use it.
2578
2579 2012-03-01  Bruno Haible  <bruno@clisp.org>
2580
2581         Tests for module 'expl-ieee'.
2582         * modules/expl-ieee-tests: New file.
2583         * tests/test-expl-ieee.c: New file.
2584
2585         New module 'expl-ieee'.
2586         * modules/expl-ieee: New file.
2587
2588         Tests for module 'exp-ieee'.
2589         * modules/exp-ieee-tests: New file.
2590         * tests/test-exp-ieee.c: New file.
2591
2592         New module 'exp-ieee'.
2593         * modules/exp-ieee: New file.
2594
2595         Tests for module 'expf-ieee'.
2596         * modules/expf-ieee-tests: New file.
2597         * tests/test-expf-ieee.c: New file.
2598         * tests/test-exp-ieee.h: New file.
2599
2600         New module 'expf-ieee'.
2601         * modules/expf-ieee: New file.
2602
2603 2012-02-29  Bruno Haible  <bruno@clisp.org>
2604
2605         cbrtl-ieee: Work around test failure on IRIX 6.5.
2606         * m4/cbrtl-ieee.m4: New file.
2607         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2608         test whether cbrtl works with a minus zero argument. Replace it if not.
2609         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2611         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2612         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2613         (Depends-on): Update conditions.
2614         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2615         m4/signbit.m4.
2616         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2617         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2618         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2619
2620         Tests for module 'cbrtl-ieee'.
2621         * modules/cbrtl-ieee-tests: New file.
2622         * tests/test-cbrtl-ieee.c: New file.
2623
2624         New module 'cbrtl-ieee'.
2625         * modules/cbrtl-ieee: New file.
2626
2627         Tests for module 'cbrt-ieee'.
2628         * modules/cbrt-ieee-tests: New file.
2629         * tests/test-cbrt-ieee.c: New file.
2630
2631         New module 'cbrt-ieee'.
2632         * modules/cbrt-ieee: New file.
2633
2634         Tests for module 'cbrtf-ieee'.
2635         * modules/cbrtf-ieee-tests: New file.
2636         * tests/test-cbrtf-ieee.c: New file.
2637         * tests/test-cbrt-ieee.h: New file.
2638
2639         New module 'cbrtf-ieee'.
2640         * modules/cbrtf-ieee: New file.
2641
2642 2012-02-29  Bruno Haible  <bruno@clisp.org>
2643
2644         cbrtf: Work around bug in IRIX 6.5 system function.
2645         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2646         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2647         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2648         work.
2649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2650         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2651         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2652         (Depends-on): Update conditions.
2653         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2654
2655 2012-02-29  Bruno Haible  <bruno@clisp.org>
2656
2657         Tests for module 'cbrtl'.
2658         * modules/cbrtl-tests: New file.
2659         * tests/test-cbrtl.c: New file.
2660
2661         New module 'cbrtl'.
2662         * lib/math.in.h (cbrtl): New declaration.
2663         * lib/cbrtl.c: New file.
2664         * m4/cbrtl.m4: New file.
2665         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2667         HAVE_DECL_CBRTL.
2668         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2669         HAVE_DECL_CBRTL.
2670         * modules/cbrtl: New file.
2671         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2672         * doc/posix-functions/cbrtl.texi: Mention the new module.
2673
2674 2012-02-29  Bruno Haible  <bruno@clisp.org>
2675
2676         Tests for module 'cbrtf'.
2677         * modules/cbrtf-tests: New file.
2678         * tests/test-cbrtf.c: New file.
2679
2680         New module 'cbrtf'.
2681         * lib/math.in.h (cbrtf): New declaration.
2682         * lib/cbrtf.c: New file.
2683         * m4/cbrtf.m4: New file.
2684         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2686         HAVE_DECL_CBRTF.
2687         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2688         HAVE_DECL_CBRTF.
2689         * modules/cbrtf: New file.
2690         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2691         * doc/posix-functions/cbrtf.texi: Mention the new module.
2692
2693 2012-02-29  Bruno Haible  <bruno@clisp.org>
2694
2695         cbrt: Provide replacement on MSVC and Minix.
2696         * lib/math.in.h (cbrt): New declaration.
2697         * lib/cbrt.c: New file.
2698         * m4/cbrt.m4: New file.
2699         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2701         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2702         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2703         (Depends-on): Add dependencies.
2704         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2705         * tests/test-math-c++.cc: Check the declaration of cbrt.
2706         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2707         replacement.
2708
2709 2012-02-29  Bruno Haible  <bruno@clisp.org>
2710
2711         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2712         * m4/hypotl-ieee.m4: New file.
2713         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2714         test whether hypotl works with mixed NaN and Infinity arguments.
2715         Replace it if not.
2716         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2718         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2719         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2720         (Depends-on): Update conditions.
2721         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2722         (Depends-on): Add hypot-ieee.
2723         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2724         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2725
2726         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2727         * m4/hypotf-ieee.m4: New file.
2728         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2729         test whether hypotf works with mixed NaN and Infinity arguments.
2730         Replace it if not.
2731         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2732         (Depends-on): Add hypot-ieee.
2733         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2734         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2735
2736         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2737         * lib/math.in.h (hypot): New declaration.
2738         * lib/hypot.c: New file.
2739         * m4/hypot-ieee.m4: New file.
2740         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2741         whether hypot works with mixed NaN and Infinity arguments. Replace it
2742         if not.
2743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2744         REPLACE_HYPOT.
2745         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2746         * modules/hypot (Files): Add lib/hypot.c.
2747         (Depends-on): Add dependencies.
2748         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2749         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2750         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2751         * tests/test-math-c++.cc: Check the declaration of hypot.
2752         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2753
2754         Tests for module 'hypotl-ieee'.
2755         * modules/hypotl-ieee-tests: New file.
2756         * tests/test-hypotl-ieee.c: New file.
2757
2758         New module 'hypotl-ieee'.
2759         * modules/hypotl-ieee: New file.
2760
2761         Tests for module 'hypot-ieee'.
2762         * modules/hypot-ieee-tests: New file.
2763         * tests/test-hypot-ieee.c: New file.
2764
2765         New module 'hypot-ieee'.
2766         * modules/hypot-ieee: New file.
2767
2768         Tests for module 'hypotf-ieee'.
2769         * modules/hypotf-ieee-tests: New file.
2770         * tests/test-hypotf-ieee.c: New file.
2771         * tests/test-hypot-ieee.h: New file.
2772
2773         New module 'hypotf-ieee'.
2774         * modules/hypotf-ieee: New file.
2775
2776 2012-02-29  Bruno Haible  <bruno@clisp.org>
2777
2778         Remove unused variables.
2779         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2780         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2781         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2782         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2783
2784 2012-02-29  Eric Blake  <eblake@redhat.com>
2785
2786         termios: fix pid_t always, not just for tcgetsid
2787         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2788         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2789         just when building tcgetsid.
2790
2791 2012-02-29  Bruno Haible  <bruno@clisp.org>
2792
2793         Tests for module 'hypotl'.
2794         * modules/hypotl-tests: New file.
2795         * tests/test-hypotl.c: New file.
2796
2797         New module 'hypotl'.
2798         * lib/math.in.h (hypotl): New declaration.
2799         * lib/hypotl.c: New file.
2800         * m4/hypotl.m4: New file.
2801         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2803         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2804         * modules/hypotl: New file.
2805         * tests/test-math-c++.cc: Check the hypotl declaration.
2806         * doc/posix-functions/hypotl.texi: Mention the new module.
2807
2808 2012-02-29  Eric Blake  <eblake@redhat.com>
2809
2810         tcgetsid: fix cygwin header bug
2811         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2812
2813         docs: update cygwin progress
2814         * doc/posix-functions/llround.texi (llround): Added in cygwin
2815         1.7.8.
2816         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2817         * doc/glibc-functions/program_invocation_name.texi
2818         (program_invocation_name): Likewise.
2819         * doc/glibc-functions/program_invocation_short_name.texi
2820         (program_invocation_short_name): Likewise.
2821         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2822         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2823         Likewise.
2824         * doc/posix-functions/pthread_spin_destroy.texi
2825         (pthread_spin_destroy): Added in cygwin 1.7.10.
2826         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2827         Likewise.
2828         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2829         Likewise.
2830         * doc/posix-functions/pthread_spin_trylock.texi
2831         (pthread_spin_trylock): Likewise.
2832         * doc/posix-functions/pthread_spin_unlock.texi
2833         (pthread_spin_unlock): Likewise.
2834         * doc/posix-functions/pthread_setschedprio.texi
2835         (pthread_setschedprio): Likewise.
2836         * doc/posix-functions/pthread_attr_getstack.texi
2837         (pthread_attr_getstack): Likewise.
2838         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2839         (pthread_attr_getstackaddr): Likewise.
2840         * doc/glibc-functions/pthread_getattr_np.texi
2841         (pthread_getattr_np): Likewise.
2842         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2843         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2844         * doc/posix-functions/clock_settime.texi (clock_settime):
2845         Likewise.
2846         * doc/posix-functions/pthread_attr_getguardsize.texi
2847         (pthread_attr_getguardsize): Likewise.
2848         * doc/posix-functions/pthread_attr_setguardsize.texi
2849         (pthread_attr_setguardsize): Likewise.
2850         * doc/posix-functions/pthread_attr_setstack.texi
2851         (pthread_attr_setstack): Likewise.
2852         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2853         (pthread_attr_setstackaddr): Likewise.
2854         * doc/posix-functions/clock_getcpuclockid.texi
2855         (clock_getcpuclockid): Likewise.
2856         * doc/posix-functions/pthread_getcpuclockid.texi
2857         (pthread_getcpuclockid): Likewise.
2858         * doc/glibc-functions/error.texi (error): Likewise.
2859         * doc/glibc-functions/error_at_line.texi (error_at_line):
2860         Likewise.
2861         * doc/glibc-functions/error_message_count.texi
2862         (error_message_count): Likewise.
2863         * doc/glibc-functions/error_one_per_line.texi
2864         (error_one_per_line): Likewise.
2865         * doc/glibc-functions/error_print_progname.texi
2866         (error_print_progname): Likewise.
2867         * doc/posix-functions/pthread_condattr_getclock.texi
2868         (pthread_condattr_getclock): Likewise.
2869         * doc/posix-functions/pthread_condattr_setclock.texi
2870         (pthread_condattr_setclock): Likewise.
2871         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2872         Likewise.
2873         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2874         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2875         * doc/glibc-functions/get_current_dir_name.texi
2876         (get_current_dir_name): Likewise.
2877         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2878         Likewise.
2879         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2880         wrong return type.
2881         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2882         1.7.11.
2883
2884 2012-02-29  Bruno Haible  <bruno@clisp.org>
2885
2886         Tests for module 'hypotf'.
2887         * modules/hypotf-tests: New file.
2888         * tests/test-hypotf.c: New file.
2889
2890         New module 'hypotf'.
2891         * lib/math.in.h (hypotf): New declaration.
2892         * lib/hypotf.c: New file.
2893         * m4/hypotf.m4: New file.
2894         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2896         REPLACE_HYPOTF.
2897         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2898         REPLACE_HYPOTF.
2899         * modules/hypotf: New file.
2900         * tests/test-math-c++.cc: Check the hypotf declaration.
2901         * doc/posix-functions/hypotf.texi: Mention the new module.
2902
2903         hypot: Prepare for hypotf module.
2904         * m4/hypot.m4: New file.
2905         * modules/hypot (Files): Add m4/hypot.m4.
2906         (configure.ac): Invoke gl_FUNC_HYPOT.
2907
2908 2012-02-29  Bruno Haible  <bruno@clisp.org>
2909
2910         hypot tests: More tests.
2911         * tests/test-hypot.c: Include <float.h>.
2912         (main): Add tests about overflow and underflow.
2913
2914 2012-02-29  Bruno Haible  <bruno@clisp.org>
2915
2916         math code: Add comments.
2917         * lib/acosl.c: Add comment about related glibc source files.
2918         * lib/asinl.c: Likewise.
2919         * lib/atanl.c: Likewise.
2920         * lib/expl.c: Likewise.
2921         * lib/logl.c: Likewise.
2922         * lib/sincosl.c: Likewise.
2923         * lib/sinl.c: Likewise.
2924         * lib/tanl.c: Likewise.
2925         * lib/trigl.c: Likewise.
2926         * lib/cosl.c: Likewise. Fix comments.
2927
2928 2012-02-28  Bruno Haible  <bruno@clisp.org>
2929
2930         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2931         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2932         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2933         HUGE_VALL are defined.
2934         (numeric_equald): Renamed from numeric_equal.
2935         (numeric_equalf, numeric_equall): New functions.
2936         (main): Check also HUGE_VALF, HUGE_VALL.
2937         * modules/math-tests (Files): Add tests/macros.h.
2938         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2939         HUGE_VALL.
2940
2941 2012-02-28  Bruno Haible  <bruno@clisp.org>
2942
2943         doc: Move ISO C11 feature notes into POSIX chapters.
2944         * doc/posix-functions/aligned_alloc.texi: Renamed from
2945         doc/glibc-functions/aligned_alloc.texi.
2946         * doc/posix-functions/quick_exit.texi: Renamed from
2947         doc/glibc-functions/quick_exit.texi.
2948         * doc/posix-headers/uchar.texi: Renamed from
2949         doc/glibc-headers/uchar.texi.
2950         * doc/posix-functions/c16rtomb.texi: Renamed from
2951         doc/glibc-functions/c16rtomb.texi.
2952         * doc/posix-functions/c32rtomb.texi: Renamed from
2953         doc/glibc-functions/c32rtomb.texi.
2954         * doc/posix-functions/mbrtoc16.texi: Renamed from
2955         doc/glibc-functions/mbrtoc16.texi.
2956         * doc/posix-functions/mbrtoc32.texi: Renamed from
2957         doc/glibc-functions/mbrtoc32.texi.
2958         * doc/gnulib.texi: Update.
2959         (Glibc uchar.h): Remove section.
2960         Suggested by Eric Blake.
2961
2962 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2963
2964         stdnoreturn: port to MSVC better
2965         MSVC standard headers use __declspec(noreturn), so #define noreturn
2966         to empty on that platform.  Reported by Bruno Haible in
2967         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2968         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2969         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2970
2971 2012-02-28  Bruno Haible  <bruno@clisp.org>
2972
2973         doc: Mention new glibc headers and functions.
2974         * doc/glibc-headers/uchar.texi: New file.
2975         * doc/glibc-functions/aligned_alloc.texi: New file.
2976         * doc/glibc-functions/c16rtomb.texi: New file.
2977         * doc/glibc-functions/c32rtomb.texi: New file.
2978         * doc/glibc-functions/clock_adjtime.texi: New file.
2979         * doc/glibc-functions/fanotify_init.texi: New file.
2980         * doc/glibc-functions/fanotify_mark.texi: New file.
2981         * doc/glibc-functions/inet6_opt_append.texi: New file.
2982         * doc/glibc-functions/inet6_opt_find.texi: New file.
2983         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2984         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2985         * doc/glibc-functions/inet6_opt_init.texi: New file.
2986         * doc/glibc-functions/inet6_opt_next.texi: New file.
2987         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2988         * doc/glibc-functions/inet6_rth_add.texi: New file.
2989         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2990         * doc/glibc-functions/inet6_rth_init.texi: New file.
2991         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2992         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2993         * doc/glibc-functions/inet6_rth_space.texi: New file.
2994         * doc/glibc-functions/login.texi: New file.
2995         * doc/glibc-functions/mbrtoc16.texi: New file.
2996         * doc/glibc-functions/mbrtoc32.texi: New file.
2997         * doc/glibc-functions/name_to_handle_at.texi: New file.
2998         * doc/glibc-functions/ntp_gettimex.texi: New file.
2999         * doc/glibc-functions/open_by_handle_at.texi: New file.
3000         * doc/glibc-functions/prlimit.texi: New file.
3001         * doc/glibc-functions/process_vm_readv.texi: New file.
3002         * doc/glibc-functions/process_vm_writev.texi: New file.
3003         * doc/glibc-functions/recvmmsg.texi: New file.
3004         * doc/glibc-functions/scandirat.texi: New file.
3005         * doc/glibc-functions/sendmmsg.texi: New file.
3006         * doc/glibc-functions/setns.texi: New file.
3007         * doc/glibc-functions/timespec_get.texi: New file.
3008         * doc/gnulib.texi: Include them.
3009         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3010         sections.
3011         Reported by Eric Blake.
3012
3013 2012-02-28  Bruno Haible  <bruno@clisp.org>
3014
3015         Avoid compilation errors with MSVC option -fp:strict.
3016         * lib/floor.c: Use MSVC specific pragma fenv_access.
3017         * lib/ceil.c: Likewise.
3018         * lib/trunc.c: Likewise.
3019         * lib/round.c: Likewise.
3020         * lib/rint.c: Likewise.
3021         * lib/fma.c: Likewise.
3022         * lib/integer_length.c: Likewise.
3023         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3024         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3025         * tests/test-floor2.c: Likewise.
3026         * tests/test-floorf2.c: Likewise.
3027         * tests/test-ceil2.c: Likewise.
3028         * tests/test-ceilf2.c: Likewise.
3029         * tests/test-trunc2.c: Likewise.
3030         * tests/test-truncf2.c: Likewise.
3031         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3032
3033 2012-02-27  Bruno Haible  <bruno@clisp.org>
3034
3035         Tests for module 'sqrtl-ieee'.
3036         * modules/sqrtl-ieee-tests: New file.
3037         * tests/test-sqrtl-ieee.c: New file.
3038
3039         New module 'sqrtl-ieee'.
3040         * modules/sqrtl-ieee: New file.
3041
3042         Tests for module 'sqrt-ieee'.
3043         * modules/sqrt-ieee-tests: New file.
3044         * tests/test-sqrt-ieee.c: New file.
3045
3046         New module 'sqrt-ieee'.
3047         * modules/sqrt-ieee: New file.
3048
3049         Tests for module 'sqrtf-ieee'.
3050         * modules/sqrtf-ieee-tests: New file.
3051         * tests/test-sqrtf-ieee.c: New file.
3052         * tests/test-sqrt-ieee.h: New file.
3053
3054         New module 'sqrtf-ieee'.
3055         * modules/sqrtf-ieee: New file.
3056
3057 2012-02-27  Bruno Haible  <bruno@clisp.org>
3058
3059         remainderl-ieee: Work around test failure on OSF/1.
3060         * m4/remainderl-ieee.m4: New file.
3061         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3062         present, test whether remainderl works with a zero second argument.
3063         Replace it if not.
3064         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3066         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3067         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3068         (Depends-on): Update conditions.
3069         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3070         (Depends-on): Add remainder-ieee.
3071         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3072         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3073         module.
3074
3075         remainderf-ieee: Work around test failure on OSF/1.
3076         * m4/remainderf-ieee.m4: New file.
3077         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3078         present, test whether remainderf works with a zero second argument.
3079         Replace it if not.
3080         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3082         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3083         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3084         (Depends-on): Update conditions.
3085         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3086         (Depends-on): Add remainder-ieee.
3087         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3088         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3089         module.
3090
3091         remainder-ieee: Work around test failure on OSF/1.
3092         * m4/remainder-ieee.m4: New file.
3093         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3094         present, test whether remainder works with a zero second argument.
3095         Replace it if not.
3096         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3098         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3099         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3100         (Depends-on): Update dependencies.
3101         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3102         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3103         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3104
3105         Tests for module 'remainderl-ieee'.
3106         * modules/remainderl-ieee-tests: New file.
3107         * tests/test-remainderl-ieee.c: New file.
3108
3109         New module 'remainderl-ieee'.
3110         * modules/remainderl-ieee: New file.
3111
3112         Tests for module 'remainder-ieee'.
3113         * modules/remainder-ieee-tests: New file.
3114         * tests/test-remainder-ieee.c: New file.
3115
3116         New module 'remainder-ieee'.
3117         * modules/remainder-ieee: New file.
3118
3119         Tests for module 'remainderf-ieee'.
3120         * modules/remainderf-ieee-tests: New file.
3121         * tests/test-remainderf-ieee.c: New file.
3122         * tests/test-remainder-ieee.h: New file.
3123
3124         New module 'remainderf-ieee'.
3125         * modules/remainderf-ieee: New file.
3126
3127 2012-02-27  Bruno Haible  <bruno@clisp.org>
3128
3129         modff, modfl: Fix configure syntax error.
3130         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3131         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3132
3133 2012-02-27  Bruno Haible  <bruno@clisp.org>
3134
3135         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3136         * m4/fmodl-ieee.m4: New file.
3137         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3138         whether fmodl works with zero arguments. Replace it if not.
3139         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3140         (Depends-on): Add fmod-ieee.
3141         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3142         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3143
3144         fmodf-ieee: Work around test failure on OSF/1.
3145         * m4/fmodf-ieee.m4: New file.
3146         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3147         whether fmodf works with zero arguments. Replace it if not.
3148         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3150         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3151         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3152         (Depends-on): Update dependencies.
3153         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3154         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3155         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3156
3157         fmodf-ieee: Work around test failure on MSVC 9.
3158         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3159         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3160
3161         fmod-ieee: Work around test failures on OSF/1, mingw.
3162         * m4/fmod-ieee.m4: New file.
3163         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3164         whether fmod works with zero arguments. Replace it if not.
3165         * lib/math.in.h (fmod): New declaration.
3166         * lib/fmod.c: New file.
3167         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3169         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3170         * modules/fmod (Files): Add lib/fmod.c.
3171         (Depends-on): Add math, isinf, trunc, fma.
3172         (configure.ac): Arrange to compile lib/fmod.c if needed.
3173         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3174         m4/signbit.m4.
3175         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3176         * tests/test-math-c++.cc: Check the declaration of fmod.
3177         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3178
3179         fmodl-ieee: Fix test failures.
3180         * lib/fmodl.c (fmodl): Treat Inf specially.
3181         * modules/fmodl (Depends-on): Add isinf.
3182
3183         Tests for module 'fmodl-ieee'.
3184         * modules/fmodl-ieee-tests: New file.
3185         * tests/test-fmodl-ieee.c: New file.
3186
3187         New module 'fmodl-ieee'.
3188         * modules/fmodl-ieee: New file.
3189
3190         Tests for module 'fmod-ieee'.
3191         * modules/fmod-ieee-tests: New file.
3192         * tests/test-fmod-ieee.c: New file.
3193
3194         New module 'fmod-ieee'.
3195         * modules/fmod-ieee: New file.
3196
3197         Tests for module 'fmodf-ieee'.
3198         * modules/fmodf-ieee-tests: New file.
3199         * tests/test-fmodf-ieee.c: New file.
3200         * tests/test-fmod-ieee.h: New file.
3201
3202         New module 'fmodf-ieee'.
3203         * modules/fmodf-ieee: New file.
3204
3205 2012-02-27  Bruno Haible  <bruno@clisp.org>
3206
3207         Tests for module 'rintl-ieee'.
3208         * modules/rintl-ieee-tests: New file.
3209         * tests/test-rintl-ieee.c: New file.
3210
3211         New module 'rintl-ieee'.
3212         * modules/rintl-ieee: New file.
3213
3214         Tests for module 'rint-ieee'.
3215         * modules/rint-ieee-tests: New file.
3216         * tests/test-rint-ieee.c: New file.
3217
3218         New module 'rint-ieee'.
3219         * modules/rint-ieee: New file.
3220
3221         Tests for module 'rintf-ieee'.
3222         * modules/rintf-ieee-tests: New file.
3223         * tests/test-rintf-ieee.c: New file.
3224         * tests/test-rint-ieee.h: New file.
3225
3226         New module 'rintf-ieee'.
3227         * modules/rintf-ieee: New file.
3228
3229 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3230
3231         regex: re_search etc. should return -2 when memory exhausted
3232         This bug was uncovered when testing 'grep'.  Without the fix,
3233         re_search and friends return -1 when memory is exhausted, but -1
3234         means no match, and this causes grep to falsely report no-match
3235         instead of memory-exhaustion.  See
3236         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3237         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3238         trouble; this can occur if re_search_internal ran out of memory.
3239
3240 2012-02-26  Bruno Haible  <bruno@clisp.org>
3241
3242         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3243         * m4/modfl-ieee.m4: New file.
3244         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3245         whether modfl works with Inf. Replace it if not.
3246         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3248         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3249         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3250         (Depends-on): Update dependencies.
3251         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3252         m4/signbit.m4.
3253         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3254         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3255
3256         modfl-ieee: Fix dependencies.
3257         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3258
3259         modfl-ieee: Fix test failures.
3260         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3261         * modules/modfl (Depends-on): Add isfinite, isinf.
3262
3263         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3264         * m4/modff-ieee.m4: New file.
3265         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3266         whether modff works with NaN and Inf. Replace it if not.
3267         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3269         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3270         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3271         (Depends-on): Update dependencies.
3272         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3273         m4/signbit.m4.
3274         (Depends-on): Add modf-ieee.
3275         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3276         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3277
3278         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3279         * m4/modf-ieee.m4: New file.
3280         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3281         whether modf works with NaN and Inf. Replace it if not.
3282         * lib/math.in.h (modf): New declaration.
3283         * lib/modf.c: New file.
3284         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3286         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3287         * modules/modf (Files): Add lib/modf.c.
3288         (Depends-on): Add math, isfinite, trunc, isinf.
3289         (configure.ac): Addrange to compile lib/modf.c if needed.
3290         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3291         m4/signbit.m4.
3292         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3293         * tests/test-math-c++.cc: Check the declaration of modf.
3294         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3295
3296         Tests for module 'modfl-ieee'.
3297         * modules/modfl-ieee-tests: New file.
3298         * tests/test-modfl-ieee.c: New file.
3299
3300         New module 'modfl-ieee'.
3301         * modules/modfl-ieee: New file.
3302
3303         Tests for module 'modf-ieee'.
3304         * modules/modf-ieee-tests: New file.
3305         * tests/test-modf-ieee.c: New file.
3306
3307         New module 'modf-ieee'.
3308         * modules/modf-ieee: New file.
3309
3310         Tests for module 'modff-ieee'.
3311         * modules/modff-ieee-tests: New file.
3312         * tests/test-modff-ieee.c: New file.
3313         * tests/test-modf-ieee.h: New file.
3314
3315         New module 'modff-ieee'.
3316         * modules/modff-ieee: New file.
3317
3318 2012-02-26  Bruno Haible  <bruno@clisp.org>
3319
3320         Tests for module 'fabsl-ieee'.
3321         * modules/fabsl-ieee-tests: New file.
3322         * tests/test-fabsl-ieee.c: New file.
3323
3324         New module 'fabsl-ieee'.
3325         * modules/fabsl-ieee: New file.
3326
3327         Tests for module 'fabs-ieee'.
3328         * modules/fabs-ieee-tests: New file.
3329         * tests/test-fabs-ieee.c: New file.
3330
3331         New module 'fabs-ieee'.
3332         * modules/fabs-ieee: New file.
3333
3334         Tests for module 'fabsf-ieee'.
3335         * modules/fabsf-ieee-tests: New file.
3336         * tests/test-fabsf-ieee.c: New file.
3337         * tests/test-fabs-ieee.h: New file.
3338
3339         New module 'fabsf-ieee'.
3340         * modules/fabsf-ieee: New file.
3341
3342 2012-02-26  Bruno Haible  <bruno@clisp.org>
3343
3344         Tests for module 'fmal-ieee'.
3345         * modules/fmal-ieee-tests: New file.
3346         * tests/test-fmal-ieee.c: New file.
3347
3348         New module 'fmal-ieee'.
3349         * modules/fmal-ieee: New file.
3350
3351         Tests for module 'fma-ieee'.
3352         * modules/fma-ieee-tests: New file.
3353         * tests/test-fma-ieee.c: New file.
3354
3355         New module 'fma-ieee'.
3356         * modules/fma-ieee: New file.
3357
3358         Tests for module 'fmaf-ieee'.
3359         * modules/fmaf-ieee-tests: New file.
3360         * tests/test-fmaf-ieee.c: New file.
3361         * tests/test-fma-ieee.h: New file.
3362
3363         New module 'fmaf-ieee'.
3364         * modules/fmaf-ieee: New file.
3365
3366 2012-02-26  Bruno Haible  <bruno@clisp.org>
3367
3368         Tests for module 'ldexpl-ieee'.
3369         * modules/ldexpl-ieee-tests: New file.
3370         * tests/test-ldexpl-ieee.c: New file.
3371
3372         New module 'ldexpl-ieee'.
3373         * modules/ldexpl-ieee: New file.
3374
3375         Tests for module 'ldexp-ieee'.
3376         * modules/ldexp-ieee-tests: New file.
3377         * tests/test-ldexp-ieee.c: New file.
3378
3379         New module 'ldexp-ieee'.
3380         * modules/ldexp-ieee: New file.
3381
3382         Tests for module 'ldexpf-ieee'.
3383         * modules/ldexpf-ieee-tests: New file.
3384         * tests/test-ldexpf-ieee.c: New file.
3385         * tests/test-ldexp-ieee.h: New file.
3386
3387         New module 'ldexpf-ieee'.
3388         * modules/ldexpf-ieee: New file.
3389
3390 2012-02-26  Bruno Haible  <bruno@clisp.org>
3391
3392         Refactor frexp*-ieee tests.
3393         * tests/test-frexp-ieee.h: New file.
3394         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3395         (main): Just call test_function.
3396         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3397         (main): Just call test_function.
3398         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3399         (main): Just call test_function.
3400         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3401         * modules/frexp-ieee-tests (Files): Likewise.
3402         * modules/frexpl-ieee-tests (Files): Likewise.
3403
3404         Tests for module 'frexpl-ieee'.
3405         * modules/frexpl-ieee-tests: New file.
3406         * tests/test-frexpl-ieee.c: New file.
3407
3408         New module 'frexpl-ieee'.
3409         * modules/frexpl-ieee: New file.
3410
3411         Tests for module 'frexp-ieee'.
3412         * modules/frexp-ieee-tests: New file.
3413         * tests/test-frexp-ieee.c: New file.
3414
3415         New module 'frexp-ieee'.
3416         * modules/frexp-ieee: New file.
3417
3418         Tests for module 'frexpf-ieee'.
3419         * modules/frexpf-ieee-tests: New file.
3420         * tests/test-frexpf-ieee.c: New file.
3421
3422         New module 'frexpf-ieee'.
3423         * modules/frexpf-ieee: New file.
3424
3425 2012-02-26  Bruno Haible  <bruno@clisp.org>
3426
3427         roundl-ieee tests: More tests.
3428         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3429         (main): Add tests for [MX] shaded specification in POSIX.
3430         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3431         (Depends-on): Add isnanl-nolibm.
3432
3433         round-ieee tests: More tests.
3434         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3435         (main): Add tests for [MX] shaded specification in POSIX.
3436         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3437         (Depends-on): Add isnand-nolibm.
3438
3439         roundf-ieee tests: More tests.
3440         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3441         (main): Add tests for [MX] shaded specification in POSIX.
3442         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3443         (Depends-on): Add isnanf-nolibm.
3444
3445         truncl-ieee tests: More tests.
3446         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3447         (main): Add tests for [MX] shaded specification in POSIX.
3448         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3449         (Depends-on): Add isnanl-nolibm.
3450
3451         trunc-ieee tests: More tests.
3452         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3453         (main): Add tests for [MX] shaded specification in POSIX.
3454         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3455         (Depends-on): Add isnand-nolibm.
3456
3457         truncf-ieee tests: More tests.
3458         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3459         (main): Add tests for [MX] shaded specification in POSIX.
3460         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3461         (Depends-on): Add isnanf-nolibm.
3462
3463         ceill-ieee tests: More tests.
3464         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3465         (main): Add tests for [MX] shaded specification in POSIX.
3466         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3467         (Depends-on): Add isnanl-nolibm.
3468
3469         ceil-ieee tests: More tests.
3470         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3471         (main): Add tests for [MX] shaded specification in POSIX.
3472         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3473         (Depends-on): Add isnand-nolibm.
3474
3475         ceilf-ieee tests: More tests.
3476         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3477         (main): Add tests for [MX] shaded specification in POSIX.
3478         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3479         (Depends-on): Add isnanf-nolibm.
3480
3481         floorl-ieee tests: More tests.
3482         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3483         (main): Add tests for [MX] shaded specification in POSIX.
3484         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3485         (Depends-on): Add isnanl-nolibm.
3486
3487         floor-ieee tests: More tests.
3488         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3489         (main): Add tests for [MX] shaded specification in POSIX.
3490         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3491         (Depends-on): Add isnand-nolibm.
3492
3493         floorf-ieee tests: More tests.
3494         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3495         (main): Add tests for [MX] shaded specification in POSIX.
3496         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3497         (Depends-on): Add isnanf-nolibm.
3498
3499 2012-02-26  Bruno Haible  <bruno@clisp.org>
3500
3501         fpieee: More comments.
3502         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3503
3504 2012-02-25  Bruno Haible  <bruno@clisp.org>
3505
3506         Tests for module 'log10l'.
3507         * modules/log10l-tests: New file.
3508         * tests/test-log10l.c: New file.
3509         * tests/test-math-c++.cc: Check the declaration of log10l.
3510
3511         New module 'log10l'.
3512         * lib/math.in.h (log10l): New declaration.
3513         * lib/log10l.c: New file.
3514         * m4/log10l.m4: New file.
3515         * modules/log10l: New file.
3516         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3518         HAVE_DECL_LOG10L.
3519         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3520         HAVE_DECL_LOG10L.
3521         * doc/posix-functions/log10l.texi: Mention the new module.
3522
3523 2012-02-25  Bruno Haible  <bruno@clisp.org>
3524
3525         fmodl, remainder*: Avoid wrong results due to rounding errors.
3526         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3527         expected bounds.
3528         * lib/remainderf.c (remainderf): Likewise.
3529         * lib/remainder.c (remainder): Likewise.
3530         * lib/remainderl.c (remainderl): Likewise.
3531
3532 2012-02-25  Bruno Haible  <bruno@clisp.org>
3533
3534         Tests for module 'remainderl'.
3535         * modules/remainderl-tests: New file.
3536         * tests/test-remainderl.c: New file.
3537         * tests/test-math-c++.cc: Check the declaration of remainderl.
3538
3539         New module 'remainderl'.
3540         * lib/math.in.h (remainderl): New declaration.
3541         * lib/remainderl.c: New file.
3542         * m4/remainderl.m4: New file.
3543         * modules/remainderl: New file.
3544         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3546         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3547         HAVE_REMAINDERL.
3548         * doc/posix-functions/remainderl.texi: Mention the new module.
3549
3550 2012-02-25  Bruno Haible  <bruno@clisp.org>
3551
3552         Tests for module 'remainderf'.
3553         * modules/remainderf-tests: New file.
3554         * tests/test-remainderf.c: New file.
3555         * tests/test-math-c++.cc: Check the declaration of remainderf.
3556
3557         New module 'remainderf'.
3558         * lib/math.in.h (remainderf): New declaration.
3559         * lib/remainderf.c: New file.
3560         * m4/remainderf.m4: New file.
3561         * modules/remainderf: New file.
3562         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3564         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3565         HAVE_REMAINDERF.
3566         * doc/posix-functions/remainderf.texi: Mention the new module.
3567
3568 2012-02-25  Bruno Haible  <bruno@clisp.org>
3569
3570         remainder: Support for MSVC.
3571         * lib/math.in.h (remainder): New declaration.
3572         * lib/remainder.c: New file.
3573         * m4/remainder.m4: New file.
3574         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3575         (Depends-on): Add math, round, fma.
3576         (configure.ac): Use results of gl_FUNC_REMAINDER.
3577         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3579         HAVE_DECL_REMAINDER.
3580         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3581         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3582         * tests/test-math-c++.cc: Check the declaration of remainder.
3583         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3584         problems are fixed.
3585
3586 2012-02-25  Bruno Haible  <bruno@clisp.org>
3587
3588         Tests for module 'fmodl'.
3589         * modules/fmodl-tests: New file.
3590         * tests/test-fmodl.c: New file.
3591         * tests/test-math-c++.cc: Check the declaration of fmodl.
3592
3593         New module 'fmodl'.
3594         * lib/math.in.h (fmodl): New declaration.
3595         * lib/fmodl.c: New file.
3596         * m4/fmodl.m4: New file.
3597         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3599         REPLACE_FMODL.
3600         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3601         REPLACE_FMODL.
3602         * modules/fmodl: New file.
3603         * doc/posix-functions/fmodl.texi: Mention the new module.
3604
3605 2012-02-25  Bruno Haible  <bruno@clisp.org>
3606
3607         Tests for module 'modfl'.
3608         * modules/modfl-tests: New file.
3609         * tests/test-modfl.c: New file.
3610         * tests/test-math-c++.cc: Check the declaration of modfl.
3611
3612         New module 'modfl'.
3613         * lib/math.in.h (modfl): New declaration.
3614         * lib/modfl.c: New file.
3615         * m4/modfl.m4: New file.
3616         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3618         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3619         * modules/modfl: New file.
3620         * doc/posix-functions/modfl.texi: Mention the new module.
3621
3622 2012-02-25  Bruno Haible  <bruno@clisp.org>
3623
3624         Tests for module 'fabsl'.
3625         * modules/fabsl-tests: New file.
3626         * tests/test-fabsl.c: New file.
3627         * tests/test-math-c++.cc: Check the declaration of fabsl.
3628
3629         New module 'fabsl'.
3630         * lib/math.in.h (fabsl): New declaration.
3631         * lib/fabsl.c: New file.
3632         * m4/fabsl.m4: New file.
3633         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3635         REPLACE_FABSL.
3636         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3637         REPLACE_FABSL.
3638         * modules/fabsl: New file.
3639         * doc/posix-functions/fabsl.texi: Mention the new module.
3640
3641 2012-02-25  Bruno Haible  <bruno@clisp.org>
3642
3643         fabs tests: More tests.
3644         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3645         (zero): New variable.
3646         (main): Add tests for signed zero.
3647         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3648
3649         fabsf tests: More tests.
3650         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3651         (zero): New variable.
3652         (main): Add tests for signed zero.
3653         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3654
3655 2012-02-24  Bruno Haible  <bruno@clisp.org>
3656
3657         atanl: Provide function definition on MSVC.
3658         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3659         function pointer.
3660         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3661
3662 2012-02-24  Bruno Haible  <bruno@clisp.org>
3663
3664         acosl: Provide function definition on MSVC.
3665         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3666         function pointer.
3667         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3668
3669 2012-02-24  Bruno Haible  <bruno@clisp.org>
3670
3671         asinl: Provide function definition on MSVC.
3672         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3673         function pointer.
3674         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3675
3676 2012-02-24  Bruno Haible  <bruno@clisp.org>
3677
3678         tanl: Provide function definition on MSVC.
3679         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3680         function pointer.
3681         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3682
3683 2012-02-24  Bruno Haible  <bruno@clisp.org>
3684
3685         cosl: Provide function definition on MSVC.
3686         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3687         function pointer.
3688         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3689
3690 2012-02-24  Bruno Haible  <bruno@clisp.org>
3691
3692         sinl: Provide function definition on MSVC.
3693         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3694         function pointer.
3695         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3696
3697 2012-02-24  Bruno Haible  <bruno@clisp.org>
3698
3699         logl: Provide function definition on MSVC.
3700         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3701         function pointer.
3702         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3703
3704 2012-02-24  Bruno Haible  <bruno@clisp.org>
3705
3706         expl: Provide function definition on MSVC.
3707         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3708         function pointer.
3709         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3710
3711 2012-02-24  Bruno Haible  <bruno@clisp.org>
3712
3713         sqrtl: Provide function definition on MSVC.
3714         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3715         a function pointer.
3716         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3717
3718 2012-02-24  Bruno Haible  <bruno@clisp.org>
3719
3720         ceill: Provide function definition on MSVC.
3721         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3722         used as a function pointer.
3723         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3724
3725 2012-02-24  Bruno Haible  <bruno@clisp.org>
3726
3727         floorl: Provide function definition on MSVC.
3728         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3729         used as a function pointer.
3730         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3731
3732 2012-02-24  Bruno Haible  <bruno@clisp.org>
3733
3734         ceilf: Provide function definition on MSVC.
3735         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3736         used as a function pointer.
3737         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3738
3739 2012-02-24  Bruno Haible  <bruno@clisp.org>
3740
3741         floorf: Provide function definition on MSVC.
3742         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3743         used as a function pointer.
3744         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3745
3746 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3747
3748         stdnoreturn: new module
3749         This implements a replacement for C11's <stdnoreturn.h>.
3750         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3751         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3752         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3753         * tests/test-stdnoreturn.c: New files.
3754
3755 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3756
3757         regex: fix false multibyte matches in some regular expressions
3758         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3759         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3760         * lib/regex_internal.c (re_string_skip_chars):
3761         Fix miscomputation of remain_len that may cause incomplete
3762         multi-byte character and false match.
3763
3764 2012-02-24  Jim Meyering  <meyering@redhat.com>
3765
3766         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3767         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3768         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3769         Remove now-unnecessary str''cmp obfuscation.
3770         Suggested by Akim Demaille.
3771
3772 2012-02-24  Bruno Haible  <bruno@clisp.org>
3773
3774         streq: Rename macro.
3775         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3776         * NEWS: Mention the change.
3777         * lib/mbrtowc.c (mbrtowc): Update.
3778         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3779         * lib/wcwidth.c (wcwidth): Update.
3780         Suggested by Akim Demaille and Jim Meyering.
3781
3782 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3783
3784         regex: fix typo in definition of MIN
3785         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3786         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3787
3788 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3789             Bruno Haible  <bruno@clisp.org>
3790
3791         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3792         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3793         entries into a stack-allocated buffer directly.
3794         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3795
3796 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3797             Bruno Haible  <bruno@clisp.org>
3798
3799         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3800
3801          - There were several instances of this pattern:
3802
3803              for (;;) {
3804                n = acl (f, GETACLCNT, 0, NULL);
3805                [ allocate an array A of size N ]
3806                if (acl (f, GETACL, n, a) == n)
3807                  break;
3808              }
3809
3810            This loop might never terminate if some other process is constantly
3811            manipulating the file's ACL.  The loop should be rewritten to
3812            terminate.
3813
3814          - The acl (... GETACLNT ...) call is merely an optimization; its value
3815            is merely a hint as to how big to make the array.  A better
3816            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3817            and just guess a reasonably-big size, growing the size and trying
3818            again if it's not large enough.  This guarantees termination, and
3819            saves a system call.
3820
3821         * lib/acl-internal.h: Include <limits.h>.
3822         (MIN, SIZE_MAX): New macros.
3823         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3824         a stack-allocated buffer, and use malloc if it does not fit. Don't
3825         use GETACLCNT.
3826         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3827
3828 2012-02-19  Bruno Haible  <bruno@clisp.org>
3829
3830         acl: Fix endless loop on Solaris with vxfs.
3831         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3832         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3833         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3834         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3835         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3836         Reported by Bill Jones in
3837         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3838
3839 2012-02-19  Bruno Haible  <bruno@clisp.org>
3840
3841         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3842         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3843         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3844         that this function returns 0 in some more cases.
3845
3846 2012-02-19  Bruno Haible  <bruno@clisp.org>
3847
3848         acl: Update doc references.
3849         * doc/acl-resources.txt: Update links to Solaris documentation.
3850
3851 2012-02-19  Bruno Haible  <bruno@clisp.org>
3852
3853         Fix test failure in many locales on Solaris 11.
3854         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3855         'tr' arguments.
3856         * tests/test-pipe-filter-ii1.c (main): Likewise.
3857         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3858         expressions in the C locale.
3859         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3860         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3861
3862 2012-02-19  Bruno Haible  <bruno@clisp.org>
3863
3864         gnulib-tool: Improve usage message.
3865         * gnulib-tool (func_usage): Move doc of --help and --version to the
3866         section "Operation modes".
3867
3868 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3869
3870         README-release: make it easier to execute commands
3871         * top/README-release: break commands out on to separate lines.
3872
3873 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3874
3875         GNUmakefile: simplify detection of unconfigured trees
3876         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3877         whether the tree make is being run from is already configured or
3878         not.  Related simplifications.
3879
3880 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3881
3882         * gnulib-tool (func_usage): Document --help and --version.
3883
3884 2012-02-11  Jim Meyering  <meyering@redhat.com>
3885
3886         bootstrap: don't exit 0 upon gnulib-tool failure
3887         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3888         its exit status, not 0.
3889
3890 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3891
3892         README-release: various improvements
3893         * top/README-release: Give a command to push changes for the
3894         release.  Add "distcheck" to list of other pre-release checks.
3895         Fix instance of "make stable" which should be "make TYPE".
3896
3897 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3898
3899         maint: replace FSF snail-mail addresses with URLs
3900         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3901         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3902         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3903         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3904         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3905         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3906         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3907         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3908         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3909         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3910         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3911         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3912         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3913         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3914         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3915         * lib/glthread/thread.c, lib/glthread/thread.h:
3916         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3917         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3918         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3919         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3920         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3921         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3922         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3923         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3924         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3925         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3926         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3927         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3928         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3929         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3930         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3931         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3932         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3933         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3934         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3935         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3936         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3937         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3938         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3939         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3940         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3941         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3942         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3943         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3944         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3945         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3946         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3947         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3948         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3949         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3950         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3951         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3952         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3953         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3954         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3955         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3956         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3957         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3958         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3959         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3960         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3961         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3962         * tests/test-poll.c, tests/test-quotearg-simple.c:
3963         * tests/test-quotearg.c, tests/test-quotearg.h:
3964         * tests/test-round-ieee.c, tests/test-round1.c:
3965         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3966         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3967         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3968         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3969         * tests/test-strerror.c, tests/test-strerror_r.c:
3970         * tests/test-strsignal.c, tests/test-strverscmp.c:
3971         * tests/test-xmemdup0.c:
3972         Replace FSF snail mail addresses with URLs, as per GNU coding
3973         standards.  See glibc bug
3974         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3975
3976 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3977
3978         README-release: capitalize a word and split a line
3979         * top/README-release: Fix punctuation and spacing.
3980
3981 2012-02-08  Akim Demaille  <demaille@gostai.com>
3982
3983         fatal-signal: use C prototypes (with explicit void).
3984         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3985         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3986
3987 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3988
3989         regex: spelling fix
3990         * lib/regexec.c: spelling fix
3991
3992         regex: rely on stdint.h for SIZE_MAX
3993         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3994
3995 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3996
3997         regex: merge glibc changes
3998
3999         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4000         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4001         (init_word_char): Work even if bitset words are not exactly 32 or
4002         64 bits wide.  Don't assume there are no padding bits.
4003         * lib/regex.c [_LIBC]: Do not include <config.h>.
4004         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4005         and -Wtype-limits.
4006         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4007         needless disagreement with glibc.  All uses changed.  Define it to
4008         1 only if _GNU_SOURCE, to match glibc.
4009         (_REG_RM_NAME): Remove; no longer needed, since the names in
4010         question are now all protected by __USE_GNU.
4011         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4012         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4013         * lib/regex_internal.h (MIN): New macro.
4014
4015         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4016         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4017
4018         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4019         * lib/regex_internal.c (re_string_fetch_byte_case):
4020         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4021         is miscompiled, and it turns out it is because of an incorrect
4022         attribute on re_string_fetch_byte_case.  Unlike
4023         re_string_peek_byte_case, this one is really not pure, it modifies
4024         memory (increments pstr->cur_idx), and with the pure attribute GCC
4025         assumed it doesn't and it cached the presumed value of
4026         regexp->cur_idx in a variable across the
4027          for (;; ++i)
4028            {
4029              if (i >= BRACKET_NAME_BUF_SIZE)
4030                return REG_EBRACK;
4031              if (token->type == OP_OPEN_CHAR_CLASS)
4032                ch = re_string_fetch_byte_case (regexp);
4033              else
4034                ch = re_string_fetch_byte (regexp);
4035              if (re_string_eoi(regexp))
4036                return REG_EBRACK;
4037              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4038                break;
4039              elem->opr.name[i] = ch;
4040            }
4041
4042         2011-11-29 Andreas Schwab <schwab@redhat.com>
4043         * lib/regcomp.c (build_equiv_class):
4044         Fix access after end of search string in regex matcher.
4045
4046         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4047         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4048
4049         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4050         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4051
4052         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4053         * lib/regcomp.c (parse_branch, parse_sub_exp):
4054         More regex memory leak fixes and tests.
4055         (parse_sub_exp, parse_bracket_exp):
4056         Fix memory leak for some invalid regular expressions.
4057
4058         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4059         * lib/regex_internal.c, lib/regexec.c:
4060         Fix unnecessary overallocation due to incomplete character.  When
4061         incomplete characters are found at the end of a string the code
4062         ran amok and allocated lots of memory.  Stricter limits are now in
4063         place.
4064
4065         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4066         * lib/regex.h: Update documentation.
4067
4068         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4069         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4070
4071         2010-05-05 Andreas Schwab <schwab@redhat.com>
4072         * lib/regexec.c (find_collation_sequence_value):
4073         Fix lookup of collation sequence value during regexp matching.
4074
4075         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4076         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4077
4078         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4079         * lib/regex.h: Cleanup namespace.
4080
4081         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4082         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4083
4084         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4085         * lib/regex_internal.h: Prevent some declarations and definitions
4086         to be seen when used in tests.
4087
4088         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4089         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4090         __libc_lock_* macros if not _LIBC.
4091         (struct re_dfa_t): Add lock.
4092
4093 2012-02-07  Eric Blake  <eblake@redhat.com>
4094
4095         maint.mk: also prohibit lower-case @var@
4096         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4097         lower case, like @top_srcdir@.
4098
4099 2012-02-04  Eric Blake  <eblake@redhat.com>
4100
4101         canonicalize: avoid uninitialized memory use
4102         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4103         random '/' left in dest.
4104         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4105
4106 2012-02-04  Bruno Haible  <bruno@clisp.org>
4107
4108         isatty: Fix test failure of ptsname_r on native Windows.
4109         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4110         and don't set errno.
4111         (isatty): Test first whether fd is valid. Set errno when returning 0.
4112
4113 2012-02-04  Bruno Haible  <bruno@clisp.org>
4114
4115         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4116         * tests/test-spawn-pipe-main.c: Include progname.h.
4117         (main): Invoke set_program_name.
4118         * modules/spawn-pipe-tests (Depends-on): Add progname.
4119
4120         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4121         * tests/test-nonblocking-socket-main.c: Include progname.h.
4122         (main): Invoke set_program_name.
4123         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4124
4125         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4126         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4127         (main): Invoke set_program_name.
4128         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4129
4130 2012-02-04  Eric Blake  <eblake@redhat.com>
4131
4132         canonicalize-lgpl: fix // handling
4133         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4134
4135         canonicalize: fix // handling
4136         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4137         /// to //, since only // is special.
4138
4139 2012-02-04  Bruno Haible  <bruno@clisp.org>
4140
4141         ioctl: Fix test failure on native Windows.
4142         * lib/ioctl.c: Include msvc-nothrow.h.
4143         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4144
4145 2012-02-04  Bruno Haible  <bruno@clisp.org>
4146
4147         fsync: Avoid test failure on native Windows.
4148         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4149         read-only.
4150
4151 2012-02-04  Bruno Haible  <bruno@clisp.org>
4152
4153         sys_select: Avoid syntax error on OpenBSD 5.0.
4154         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4155         currently being included, just include the system's <sys/select.h>.
4156
4157 2012-02-04  Bruno Haible  <bruno@clisp.org>
4158
4159         sys_select: Avoid syntax error on OpenBSD 5.0.
4160         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4161         <sys/select.h>, not before.
4162         Reported by Jiri B <jirib@devio.us>.
4163
4164 2012-02-04  Bruno Haible  <bruno@clisp.org>
4165
4166         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4167         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4168         global variables.
4169         * tests/test-get-rusage-data.c (main): Likewise.
4170         Reported by Jim Meyering.
4171
4172 2012-02-04  Bruno Haible  <bruno@clisp.org>
4173
4174         stdioext: Fix last commit.
4175         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4176
4177 2012-02-03  Bruno Haible  <bruno@clisp.org>
4178
4179         stdioext: Add tentative support for Plan9.
4180         * lib/stdio-impl.h: Include <errno.h>.
4181         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4182         * lib/freadable.c (freadable): Likewise.
4183         * lib/fwritable.c (fwritable): Likewise.
4184         * lib/fbufmode.c (fbufmode): Likewise.
4185         * lib/freading.c (freading): Likewise.
4186         * lib/fwriting.c (fwriting): Likewise.
4187         * lib/freadptr.c (freadptr): Likewise.
4188         * lib/freadseek.c (freadptrinc): Likewise.
4189         * lib/freadahead.c (freadahead): Likewise.
4190         * lib/fpurge.c (fpurge): Likewise.
4191         * lib/fseeko.c (rpl_fseeko): Likewise.
4192         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4193         Reported by Jens Staal <staal1978@gmail.com>.
4194
4195 2012-02-02  Jim Meyering  <meyering@redhat.com>
4196
4197         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4198         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4199         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4200         not even to try to add the attribute.  Instead, add a pragma to suppress
4201         the suggestion/warning.
4202
4203 2012-01-31  Karl Berry  <karl@gnu.org>
4204
4205         setstate doc: typo.
4206         * doc/posix-functions/setstate.texi (setstate): { not (.
4207
4208 2012-01-31  Bruno Haible  <bruno@clisp.org>
4209
4210         popen: Make more robust on Windows.
4211         * lib/popen.c: On native Windows, use the _popen based code even if
4212         HAVE_POPEN is set.
4213         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4214         environment variable on native Windows.
4215
4216 2012-01-30  Bruno Haible  <bruno@clisp.org>
4217
4218         pclose: Fix typo.
4219         * lib/stdio.in.h (pclose): Fix typo in warning message.
4220
4221 2012-01-30  Bruno Haible  <bruno@clisp.org>
4222
4223         doc about getlogin_r, setstate.
4224         * doc/posix-functions/getlogin_r.texi: List the incompatible
4225         declaration problem under "not fixed by gnulib".
4226         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4227         problem on Solaris 11 and other platforms.
4228
4229 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4230             Bruno Haible  <bruno@clisp.org>
4231
4232         poll tests: Make test more robust.
4233         * tests/test-poll.c: Include macros.h.
4234         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4235         return value of various I/O operations.
4236         * modules/poll-tests (Files): Add tests/macros.h.
4237
4238 2012-01-30  Bruno Haible  <bruno@clisp.org>
4239
4240         sys_stat: Fix support for mingw64 and MSVC.
4241         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4242         header files already do it.
4243         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4244         stat itself.
4245         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4246
4247 2012-01-30  Bruno Haible  <bruno@clisp.org>
4248
4249         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4251         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4252
4253 2012-01-29  Bruno Haible  <bruno@clisp.org>
4254
4255         quotearg: Fix test failure on MacOS X 10.5.
4256         * tests/test-quotearg-simple.c: Include localcharset.h.
4257         (main): If the locale encoding is not ASCII, bypass the tests of
4258         locale_quoting_style and clocale_quoting_style.
4259         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4260
4261 2012-01-29  Jim Meyering  <meyering@redhat.com>
4262
4263         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4264         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4265         detect uses of canonicalize_file_name.
4266
4267 2012-01-28  Bruno Haible  <bruno@clisp.org>
4268
4269         test-framework-sh: Fix test failure with AIX 7.1 diff.
4270         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4271         in column 1, like 'diff -c' does.
4272         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4273         whether 'diff -u' is used. Instead, test whether the output contains
4274         some '@' character.
4275
4276 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4277
4278         strtoimax: eliminate need for stdint.h, inttypes.h checks
4279         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4280         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4281         the prerequisites for a recently-introduced strtoimax test.
4282         I guess this might cause strtoimax to be replaced when not
4283         strictly necessary on older hosts, but this shouldn't introduce
4284         any bugs and it should make Emacs 'configure' faster on typical
4285         modern hosts.  Problem discovered when importing the latest gnulib
4286         to an Emacs test version.
4287         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4288
4289 2012-01-28  Bruno Haible  <bruno@clisp.org>
4290
4291         sys_time: Override 'struct timeval' on some native Windows platforms.
4292         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4293         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4294         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4295         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4296         needs to be overridden.
4297         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4298         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4299         * tests/test-sys_select.c: Check that the tv_sec member has the same
4300         size as a 'time_t'.
4301         * tests/test-sys_time.c: Likewise.
4302         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4303         is set, set also REPLACE_GETTIMEOFDAY.
4304         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4305         convert the resulting 'struct timeval' before returning.
4306         * lib/select.c: Include <sys/time.h>.
4307         (select, timeval): Undefine at the right place.
4308         * modules/select (Depends-on): Add sys_time.
4309         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4310         some Windows platforms.
4311         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4312
4313 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4314
4315         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4316         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4317         an integer.
4318         * lib/fcntl.c (dupfd): Likewise.
4319         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4320
4321 2012-01-28  Bruno Haible  <bruno@clisp.org>
4322
4323         fcntl: Avoid compilation error on native Windows.
4324         * modules/fcntl (Depends-on): Add 'close'.
4325
4326 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4327
4328         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4329         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4330         pointer to an integer.
4331         * lib/poll.c (IsConsoleHandle): Likewise.
4332         * lib/isatty.c (IsConsoleHandle): Likewise.
4333
4334 2012-01-28  Jim Meyering  <meyering@redhat.com>
4335
4336         doc: clarify README-release
4337         * top/README-release: Clarify: you should make a point to have
4338         the latest stable versions of build tools in your PATH, and the
4339         reference to buildreq is solely for its list of tool names, not
4340         for its minimal-functional version numbers.
4341         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4342
4343         maint.mk: use more readable (yet functionally equivalent) quoting
4344         It is common to quote a single quote in a single quoted string like
4345         this:  '...'\''...'.  Unless you know the idiom, that looks like
4346         gibberish, so prefer to double-quote the string when possible.
4347         Then you can use a more readable, lone single quote: "...'..."
4348         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4349         "don't" is more readable than the equivalent 'don'\''t'.
4350         (sc_cast_of_x_alloc_return_value): Likewise.
4351         (sc_cast_of_alloca_return_value): Likewise.
4352         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4353         rather than '\'':'\''.
4354
4355 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4356
4357         stdalign: relax _Alignof and tighten _Alignas test
4358         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4359         as it was too strict: alignof must divide offsetof, but it need
4360         not equal offsetof.  Inspired by Joseph S. Myers's comment
4361         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4362         Conversely, tighten the _Alignas test a bit, as the resulting
4363         alignment must be exactly 8.
4364
4365 2012-01-27  Bruno Haible  <bruno@clisp.org>
4366
4367         stdalign: Document the last change.
4368         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4369
4370 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4371
4372         stdalign: check that alignof and offsetof are consistent
4373         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4374         Problem reported for gnulib by Richard W.M. Jones in
4375         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4376
4377 2012-01-27  Jim Meyering  <meyering@redhat.com>
4378
4379         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4380         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4381         convert a sequence with gaps to the minimal containing range.
4382         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4383         * tests/test-update-copyright.sh: Test for this.
4384         The FSF confirmed it is ok to do this, assuming there is at
4385         least one significant change per year in the affected range:
4386         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4387
4388 2012-01-26  Bruno Haible  <bruno@clisp.org>
4389
4390         pipe2: refine doc about thread-safety
4391         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4392         multithread-safety problem.
4393         * doc/glibc-functions/accept4.texi: Likewise.
4394
4395 2012-01-26  Bruno Haible  <bruno@clisp.org>
4396
4397         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4398         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4399         In the test program, include <fcntl.h>, for O_RDONLY.
4400
4401 2012-01-26  Eric Blake  <eblake@redhat.com>
4402
4403         pipe2: document lack of thread-safety in replacement
4404         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4405         issue in replacement.
4406         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4407         Based on a report by Eric Wong.
4408
4409 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4410             Bruno Haible  <bruno@clisp.org>
4411
4412         malloca: Avoid warnings on x86_64 mingw64.
4413         * lib/malloca.c: Include <stdint.h>.
4414         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4415         * modules/malloca (Depends-on): Add stdint.
4416         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4417
4418 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4419
4420         obstack: remove __STDC__ conditionals
4421         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4422         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4423         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4424         m4/include_next.m4 as the only gnulib-maintained places that still
4425         refer to __STDC__.
4426
4427 2012-01-24  Bruno Haible  <bruno@clisp.org>
4428
4429         havelib: Modern quoting.
4430         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4431         the recent change to the GNU coding standards.
4432
4433 2012-01-24  Bruno Haible  <bruno@clisp.org>
4434
4435         stdint: Improve support for Android.
4436         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4437         Reported by Simon Josefsson <simon@josefsson.org>.
4438
4439 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4440
4441         doc: omit trailing empty lines from INSTALL etc.
4442         * doc/Makefile (INSTALL): Omit trailing empty lines.
4443         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4444         omit trailing empty lines.  This simplifies the build procedure.
4445
4446 2012-01-23  Jim Meyering  <meyering@redhat.com>
4447
4448         tests: avoid spurious warnings about gl_sockets_startup
4449         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4450         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4451         reporting a "statement with no effect".
4452         * tests/test-accept.c (main): Mark as "(void)".
4453         * tests/test-accept4.c (main): Likewise.
4454         * tests/test-bind.c (main): Likewise.
4455         * tests/test-connect.c (main): Likewise.
4456         * tests/test-getpeername.c (main): Likewise.
4457         * tests/test-getsockname.c (main): Likewise.
4458         * tests/test-getsockopt.c (main): Likewise.
4459         * tests/test-listen.c (main): Likewise.
4460         * tests/test-recv.c (main): Likewise.
4461         * tests/test-recvfrom.c (main): Likewise.
4462         * tests/test-send.c (main): Likewise.
4463         * tests/test-sendto.c (main): Likewise.
4464         * tests/test-setsockopt.c (main): Likewise.
4465         * tests/test-shutdown.c (main): Likewise.
4466
4467 2012-01-21  Bruno Haible  <bruno@clisp.org>
4468
4469         locale-fr.m4: Fix for Android.
4470         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4471         failure of the test program on Bionic libc.
4472
4473 2012-01-21  Jim Meyering  <meyering@redhat.com>
4474
4475         bootstrap: fail when bootstrap_post_import_hook fails
4476         Otherwise, it's far too easy to miss diagnostics emitted
4477         between gnulib-tool's output and that of running configure.
4478         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4479
4480 2012-01-17  Jim Meyering  <meyering@redhat.com>
4481
4482         maint: enable sc_trailing_blank
4483         * build-aux/pmccabe.css: Remove trailing blanks.
4484         * doc/acl-cygwin.txt: Likewise.
4485         * doc/gnu-oids.texi: Likewise
4486         * cfg.mk: Enable sc_trailing_blank.
4487         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4488
4489 2012-01-17  Jim Meyering  <meyering@redhat.com>
4490
4491         maint: enable sc_prohibit_openat_without_use
4492         * cfg.mk: Enable sc_prohibit_openat_without_use.
4493         Exempt lib/selinux-at.c.
4494
4495 2012-01-17  Jim Meyering  <meyering@redhat.com>
4496
4497         maint: enable sc_prohibit_cloexec_without_use
4498         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4499         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4500
4501 2012-01-17  Jim Meyering  <meyering@redhat.com>
4502
4503         maint: enable sc_prohibit_intprops_without_use
4504         * cfg.mk: Enable sc_prohibit_intprops_without_use
4505         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4506
4507 2012-01-17  Jim Meyering  <meyering@redhat.com>
4508
4509         maint: enable sc_prohibit_hash_pjw_without_use
4510         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4511         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4512         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4513         following " (".
4514
4515 2012-01-17  Jim Meyering  <meyering@redhat.com>
4516
4517         maint: enable double-word-prohibiting rule
4518         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4519         Exempt three files.
4520
4521 2012-01-17  Jim Meyering  <meyering@redhat.com>
4522
4523         maint: remove empty lines at EOF, but excluding modules/*
4524         Apply syntax rules at home as well as abroad.  Most changes
4525         were induced by running this:
4526           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4527             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4528             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4529         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4530         Exempt modules/* and two binary files.
4531         Also exempt doc/INSTALL*, per request from Bruno Haible.
4532         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4533         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4534         * doc/Copyright/request-assign.future: Likewise.
4535         * doc/Copyright/request-disclaim.changes: Likewise.
4536         * doc/INSTALL: Likewise.
4537         * doc/INSTALL.ISO: Likewise.
4538         * doc/INSTALL.UTF-8: Likewise.
4539         * doc/acl-cygwin.txt: Likewise.
4540         * doc/acl-resources.txt: Likewise.
4541         * doc/fdl-1.2.texi: Likewise.
4542         * doc/fdl-1.3.texi: Likewise.
4543         * doc/fdl.texi: Likewise.
4544         * lib/argp-pin.c: Likewise.
4545         * lib/round.c: Likewise.
4546         * lib/unicase/u16-totitle.c: Likewise.
4547         * lib/unictype/block_test.c: Likewise.
4548         * lib/uninorm/canonical-decomposition.c: Likewise.
4549         * m4/README: Likewise.
4550         * m4/relocatable-lib.m4: Likewise.
4551         * tests/test-isnand-nolibm.c: Likewise.
4552         * tests/test-isnand.c: Likewise.
4553         * tests/uninorm/NormalizationTest.txt: Likewise.
4554
4555 2012-01-17  Jim Meyering  <meyering@redhat.com>
4556
4557         maint: add framework to run syntax-check rules against gnulib sources
4558         * cfg.mk: New file, to disable all currently-failing tests.
4559         We'll enable them one by one, as they are made to pass.
4560         * Makefile (sc_maint): New rule.
4561
4562 2012-01-21  Bruno Haible  <bruno@clisp.org>
4563
4564         stdint: Add support for Android.
4565         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4566         include the system's <stdint.h>.
4567         Reported by Simon Josefsson <simon@josefsson.org>.
4568
4569 2012-01-19  Jim Meyering  <meyering@redhat.com>
4570
4571         bootstrap: add bootstrap_post_import_hook
4572         Bison does still need something like the gnulib_mk_hook whose
4573         invocation I had to remove along with slurp in commit 767ccd40.
4574         Technically, we could get along without it, but doing so would
4575         have required living with a warning and a mandatory post-bootstrap
4576         automake rerun.
4577         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4578         (bootstrap_post_import_hook): New function.
4579         Invoke it after gnulib-tool --import and before autoreconf.
4580
4581 2012-01-18  Jim Meyering  <meyering@redhat.com>
4582
4583         gitlog-to-changelog: don't use "no_"-prefixed variable name
4584         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4585         to enable both --cluster and --no-cluster.  Change variable name,
4586         s/\$no_cluster/$cluster/, and reverse usage to match.
4587
4588         gitlog-to-changelog: use "||", not "or" in expressions
4589         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4590         expressions.
4591
4592 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4593
4594         gitlog-to-changelog: new option --no-cluster
4595         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4596         clustering of adjacent commit messages.
4597
4598 2012-01-17  Jim Meyering  <meyering@redhat.com>
4599
4600         maint: spell file systems with two words, not one
4601         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4602         two words, not one.
4603
4604 2012-01-16  Jim Meyering  <meyering@redhat.com>
4605
4606         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4607         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4608
4609 2012-01-16  Eric Blake  <eblake@redhat.com>
4610
4611         bootstrap: cater to autoconf 2.59
4612         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4613         is not available.
4614
4615         bootstrap: properly check for libtool
4616         * build-aux/bootstrap (libtoolize): Also run libtool when older
4617         usage is detected.
4618
4619 2012-01-15  Bruno Haible  <bruno@clisp.org>
4620
4621         Improve support for MSVC 9.
4622         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4623         clashes on MSVC.
4624         * lib/fcntl.in.h: Likewise.
4625         * lib/stdlib.in.h: Likewise.
4626         * lib/sys_stat.in.h: Likewise.
4627
4628 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4629
4630         gnupload: we hold the master copy of this script now
4631         For motivation and more information, see:
4632         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4633         * build-aux/gnupload: Make it clear in the heading comments that the
4634         master copy of this file is maintained by gnulib.  Since we are at
4635         it, bump its copyright year and ...
4636         ($scriptversion): ... the date in its version.
4637         ($usage): Patches and bug reports should be sent to the gnulib list,
4638         not the automake one.
4639         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4640         anymore.
4641
4642 2012-01-15  Bruno Haible  <bruno@clisp.org>
4643
4644         Fix module 'random'.
4645         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4646         initstate, setstate are declared.
4647
4648 2012-01-14  Bruno Haible  <bruno@clisp.org>
4649
4650         Tests for module 'random'.
4651         * modules/random-tests: New file.
4652         * tests/test-random.c: New file, based on tests/test-random_r.c.
4653
4654         New module 'random'.
4655         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4656         declarations.
4657         * lib/random.c: New file, based on glibc/stdlib/random.c.
4658         * m4/random.m4: New file.
4659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4660         HAVE_RANDOM.
4661         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4662         * modules/random: New file.
4663         * config/srclist.txt: Add an entry for random.c.
4664         * doc/posix-functions/random.texi: Mention the 'random' module.
4665         * doc/posix-functions/initstate.texi: Likewise.
4666         * doc/posix-functions/setstate.texi: Likewise.
4667         * doc/posix-functions/srandom.texi: Likewise.
4668
4669 2012-01-12  Bruno Haible  <bruno@clisp.org>
4670
4671         random_r: Use common idioms.
4672         * lib/random_r.c: Include <stdlib.h> first.
4673
4674         random_r: Override incompatible API on AIX, OSF/1.
4675         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4676         Override the system function if REPLACE_RANDOM_R is 1.
4677         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4678         and OSF/1, set REPLACE_RANDOM_R.
4679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4680         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4681         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4682         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4683         * doc/glibc-functions/random_r.texi: Likewise.
4684         * doc/glibc-functions/setstate_r.texi: Likewise.
4685
4686         random_r: Support for MSVC 9.
4687         * lib/random_r.c: Include stdint.h, not inttypes.h.
4688
4689 2012-01-12  Eric Blake  <eblake@redhat.com>
4690
4691         inet_ntop: guard extra work by IF_LINT
4692         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4693         better code generation when not checking for warnings.
4694         Suggested by Paul Eggert and Jim Meyering.
4695
4696         strptime: fix regression on mingw
4697         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4698         Fix regression.  Reported by Bruno Haible.
4699
4700 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4701             Bruno Haible  <bruno@clisp.org>
4702
4703         copy-file: add error-code-returning variant.
4704         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4705         (qcopy_file_preserving): New declaration.
4706         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4707         copy_file_preserving. Change return type to 'int'. Don't emit an error
4708         message here.
4709         (copy_file_preserving): New function.
4710         * tests/test-copy-file.c: Include <stdlib.h>.
4711         (main): Test qcopy_file_preserving if the environment variable
4712         NO_STDERR_OUTPUT is set.
4713         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4714         with NO_STDERR_OUTPUT
4715         * tests/test-copy-file-2.sh: Likewise.
4716
4717 2012-01-10  Bruno Haible  <bruno@clisp.org>
4718
4719         copy-file: Use 'quote' module consistently.
4720         * lib/copy-file.c (copy_file_preserving): Use quote().
4721
4722         copy-file: Refactor.
4723         * lib/copy-file.c: Include quote.h.
4724         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4725         message here.
4726         * modules/copy-file (Depends-on): Add quote.
4727
4728         acl: Export qcopy_acl.
4729         * lib/acl.h (qcopy_acl): New declaration.
4730         * lib/copy-acl.c (qcopy_acl): Make non-static.
4731
4732         acl: Rename a local variable.
4733         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4734
4735         acl: Align return values of copy_acl and qcopy_acl.
4736         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4737         maybe < -1.
4738
4739 2012-01-11  Eric Blake  <eblake@redhat.com>
4740
4741         strptime: silence gcc warnings
4742         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4743         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4744         Reported by Daniel P. Berrange.
4745
4746         inet_ntop: silence gcc warning
4747         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4748         Reported by Daniel P. Berrange.
4749
4750 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4751
4752         getloadavg test: skip the test on GNU/Linux without /proc mounted
4753         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4754         file.  When /proc is not mounted, it always fails with ENOENT.
4755         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4756         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4757
4758 2012-01-10  Bruno Haible  <bruno@clisp.org>
4759
4760         regex: Avoid link error on MSVC 9.
4761         * modules/regex (Depends-on): Add wctype.
4762
4763 2012-01-10  Bruno Haible  <bruno@clisp.org>
4764
4765         doc: Mention --with-tests option.
4766         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4767         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4768         --with-tests.
4769         Reported by Reuben Thomas.
4770
4771 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4772
4773         users.txt: order package names lexicographically.
4774         * users.txt: Order package names lexicographically.
4775
4776 2012-01-10  Jim Meyering  <meyering@redhat.com>
4777
4778         maint.mk: fix description in comment
4779         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4780
4781         ignore-value: remove deprecated ignore_ptr function
4782         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4783         * NEWS: Note this.
4784
4785 2012-01-09  Jim Meyering  <meyering@redhat.com>
4786
4787         test-init.sh: avoid a subshell
4788         * tests/test-init.sh: Remove protective subshell.
4789         Suggested by Bernhard Voelker.  While a subshell is normally
4790         required to protect against older shells (Solaris, FreeBSD) that
4791         warn about a missing program before performing redirection, the
4792         shell-selection tests performed by init.sh probably exclude any
4793         offending shell.
4794
4795 2012-01-08  Bruno Haible  <bruno@clisp.org>
4796
4797         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4798         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4799         variable.
4800
4801 2012-01-08  Bruno Haible  <bruno@clisp.org>
4802
4803         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4804         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4805         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4806         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4807         macro.
4808         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4809         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4810         * lib/spawn_faction_addopen.c: Add workaround implementation if
4811         HAVE_WORKING_POSIX_SPAWN.
4812         * modules/spawn (Makefile): Substitute
4813         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4814         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4815         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4816         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4817         (Depends-on): Update conditions.
4818         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4819         the Solaris 11 bug.
4820
4821 2012-01-08  Bruno Haible  <bruno@clisp.org>
4822
4823         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4824         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4825         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4826         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4827         macro.
4828         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4829         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4830         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4831         HAVE_WORKING_POSIX_SPAWN.
4832         * modules/spawn (Makefile): Substitute
4833         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4834         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4835         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4836         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4837         (Depends-on): Update conditions.
4838         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4839         the Solaris 11 bug.
4840
4841 2012-01-08  Bruno Haible  <bruno@clisp.org>
4842
4843         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4844         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4845         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4846         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4847         HAVE_WORKING_POSIX_SPAWN.
4848         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4849         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4850         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4851         * lib/spawn_faction_addclose.c: Add workaround implementation if
4852         HAVE_WORKING_POSIX_SPAWN.
4853         * modules/spawn (Makefile): Substitute
4854         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4855         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4856         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4857         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4858         (Depends-on): Update conditions.
4859         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4860         the Solaris 11 bug.
4861
4862 2012-01-08  Bruno Haible  <bruno@clisp.org>
4863
4864         doc: Update for Solaris 11 2011-11.
4865         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4866         * m4/printf.m4: Update comments.
4867
4868 2012-01-08  Bruno Haible  <bruno@clisp.org>
4869
4870         mktime: Avoid compilation error on Solaris 11.
4871         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4872
4873 2012-01-08  Bruno Haible  <bruno@clisp.org>
4874
4875         doc: Small fix.
4876         * doc/posix-headers/nl_types.texi: Correct platforms list.
4877
4878 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4879
4880         Add lgpl-3.0 module.
4881         * MODULES.html.sh (Support for building documentation): Add
4882         lgpl-3.0.
4883         * modules/lgpl-3.0: New file.
4884
4885 2012-01-08  Jim Meyering  <meyering@redhat.com>
4886
4887         select.c: indent with spaces, not TABs
4888         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4889
4890 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4891
4892         quotearg: do not use grave accent for left quote
4893         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4894         locale_quoting_style.
4895         (quotearg_buffer_restyled): Fix example.
4896         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4897
4898 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4899
4900         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4901         Most programs do not have translation catalogs for English and much
4902         less separate catalogs for British and American English.  Drop the
4903         suggestion to translators about these two, and provide it
4904         automatically for Unicode locales.  Like most programs, even those
4905         using American English, we use single quotation marks.  This conflicts
4906         with the American typographic convention, but works better when you
4907         cite the entire error message within double quotes.  It also tries not
4908         to clash with established practice and with what non-gnulib programs
4909         will usually do.
4910         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4911         using an UTF-8 or GB-18030 locale.  The list of other locales with
4912         quotes was provided by Bruno Haible.
4913         (quotearg_buffer_restyled): Adjust instructions to translators.
4914         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4915         text, since this would be wrong when using Unicode.
4916         * modules/quotearg: Depend on c-strcaseeq.
4917
4918 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4919
4920         quotearg: fix Wikipedia link
4921         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4922
4923 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4924
4925         Fix for mingw with MSVC9.
4926         * m4/ld-version-script.m4: Check that compiler rejects version
4927         scripts with syntax errors.  Reported by Bruno Haible
4928         <bruno@clisp.org>.
4929
4930 2012-01-06  Bruno Haible  <bruno@clisp.org>
4931
4932         Talk about "native Windows API", not "Woe32".
4933         * lib/accept4.c: Update comments to mention native Windows.
4934         * lib/execute.c: Likewise.
4935         * lib/fatal-signal.c: Likewise.
4936         * lib/localcharset.c: Likewise.
4937         * lib/nanosleep.c: Likewise.
4938         * lib/nl_langinfo.c: Likewise.
4939         * lib/pclose.c: Likewise.
4940         * lib/pipe-filter-gi.c: Likewise.
4941         * lib/pipe-filter-ii.c: Likewise.
4942         * lib/pipe.c: Likewise.
4943         * lib/pipe2.c: Likewise.
4944         * lib/popen.c: Likewise.
4945         * lib/progreloc.c: Likewise.
4946         * lib/relocatable.c: Likewise.
4947         * lib/sigaction.c: Likewise.
4948         * lib/sigprocmask.c: Likewise.
4949         * lib/spawn-pipe.h: Likewise.
4950         * lib/spawn-pipe.c: Likewise.
4951         * lib/spawni.c: Likewise.
4952         * lib/stat-time.h: Likewise.
4953         * lib/w32spawn.h: Likewise.
4954         * tests/test-isatty.c: Likewise.
4955         * lib/config.charset: More comments.
4956         * doc/gnulib-intro.texi: Mention native Windows.
4957         * doc/posix-functions/_Exit_C99.texi: Likewise.
4958         * doc/posix-headers/fcntl.texi: Likewise.
4959
4960 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4961
4962         argp: Avoid crash if translator uses % characters in a translation.
4963         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4964         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4965
4966 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4967
4968         doc: C11 and C++11 are now official
4969         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4970         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4971         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4972         * modules/stdalign:
4973         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4974
4975 2012-01-06  Bruno Haible  <bruno@clisp.org>
4976
4977         uc-is-grapheme-break tests: Tweak.
4978         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4979         message.
4980
4981 2012-01-06  Bruno Haible  <bruno@clisp.org>
4982
4983         test-init.sh: correct the test for diff -u
4984         * tests/test-init.sh: Also redirect stdout to /dev/null.
4985
4986 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4987
4988         Use ', not `, for quoting output.
4989         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4990         (print_changelog_deltas, get_tool_versions, main program):
4991         * build-aux/git-version-gen:
4992         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4993         * build-aux/move-if-change (help):
4994         * build-aux/useless-if-before-free (usage, main program):
4995         * check-module (parse_module_file, usage)
4996         (find_included_lib_files, check_module):
4997         * lib/argmatch.c (main) [TEST]:
4998         * lib/argp-help.c (_help):
4999         * lib/getopt1.c (main) [TEST]:
5000         * lib/git-merge-changelog.c (usage):
5001         * lib/xstrtol-error.c (xstrtol_error):
5002         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5003         * m4/argz.m4 (gl_FUNC_ARGZ):
5004         * m4/bison.m4 (gl_BISON):
5005         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5006         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5007         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5008         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5009         * m4/gc-random.m4 (gl_GC_RANDOM):
5010         * m4/intl.m4 (gt_CHECK_DECL):
5011         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5012         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5013         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5014         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5015         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5016         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5017         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5018         * tests/test-dirname.c (main):
5019         * tests/test-getpass.c (main):
5020         * tests/test-iconvme.c (main):
5021         * tests/test-parse-datetime.c (LOG):
5022         * tests/test-xstrtoimax.sh:
5023         * tests/test-xstrtol.sh:
5024         * tests/test-xstrtoll.sh:
5025         * tests/test-xstrtoumax.sh:
5026         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5027         * top/GNUmakefile (abort-due-to-no-makefile):
5028         Quote 'like this', not `like this', as per the recent change to
5029         the GNU coding standards.
5030
5031 2012-01-05  Bruno Haible  <bruno@clisp.org>
5032
5033         strtoimax: Don't force a replacement on systems where intmax_t is int.
5034         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5035         'intmax_t' is not larger than 'int'.
5036         Reported by Pádraig Brady <P@draigBrady.com>.
5037
5038 2012-01-05  Bruno Haible  <bruno@clisp.org>
5039
5040         doc: Mention NetBSD bugs.
5041         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5042         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5043
5044 2012-01-05  Bruno Haible  <bruno@clisp.org>
5045
5046         strtoumax tests: Enhance tests.
5047         * tests/test-strtoumax.c (main): Add tests for large values.
5048
5049 2012-01-05  Bruno Haible  <bruno@clisp.org>
5050
5051         strtoimax: Work around AIX 5.1 bug.
5052         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5053         definition.
5054         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5055         Set HAVE_STRTOIMAX.
5056         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5057         REPLACE_STRTOIMAX.
5058         * modules/inttypes-incomplete (Makefile.am): Substitute
5059         REPLACE_STRTOIMAX.
5060         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5061         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5062         (Depends-on): Update conditions.
5063         * tests/test-strtoimax.c (main): Add tests for large values.
5064         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5065
5066 2012-01-05  Bruno Haible  <bruno@clisp.org>
5067
5068         inttypes: Modernize.
5069         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5070         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5071         (Makefile.am): Update inttypes.h rule.
5072
5073 2012-01-05  Jim Meyering  <meyering@redhat.com>
5074
5075         init.sh: don't waste a subshell just to redirect stderr
5076         * tests/init.sh: In testing for diff -u and diff -c, use a
5077         stderr-redirecting exec inside `...` rather than a subshell.
5078
5079         test-init.sh: avoid failure on HP-UX 11.00
5080         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5081         resolves to diff -c or cmp.  Reported by Bruno Haible.
5082
5083 2012-01-05  Bruno Haible  <bruno@clisp.org>
5084
5085         Tests for module 'strtoull'.
5086         * modules/strtoull-tests: New file.
5087         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5088
5089 2012-01-05  Bruno Haible  <bruno@clisp.org>
5090
5091         Tests for module 'strtoll'.
5092         * modules/strtoll-tests: New file.
5093         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5094
5095 2012-01-05  Bruno Haible  <bruno@clisp.org>
5096
5097         Tests for module 'strtoul'.
5098         * modules/strtoul-tests: New file.
5099         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5100
5101 2012-01-05  Bruno Haible  <bruno@clisp.org>
5102
5103         Tests for module 'strtol'.
5104         * modules/strtol-tests: New file.
5105         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5106
5107 2012-01-04  Jim Meyering  <meyering@redhat.com>
5108
5109         test-init.sh: accommodate Solaris 5.10's different diff -u output
5110         * tests/test-init.sh: Also exempt @@ lines from the comparison
5111         of diff output, since Solaris 5.10 and GNU diff formats differ.
5112         Reported by Stefano Lattarini.
5113
5114 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5115
5116         test-posixtm: don't assume signed integer wraparound
5117         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5118         after signed integer overflow.  Inspired by (though it may not
5119         fix) Bruno Haible's bug report in
5120         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5121
5122         Spell out "Windows 9x" and "Windows XP".
5123         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5124         "Windows 9x" and "WinXP" with "Windows XP".
5125
5126 2012-01-04  Jim Meyering  <meyering@redhat.com>
5127
5128         test-vc-list-files-cvs.sh: remove obsolete comment
5129         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5130         double exit.  Now that's all encapsulated via skip_ and Exit.
5131
5132 2012-01-04  Bruno Haible  <bruno@clisp.org>
5133
5134         Talk about "native Windows API", not "Win32".
5135         * lib/classpath.c: Update comments to mention native Windows.
5136         * lib/csharpexec.c: Likewise.
5137         * lib/dup2.c: Likewise.
5138         * lib/error.c: Likewise.
5139         * lib/fcntl.c: Likewise.
5140         * lib/filename.h: Likewise.
5141         * lib/findprog.c: Likewise.
5142         * lib/get-rusage-as.c: Likewise.
5143         * lib/get-rusage-data.c: Likewise.
5144         * lib/getpagesize.c: Likewise.
5145         * lib/javaexec.c: Likewise.
5146         * lib/msvc-inval.c: Likewise.
5147         * lib/msvc-nothrow.c: Likewise.
5148         * lib/nanosleep.c: Likewise.
5149         * lib/nonblocking.c: Likewise.
5150         * lib/printf-parse.c: Likewise.
5151         * lib/setlocale.c: Likewise.
5152         * lib/sigaction.c: Likewise.
5153         * lib/strerror_r.c: Likewise.
5154         * lib/tmpdir.c: Likewise.
5155         * lib/vasnprintf.c: Likewise.
5156         * lib/w32spawn.h: Likewise.
5157         * lib/waitpid.c: Likewise.
5158         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5159         * m4/locale-ar.m4: Likewise.
5160         * m4/locale-fr.m4: Likewise.
5161         * m4/locale-ja.m4: Likewise.
5162         * m4/locale-tr.m4: Likewise.
5163         * m4/locale-zh.m4: Likewise.
5164         * m4/printf.m4: Likewise.
5165         * tests/test-cloexec.c: Likewise.
5166         * tests/test-copy-acl.sh: Likewise.
5167         * tests/test-copy-file.sh: Likewise.
5168         * tests/test-file-has-acl.sh: Likewise.
5169         * tests/test-set-mode-acl.sh: Likewise.
5170         * tests/test-dup-safer.c: Likewise.
5171         * tests/test-dup2.c: Likewise.
5172         * tests/test-dup3.c: Likewise.
5173         * tests/test-fcntl.c: Likewise.
5174         * tests/test-nonblocking-pipe.h: Likewise.
5175         * tests/test-nonblocking-socket.h: Likewise.
5176         * tests/test-pipe.c: Likewise.
5177         * tests/test-pipe2.c: Likewise.
5178         * tests/test-spawn-pipe-child.c: Likewise.
5179         * doc/acl-resources.txt: Likewise.
5180         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5181         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5182         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5183         * lib/localcharset.c: Update comments to mention native Windows.
5184         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5185         * lib/localename.c: Likewise.
5186         * lib/progreloc.c: Likewise.
5187         * lib/relocatable.c: Likewise.
5188         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5189         (windows_compute_revents): Renamed from win32_compute_revents.
5190         (windows_compute_revents_socket): Renamed from
5191         win32_compute_revents_socket.
5192         * lib/select.c: Update comments to mention native Windows.
5193         (windows_poll_handle): Renamed from win32_poll_handle.
5194         * m4/threadlib.m4: Update comments to mention native Windows.
5195         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5196         --enable-threads=windows instead of --enable-threads=win32. Set
5197         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5198         * lib/glthread/lock.h: Update comments to mention native Windows.
5199         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5200         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5201         USE_WIN32_THREADS.
5202         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5203         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5204         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5205         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5206         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5207         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5208         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5209         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5210         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5211         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5212         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5213         * tests/test-tls.c: Likewise.
5214         Rationale:
5215         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5216         on both 32-bit and 64-bit Windows systems.
5217         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5218         line of distinction is between "native Windows" on one side and Unix/
5219         POSIX systems on the other side. More details in
5220         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5221         Suggested by Paul Eggert.
5222
5223 2012-01-03  Bruno Haible  <bruno@clisp.org>
5224
5225         isatty: Support for MSVC 9.
5226         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5227         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5228         (_isatty_nothrow): New function.
5229         (isatty): Use it instead of _isatty.
5230         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5231         * lib/poll.c (IsConsoleHandle): Likewise.
5232         * lib/select.c (IsConsoleHandle): Likewise.
5233         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5234         (gl_PREREQ_ISATTY): New macro.
5235         * modules/isatty (Depends-on): Add msvc-inval.
5236         (configure.ac): Invoke gl_PREREQ_ISATTY.
5237
5238 2012-01-03  Jim Meyering  <meyering@redhat.com>
5239
5240         maint.mk: remove temporary transition aid from over 1.5 years ago
5241         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5242         purpose was to aid in the transition (avoiding silent malfunction)
5243         from that old name to the new _sc_search_regexp.  This shim was
5244         added by commit 219c504b.
5245
5246         init.sh: do not try to accommodate compare arguments starting with "-"
5247         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5248         compare arguments that start with "-".  Besides, we do not worry
5249         about this when invoking diff or cmp; why start now with sed?
5250         Using "--" to separate options from argument would trigger sed
5251         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5252         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5253
5254 2012-01-02  Bruno Haible  <bruno@clisp.org>
5255
5256         Enhance tests for module 'isatty'.
5257         * modules/isatty-tests (Depends-on): Add pipe-posix.
5258         * tests/test-isatty.c: Include <fcntl.h>.
5259         (DEV_NULL): New macro.
5260         (main): Test the resut of isatty() also on regular files, pipes, and
5261         /dev/null.
5262
5263         New module 'isatty'.
5264         * lib/unistd.in.h (isatty): New declaration.
5265         * lib/isatty.c: New file, based on an idea of
5266         Bastien Roucariès <roucaries.bastien@gmail.com>.
5267         * m4/isatty.m4: New file.
5268         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5269         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5270         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5271         REPLACE_ISATTY.
5272         * modules/isatty: New file.
5273         * doc/posix-functions/isatty.texi: Mention the new module.
5274         Suggested by Paolo Bonzini.
5275
5276 2012-01-02  Bruno Haible  <bruno@clisp.org>
5277
5278         canonicalize: Tweak 2011-12-29 commit.
5279         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5280         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5281
5282 2012-01-02  Jim Meyering  <meyering@redhat.com>
5283
5284         gitlog-to-changelog: describe input syntax in --help output
5285         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5286
5287         gitlog-to-changelog: fix typo in --help: show backslash before email @
5288         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5289         in sources, but not in actual output.
5290
5291 2011-12-30  Jim Meyering  <meyering@redhat.com>
5292
5293         gitlog-to-changelog: don't malfunction when name contains %-directive
5294         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5295         in a name string cause trouble.  E.g., with a user name of "%s",
5296         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5297
5298 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5299
5300         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5301         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5302         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5303         the "  (tiny change)" notation that is appended to the standard
5304         ChangeLog "date  name  email" header line.
5305
5306 2012-01-01  Jim Meyering  <meyering@redhat.com>
5307
5308         test-framework-sh: init.sh: fix "make dist" failure
5309         When using gnulib-tool's --with-tests option and any module that
5310         depends on test-framework-sh, "make dist" would fail due to the
5311         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5312         in the gltests directory, and not in the gllib/ directory.
5313         One way to work around that is to move the EXTRA_DIST += init.sh
5314         from the primary module to the -tests one:
5315         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5316         * modules/test-framework-sh (Makefile.am): ...not here.
5317         Reported by Tom G. Christensen in
5318         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5319
5320         version-etc: update copyright year reported by --version
5321         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5322
5323 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5324
5325         canonicalize: only stat() if required
5326         * lib/canonicalize.c (canonicalize_filename_mode):
5327         Avoid calling l?stat() when both CAN_MISSING,
5328         and CAN_NOLINKS are set, as we neither need
5329         to resolve symlinks or test component existence.
5330
5331 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5332
5333         doc: cover st_ino issues once; add OpenVMS etc.
5334         * doc/posix-functions/stat.texi (stat):
5335         * doc/posix-functions/lstat.texi (lstat):
5336         * doc/posix-functions/fstatat.texi (fstatat):
5337         * doc/posix-functions/fstat.texi (fstat):
5338         Move general 'struct stat' stuff to sys_stat.texi,
5339         leaving behind a pointer.
5340         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5341         Merge duplicate info about 'struct stat' problems into here.
5342         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5343         and suggest partial workarounds.
5344
5345         same-inode: port to OpenVMS
5346         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5347         three st_ino values.
5348
5349 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5350
5351         canonicalize: fix references to stat() and lstat()
5352         * lib/canonicalize.c (canonicalize_filename_mode):
5353         Ensure references always resolve to a replacement
5354         function if required (even via a macro).
5355
5356 2011-12-30  Jim Meyering  <meyering@redhat.com>
5357
5358         gitlog-to-changelog: remove a little duplication
5359         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5360         rather than twice.
5361
5362 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5363
5364         canonicalize: add support for not resolving symlinks
5365         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5366         indicate we don't want to follow symlinks.  Also
5367         provide CAN_MODE_MASK to aid setting these existing
5368         mutually exclusive values.
5369         * lib/canonicalize.c (canonicalize_filename_mode):
5370         Extract the flags from can_mode parameter, which
5371         are currently just used to select between stat()
5372         and lstat().  Also ensure that mutually exclusive
5373         values are flagged immediately as invalid.
5374         * tests/test-canonicalize.c: Verify symlinks are
5375         not followed, and that invalid flag combinations
5376         are diagnosed.
5377
5378 2011-12-25  Jim Meyering  <meyering@redhat.com>
5379
5380         gitlog-to-changelog: do not clump multi-paragraph entries
5381         Identical header lines (date,name,email+coauthors) are suppressed,
5382         thus putting all entries with those same characteristics under
5383         a single header.  However, when a log entry consists of two or
5384         more paragraphs, it may not be clear where it starts and ends.
5385         This change makes it so that such an entry is always separated
5386         from others by a header line, even when that header would
5387         otherwise be suppressed.
5388         * build-aux/gitlog-to-changelog: Implement the above.
5389         Inspired by a related request from Stefano Lattarini in
5390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5391
5392 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5393
5394         announce-gen: fix `cmd' typo in diagnostic
5395         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5396         diagnostic: a missing '$' meant that the command was not output.
5397
5398 2011-12-23  Jim Meyering  <meyering@redhat.com>
5399
5400         test-framework-sh: distribute init.sh
5401         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5402         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5403         fail due to the lack of init.sh.
5404
5405         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5406         * modules/atexit-tests: Rather than listing tests/init.sh,
5407         now that there's a module for it, simply depend on that new module.
5408         * modules/closein-tests: Likewise.
5409         * modules/exclude-tests: Likewise.
5410         * modules/getcwd-tests: Likewise.
5411         * modules/perror-tests: Likewise.
5412         * modules/pread-tests: Likewise.
5413         * modules/pwrite-tests: Likewise.
5414         * modules/vc-list-files-tests: Likewise.
5415         * modules/verify-tests: Likewise.
5416         * modules/xalloc-die-tests: Likewise.
5417         * modules/xstrtoimax-tests: Likewise.
5418         * modules/xstrtol-tests: Likewise.
5419         * modules/xstrtoll-tests: Likewise.
5420         * modules/xstrtoumax-tests: Likewise.
5421         * modules/yesno-tests: Likewise.
5422
5423 2011-12-22  Jim Meyering  <meyering@redhat.com>
5424
5425         test-framework-sh: add minimal tests of init.sh's compare function
5426         * modules/test-framework-sh-tests: New file.
5427         * tests/test-init.sh: New file.
5428
5429         test-framework-sh: new module
5430         * modules/test-framework-sh: New file.
5431         * MODULES.html.sh (Support for maintaining and releasing projects):
5432         List it.
5433
5434         init.sh: do not emit simulated diff output to stderr
5435         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5436
5437 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5438
5439         .gitignore: ignore gnulib.dvi and regex.info
5440         * doc/.gitignore:add gnulib.dvi and regex.info
5441
5442 2011-12-22  Jim Meyering  <meyering@redhat.com>
5443
5444         init.sh: correct previous change
5445         * tests/init.sh (compare): My previous change was wrong.
5446         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5447
5448         init.sh: avoid unwarranted test failure when using "set -e"
5449         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5450         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5451         a use like "compare exp out" would get evoke an unconditional failure.
5452
5453 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5454
5455         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5456         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5457         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5458         autoreconf that did not.
5459         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5460         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5461
5462 2011-12-17  Jim Meyering  <meyering@redhat.com>
5463
5464         bootstrap: remove some now-unneeded code
5465         This script arose back when gnulib-tool was young.
5466         Since then, it has seen improvements that render much of this
5467         script unnecessary.  In particular, it can now make symlinks
5468         to the files it uses.  Also, I no longer see as much value in
5469         marking files as read-only via comments.
5470         If you relied on the symlink-creation feature of the preceding
5471         version of this script, you can get most of that functionality
5472         by adding the --symlink option to the definition of
5473         gnulib_tool_option_extras in your bootstrap.conf file.
5474         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5475         Run autopoint and libtoolize *before* gnulib-tool.
5476         After it, run an abbreviated autoreconf, rather than a loop around
5477         all tools.
5478         (slirp, bt_mark_as_generated): Remove functions.
5479
5480 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5481
5482         ftoastr: fix typo
5483         * lib/ftoastr.h: Fix misspelling in comment.
5484
5485 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5486
5487         * top/README-release: fix punctuation.
5488
5489 2011-12-17  Jim Meyering  <meyering@redhat.com>
5490
5491         bootstrap: correct the recent buildreq change
5492         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5493         had no effect.
5494         * build-aux/bootstrap (buildreq): Bracket each search term with
5495         "*...*", so that the shell "case" statement works as intended.
5496         Add comments.
5497
5498 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5499
5500         build: let bootstrap resort to wget when downloading .po files
5501         * build-aux/bootstrap (download_po_files): Fallback to wget when
5502         downloading the .po files via rsync fails.  This is necessary to
5503         bootstrap from behind a strict firewall.
5504
5505 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5506
5507         stdint: don't assume C++11 when compiling with g++
5508         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5510         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5511         work also in C++ before C++11, as that improperly inhibits
5512         generating a substitute stdint.h for that case.
5513
5514 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5515
5516         alloca: protect comment from gnulib-tool
5517         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5518         that gnulib-tool doesn't think it's a license, and munge it to
5519         say "GCC version 3".
5520
5521 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5522
5523         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5524         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5525         $(abs_top_builddir) instead of $(top_builddir).
5526
5527 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5528
5529         strftime-tests: also test nanoseconds
5530         * tests/test-strftime.c (T): Add a test of %N.
5531
5532 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5533
5534         inttypes, stdint: add C++11 support
5535         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5536         when including inttypes.h and stdint.h.  Support this change to
5537         the standard.
5538         * doc/posix-headers/inttypes.texi (inttypes.h):
5539         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5540         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5541         Define if not defined already, for the benefit of pre-C++11 hosts.
5542         Define the standard format macros (e.g., PRId8) always.
5543         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5544         Likewise, if __cpluspus.  Define the standard constant and limit
5545         macros (e.g., INT8_C, INT8_MAX) always.
5546         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5547         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5548         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5549         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5550         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5551         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5552         Likewise.
5553
5554 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5555
5556         nonblocking tests: Fix test failure on Linux/PPC.
5557         Suggested by Prerna Saxena in
5558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5559         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5560         Set to 1100000.
5561
5562 2011-12-12  Jim Meyering  <meyering@redhat.com>
5563
5564         argmatch: don't hard-code `' when listing valid option arguments
5565         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5566         use the quote function to add quotes.  Use fputs rather than
5567         fprintf for the format string with no format directive.
5568
5569 2011-12-07  Eric Blake  <eblake@redhat.com>
5570
5571         bootstrap: detect tools required by gnulib-tool
5572         * build-aux/bootstrap (buildreq): Provide minimum implicit
5573         dependencies.
5574         * DEPENDENCIES: Mention patch as a prereq.
5575
5576 2011-12-04  Bruno Haible  <bruno@clisp.org>
5577
5578         sethostname: Port to Windows platforms.
5579         * lib/sethostname.c: Provide an alternate implementation for Windows
5580         platforms.
5581         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5582         (main): Skip the test if sethostname() fails with EPERM. On Windows
5583         platforms, don't check the result of gethostname().
5584
5585 2011-12-04  Bruno Haible  <bruno@clisp.org>
5586             Jim Meyering  <meyering@redhat.com>
5587
5588         tests: Avoid spurious error message on platforms without mktemp program.
5589         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5590
5591 2011-12-04  Bruno Haible  <bruno@clisp.org>
5592
5593         sethostname: Fix documentation.
5594         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5595         "not fixed" section.
5596
5597 2011-12-03  Bruno Haible  <bruno@clisp.org>
5598
5599         gnulib-tool: Verify that the License field is present and non-empty.
5600         * gnulib-tool (func_get_license_raw): New function, extracted from
5601         func_get_license.
5602         (func_get_license): Use it. Warn if the module is not a test module and
5603         has no license.
5604         Suggested by Jim Meyering.
5605
5606 2011-12-03  Bruno Haible  <bruno@clisp.org>
5607
5608         sethostname tests: Fix link error on mingw.
5609         * tests/test-sethostname1.c: New file, extracted from
5610         tests/test-sethostname.c.
5611         * tests/test-sethostname2.c: New file, extracted from
5612         tests/test-sethostname.c.
5613         * tests/test-sethostname.c: Remove file.
5614         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5615         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5616         (Depends-on): Add gethostname.
5617         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5618         Link the latter with $(GETHOSTNAME_LIB).
5619
5620         sethostname tests: Fix compilation error on mingw.
5621         * tests/test-sethostname.c: Don't include <sys/types.h>.
5622         (geteuid): Use a dummy value without uid_t.
5623         * modules/sethostname-tests (Depends-on): Remove sys_types.
5624
5625         sethostname tests: Avoid a gcc warning.
5626         * tests/test-sethostname.c (main): Remove an unused variable.
5627
5628         Tweak last commit.
5629         * modules/sethostname-tests (Files): Sort by decreasing importance.
5630         (configure.ac): Check for geteuid.
5631         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5632         the test when there's nothing to test. Drop an unnecessary cast.
5633         Improve an error message. Verify that the final sethostname() call
5634         succeeds.
5635
5636 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5637
5638         Add a test suite for the sethostname module.
5639         * modules/sethostname-tests: New file.  A test program
5640         for the sethostname module.
5641         * tests/test-sethostname.c: Likewise.
5642
5643 2011-12-03  Bruno Haible  <bruno@clisp.org>
5644
5645         Tweak last commit.
5646         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5647         Fix preprocessor directives indentation. Fix typos.
5648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5649         * modules/unistd (Makefile): Likewise.
5650
5651 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5652
5653         Integrate the sethostname module into unistd.
5654         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5655         into the unistd.h header.
5656         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5657         preprocessor directives.
5658         * modules/unistd: Setup the Makefile substitutions of the
5659         SETHOSTNAME preprocessor directives.
5660
5661 2011-12-03  Bruno Haible  <bruno@clisp.org>
5662
5663         Tweak last commit.
5664         * lib/sethostname.c: Don't include <string.h>.
5665         (sethostname): No need to copy the argument string to the stack. Don't
5666         call clearerr. Preserve errno when fprintf failed.
5667         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5668         Don't invoke AC_REPLACE_FUNCS.
5669         * modules/sethostname (Link): Remove empty section.
5670         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5671         failure problem.
5672
5673 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5674
5675         New module 'sethostname'.
5676         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5677         for systems that lack it.
5678         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5679         sethostname declaration and function.
5680         * modules/sethostname: New file.  Define the sethostname module.
5681
5682 2011-12-03  Bruno Haible  <bruno@clisp.org>
5683
5684         Tweak last commit.
5685         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5686
5687 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5688
5689         Split the HOST_NAME_MAX detection into a separate m4 macro.
5690         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5691         macro so it can be used by the pending sethostname module.
5692
5693 2011-12-03  Bruno Haible  <bruno@clisp.org>
5694
5695         Fix module descriptions syntax.
5696         * modules/argv-iter (License): Fix syntax.
5697         * modules/di-set (License): Likewise.
5698         * modules/ino-map (License): Likewise.
5699         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5700
5701 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5702
5703         stdalign: port to Clang 3.0
5704         Problem reported by Simon Josefsson in
5705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5706         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5707         which has <stdalign.h> but which does not define alignof.
5708         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5709
5710 2011-12-01  Eric Blake  <eblake@redhat.com>
5711
5712         mktempd: silence dd usage
5713         * build-aux/mktempd (rand_bytes): Silence dd.
5714
5715 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5716
5717         manywarnings: Don't mention gcc version in docstring.
5718         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5719         Jim Meyering <meyering@redhat.com>.
5720
5721 2011-11-30  Jim Meyering  <meyering@redhat.com>
5722
5723         hash: mark a few floating point constants with "f" suffix
5724         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5725         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5726         floating point constants with "f", since they're destined to be
5727         saved/used as "float"s.
5728
5729 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5730
5731         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5732         * tests/test-float.c (test_long_double): Correct and re-enable the
5733         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5734
5735 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5736
5737         Avoid subtracting two pointers that don't point into the same block.
5738         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5739         only pointers into the same memory block are subtracted. We cannot
5740         assume that sizeof (ptrdiff_t) == sizeof (void *).
5741
5742 2011-11-29  Eric Blake  <eblake@redhat.com>
5743
5744         maint.mk: add syntax check for use of compare from init.sh
5745         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5746         moved here from coreutils.
5747
5748         manywarnings: drop -Wunsuffixed-float-constants
5749         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5750         '1.0D', which is the only way to silence this warning for 'double'.
5751
5752 2011-11-29  Jim Meyering  <meyering@redhat.com>
5753
5754         hash: mark compute_bucket_size with the pure attribute
5755         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5756
5757         quotearg, propername: correct pragma guard expression
5758         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5759         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5760
5761 2011-11-28  Jim Meyering  <meyering@redhat.com>
5762
5763         propername: do not mark proper_name with the const attribute
5764         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5765         since it examines data pointed to by its parameter.
5766         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5767         the suggestion from -Wsuggest-attribute=const.
5768
5769         propername: mark one more function as const
5770         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5771
5772 2011-11-27  Jim Meyering  <meyering@redhat.com>
5773
5774         mark functions with const and pure attributes
5775
5776         Mark functions per suggestions from gcc-4.6 when using these options:
5777         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5778         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5779         Follow these guidelines: when possible, apply the attribute to
5780         an extern declaration, not to its definition.  Apply it to the
5781         definition only when the definition is static.
5782         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5783         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5784         * lib/base64.h (isbase64): Likewise.
5785         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5786         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5787         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5788         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5789         (c_tolower, c_toupper): Likewise.
5790         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5791         * lib/chdir-long.c (find_non_slash): Likewise.
5792         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5793         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5794         * lib/file-type.h (file_type): Likewise.
5795         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5796         * lib/filevercmp.c (verrevcmp): Likewise.
5797         * lib/freadahead.h (freadahead): Likewise.
5798         * lib/fts.c (fts_maxarglen): Likewise.
5799         * lib/hash-pjw.h (hash_pjw): Likewise.
5800         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5801         * lib/hash.c (is_prime, next_prime): Likewise.
5802         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5803         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5804         (hash_table_ok, hash_get_first, hash_string): Likewise.
5805         (compute_bucket_size): Likewise.
5806         * lib/i-ring.h (i_ring_empty): Likewise.
5807         * lib/isnan.c (isnanl): Likewise.
5808         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5809         * lib/memcasecmp.h (memcasecmp): Likewise.
5810         * lib/memchr2.h (memchr2): Likewise.
5811         * lib/memcmp2.h (memcmp2): Likewise.
5812         * lib/parse-datetime.y (lookup_zone): Likewise.
5813         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5814         [!WINDOWS_SOCKETS]: Likewise.
5815         * lib/strnlen1.h (strnlen1): Likewise.
5816         * lib/uniwidth.in.h (uc_width): Likewise.
5817         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5818         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5819         (quoting_options_from_style): Add a comment.
5820         * lib/propername.h (proper_name): Add a comment.
5821
5822 2011-11-27  Bruno Haible  <bruno@clisp.org>
5823
5824         Remove unused macros from !_LIBC code in glibc-borrowed files.
5825         * lib/fnmatch.c (STRCOLL): Remove macro.
5826         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5827         * lib/glob.c (__stat, __readdir64): Remove macros.
5828         * lib/tempname.c (__open64, __xstat64): Remove macros.
5829         Suggested by Paul Eggert.
5830
5831 2011-11-27  Bruno Haible  <bruno@clisp.org>
5832
5833         getcwd: Fix link error on MSVC 9.
5834         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5835
5836 2011-11-27  Bruno Haible  <bruno@clisp.org>
5837
5838         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5839         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5840         HAVE_OPENDIR is 0.
5841         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5842         HAVE_CLOSEDIR is 0.
5843         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5844         is 0.
5845         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5846
5847 2011-11-27  Bruno Haible  <bruno@clisp.org>
5848
5849         getcwd: Fix bug from 2011-08-17.
5850         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5851         platforms that need it.
5852         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5853         code of 4 to be a failure, not a success. This ensures that
5854         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5855
5856 2011-11-27  Bruno Haible  <bruno@clisp.org>
5857
5858         binary-io tests: Avoid test failure on mingw when libtool is used.
5859         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5860         Don't verify the size of t-bin-out1.tmp here.
5861         * tests/test-binary-io.sh: Verify it here.
5862         Reported by Simon Josefsson.
5863
5864 2011-11-26  Bruno Haible  <bruno@clisp.org>
5865
5866         Fix conflict between two instantiations of module 'unistd'.
5867         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5868         ${include_guard_prefix} also in the autoconf snippet.
5869         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5871         GNULIB_UNISTD_H_GETOPT.
5872         * modules/getopt-posix (configure.ac): Set the
5873         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5874         * modules/getopt-gnu (configure.ac): Likewise.
5875         * modules/unistd (Makefile.am): Change the substitution value of
5876         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5877         Reported by Simon Josefsson.
5878
5879 2011-11-25  Bruno Haible  <bruno@clisp.org>
5880
5881         pagealign_alloc: Doc and comments.
5882         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5883         module.
5884         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5885
5886 2011-11-25  Jim Meyering  <meyering@redhat.com>
5887
5888         test-update-copyright.sh: avoid false-positive failure
5889         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5890         around false positive failure on Cygwin/Windows.  The latter was
5891         matching erroneously-created files with names like
5892         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5893
5894 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5895
5896         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5897         * m4/valgrind-tests.m4: Check that the parameters that will be
5898         used works, not just a subset of them.  Reported by Bruno Haible
5899         <bruno@clisp.org>.
5900
5901 2011-11-24  Jim Meyering  <meyering@redhat.com>
5902
5903         test-stdalign.c: comment out long double tests
5904         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5905         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5906         error: '_Alignas' specifiers cannot reduce alignment of \
5907         'static_longdouble_alignas'.
5908
5909 2011-11-22  Jim Meyering  <meyering@redhat.com>
5910
5911         init.sh: make "compare /dev/null FILE" output more readable
5912         * tests/init.sh (compare_): Document the preferred order of arguments.
5913         (emit_diff_u_header_): New function.
5914         (compare_dev_null_): Emit a simulated diff, rather than just the
5915         contents of the unexpected file.  Suggestion from Bruno Haible.
5916
5917 2011-11-21  Jim Meyering  <meyering@redhat.com>
5918             Eric Blake  <eblake@redhat.com>
5919
5920         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5921         * tests/init.sh: Make our compare function slightly more portable.
5922         Reported by Bruno Haible in
5923         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5924
5925 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5926
5927         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5928         before using it, in code that ends up in config.h.
5929
5930 2011-11-20  Bruno Haible  <bruno@clisp.org>
5931
5932         getcwd: Work around getcwd bug on AIX 5..7.
5933         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5934         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5935         Use a different value for gl_cv_func_getcwd_path_max. Move the
5936         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5937         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5938         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5939         Define HAVE_MINIMALLY_WORKING_GETCWD.
5940         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5941         where it is not even minimally working, that is, on AIX.
5942         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5943         m4/getcwd-path-max.m4.
5944         (main): Update exit code computation.
5945         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5946         getcwd does not handle long file names.
5947
5948 2011-11-20  Bruno Haible  <bruno@clisp.org>
5949
5950         getcwd: Fix bug from 2009-09-10.
5951         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5952         like "no".
5953
5954 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5955
5956         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5957
5958 2011-11-20  Bruno Haible  <bruno@clisp.org>
5959
5960         fma tests: Avoid shadowing local variables.
5961         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5962         expected.
5963
5964 2011-11-20  Bruno Haible  <bruno@clisp.org>
5965
5966         copysignf tests: Fix.
5967         * tests/test-copysignf.c: Fix signature check.
5968
5969 2011-11-20  Bruno Haible  <bruno@clisp.org>
5970
5971         fma: Remove unused code.
5972         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5973         unused macros.
5974
5975 2011-11-20  Bruno Haible  <bruno@clisp.org>
5976
5977         sethostname: Fix doc about AIX.
5978         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5979         sethostname; it has it.
5980
5981         sethostname: Mention more portability problems.
5982         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5983         problem.
5984         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5985
5986 2011-11-19  Bruno Haible  <bruno@clisp.org>
5987
5988         Depend on module fcntl-h when AT_FDCWD is used.
5989         * modules/utimens (Depends-on): Add fcntl-h.
5990         * modules/areadlinkat (Depends-on): Likewise.
5991         * modules/areadlinkat-with-size (Depends-on): Likewise.
5992         * modules/faccessat (Depends-on): Likewise.
5993         * modules/fchmodat (Depends-on): Likewise.
5994         * modules/fchownat (Depends-on): Likewise.
5995         * modules/getcwd (Depends-on): Likewise.
5996         * modules/mkdirat (Depends-on): Likewise.
5997         * modules/mkfifoat (Depends-on): Likewise.
5998         * modules/readlinkat (Depends-on): Likewise.
5999         * modules/symlinkat (Depends-on): Likewise.
6000         * modules/dup2-tests (Depends-on): Likewise.
6001         * modules/fdutimensat-tests (Depends-on): Likewise.
6002         * modules/futimens-tests (Depends-on): Likewise.
6003
6004 2011-11-19  Bruno Haible  <bruno@clisp.org>
6005
6006         euidaccess: Update a comment.
6007         * lib/euidaccess.c: Update comment about platforms with faccessat.
6008
6009 2011-11-19  Bruno Haible  <bruno@clisp.org>
6010
6011         openat: Fix file list.
6012         * modules/openat (Files): Remove lib/at-func.c.
6013
6014 2011-11-19  Bruno Haible  <bruno@clisp.org>
6015
6016         fstatat: Simplify.
6017         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6018         gnulib should define rpl_fstatat, there is a
6019         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6020
6021 2011-11-19  Bruno Haible  <bruno@clisp.org>
6022
6023         Ensure 'inline' can be used in tests/test-utimens-common.h.
6024         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6025         * modules/futimens-tests (configure.ac): Likewise.
6026         * modules/utimens-tests (configure.ac): Likewise.
6027         * modules/utimensat-tests (configure.ac): Likewise.
6028
6029 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6030
6031         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6032         not hash_insert0.
6033         (hash_insert_if_absent): Doc fix.
6034
6035 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6036
6037         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6038
6039 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6040
6041         test-getcwd: disambiguate exit status
6042         * tests/test-getcwd.c (test_long_name): Return 0..7.
6043         (main): Exit with an unambiguous exit status.  The old
6044         code yielded a mysterious mixture of two failure codes.
6045
6046         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6047         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6048         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6049         rpl_fstatat or fstatat.  This should fix the other problem
6050         reported by Kai Habel in
6051         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6052         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6054         and I reproduced it on a Solaris 8 host we still have in production.
6055
6056 2011-11-18  Jim Meyering  <meyering@redhat.com>
6057
6058         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6059         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6060         Add a sentence to the comment.
6061         (hash_insert0): New function that simply calls hash_insert_if_absent.
6062         * lib/hash.h (hash_insert_if_absent): Declare it.
6063         (hash_insert0): Add deprecation attribute.
6064         (_GL_ATTRIBUTE_DEPRECATED): Define.
6065         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6066         not hash_insert0.
6067         * NEWS: Mention it, even though it's not really an incompatible change.
6068
6069 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6070
6071         openat: avoid compilation failure due to lack of <errno.h> inclusion
6072         * lib/openat.c: Include <errno.h>.
6073
6074 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6075
6076         * modules/getcwd (Depends-on): Add fdopendir.
6077         This fixes one of the two problems reported by Kai Habel in
6078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6079
6080         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6081         stdalign problem reported by Ian Beckwith in
6082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6083         * modules/crypto/gc-arcfour (Depends-on):
6084         Depend conditionally on crypto/arcfour.
6085         * modules/crypto/gc-arctwo (Depends-on):
6086         Depend conditionally on crypto/arctwo.
6087         * modules/crypto/gc-des (Depends-on):
6088         Depend conditionally on crypto/des.
6089         * modules/crypto/gc-hmac-md5 (Depends-on):
6090         Depend conditionally on crypto/hmac-md5.
6091         * modules/crypto/gc-hmac-sha1 (Depends-on):
6092         Depend conditionally on crypto/hmac-sha1.
6093         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6094         * modules/crypto/gc-md4 (Depends-on):
6095         Depend conditionally on crypto/md4.
6096         * modules/crypto/gc-md5 (Depends-on):
6097         Depend conditionally on crypto/md5.
6098         * modules/crypto/gc-rijndael (Depends-on):
6099         Depend conditionally on crypto/rijndael.
6100         * modules/crypto/gc-sha1 (Depends-on):
6101         Depend conditionally on crypto/sha1.
6102         * modules/crypto/gc-arcfour:
6103         * modules/crypto/gc-arctwo:
6104         * modules/crypto/gc-des:
6105         * modules/crypto/gc-hmac-md5:
6106         * modules/crypto/gc-hmac-sha1:
6107         * modules/crypto/gc-md2:
6108         * modules/crypto/gc-md4:
6109         * modules/crypto/gc-md5:
6110         * modules/crypto/gc-rijndael:
6111         * modules/crypto/gc-sha1:
6112         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6113         now that the conditional dependencies do the work for us.
6114
6115 2011-11-17  Jim Meyering  <meyering@redhat.com>
6116
6117         tests: factor st_ctime-comparison out of two headers
6118         * tests/test-utimens-common.h (ctime_compare): Define.
6119         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6120         * tests/test-lutimens.h (test_lutimens): Likewise.
6121         * tests/test-utimens.h (test_utimens): Likewise.
6122
6123         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6124         Invoke the test program via an init.sh-using wrapper.
6125         * tests/test-getcwd.sh: New file.
6126         * modules/getcwd-tests (Files): Add it.
6127         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6128
6129 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6130
6131         gitlog-to-changelog: support multi-author commits.
6132         The FSF cares about keeping track of all authors of patches to its
6133         projects, but Git doesn't provide obvious support for multi-author
6134         changesets. Consensus seems to be forming around the use of extra
6135         Signed-off-by inspired lines in the log message formatted as
6136         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6137         multi-author commits between version control systems.
6138         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6139         log message and output in standard ChangeLog multi-author format.
6140         Reported by Peter Rosin <peda@lysator.liu.se>
6141
6142 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6143             Bruno Haible  <bruno@clisp.org>
6144
6145         Fix some modules' file list.
6146         * modules/fstatat (Files): Add m4/lstat.m4.
6147         * modules/openat (Files): Likewise.
6148         * modules/unlinkat (Files): Likewise.
6149
6150 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6151
6152         maint.mk: fix tight-scope.mk generation in VPATH builds.
6153         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6154         reference with $(srcdir) so that the file is found correctly even
6155         when running `make syntax-check' in a VPATH build.
6156
6157 2011-11-13  Bruno Haible  <bruno@clisp.org>
6158             Jim Meyering  <meyering@redhat.com>
6159
6160         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6161         * tests/init.sh (compare): Remove "No differences encountered" or
6162         synonymous output from the 'diff' program.
6163
6164 2011-11-13  Bruno Haible  <bruno@clisp.org>
6165
6166         Makefile: Tweak indentation.
6167         * Makefile: Use tab as first character in every line that contains rule
6168         commands.
6169
6170 2011-11-13  Bruno Haible  <bruno@clisp.org>
6171
6172         Syntax check for copyright statements.
6173         * check-copyright: New file.
6174         * Makefile (sc_check_copyright): New rule.
6175
6176 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6177
6178         * build-aux/git-version-gen: Add --prefix to configure the tag
6179         match string.
6180
6181 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6182
6183         * build-aux/git-version-gen: Add --help and --version.
6184
6185 2011-11-12  Jim Meyering  <meyering@redhat.com>
6186
6187         revamp the other test-exclude?.sh scripts to use init.sh, too
6188         * tests/test-exclude1.sh: Use init.sh.
6189         * tests/test-exclude2.sh: Likewise.
6190         * tests/test-exclude3.sh: Likewise.
6191         * tests/test-exclude4.sh: Likewise.
6192         * tests/test-exclude5.sh: Likewise.
6193         * tests/test-exclude6.sh: Likewise.
6194         * tests/test-exclude7.sh: Likewise.
6195         * tests/test-exclude8.sh: Likewise.
6196         * modules/exclude-tests (Files): List init.sh.
6197
6198         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6199         These shell scripts ignored failure of the binary test-exclude,
6200         so making the latter return 77 didn't cause them to be skipped.
6201         * tests/test-exclude5.sh: Exit with test-exclude's error status
6202         when that program fails.  Revamp to use init.sh.
6203         * tests/test-exclude2.sh: Likewise.
6204
6205         test-exclude: fix a typo
6206         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6207
6208 2011-11-11  Bruno Haible  <bruno@clisp.org>
6209
6210         obstack: Fix compilation error on MSVC 9.
6211         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6212
6213 2011-11-11  Jim Meyering  <meyering@redhat.com>
6214
6215         test-exclude: skip tests rather than failing on deficient systems
6216         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6217         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6218         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6219         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6220
6221 2011-11-10  Bruno Haible  <bruno@clisp.org>
6222
6223         ptsname_r test: Avoid gcc warning on glibc systems.
6224         * tests/test-ptsname_r.c (null_ptr): New function.
6225         (test_errors): Use it.
6226
6227 2011-11-10  Bruno Haible  <bruno@clisp.org>
6228
6229         ptsname_r: Avoid compilation error on OSF/1 5.1.
6230         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6232         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6233         function is not declared or incompatibly declared.
6234         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6235         * modules/ptsname_r (Depends-on, configure.ac): Update.
6236         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6237
6238 2011-11-10  Bruno Haible  <bruno@clisp.org>
6239
6240         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6241         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6242         When cross-compiling, guess yes on all platforms except AIX.
6243         Reported by Ludovic Courtès <ludo@gnu.org>.
6244
6245 2011-11-09  Bruno Haible  <bruno@clisp.org>
6246
6247         ptsname_r tests: Fix bugs.
6248         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6249         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6250
6251 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6252
6253         fstatat: work with cross-compilation
6254         Problem reported by Ludovic Courtès in
6255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6256         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6257         "cross-compiling" and assume the bug is present.  Replace
6258         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6259         an inverted sense, to be more conservative about our assumptions.
6260         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6261
6262 2011-11-09  Bruno Haible  <bruno@clisp.org>
6263
6264         Improve MODULES.html output.
6265         * modules/mkfifoat (Description): Use the word "function".
6266         * modules/readlinkat (Description): Likewise.
6267         * modules/symlinkat (Description): Likewise.
6268
6269 2011-11-09  Eric Blake  <eblake@redhat.com>
6270
6271         ptsname_r-tests: new test module
6272         * modules/ptsname_r-tests: New module.
6273         * tests/test-ptsname_r.c: New file.
6274
6275         ptsname_r: new module
6276         * modules/ptsname_r: New module.
6277         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6278         * lib/ptsname.c (__ptsname_r): Split...
6279         * lib/ptsname_r.c: ...into new file.
6280         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6281         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6282         * modules/stdlib (Makefile.am): Substitute witnesses.
6283         * lib/stdlib.in.h (ptsname_r): Declare it.
6284         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6285         * MODULES.html.sh (Misc): Likewise.
6286         * modules/ptsname (Depends-on): Alter dependency.
6287         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6288
6289 2011-11-09  Jim Meyering  <meyering@redhat.com>
6290
6291         announce-gen: be more concise when there's only one URL+tarball
6292         * build-aux/announce-gen (get_tool_versions): When you distribute
6293         only one type of tarball, combine the first two "Here are..."
6294         sections and make the key-checking grammar independent of
6295         how many tarballs there are.
6296
6297 2011-11-09  Eric Blake  <eblake@redhat.com>
6298
6299         openpty: provide a stub on mingw
6300         * lib/pty.in.h (includes): Provide forward declarations.
6301         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6302
6303         raise: fix mingw handling of SIGPIPE
6304         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6305
6306 2011-11-08  Bruno Haible  <bruno@clisp.org>
6307
6308         More conditional dependencies.
6309         * modules/faccessat (Depends-on): Add conditions.
6310         * modules/fchmodat (Depends-on): Likewise.
6311         * modules/fchownat (Depends-on): Likewise.
6312         * modules/fstatat (Depends-on): Likewise.
6313         * modules/mkfifoat (Depends-on): Likewise.
6314         * modules/readlinkat (Depends-on): Likewise.
6315         * modules/symlinkat (Depends-on): Likewise.
6316         * modules/unlinkat (Depends-on): Likewise.
6317         * modules/utimensat (Depends-on): Likewise.
6318         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6319         * modules/linkat (Depends-on): Refine the conditions.
6320         * modules/renameat (Depends-on): Likewise.
6321
6322 2011-11-08  Bruno Haible  <bruno@clisp.org>
6323
6324         faccessat: Move AC_LIBOBJ invocation to module description.
6325         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6326         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6327         invocation from here...
6328         * modules/faccessat (configure.ac): ... to here. Invoke
6329         gl_PREREQ_FACCESSAT.
6330
6331 2011-11-08  Bruno Haible  <bruno@clisp.org>
6332
6333         faccessat: Simplify autoconf macro.
6334         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6335         gl_FUNC_EUIDACCESS.
6336
6337 2011-11-08  Bruno Haible  <bruno@clisp.org>
6338
6339         renameat: Fix dependencies.
6340         * modules/renameat (Depends-on): Add stdbool.
6341
6342 2011-11-08  Bruno Haible  <bruno@clisp.org>
6343
6344         mkfifoat: Fix module description.
6345         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6346         not gl_UNISTD_MODULE_INDICATOR.
6347
6348 2011-11-08  Bruno Haible  <bruno@clisp.org>
6349
6350         fstatat: Remove unused dependency.
6351         * modules/fstatat (Depends-on): Remove fstat.
6352
6353 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6354
6355         GNUmakefile: behave when Makefile is missing.
6356         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6357
6358 2011-11-08  Bruno Haible  <bruno@clisp.org>
6359
6360         openat: Conditionalize dependencies.
6361         * lib/openat.c: Reduce the scope of some #includes.
6362         * modules/openat (Depends-on): Add conditions.
6363
6364 2011-11-07  Jim Meyering  <meyering@redhat.com>
6365
6366         maint.mk: extract GPG key ID without using a temporary file
6367         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6368         without using a temporary file.  Based on a suggestion from Werner Koch
6369         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6370
6371 2011-11-07  Eric Blake  <eblake@redhat.com>
6372
6373         grantpt: fix typo
6374         * lib/stdlib.in.h (grantpt): Check correct function.
6375
6376         maint.mk: silence new syntax check
6377         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6378
6379 2011-11-06  Bruno Haible  <bruno@clisp.org>
6380
6381         Doc about floating-point and math API.
6382         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6383         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6384
6385 2011-11-06  Bruno Haible  <bruno@clisp.org>
6386
6387         stdalign tests: Skip the test when compiled by Sun C.
6388         * tests/test-stdalign.c (main): Skip the test on Sun C.
6389
6390 2011-11-06  Bruno Haible  <bruno@clisp.org>
6391
6392         ansi-c++-opt: Complete the 2011-06-05 change.
6393         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6394         does not support namespaces, set the variable to "no", not to ":".
6395
6396 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6397
6398         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6399
6400 2011-11-06  Bruno Haible  <bruno@clisp.org>
6401
6402         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6403         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6404         (minus_zerol) [HP-UX]: New macro.
6405         (unary_minus) [HP-UX]: New function.
6406         (copysignl) [HP-UX]: Use unary_minus function.
6407
6408 2011-11-06  Bruno Haible  <bruno@clisp.org>
6409
6410         ldexp, ldexpf, ldexpl: Enhance tests.
6411         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6412         and tests/test-ldexpl.c.
6413         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6414         LDEXP, MIN_EXP, MAX_EXP): New macros.
6415         Include test-ldexp.h.
6416         (main): Just call test_function.
6417         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6418         infinity.h, nan.h.
6419         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6420         MAX_EXP): New macros.
6421         Include test-ldexp.h.
6422         (x, y): Remove variables.
6423         (main): Just call test_function.
6424         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6425         infinity.h, nan.h.
6426         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6427         MAX_EXP): New macros.
6428         Include test-ldexp.h.
6429         (x, y): Remove variables.
6430         (main): Just call test_function.
6431         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6432         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6433         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6434         (Depends-on): Add isnand-nolibm, signbit, float.
6435         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6436         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6437         (Depends-on): Add isnanf-nolibm, signbit, float.
6438
6439 2011-11-06  Bruno Haible  <bruno@clisp.org>
6440
6441         math tests: Cosmetics.
6442         * tests/test-math-c++.cc: Reorder declarations.
6443
6444 2011-11-05  Bruno Haible  <bruno@clisp.org>
6445
6446         fma*: Simplify test.
6447         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6448         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6449
6450         Tests for module 'fmal'.
6451         * modules/fmal-tests: New file.
6452         * tests/test-fmal1.c: New file.
6453         * tests/test-fmal2.c: New file.
6454
6455         New module 'fmal'.
6456         * lib/math.in.h (fmal): New declaration.
6457         * lib/fmal.c: New file.
6458         * m4/fmal.m4: New file.
6459         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6461         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6462         REPLACE_FMAL.
6463         * modules/fmal: New file.
6464         * doc/posix-functions/fmal.texi: Mention the new module and the various
6465         bugs.
6466
6467         Tests for module 'fmaf'.
6468         * modules/fmaf-tests: New file.
6469         * tests/test-fmaf1.c: New file.
6470         * tests/test-fmaf2.c: New file.
6471
6472         New module 'fmaf'.
6473         * lib/math.in.h (fmaf): New declaration.
6474         * lib/fmaf.c: New file.
6475         * m4/fmaf.m4: New file.
6476         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6478         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6479         REPLACE_FMAF.
6480         * modules/fmaf: New file.
6481         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6482         bugs.
6483
6484         Tests for module 'fma'.
6485         * modules/fma-tests: New file.
6486         * tests/test-fma1.c: New file.
6487         * tests/test-fma1.h: New file.
6488         * tests/test-fma2.c: New file.
6489         * tests/test-fma2.h: New file.
6490
6491         New module 'fma'.
6492         * lib/math.in.h (fma): New declaration.
6493         * lib/fma.c: New file.
6494         * m4/fma.m4: New file.
6495         * m4/fegetround.m4: New file.
6496         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6498         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6499         REPLACE_FMA.
6500         * modules/fma: New file.
6501         * doc/posix-functions/fma.texi: Mention the new module and the various
6502         bugs.
6503
6504         Extend gl_MATHFUNC.
6505         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6506         Support 'void' as argument type.
6507         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6508
6509 2011-11-05  Jim Meyering  <meyering@redhat.com>
6510
6511         maint.mk: also prohibit inclusion of dirent.h without use
6512         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6513
6514 2011-11-05  Bruno Haible  <bruno@clisp.org>
6515
6516         ldexpl tests: Avoid test failure on MSVC 9.
6517         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6518         value. Needed in order to enforce the conversion from a value greater
6519         than LDBL_MAX to Infinity.
6520
6521 2011-11-05  Bruno Haible  <bruno@clisp.org>
6522
6523         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6524         * modules/at-internal: New file, extracted from modules/openat.
6525         * modules/openat-h: New file.
6526         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6527         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6528         * modules/openat (Description): Add reference to POSIX function.
6529         (Files): Remove lib/openat.h, lib/openat-proc.c.
6530         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6531         intprops, unistd.
6532         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6533         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6534         gl_FCNTL_MODULE_INDICATOR.
6535         (Include): Remove unistd.h, openat.h.
6536         * modules/areadlinkat (Files): Add lib/at-func.c.
6537         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6538         openat-die, openat-h, save-cwd.
6539         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6540         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6541         openat-die, openat-h, save-cwd, unistd.
6542         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6543         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6544         openat-h, save-cwd. Remove fcntl-h, openat.
6545         * modules/fchmodat (Files): Remove lib/openat.h.
6546         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6547         openat, stdbool, unistd.
6548         * modules/fchownat (Files): Remove lib/openat.h.
6549         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6550         openat, stdbool, sys_stat.
6551         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6552         lib/openat-proc.c.
6553         (Depends-on): Add at-internal.
6554         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6555         * modules/fstatat (Files): Remove lib/openat.h.
6556         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6557         stdbool, unistd.
6558         * modules/fts (Depends-on): Add openat-h.
6559         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6560         openat.
6561         * modules/mkdirat (Files): Remove lib/openat.h.
6562         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6563         openat, stdbool, sys_stat.
6564         * modules/mkfifoat (Files): Add lib/at-func.c.
6565         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6566         openat-h, save-cwd. Remove fcntl-h, openat.
6567         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6568         * modules/readlinkat (Files): Add lib/at-func.c.
6569         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6570         openat-h, save-cwd. Remove fcntl-h, openat.
6571         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6572         openat.
6573         * modules/selinux-at (Files): Add lib/at-func.c.
6574         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6575         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6576         * modules/symlinkat (Files): Add lib/at-func.c.
6577         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6578         openat-h, save-cwd. Remove fcntl-h, openat.
6579         * modules/unlinkat (Files): Remove lib/openat.h.
6580         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6581         stdbool.
6582         * modules/utimensat (Files): Add lib/at-func.c.
6583         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6584         openat-die, openat-h, save-cwd.
6585         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6586         * modules/fdutimensat-tests (Depends-on): Add openat.
6587         * modules/fstatat-tests (Depends-on): Add openat-h.
6588         * modules/readlinkat-tests (Depends-on): Add openat.
6589         * modules/symlinkat-tests (Depends-on): Add openat.
6590
6591 2011-11-05  Bruno Haible  <bruno@clisp.org>
6592
6593         openat: Include <stdbool.h>.
6594         * lib/openat.c: Include <stdbool.h>.
6595
6596 2011-11-04  Bruno Haible  <bruno@clisp.org>
6597
6598         fchownat, renameat, unlinkat: Fix dependencies.
6599         * modules/fchownat (Depends-on): Add fstatat.
6600         * modules/renameat (Depends-on): Likewise.
6601         * modules/unlinkat (Depends-on): Likewise.
6602
6603 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6604
6605         openat: remove direct dependency on dirent
6606         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6607         and hasn't been needed ever since fdopendir was split into its own
6608         module on 2009-08-31.
6609         * modules/openat (Depends-on): Remove dirent.
6610
6611 2011-11-04  Bruno Haible  <bruno@clisp.org>
6612
6613         renameat: Optimize code size.
6614         * modules/renameat (configure.ac): Don't compile at-func2.c if
6615         REPLACE_RENAMEAT is 1.
6616
6617 2011-11-04  Bruno Haible  <bruno@clisp.org>
6618
6619         openat tests: Fix file list.
6620         * modules/openat-tests (Files): Add tests/test-open.h.
6621
6622 2011-11-04  Bruno Haible  <bruno@clisp.org>
6623
6624         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6625         * modules/fchmodat (Depends-on): Add openat-die.
6626         * modules/fchownat (Depends-on): Likewise.
6627         * modules/linkat (Depends-on): Likewise.
6628         * modules/renameat (Depends-on): Likewise.
6629         * modules/openat (Depends-on): Add dirent.
6630
6631 2011-11-04  Jim Meyering  <meyering@redhat.com>
6632
6633         at-func*.c: fix comments
6634         * lib/at-func2.c: Correct/improve first-line comment.
6635         * lib/at-func.c: Correct grammar in first-line comment.
6636
6637 2011-11-04  Bruno Haible  <bruno@clisp.org>
6638
6639         New module 'mkdirat', split off from module 'openat'.
6640         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6641         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6642         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6643         * modules/mkdirat: New file, extracted from modules/openat.
6644         * modules/openat (Files): Remove lib/mkdirat.c.
6645         (Depends-on): Remove mkdir.
6646         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6647         (Include): Remove <sys/stat.h>.
6648         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6649         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6650         tests/test-mkdir.h.
6651         (Depends-on): Remove ignore-value.
6652         (Makefile.am): Remove rules for test-mkdirat.
6653         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6654         of module 'openat'.
6655         * NEWS: Mention the change.
6656
6657 2011-11-04  Bruno Haible  <bruno@clisp.org>
6658
6659         closedir: Avoid warning on mingw.
6660         * lib/closedir.c: Include <unistd.h>.
6661
6662 2011-11-04  Bruno Haible  <bruno@clisp.org>
6663
6664         New module 'fstatat', split off from module 'openat'.
6665         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6666         defined.
6667         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6668         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6669         gl_FUNC_FSTATAT.
6670         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6671         * modules/fstatat: New file, extracted from modules/openat.
6672         * modules/openat (Files): Remove lib/fstatat.c.
6673         (Depends-on): Remove lstat.
6674         (configure.ac): Remove AC_LIBOBJ of fstatat.
6675         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6676         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6677         tests/test-lstat.h, tests/test-stat.h.
6678         (Depends-on): Remove getcwd-lgpl.
6679         (Makefile.am): Remove rules for test-fstatat.
6680         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6681         of module 'openat'.
6682         * NEWS: Mention the change.
6683         * modules/getcwd (Depends-on): Add fstatat.
6684         * modules/linkat (Depends-on): Likewise.
6685         * modules/mkfifoat-tests (Depends-on): Likewise.
6686         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6687
6688 2011-11-03  Bruno Haible  <bruno@clisp.org>
6689
6690         New module 'unlinkat', split off from module 'openat'.
6691         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6692         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6693         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6694         * modules/unlinkat: New file, extracted from modules/openat. Correct
6695         the dependency conditions.
6696         * modules/openat (Files): Remove lib/unlinkat.c.
6697         (Depends-on): Remove rmdir, unlink.
6698         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6699         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6700         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6701         tests/test-rmdir.h, tests/test-unlink.h.
6702         (Depends-on): Remove unlinkdir.
6703         (Makefile.am): Remove rules for test-unlinkat.
6704         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6705         of module 'openat'.
6706         * NEWS: Mention the change.
6707         * modules/linkat-tests (Depends-on): Add unlinkat.
6708         * modules/mkfifoat-tests (Depends-on): Likewise.
6709         * modules/readlinkat-tests (Depends-on): Likewise.
6710
6711 2011-11-02  Bruno Haible  <bruno@clisp.org>
6712
6713         New module 'fchmodat', split off from module 'openat'.
6714         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6715         defined.
6716         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6717         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6718         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6719         * modules/fchmodat: New file, extracted from modules/openat.
6720         * modules/openat (Files): Remove lib/fchmodat.c.
6721         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6722         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6723         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6724         (Makefile.am): Remove rules for test-fchmodat.
6725         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6726         of module 'openat'.
6727         * NEWS: Mention the change.
6728
6729 2011-11-02  Jim Meyering  <meyering@redhat.com>
6730
6731         putenv: indent #definition of "environ" to placate cppi
6732         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6733
6734         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6735         Git logs are often treated as immutable, because editing them
6736         changes the SHA1 checksums of all descendants.  Thus, errors in
6737         git logs tend to stay there forever.  However, when we generate
6738         a ChangeLog file -- typically for distribution -- from that git log,
6739         we can actually make corrections in the generated file.  The key
6740         lies in recording in machine-readable/applicable form the desired
6741         corrections.  See --help for description and an example.
6742         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6743         (usage): Describe it; alphabetize option descriptions.
6744         (main): Honor the new option, carefully.
6745
6746 2011-11-01  Jim Meyering  <meyering@redhat.com>
6747
6748         gitlog-to-changelog: avoid an infloop
6749         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6750         that ends up being empty.
6751
6752 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6753
6754         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6755         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6756         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6757         contains (possibly-quoted) backslashes.  This should avoid
6758         all-too-common shell bugs if COMPLICATED contains backslashes in
6759         the "wrong" places.  Reported by David Evans in
6760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6761         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6762         because we want ASCII ranges.  Is there some reason we don't use
6763         the C locale everywhere in this script?
6764         (func_module, top level): Avoid unwanted pathname expansion when
6765         $repo_url_prefix or $repo_url_suffix_repl contain shell
6766         metacharacters like '?' and '*'.
6767
6768 2011-11-01  Bruno Haible  <bruno@clisp.org>
6769
6770         fchownat: Improve description.
6771         * modules/fchownat (Description): Add link to function.
6772
6773 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6774
6775         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6776         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6778         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6779
6780 2011-11-01  Bruno Haible  <bruno@clisp.org>
6781
6782         alignof: Avoid collision with stdalign module.
6783         * lib/alignof.h (alignof): Remove macro.
6784         * NEWS: Mention the change.
6785         Reported by Paul Eggert.
6786
6787 2011-11-01  Bruno Haible  <bruno@clisp.org>
6788
6789         New module 'fchownat', split off from module 'openat'.
6790         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6791         defined.
6792         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6793         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6794         invoke gl_FUNC_FCHOWNAT.
6795         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6796         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6797         * modules/fchownat: New file, extracted from modules/openat.
6798         * modules/openat (Files): Remove lib/fchownat.c.
6799         (Depends-on): Remove lchown.
6800         (configure.ac): Remove AC_LIBOBJ of fchownat.
6801         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6802         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6803         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6804         (Depends-on): Remove mgetgroups, usleep, stat-time.
6805         (configure.ac): Remove test for getegid.
6806         (Makefile.am): Remove rules for test-fchownat.
6807         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6808         of module 'openat'.
6809         * NEWS: Mention the change.
6810
6811 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6812
6813         stdalign: port better to MSVC and to Sun C 5.11
6814         This fixes some of the problems reported by Bruno Haible in
6815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6816         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6817         shortcomings of MSVC and of Sun C 5.11.
6818         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6819         around __declspec arg.
6820         * modules/stdalign-tests (Files): Add tests/macros.h.
6821         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6822         Include macros.h, for ASSERT.
6823         (DECLARE_ALIGNED): Remove.
6824         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6825         to catch bug), and to 1 if not (simplifies the rest of the code).
6826         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6827         (CHECK_AUTO): Remove.
6828         (CHECK_ALIGNED): Check only the alignment of the static vars,
6829         since auto var alignment isn't supported by Sun C 5.11.
6830         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6831         ASSERT failures are easier to diagnose.
6832
6833 2011-10-31  Bruno Haible  <bruno@clisp.org>
6834
6835         doc about some IRIX 5.3 problems.
6836         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6837         on IRIX 5.3.
6838         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6839         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6840         5.3.
6841         * doc/posix-functions/grantpt.texi: Likewise.
6842         * doc/posix-functions/unlockpt.texi: Likewise.
6843         * doc/posix-functions/lgamma.texi: Likewise.
6844         * doc/posix-functions/nextafter.texi: Likewise.
6845         * doc/posix-functions/remainder.texi: Likewise.
6846         * doc/posix-functions/select.texi: Mention misplaced declaration on
6847         IRIX 5.3.
6848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6849
6850 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6851
6852         gitlog-to-changelog: fix git-log invocation.
6853         git-log mishandles date strings before 1970-01-01 UTC, and there is
6854         no use to specify --since=1970-01-01 by default anyway.
6855         * build-aux/gitlog-to-changelog: By default, when no --since option
6856         was given, do not specify explicit --since option to git-log.
6857
6858 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6859
6860         gitlog-to-changelog: new option --append-dot.
6861         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6862         first non-blank line of each commit message terminated with a dot.
6863
6864 2011-10-30  Bruno Haible  <bruno@clisp.org>
6865
6866         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6867         * lib/ffsl.h: Include <config.h>.
6868         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6869
6870 2011-10-30  Jim Meyering  <meyering@redhat.com>
6871
6872         GNUmakefile: reenable "make syntax-check" for most projects
6873         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6874         build-aux variable", "syntax-check" would do nothing but succeed with
6875         the "No version control files detected..." diagnostic (unless you
6876         happened to override _build-aux via cfg.mk).
6877         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6878         to precede inclusion of maint.mk.  Otherwise, these variables would
6879         be used undefined in any project that does not override the default.
6880
6881 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6882
6883         gitlog-to-changelog: treat a message with only blank lines as empty.
6884         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6885         trailing blank lines before the code that issues a warning about an
6886         empty commit message.
6887
6888 2011-10-30  Jim Meyering  <meyering@redhat.com>
6889
6890         test-parse-datetime.c: avoid new DST-related false positive test failure
6891         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6892         based on the time/date we'll convert, not the current time.
6893         Otherwise, the moment we cross a DST boundary like today's in
6894         Europe, (CEST to CET), that offset ends up being one hour off.
6895
6896 2011-10-27  Bruno Haible  <bruno@clisp.org>
6897
6898         fstat: Tweak documentation.
6899         * modules/fstat (Description): More precise description.
6900
6901 2011-10-27  Bruno Haible  <bruno@clisp.org>
6902
6903         Update documentation regarding 'largefile' module.
6904         * doc/posix-functions/fstat.texi: Tweak wording.
6905         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6906         problems with huge directories and/or small ino_t types.
6907         * doc/posix-functions/readdir.texi: Likewise.
6908         * doc/posix-functions/rewinddir.texi: Likewise.
6909
6910 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6911
6912         maint.mk: don't maintain a second build-aux variable.
6913         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6914         depends on GNUmakefile, which already maintains a cfg.mk
6915         overridable $(_build-aux) for projects with a non-standard
6916         build-aux directory location, although without the $(srcdir)
6917         prefix.  Use that variable consistently instead of introducing a
6918         second one.  Adjust all call sites.
6919
6920 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6921
6922         Add stdalign module and use it in other modules.
6923         This is based on a previous proposal by Bruno Haible
6924         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6925
6926         stdalign: new module
6927         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6928         * modules/stdalign: New files.
6929         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6930         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6931
6932         stdalign-tests: new module
6933         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6934
6935         argp: use stdalign
6936         * lib/argp-parse.c: Include <stdalign.h>.
6937         (alignof): Remove.
6938         * modules/argp (Depends-on): Add stdalign.
6939
6940         crypto libraries: use stdalign
6941         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6942         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6943         Do not include <stdlib.h> twice, in md4.c.
6944         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6945         because we are accessing a pointer's bit-pattern, not a size.
6946         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6947         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6948         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6949         * modules/crypto/sha512: Likewise.
6950
6951         sys_socket: use stdalign, not alignof
6952         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6953         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6954
6955 2011-10-27  Bruno Haible  <bruno@clisp.org>
6956
6957         raise test: Avoid a test failure on Linux/MIPS.
6958         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6959         because 99 is a valid signal on Linux/MIPS.
6960
6961 2011-10-27  Bruno Haible  <bruno@clisp.org>
6962
6963         nonblocking tests: Fix test failure on Linux/MIPS.
6964         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6965         Set to 270000.
6966
6967 2011-10-27  Bruno Haible  <bruno@clisp.org>
6968
6969         utimensat: Work around problem on Linux/hppa.
6970         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6971         values.
6972         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6973
6974 2011-10-25  Jim Meyering  <meyering@redhat.com>
6975
6976         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6977         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6978         after symbols like NULL, size_t, etc.
6979         Reported by Alfred M. Szmidt.
6980
6981         maint.mk: exempt ENODATA from a syntax-check rule
6982         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6983         from the sc_prohibit_always-defined_macros syntax-check rule.
6984         Add a comment.  See this for more details:
6985         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6986
6987 2011-10-23  Jim Meyering  <meyering@redhat.com>
6988
6989         fts: close parent dir FD before returning from post-traversal fts_read
6990         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6991         unlink A, even though an FD open on A remained.  This is suboptimal
6992         (holding a file descriptor open longer than needed), but otherwise not
6993         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6994         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6995         that represents a real problem: it causes the removal of A to fail
6996         with e.g., "rm: cannot remove `A': Device or resource busy"
6997
6998         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6999         directory file descriptors.  After completing the final, FTS_DP,
7000         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7001         cache, but then proceeded to add a new FD to it via the subsequent
7002         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7003         final file descriptor would be closed only via fts_close's call to
7004         fd_ring_clear.  Now, it is usually closed earlier, via the final
7005         FTS_DP-returning fts_read call.
7006         * lib/fts.c (restore_initial_cwd): New function, converted from
7007         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7008         Update callers.
7009         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7010         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7011
7012 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7013             Bruno Haible  <bruno@clisp.org>
7014             Jim Meyering  <jim@meyering.net>
7015
7016         readme-release: improve safety of release prep instructions.
7017         * README-release: Don't git pull all branches when only master
7018         is needed for the release process.
7019         Run make maintainer-clean before changing trees and merging.
7020         Don't try to run ./configure right after git pull in case files
7021         that influence the bootstrap process have changed, move the
7022         ./configure step to after running ./bootstrap.
7023         Don't bootstrap "one last time"... it's the first time!
7024
7025 2011-10-22  Bruno Haible  <bruno@clisp.org>
7026
7027         errno, strerror-override: Support for MSVC 10.
7028         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7029         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7030         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7031         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7032         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7033         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7034         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7035         Assign values compatible with MSVC 10.
7036         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7037         New macros.
7038         (GNULIB_defined_EWINSOCK): New macro.
7039         * lib/strerror-override.c (strerror_override): Update accordingly.
7040         * lib/strerror-override.h: Likewise.
7041         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7042         longer equal to the corresponding errno value.
7043         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7044
7045 2011-10-22  Bruno Haible  <bruno@clisp.org>
7046
7047         perror: Recognize when test program crashes.
7048         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7049         strerror, set gl_cv_func_perror_works to no.
7050         Reported by Daniel Richard G. <skunk@iskunk.org>.
7051
7052         perror: Fix indentation.
7053         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7054
7055 2011-10-22  Bruno Haible  <bruno@clisp.org>
7056
7057         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7058         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7059         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7060         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7061         functions, not as a macro.
7062         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7063         macros.
7064         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7065         absence of macro.
7066         Suggested by Eric Blake.
7067         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7068
7069 2011-10-21  Bruno Haible  <bruno@clisp.org>
7070
7071         relocatable-prog-wrapper: Don't leave object files behind.
7072         * build-aux/install-reloc: Re-synchronize list of .o files to be
7073         removed with list of compilation units.
7074
7075 2011-10-20  Bruno Haible  <bruno@clisp.org>
7076
7077         openpty, posix_openpt: Remove code duplication.
7078         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7079         * lib/openpty.c: Include <stdlib.h>.
7080         (openpty): Use posix_openpt on all platforms except IRIX.
7081         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7082
7083 2011-10-20  Bruno Haible  <bruno@clisp.org>
7084
7085         unlockpt: Detect invalid argument.
7086         * lib/unlockpt.c: Include <fcntl.h>.
7087         (unlockpt): Check whether fd is valid, using fcntl().
7088         * modules/unlockpt (Depends-on): Add fcntl-h.
7089
7090 2011-10-20  Bruno Haible  <bruno@clisp.org>
7091
7092         openpty: Avoid compilation error on AIX 6.1.
7093         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7094
7095 2011-10-20  Bruno Haible  <bruno@clisp.org>
7096
7097         posix_openpt: Support for OpenBSD.
7098         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7099         (posix_openpt) [OpenBSD]: New code.
7100         * lib/grantpt.c: Include <fcntl.h>.
7101         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7102         * modules/grantpt (Depends-on): Add fcntl-h.
7103
7104 2011-10-20  Bruno Haible  <bruno@clisp.org>
7105
7106         posix_openpt test: Coding style.
7107         * tests/test-posix_openpt.c: Use GNU coding style.
7108
7109 2011-10-20  Bruno Haible  <bruno@clisp.org>
7110
7111         grantpt: Support --avoid=pt_chown.
7112         * modules/grantpt (Files): Add lib/pty-private.h.
7113
7114 2011-10-20  Bruno Haible  <bruno@clisp.org>
7115
7116         posix_openpt: Fix autoconf macro.
7117         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7118         unneeded check for _getpty.
7119
7120 2011-10-20  Bruno Haible  <bruno@clisp.org>
7121
7122         openpty: Update comments.
7123         * lib/openpty.c: Add comments about Minix.
7124
7125 2011-10-19  Eric Blake  <eblake@redhat.com>
7126
7127         openpty: relax license
7128         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7129
7130         pt_chown: use configmake to simplify build
7131         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7132
7133         ptsname and others: relax license
7134         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7135         * modules/unlockpt (License): Likewise.
7136         * modules/pt_chown (License): Likewise.
7137         * modules/ptsname (License): Likewise.
7138         * modules/ttyname_r (License): Likewise.
7139
7140 2011-10-19  Jim Meyering  <meyering@redhat.com>
7141
7142         posix_openpt: remove spurious #endif
7143         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7144
7145 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7146
7147         maint.mk: Respect $(build_aux) in web-manual rule.
7148         * top/maint.mk (web-manual): Find gen-announce script in user's
7149         $(build_aux) directory instead of hard-coding 'build-aux'.
7150
7151 2011-10-19  Bruno Haible  <bruno@clisp.org>
7152
7153         posix_openpt: Fix compilation error.
7154         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7155         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7156         Mention the openpty module as an alternative.
7157
7158 2011-10-19  Bruno Haible  <bruno@clisp.org>
7159
7160         Support for old NeXTstep 3.3 frexp().
7161         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7162         execution time of the test to 5 seconds.
7163         Reported by Daniel Richard G. <skunk@iskunk.org>.
7164
7165 2011-10-19  Bruno Haible  <bruno@clisp.org>
7166
7167         Support for old NeXTstep 3.3 sed.
7168         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7169         part, use /.../, not \|...|. Escape periods in the header file name.
7170         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7171         Reported by Daniel Richard G. <skunk@iskunk.org>.
7172
7173 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7174
7175         Support for old NeXTstep 3.3 gcc.
7176         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7177         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7178         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7179         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7180         * lib/regex.h (_Restrict_arr_): Likewise.
7181         * lib/regex_internal.h (re_token_t): Likewise.
7182         * lib/regexec.c (check_node_accept_bytes): Likewise.
7183         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7184
7185 2011-10-18  Eric Blake  <eblake@redhat.com>
7186
7187         posix_openpt: new module
7188         * modules/posix_openpt: New module.
7189         * m4/posix_openpt.m4: New file.
7190         * lib/posix_openpt.c: Likewise.
7191         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7192         (gl_STDLIB_H_DEFAULTS): Set defaults.
7193         * modules/stdlib (Makefile.am): Substitute macros.
7194         * lib/stdlib.in.h (posix_openpt): Declare.
7195         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7196         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7197         * modules/posix_openpt-tests: New test module.
7198         * tests/test-posix_openpt.c: New test.
7199
7200 2011-10-15  Bruno Haible  <bruno@clisp.org>
7201
7202         xstrtoll: Fix compilation failure.
7203         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7204         from lib/strtol.c.
7205         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7206         some platforms.
7207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7208
7209 2011-10-15  Bruno Haible  <bruno@clisp.org>
7210
7211         vasnprintf: Optimize bit search operation.
7212         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7214         gl_DOUBLE_EXPONENT_LOCATION.
7215         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7216         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7217         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7218         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7219         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7220         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7221         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7222         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7223         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7224
7225 2011-10-15  Bruno Haible  <bruno@clisp.org>
7226
7227         vasnprintf: Fix comments.
7228         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7229
7230 2011-10-14  Bruno Haible  <bruno@clisp.org>
7231
7232         Tests for module 'integer_length_ll'.
7233         * modules/integer_length_ll-tests: New file.
7234         * tests/test-integer_length_ll.c: New file.
7235
7236         New module 'integer_length_ll'.
7237         * lib/integer_length_ll.c: New file.
7238         * modules/integer_length_ll: New file.
7239
7240 2011-10-14  Bruno Haible  <bruno@clisp.org>
7241
7242         Tests for module 'integer_length_l'.
7243         * modules/integer_length_l-tests: New file.
7244         * tests/test-integer_length_l.c: New file.
7245
7246         New module 'integer_length_l'.
7247         * lib/integer_length_l.c: New file.
7248         * modules/integer_length_l: New file.
7249
7250 2011-10-14  Bruno Haible  <bruno@clisp.org>
7251
7252         Tests for module 'integer_length'.
7253         * modules/integer_length-tests: New file.
7254         * tests/test-integer_length.c: New file.
7255
7256         New module 'integer_length'.
7257         * lib/integer_length.h: New file.
7258         * lib/integer_length.c: New file.
7259         * modules/integer_length: New file.
7260
7261 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7262
7263         popen: Fix dependency conditions.
7264         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7265
7266 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7267
7268         perror: Fix autoconf test.
7269         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7270         <stdlib.h> and <string.h>.
7271
7272 2011-10-14  Bruno Haible  <bruno@clisp.org>
7273
7274         ffsl: Optimize on 64-bit platforms.
7275         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7276         unrolling.
7277
7278 2011-10-13  Bruno Haible  <bruno@clisp.org>
7279
7280         ffsl: Optimize on 32-bit platforms.
7281         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7282         use ffs() without a loop.
7283
7284         ffsl, ffsll: Optimize for GCC.
7285         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7286         * lib/ffsl.c (GCC_BUILTIN): New macro.
7287         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7288
7289 2011-10-13  Bruno Haible  <bruno@clisp.org>
7290
7291         ffs, bcopy, memset: Support symbol renaming via config.h.
7292         * lib/ffs.c: Include <config.h>.
7293         * lib/bcopy.c: Likewise.
7294         * lib/memset.c: Likewise.
7295
7296 2011-10-10  Bruno Haible  <bruno@clisp.org>
7297
7298         atanl: Simplify for platforms where 'long double' == 'double'.
7299         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7300         alternative implementation.
7301         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7302         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7303         * modules/atanl (Depends-on): Add atan. Update conditions.
7304
7305 2011-10-10  Bruno Haible  <bruno@clisp.org>
7306
7307         acosl: Simplify for platforms where 'long double' == 'double'.
7308         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7309         alternative implementation.
7310         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7311         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7312         * modules/acosl (Depends-on): Add acos. Update conditions.
7313
7314 2011-10-10  Bruno Haible  <bruno@clisp.org>
7315
7316         asinl: Simplify for platforms where 'long double' == 'double'.
7317         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7318         alternative implementation.
7319         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7320         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7321         * modules/asinl (Depends-on): Add asin. Update conditions.
7322
7323 2011-10-10  Bruno Haible  <bruno@clisp.org>
7324
7325         tanl: Simplify for platforms where 'long double' == 'double'.
7326         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7327         implementation.
7328         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7329         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7330         * modules/tanl (Depends-on): Add tan. Update conditions.
7331         (configure.ac): Don't compile trigl.c if
7332         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7333
7334 2011-10-10  Bruno Haible  <bruno@clisp.org>
7335
7336         cosl: Simplify for platforms where 'long double' == 'double'.
7337         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7338         implementation.
7339         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7340         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7341         * modules/cosl (Depends-on): Add cos. Update conditions.
7342         (configure.ac): Don't compile sincosl.c and trigl.c if
7343         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7344
7345 2011-10-10  Bruno Haible  <bruno@clisp.org>
7346
7347         sinl: Simplify for platforms where 'long double' == 'double'.
7348         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7349         implementation.
7350         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7351         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7352         * modules/sinl (Depends-on): Add sin. Update conditions.
7353         (configure.ac): Don't compile sincosl.c and trigl.c if
7354         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7355
7356 2011-10-10  Bruno Haible  <bruno@clisp.org>
7357
7358         logl: Simplify for platforms where 'long double' == 'double'.
7359         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7360         implementation.
7361         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7362         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7363         * modules/logl (Depends-on): Add log. Update conditions.
7364
7365 2011-10-10  Bruno Haible  <bruno@clisp.org>
7366
7367         expl: Simplify for platforms where 'long double' == 'double'.
7368         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7369         implementation.
7370         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7371         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7372         * modules/expl (Depends-on): Add exp. Update conditions.
7373
7374 2011-10-10  Bruno Haible  <bruno@clisp.org>
7375
7376         sqrtl: Simplify for platforms where 'long double' == 'double'.
7377         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7378         alternative implementation.
7379         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7380         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7381         * modules/sqrtl (Depends-on): Update conditions.
7382
7383 2011-10-10  Bruno Haible  <bruno@clisp.org>
7384
7385         ldexpl: Simplify for platforms where 'long double' == 'double'.
7386         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7387         alternative implementation.
7388         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7389         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7390         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7391
7392 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7393
7394         ffsll: set correct witness
7395         * modules/ffsll (configure.ac): Fix typo.
7396
7397 2011-10-10  Bruno Haible  <bruno@clisp.org>
7398
7399         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7400         * lib/printf-frexpl.c: Include <config.h>.
7401         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7402         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7403         second time.
7404         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7405         gl_LONG_DOUBLE_VS_DOUBLE.
7406         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7407         conditions.
7408
7409 2011-10-10  Bruno Haible  <bruno@clisp.org>
7410
7411         frexpl: Simplify for platforms where 'long double' == 'double'.
7412         * lib/frexpl.c: Include <config.h>.
7413         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7414         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7415         time.
7416         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7417         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7418         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7419         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7420         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7421         conditions.
7422
7423 2011-10-10  Jim Meyering  <meyering@redhat.com>
7424
7425         test-renameat: don't leave behind a temporary file
7426         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7427           ERROR: files left in build directory after distclean:
7428           ./gltests/test-renameat.too
7429           make[1]: *** [distcleancheck] Error 1
7430         Reported by Tom G. Christensen.
7431
7432 2011-10-09  Bruno Haible  <bruno@clisp.org>
7433
7434         rint: Determine RINT_LIBM correctly on AIX 7.
7435         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7436         directly, not only through a function pointer. Also accept an optional
7437         4th argument with extra code.
7438         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7439         rintf() call by gcc when optimizing.
7440
7441         mathfunc.m4: Refactor.
7442         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7443         m4 variable.
7444
7445 2011-10-09  Bruno Haible  <bruno@clisp.org>
7446
7447         rintl: Simplify for platforms where 'long double' == 'double'.
7448         * lib/rintl.c: Include <config.h>.
7449         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7450         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7451         time.
7452         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7453         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7454         * modules/rintl (Depends-on): Add rint. Update conditions.
7455
7456 2011-10-09  Bruno Haible  <bruno@clisp.org>
7457
7458         roundl: Simplify for platforms where 'long double' == 'double'.
7459         * lib/roundl.c: Include <config.h>.
7460         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7461         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7462         time.
7463         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7464         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7465         * modules/roundl (Depends-on): Add round. Update conditions.
7466
7467 2011-10-09  Bruno Haible  <bruno@clisp.org>
7468
7469         truncl: Simplify for platforms where 'long double' == 'double'.
7470         * lib/truncl.c: Include <config.h>.
7471         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7472         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7473         time.
7474         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7475         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7476         * modules/truncl (Depends-on): Add trunc. Update conditions.
7477
7478 2011-10-09  Bruno Haible  <bruno@clisp.org>
7479
7480         ceill: Simplify for platforms where 'long double' == 'double'.
7481         * lib/ceill.c: Include <config.h>.
7482         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7483         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7484         time.
7485         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7486         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7487         * modules/ceill (Depends-on): Add ceil. Update conditions.
7488
7489 2011-10-09  Bruno Haible  <bruno@clisp.org>
7490
7491         floorl: Simplify for platforms where 'long double' == 'double'.
7492         * lib/floorl.c: Include <config.h>.
7493         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7494         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7495         time.
7496         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7497         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7498         * modules/floorl (Depends-on): Add floor. Update conditions.
7499
7500 2011-10-09  Bruno Haible  <bruno@clisp.org>
7501
7502         rint: Fix ordering constraints.
7503         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7504         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7505         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7506
7507 2011-10-09  Bruno Haible  <bruno@clisp.org>
7508
7509         copysignl: Simplify for platforms where 'long double' == 'double'.
7510         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7511         alternative.
7512         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7513         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7514         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7515
7516 2011-10-09  Bruno Haible  <bruno@clisp.org>
7517
7518         Tests for module 'rintl'.
7519         * modules/rintl-tests: New file.
7520         * tests/test-rintl.c: New file.
7521
7522         New module 'rintl'.
7523         * lib/math.in.h (rintl): New declaration.
7524         * lib/rintl.c: New file.
7525         * m4/rintl.m4: New file.
7526         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7528         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7529         * modules/rintl: New file.
7530         * tests/test-math-c++.cc: Check the declaration of rintl.
7531         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7532         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7533         * doc/posix-functions/rintl.texi: Mention the new module.
7534
7535 2011-10-09  Bruno Haible  <bruno@clisp.org>
7536
7537         Tests for module 'rintf'.
7538         * modules/rintf-tests: New file.
7539         * tests/test-rintf.c: New file.
7540
7541         New module 'rintf'.
7542         * lib/math.in.h (rintf): New declaration.
7543         * lib/rintf.c: New file.
7544         * m4/rintf.m4: New file.
7545         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7547         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7548         * modules/rintf: New file.
7549         * tests/test-math-c++.cc: Check the declaration of rintf.
7550         * doc/posix-functions/rintf.texi: Mention the new module.
7551
7552 2011-10-09  Bruno Haible  <bruno@clisp.org>
7553
7554         rint: Support for MSVC.
7555         * lib/math.in.h (rint): New declaration.
7556         * lib/rint.c: New file.
7557         * m4/rint.m4: New file.
7558         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7560         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7561         * modules/rint (Description): Fix.
7562         (Files): Add lib/rint.c, m4/rint.m4.
7563         (Depends-on): Add math.
7564         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7565         gl_MATH_MODULE_INDICATOR.
7566         * tests/test-math-c++.cc: Check the declaration of rint.
7567         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7568         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7569         * doc/posix-functions/rint.texi: Mention the replacement provided by
7570         the module.
7571
7572         rint tests: More tests.
7573         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7574         minus-zero.h, infinity.h, nan.h.
7575         (main): Skip the test if the current rounding mode is not standard. Add
7576         tests for negative numbers, minus zero, infinity, NaN.
7577         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7578         tests/nan.h.
7579         (Depends-on): Add isnand-nolibm.
7580
7581 2011-10-09  Bruno Haible  <bruno@clisp.org>
7582
7583         Tests for module 'copysignl'.
7584         * modules/copysignl-tests: New file.
7585         * tests/test-copysignl.c: New file.
7586
7587         New module 'copysignl'.
7588         * lib/math.in.h (copysignl): New declaration.
7589         * lib/copysignl.c: New file.
7590         * m4/copysignl.m4: New file.
7591         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7593         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7594         HAVE_COPYSIGNL.
7595         * modules/copysignl: New file.
7596         * tests/test-math-c++.cc: Check the declaration of copysignl.
7597         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7598         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7599         * doc/posix-functions/copysignl.texi: Mention the new module.
7600
7601 2011-10-09  Bruno Haible  <bruno@clisp.org>
7602
7603         Tests for module 'copysignf'.
7604         * modules/copysignf-tests: New file.
7605         * tests/test-copysignf.c: New file.
7606
7607         New module 'copysignf'.
7608         * lib/math.in.h (copysignf): New declaration.
7609         * lib/copysignf.c: New file.
7610         * m4/copysignf.m4: New file.
7611         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7613         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7614         HAVE_COPYSIGNF.
7615         * modules/copysignf: New file.
7616         * tests/test-math-c++.cc: Check the declaration of copysignf.
7617         * doc/posix-functions/copysignf.texi: Mention the new module.
7618
7619 2011-10-09  Bruno Haible  <bruno@clisp.org>
7620
7621         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7622         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7623         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7624         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7625         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7626         gl_SIGNAL_H_DEFAULTS.
7627
7628 2011-10-09  Bruno Haible  <bruno@clisp.org>
7629
7630         poll: Make macro safer.
7631         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7632         ac_cv_header_poll_h is not set.
7633
7634 2011-10-09  Bruno Haible  <bruno@clisp.org>
7635
7636         copysign: Provide replacement.
7637         * lib/math.in.h (copysign): New declaration.
7638         * lib/copysign.c: New file.
7639         * m4/copysign.m4: New file.
7640         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7642         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7643         HAVE_COPYSIGN.
7644         * modules/copysign (Description): Clarify.
7645         (Files): Add lib/copysign.c, m4/copysign.m4.
7646         (Depends-on): Add math, signbit.
7647         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7648         gl_MATH_MODULE_INDICATOR.
7649         * tests/test-math-c++.cc: Check the declaration of copysign.
7650         * doc/posix-functions/copysign.texi: Mention the effects of the module
7651         on Minix and MSVC.
7652
7653 2011-10-09  Bruno Haible  <bruno@clisp.org>
7654
7655         isinf: Ensure macro on AIX 5.1.
7656         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7657         macro.
7658         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7659
7660 2011-10-09  Bruno Haible  <bruno@clisp.org>
7661
7662         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7663         * modules/snprintf-posix-tests (configure.ac): Require
7664         gl_LONG_DOUBLE_VS_DOUBLE.
7665         * modules/sprintf-posix-tests (configure.ac): Likewise.
7666         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7667         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7668         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7669         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7670         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7671         tests on platforms where 'long double' is the same as 'double'.
7672         * tests/test-sprintf-posix.h (test_function): Likewise.
7673         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7674         * tests/test-vasprintf-posix.c (test_function): Likewise.
7675
7676         *printf: Fix for platforms where 'long double' == 'double'.
7677         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7678         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7679         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7680         * modules/fprintf-posix (Files): Likewise.
7681         * modules/obstack-printf-posix (Files): Likewise.
7682         * modules/snprintf-posix (Files): Likewise.
7683         * modules/sprintf-posix (Files): Likewise.
7684         * modules/vasnprintf (Files): Likewise.
7685         * modules/vasnprintf-posix (Files): Likewise.
7686         * modules/vasprintf-posix (Files): Likewise.
7687         * modules/vdprintf-posix (Files): Likewise.
7688         * modules/vfprintf-posix (Files): Likewise.
7689         * modules/vsnprintf-posix (Files): Likewise.
7690         * modules/vsprintf-posix (Files): Likewise.
7691         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7692         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7693         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7694         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7695         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7696         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7697         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7698
7699         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7700         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7701         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7702         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7703         'long double'.
7704         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7705
7706         isinf: Fix for platforms where 'long double' == 'double'.
7707         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7708         Don't blindly assume 80-bit 'long double'.
7709
7710         isfinite: Fix for platforms where 'long double' == 'double'.
7711         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7712         Don't blindly assume 80-bit 'long double'.
7713
7714         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7715         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7716         * modules/isfinite-tests (configure.ac): Require
7717         gl_LONG_DOUBLE_VS_DOUBLE.
7718         * modules/isinf-tests (configure.ac): Likewise.
7719         * modules/isnan-tests (configure.ac): Likewise.
7720         * modules/isnanl-tests (configure.ac): Likewise.
7721         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7722         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7723         tests on platforms where 'long double' is the same as 'double'.
7724         * tests/test-isinf.c (test_isinfl): Likewise.
7725         * tests/test-isnan.c (test_long_double): Likewise.
7726         * tests/test-isnanl.h (main): Likewise.
7727
7728 2011-10-08  Bruno Haible  <bruno@clisp.org>
7729
7730         Tests for module 'tanhf'.
7731         * modules/tanhf-tests: New file.
7732         * tests/test-tanhf.c: New file.
7733
7734         New module 'tanhf'.
7735         * lib/math.in.h (tanhf): New declaration.
7736         * lib/tanhf.c: New file.
7737         * m4/tanhf.m4: New file.
7738         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7739         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7740         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7741         * modules/tanhf: New file.
7742         * tests/test-math-c++.cc: Check the declaration of tanhf.
7743         * doc/posix-functions/tanhf.texi: Mention the new module.
7744
7745         tanh: Use a .m4 file.
7746         * m4/tanh.m4: New file.
7747         * modules/tanh (Files): Add it.
7748         (configure.ac): Just invoke gl_FUNC_TANH.
7749
7750 2011-10-08  Bruno Haible  <bruno@clisp.org>
7751
7752         Tests for module 'coshf'.
7753         * modules/coshf-tests: New file.
7754         * tests/test-coshf.c: New file.
7755
7756         New module 'coshf'.
7757         * lib/math.in.h (coshf): New declaration.
7758         * lib/coshf.c: New file.
7759         * m4/coshf.m4: New file.
7760         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7762         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7763         * modules/coshf: New file.
7764         * tests/test-math-c++.cc: Check the declaration of coshf.
7765         * doc/posix-functions/coshf.texi: Mention the new module.
7766
7767         cosh: Use a .m4 file.
7768         * m4/cosh.m4: New file.
7769         * modules/cosh (Files): Add it.
7770         (configure.ac): Just invoke gl_FUNC_COSH.
7771
7772 2011-10-08  Bruno Haible  <bruno@clisp.org>
7773
7774         Tests for module 'sinhf'.
7775         * modules/sinhf-tests: New file.
7776         * tests/test-sinhf.c: New file.
7777
7778         New module 'sinhf'.
7779         * lib/math.in.h (sinhf): New declaration.
7780         * lib/sinhf.c: New file.
7781         * m4/sinhf.m4: New file.
7782         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7784         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7785         * modules/sinhf: New file.
7786         * tests/test-math-c++.cc: Check the declaration of sinhf.
7787         * doc/posix-functions/sinhf.texi: Mention the new module.
7788
7789         sinh: Use a .m4 file.
7790         * m4/sinh.m4: New file.
7791         * modules/sinh (Files): Add it.
7792         (configure.ac): Just invoke gl_FUNC_SINH.
7793
7794 2011-10-08  Bruno Haible  <bruno@clisp.org>
7795
7796         Tests for module 'atan2f'.
7797         * modules/atan2f-tests: New file.
7798         * tests/test-atan2f.c: New file.
7799
7800         New module 'atan2f'.
7801         * lib/math.in.h (atan2f): New declaration.
7802         * lib/atan2f.c: New file.
7803         * m4/atan2f.m4: New file.
7804         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7806         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7807         * modules/atan2f: New file.
7808         * tests/test-math-c++.cc: Check the declaration of atan2f.
7809         * doc/posix-functions/atan2f.texi: Mention the new module.
7810
7811         atan2: Use a .m4 file.
7812         * m4/atan2.m4: New file.
7813         * modules/atan2 (Files): Add it.
7814         (configure.ac): Just invoke gl_FUNC_ATAN2.
7815
7816 2011-10-08  Bruno Haible  <bruno@clisp.org>
7817
7818         Tests for module 'atanf'.
7819         * modules/atanf-tests: New file.
7820         * tests/test-atanf.c: New file.
7821
7822         New module 'atanf'.
7823         * lib/math.in.h (atanf): New declaration.
7824         * lib/atanf.c: New file.
7825         * m4/atanf.m4: New file.
7826         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7828         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7829         * modules/atanf: New file.
7830         * tests/test-math-c++.cc: Check the declaration of atanf.
7831         * doc/posix-functions/atanf.texi: Mention the new module.
7832
7833         atan: Use a .m4 file.
7834         * m4/atan.m4: New file.
7835         * modules/atan (Files): Add it.
7836         (configure.ac): Just invoke gl_FUNC_ATAN.
7837
7838 2011-10-08  Bruno Haible  <bruno@clisp.org>
7839
7840         Tests for module 'acosf'.
7841         * modules/acosf-tests: New file.
7842         * tests/test-acosf.c: New file.
7843
7844         New module 'acosf'.
7845         * lib/math.in.h (acosf): New declaration.
7846         * lib/acosf.c: New file.
7847         * m4/acosf.m4: New file.
7848         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7850         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7851         * modules/acosf: New file.
7852         * tests/test-math-c++.cc: Check the declaration of acosf.
7853         * doc/posix-functions/acosf.texi: Mention the new module.
7854
7855         acos: Use a .m4 file.
7856         * m4/acos.m4: New file.
7857         * modules/acos (Files): Add it.
7858         (configure.ac): Just invoke gl_FUNC_ACOS.
7859
7860 2011-10-08  Bruno Haible  <bruno@clisp.org>
7861
7862         Tests for module 'asinf'.
7863         * modules/asinf-tests: New file.
7864         * tests/test-asinf.c: New file.
7865
7866         New module 'asinf'.
7867         * lib/math.in.h (asinf): New declaration.
7868         * lib/asinf.c: New file.
7869         * m4/asinf.m4: New file.
7870         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7872         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7873         * modules/asinf: New file.
7874         * tests/test-math-c++.cc: Check the declaration of asinf.
7875         * doc/posix-functions/asinf.texi: Mention the new module.
7876
7877         asin: Use a .m4 file.
7878         * m4/asin.m4: New file.
7879         * modules/asin (Files): Add it.
7880         (configure.ac): Just invoke gl_FUNC_ASIN.
7881
7882 2011-10-08  Bruno Haible  <bruno@clisp.org>
7883
7884         Tests for module 'tanf'.
7885         * modules/tanf-tests: New file.
7886         * tests/test-tanf.c: New file.
7887
7888         New module 'tanf'.
7889         * lib/math.in.h (tanf): New declaration.
7890         * lib/tanf.c: New file.
7891         * m4/tanf.m4: New file.
7892         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7894         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7895         * modules/tanf: New file.
7896         * tests/test-math-c++.cc: Check the declaration of tanf.
7897         * doc/posix-functions/tanf.texi: Mention the new module.
7898
7899         tan: Use a .m4 file.
7900         * m4/tan.m4: New file.
7901         * modules/tan (Files): Add it.
7902         (configure.ac): Just invoke gl_FUNC_TAN.
7903
7904 2011-10-08  Bruno Haible  <bruno@clisp.org>
7905
7906         Tests for module 'cosf'.
7907         * modules/cosf-tests: New file.
7908         * tests/test-cosf.c: New file.
7909
7910         New module 'cosf'.
7911         * lib/math.in.h (cosf): New declaration.
7912         * lib/cosf.c: New file.
7913         * m4/cosf.m4: New file.
7914         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7916         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7917         * modules/cosf: New file.
7918         * tests/test-math-c++.cc: Check the declaration of cosf.
7919         * doc/posix-functions/cosf.texi: Mention the new module.
7920
7921         cos: Use a .m4 file.
7922         * m4/cos.m4: New file.
7923         * modules/cos (Files): Add it.
7924         (configure.ac): Just invoke gl_FUNC_COS.
7925
7926 2011-10-08  Bruno Haible  <bruno@clisp.org>
7927
7928         Tests for module 'sinf'.
7929         * modules/sinf-tests: New file.
7930         * tests/test-sinf.c: New file.
7931
7932         New module 'sinf'.
7933         * lib/math.in.h (sinf): New declaration.
7934         * lib/sinf.c: New file.
7935         * m4/sinf.m4: New file.
7936         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7938         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7939         * modules/sinf: New file.
7940         * tests/test-math-c++.cc: Check the declaration of sinf.
7941         * doc/posix-functions/sinf.texi: Mention the new module.
7942
7943         sin: Use a .m4 file.
7944         * m4/sin.m4: New file.
7945         * modules/sin (Files): Add it.
7946         (configure.ac): Just invoke gl_FUNC_SIN.
7947
7948 2011-10-08  Bruno Haible  <bruno@clisp.org>
7949
7950         Tests for module 'powf'.
7951         * modules/powf-tests: New file.
7952         * tests/test-powf.c: New file.
7953
7954         New module 'powf'.
7955         * lib/math.in.h (powf): New declaration.
7956         * lib/powf.c: New file.
7957         * m4/powf.m4: New file.
7958         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7960         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7961         * modules/powf: New file.
7962         * tests/test-math-c++.cc: Check the declaration of powf.
7963         * doc/posix-functions/powf.texi: Mention the new module.
7964
7965         pow: Use a .m4 file.
7966         * m4/pow.m4: New file.
7967         * modules/pow (Files): Add it.
7968         (configure.ac): Just invoke gl_FUNC_POW.
7969
7970 2011-10-08  Bruno Haible  <bruno@clisp.org>
7971
7972         Tests for module 'log10f'.
7973         * modules/log10f-tests: New file.
7974         * tests/test-log10f.c: New file.
7975
7976         New module 'log10f'.
7977         * lib/math.in.h (log10f): New declaration.
7978         * lib/log10f.c: New file.
7979         * m4/log10f.m4: New file.
7980         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7981         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7982         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7983         * modules/log10f: New file.
7984         * tests/test-math-c++.cc: Check the declaration of log10f.
7985         * doc/posix-functions/log10f.texi: Mention the new module.
7986
7987         log10: Use a .m4 file.
7988         * m4/log10.m4: New file.
7989         * modules/log10 (Files): Add it.
7990         (configure.ac): Just invoke gl_FUNC_LOG10.
7991
7992 2011-10-08  Bruno Haible  <bruno@clisp.org>
7993
7994         Tests for module 'logf'.
7995         * modules/logf-tests: New file.
7996         * tests/test-logf.c: New file.
7997
7998         New module 'logf'.
7999         * lib/math.in.h (logf): New declaration.
8000         * lib/logf.c: New file.
8001         * m4/logf.m4: New file.
8002         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8004         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8005         * modules/logf: New file.
8006         * tests/test-math-c++.cc: Check the declaration of logf.
8007         * doc/posix-functions/logf.texi: Mention the new module.
8008
8009         log: Use a .m4 file.
8010         * m4/log.m4: New file.
8011         * modules/log (Files): Add it.
8012         (configure.ac): Just invoke gl_FUNC_LOG.
8013
8014 2011-10-08  Bruno Haible  <bruno@clisp.org>
8015
8016         Tests for module 'expf'.
8017         * modules/expf-tests: New file.
8018         * tests/test-expf.c: New file.
8019
8020         New module 'expf'.
8021         * lib/math.in.h (expf): New declaration.
8022         * lib/expf.c: New file.
8023         * m4/expf.m4: New file.
8024         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8026         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8027         * modules/expf: New file.
8028         * tests/test-math-c++.cc: Check the declaration of expf.
8029         * doc/posix-functions/expf.texi: Mention the new module.
8030
8031         exp: Use a .m4 file.
8032         * m4/exp.m4: New file.
8033         * modules/exp (Files): Add it.
8034         (configure.ac): Just invoke gl_FUNC_EXP.
8035
8036 2011-10-08  Bruno Haible  <bruno@clisp.org>
8037
8038         Tests for module 'sqrtf'.
8039         * modules/sqrtf-tests: New file.
8040         * tests/test-sqrtf.c: New file.
8041
8042         New module 'sqrtf'.
8043         * lib/math.in.h (sqrtf): New declaration.
8044         * lib/sqrtf.c: New file.
8045         * m4/sqrtf.m4: New file.
8046         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8048         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8049         * modules/sqrtf: New file.
8050         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8051         * doc/posix-functions/sqrtf.texi: Mention the new module.
8052
8053 2011-10-08  Bruno Haible  <bruno@clisp.org>
8054
8055         Tests: Avoid link failures w.r.t. libintl.
8056         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8057         $(LIBINTL).
8058         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8059         $(LIBINTL).
8060         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8061         against $(LIBINTL).
8062         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8063         $(LIBINTL).
8064         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8065         $(LIBINTL).
8066         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8067
8068 2011-10-08  Bruno Haible  <bruno@clisp.org>
8069
8070         pow tests: Defeat compiler optimizations.
8071         * tests/test-pow.c (main): Assign arguments to x and y before use.
8072
8073 2011-10-08  Bruno Haible  <bruno@clisp.org>
8074
8075         gnulib-tool: Improve last commit.
8076         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8077         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8078         ignore dependencies that are not among the modules list.
8079
8080 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8081
8082         gnulib-tool: don't follow dependencies to avoided modules
8083         This fixes a bug that is related to the previous one.
8084         * gnulib-tool (func_modules_transitive_closure)
8085         (func_emit_autoconf_snippets):
8086         Check whether a dependency is acceptable before using it.
8087         (--extract-dependencies): Report an error if --avoid is also used,
8088         since this combination of options is not yet supported.
8089
8090         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8091         Problem reported by Peter Dyballa in
8092         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8093         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8094         when echoing "$condition".
8095
8096 2011-10-07  Bruno Haible  <bruno@clisp.org>
8097
8098         Fix documentation about math functions on MacOS X.
8099         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8100         MacOS X 10.5.
8101         * doc/posix-functions/fdim.texi: Likewise.
8102         * doc/posix-functions/feclearexcept.texi: Likewise.
8103         * doc/posix-functions/fegetenv.texi: Likewise.
8104         * doc/posix-functions/fegetround.texi: Likewise.
8105         * doc/posix-functions/feholdexcept.texi: Likewise.
8106         * doc/posix-functions/feraiseexcept.texi: Likewise.
8107         * doc/posix-functions/fesetenv.texi: Likewise.
8108         * doc/posix-functions/fesetround.texi: Likewise.
8109         * doc/posix-functions/fetestexcept.texi: Likewise.
8110         * doc/posix-functions/feupdateenv.texi: Likewise.
8111         * doc/posix-functions/fmax.texi: Likewise.
8112         * doc/posix-functions/fmin.texi: Likewise.
8113         * doc/posix-functions/log2.texi: Likewise.
8114         * doc/posix-functions/modff.texi: Likewise.
8115         * doc/posix-functions/nan.texi: Likewise.
8116         * doc/posix-functions/nanf.texi: Likewise.
8117         * doc/posix-functions/nextafterf.texi: Likewise.
8118         * doc/posix-functions/remquo.texi: Likewise.
8119
8120 2011-10-07  Bruno Haible  <bruno@clisp.org>
8121
8122         modff: Drop assumption about library that defines modff.
8123         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8124         AC_CHECK_FUNCS.
8125         * modules/modff (Files): Add m4/mathfunc.m4.
8126
8127 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8128
8129         raise tests: Avoid a GCC warning.
8130         * tests/test-raise.c (handler): Use _Noreturn.
8131
8132 2011-10-07  Bruno Haible  <bruno@clisp.org>
8133
8134         Tests for module 'ldexpf'.
8135         * modules/ldexpf-tests: New file.
8136         * tests/test-ldexpf.c: New file.
8137
8138         New module 'ldexpf'.
8139         * lib/math.in.h (ldexpf): New declaration.
8140         * lib/ldexpf.c: New file.
8141         * m4/ldexpf.m4: New file.
8142         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8144         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8145         * modules/ldexpf: New file.
8146         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8147         * doc/posix-functions/ldexpf.texi: Mention the new module.
8148
8149 2011-10-06  Bruno Haible  <bruno@clisp.org>
8150
8151         frexpf: Work around problems on IRIX and mingw.
8152         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8154         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8155         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8156         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8157         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8158         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8159
8160 2011-10-06  Bruno Haible  <bruno@clisp.org>
8161
8162         fabsf: Drop assumption about library that defines fabsf.
8163         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8164         AC_CHECK_FUNCS.
8165         * modules/fabsf (Files): Add m4/mathfunc.m4.
8166
8167 2011-10-06  Bruno Haible  <bruno@clisp.org>
8168
8169         frexpf: Drop assumption about library that defines frexpf.
8170         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8171         'int *', 'float *', 'long double *', 'float', 'long double'.
8172         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8173         AC_CHECK_FUNCS.
8174         * modules/frexpf (Files): Add m4/mathfunc.m4.
8175
8176         Tests for module 'frexpf'.
8177         * modules/frexpf-tests: New file.
8178         * tests/test-frexpf.c: New file.
8179
8180         New module 'frexpf'.
8181         * lib/math.in.h (frexpf): New declaration.
8182         * lib/frexpf.c: New file.
8183         * m4/frexpf.m4: New file.
8184         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8186         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8187         * modules/frexpf: New file.
8188         * tests/test-math-c++.cc: Check the declaration of frexpf.
8189         * doc/posix-functions/frexpf.texi: Mention the new module.
8190
8191 2011-10-06  Bruno Haible  <bruno@clisp.org>
8192
8193         math: Sort function declarations of math.in.h.
8194         * lib/math.in.h (frexp, logb): Move declarations.
8195
8196 2011-10-05  Bruno Haible  <bruno@clisp.org>
8197
8198         Tests for module 'modff'.
8199         * modules/modff-tests: New file.
8200         * tests/test-modff.c: New file.
8201
8202         New module 'modff'.
8203         * lib/math.in.h (modff): New declaration.
8204         * lib/modff.c: New file.
8205         * m4/modff.m4: New file.
8206         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8208         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8209         * modules/modff: New file.
8210         * tests/test-math-c++.cc: Check the declaration of modff.
8211         * doc/posix-functions/modff.texi: Mention the new module.
8212
8213         modf tests: Make test sharper.
8214         * tests/test-modf.c (main): Strengthen upper bound.
8215
8216         modf: Use a .m4 file.
8217         * m4/modf.m4: New file.
8218         * modules/modf (Files): Add it.
8219         (configure.ac): Just invoke gl_FUNC_MODF.
8220
8221 2011-10-05  Bruno Haible  <bruno@clisp.org>
8222
8223         Tests for module 'fmodf'.
8224         * modules/fmodf-tests: New file.
8225         * tests/test-fmodf.c: New file.
8226
8227         New module 'fmodf'.
8228         * lib/math.in.h (fmodf): New declaration.
8229         * lib/fmodf.c: New file.
8230         * m4/fmodf.m4: New file.
8231         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8233         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8234         * modules/fmodf: New file.
8235         * tests/test-math-c++.cc: Check the declaration of fmodf.
8236         * doc/posix-functions/fmodf.texi: Mention the new module.
8237
8238         fmod: Use a .m4 file.
8239         * m4/fmod.m4: New file.
8240         * modules/fmod (Files): Add it.
8241         (configure.ac): Just invoke gl_FUNC_FMOD.
8242
8243 2011-10-05  Bruno Haible  <bruno@clisp.org>
8244
8245         Tests for module 'fabsf'.
8246         * modules/fabsf-tests: New file.
8247         * tests/test-fabsf.c: New file.
8248
8249         New module 'fabsf'.
8250         * lib/math.in.h (fabsf): New declaration.
8251         * lib/fabsf.c: New file.
8252         * m4/fabsf.m4: New file.
8253         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8255         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8256         * modules/fabsf: New file.
8257         * tests/test-math-c++.cc: Check the declaration of fabsf.
8258         * doc/posix-functions/fabsf.texi: Mention the new module.
8259
8260         fabs: Use a .m4 file.
8261         * m4/fabs.m4: New file.
8262         * modules/fabs (Files): Add it.
8263         (configure.ac): Just invoke gl_FUNC_FABS.
8264
8265 2011-10-05  Jim Meyering  <meyering@redhat.com>
8266
8267         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8268         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8269         ls -lL regression introduced in coreutils-8.12, it does so at the
8270         cost of an additional stat call in the common case.  Besides, now
8271         that the kernel change that prompted commit 95f7c57f has been reverted
8272         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8273         we have no use for commit 95f7c57f, "file-has-acl: use
8274         acl_extended_file_nofollow if available".
8275
8276 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8277
8278         file-has-acl: revert unintended change in behavior of ls -L
8279         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8280         derived from...
8281         (file_has_acl): ...code here.  Call it.
8282         This problem was introduced with 2011-07-22 commit 95f7c57f,
8283         "file-has-acl: use acl_extended_file_nofollow if available".
8284         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8285
8286 2011-10-03  Bruno Haible  <bruno@clisp.org>
8287
8288         poll: Avoid link errors on MSVC.
8289         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8290         * modules/poll (Depends-on): Add sockets.
8291         (Link): New section.
8292         * NEWS: Mention the change.
8293         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8294         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8295         $(LIB_POLL) instead of $(LIBSOCKET).
8296
8297 2011-10-03  Bruno Haible  <bruno@clisp.org>
8298
8299         sys_select tests: Fix link error on MSVC 9.
8300         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8301         with $(LIB_SELECT) instead of $(LIBSOCKET).
8302
8303 2011-10-03  Bruno Haible  <bruno@clisp.org>
8304
8305         sys_select: Fix compilation error on mingw.
8306         * lib/sys_select.in.h: On native Windows, include <io.h>.
8307
8308 2011-10-03  Bruno Haible  <bruno@clisp.org>
8309
8310         wmemset: Support for MSVC.
8311         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8312         whether wmemset() exists.
8313
8314 2011-10-03  Bruno Haible  <bruno@clisp.org>
8315
8316         wmemmove: Support for MSVC.
8317         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8318         whether wmemmove() exists.
8319
8320 2011-10-03  Bruno Haible  <bruno@clisp.org>
8321
8322         wmemcpy: Support for MSVC.
8323         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8324         whether wmemcpy() exists.
8325
8326 2011-10-03  Bruno Haible  <bruno@clisp.org>
8327
8328         wmemcmp: Support for MSVC.
8329         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8330         whether wmemcmp() exists.
8331
8332 2011-10-03  Bruno Haible  <bruno@clisp.org>
8333
8334         wmemchr: Support for MSVC.
8335         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8336         whether wmemchr() exists.
8337
8338 2011-10-03  Bruno Haible  <bruno@clisp.org>
8339
8340         glthread/*, strsignal: Support for MSVC.
8341         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8342         including <winsock.h> on MSVC 9.
8343         * lib/glthread/lock.h: Likewise.
8344         * lib/glthread/thread.h: Likewise.
8345         * lib/glthread/tls.h: Likewise.
8346         * lib/glthread/yield.h: Likewise.
8347         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8348         if HAVE_UNISTD_H is false.
8349         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8350
8351 2011-10-03  Bruno Haible  <bruno@clisp.org>
8352
8353         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8354         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8355         Set to 100000.
8356
8357 2011-10-03  Bruno Haible  <bruno@clisp.org>
8358
8359         acl: Fix specification.
8360         * lib/file-has-acl.c (file_has_acl): Fix specification.
8361
8362 2011-10-03  Bruno Haible  <bruno@clisp.org>
8363
8364         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8365         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8366         (compute_curr_prefix, shared_library_fullname,
8367         find_shared_library_fullname, get_shared_library_fullname, relocate):
8368         Use it together with PIC && INSTALLDIR.
8369         Reported by <jojelino@gmail.com>
8370         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8371
8372 2011-10-01  Jim Meyering  <meyering@redhat.com>
8373
8374         maint.mk: adjust a release-related rule not to require use of gzip
8375         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8376         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8377         projects that build only .tar.xz files.  Also fix an erroneous test.
8378
8379         test-linkat: don't leave behind a temporary file
8380         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8381         Otherwise, coreutils' "make distcheck" would fail with this:
8382           Only in /c/cu/tests/torture/coreutils/test/\
8383             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8384           make[2]: *** [my-distcheck] Error 1
8385
8386         float, math: add omitted file
8387         * lib/itold.c: Add file, required for yesterday's float change.
8388
8389 2011-10-01  Bruno Haible  <bruno@clisp.org>
8390
8391         isinf: Fix for OpenBSD/x86.
8392         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8393         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8394         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8395
8396 2011-10-01  Bruno Haible  <bruno@clisp.org>
8397
8398         isfinite: Fix syntax error in configure test.
8399         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8400
8401         isfinite: Fix typo.
8402         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8403         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8404
8405 2011-10-01  Bruno Haible  <bruno@clisp.org>
8406
8407         nonblocking tests: Fix test failure on Linux/IA-64.
8408         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8409         Set to 270000.
8410
8411 2011-10-01  Bruno Haible  <bruno@clisp.org>
8412
8413         mkfifoat tests: Fix a test failure on mingw.
8414         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8415         with error ENOSYS.
8416
8417 2011-09-30  Bruno Haible  <bruno@clisp.org>
8418
8419         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8420         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8421         'long double'. Set REPLACE_ITOLD.
8422         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8423         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8424         * lib/itold.c: New file.
8425         * modules/float (Files): Add lib/itold.c.
8426         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8427         (Makefile.am): Substitute REPLACE_ITOLD.
8428         * modules/math (Depends-on): Add float.
8429         (Makefile.am): Substitute REPLACE_ITOLD.
8430         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8431         * doc/posix-headers/math.texi: Likewise.
8432         * doc/posix-functions/logl.texi: Likewise.
8433
8434 2011-09-30  Bruno Haible  <bruno@clisp.org>
8435
8436         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8437         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8438         Set to 140000.
8439
8440 2011-09-30  Bruno Haible  <bruno@clisp.org>
8441
8442         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8443         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8444         invocation, say "right after AC_PROG_CC_STDC", not "right after
8445         AC_PROG_CC".
8446         Reported by Gary V. Vaughan <gary@gnu.org>.
8447
8448 2011-09-30  Bruno Haible  <bruno@clisp.org>
8449
8450         Centralize C99 requirement.
8451         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8452         * modules/stdarg (configure.ac-early): Invoke it instead of
8453         AC_PROG_CC_STDC.
8454         Reported by Gary V. Vaughan and Paul Eggert.
8455
8456 2011-09-29  Bruno Haible  <bruno@clisp.org>
8457
8458         float: Fix LDBL_MAX value on Linux/PowerPC.
8459         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8460         on Linux/PowerPC.
8461         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8462         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8463         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8464         platform.
8465         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8466
8467 2011-09-29  Bruno Haible  <bruno@clisp.org>
8468
8469         doc: Improve doc about gl_EARLY.
8470         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8471         AC_PROG_CC_STDC invocation.
8472         Reported by Gary V. Vaughan <gary@gnu.org>.
8473
8474 2011-09-28  Bruno Haible  <bruno@clisp.org>
8475
8476         fgetc, fputc, fread, fwrite tests: Fix link error.
8477         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8478         on non-MSVC platforms.
8479         * tests/test-fputc.c (main): Likewise.
8480         * tests/test-fread.c (main): Likewise.
8481         * tests/test-fwrite.c (main): Likewise.
8482         Reported by Jim Meyering.
8483
8484 2011-09-27  Bruno Haible  <bruno@clisp.org>
8485
8486         fputc, fwrite tests: Avoid test failure on MSVC.
8487         * tests/test-fgetc.c: Include msvc-inval.h.
8488         (main): Invoke gl_msvc_inval_ensure_handler.
8489         * tests/test-fputc.c: Include msvc-inval.h.
8490         (main): Invoke gl_msvc_inval_ensure_handler.
8491         * tests/test-fread.c: Include msvc-inval.h.
8492         (main): Invoke gl_msvc_inval_ensure_handler.
8493         * tests/test-fwrite.c: Include msvc-inval.h.
8494         (main): Invoke gl_msvc_inval_ensure_handler.
8495         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8496         * modules/fputc-tests (Depends-on): Likewise.
8497         * modules/fread-tests (Depends-on): Likewise.
8498         * modules/fwrite-tests (Depends-on): Likewise.
8499
8500 2011-09-27  Bruno Haible  <bruno@clisp.org>
8501
8502         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8503         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8504         (raise): Remove older, duplicated declaration.
8505         (_gl_raise_SIGPIPE): New declaration.
8506         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8507         (rpl_raise): Remove function.
8508         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8509         a gnulib-defined SIGPIPE here.
8510         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8511         'sigprocmask' has detected missing signal-blocking and the module
8512         'sigpipe' is enabled.
8513         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8514
8515 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8516
8517         base64-tests: avoid memory leak
8518         * tests/test-base64.c (main): Plug memory leak.
8519
8520         base32: new module
8521         * modules/base32: New module.
8522         * lib/base32.c: New file.
8523         * lib/base32.h: Likewise.
8524         * m4/base32.m4: Likewise.
8525         * modules/base32-tests: New test.
8526         * tests/test-base32.c: Likewise.
8527         * MODULES.html.sh (Misc): Mention it.
8528
8529 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8530
8531         gnulib: use more-standard license notice wording
8532         * gnulib-tool (func_emit_copyright_notice): When emitting a
8533         license notice into a file, use the standard wording as suggested
8534         by the current information for GNU maintainers, except say "file"
8535         rather than "program".  The new wording gives a license version
8536         number, which addresses an issue raised by Glenn Morris in
8537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8538         * m4/onceonly.m4: Use that same wording here, too.
8539
8540         dup2: minor simplification
8541         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8542         as lib/dup2.c no longer uses 'inline'.
8543
8544 2011-09-25  Bruno Haible  <bruno@clisp.org>
8545
8546         strings: Fix compilation error on MSVC.
8547         * lib/strings.in.h: Include <stddef.h> for size_t.
8548
8549 2011-09-25  Bruno Haible  <bruno@clisp.org>
8550
8551         fflush et al.: Document limitation on MSVC.
8552         * doc/posix-functions/fflush.texi: Document possible crash in handling
8553         mode other than DEFAULT_HANDLING.
8554         * doc/posix-functions/fgetc.texi: Likewise.
8555         * doc/posix-functions/fputc.texi: Likewise.
8556         * doc/posix-functions/fread.texi: Likewise.
8557         * doc/posix-functions/fwrite.texi: Likewise.
8558
8559 2011-09-25  Bruno Haible  <bruno@clisp.org>
8560
8561         msvc-inval: Allow three invalid parameter handling modes.
8562         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8563         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8564         macros.
8565         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8566         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8567         SANE_LIBRARY_HANDLING as a no-op.
8568         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8569         <stdlib.h>.
8570         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8571
8572 2011-09-25  Bruno Haible  <bruno@clisp.org>
8573
8574         msvc-inval: Make handler multithread-safe.
8575         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8576         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8577         declarations.
8578         (gl_msvc_inval_current): New declaration.
8579         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8580         Operate on the structure returned by gl_msvc_inval_current().
8581         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8582         Remove varaiables.
8583         (tls_index, tls_initialized): New variables.
8584         (not_per_thread): New variable.
8585         (gl_msvc_inval_current): New function.
8586         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8587         returned by gl_msvc_inval_current().
8588
8589 2011-09-25  Bruno Haible  <bruno@clisp.org>
8590
8591         msvc-inval: Install handler globally.
8592         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8593         !_MSC_VER.
8594         (gl_msvc_invalid_parameter_handler): Remove declaration.
8595         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8596         declarations.
8597         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8598         Install the handler globally, don't uninstall it.
8599         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8600         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8601         currently valid, call RaiseException instead.
8602         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8603         for !_MSC_VER.
8604
8605 2011-09-25  Bruno Haible  <bruno@clisp.org>
8606
8607         strerror_r-posix: Fix for MSVC 9.
8608         * lib/strerror_r.c (local_snprintf): New function.
8609         (snprintf): Define to local_snprintf, not to _snprintf.
8610
8611 2011-09-25  Bruno Haible  <bruno@clisp.org>
8612
8613         ftruncate: Support for MSVC 9.
8614         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8615         (chsize_nothrow): New function.
8616         (chsize): Redefine as a macro.
8617         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8618         * modules/ftruncate (Depends-on): Add msvc-inval.
8619
8620 2011-09-25  Bruno Haible  <bruno@clisp.org>
8621
8622         New module 'fstat'.
8623         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8624         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8625         * lib/fchdir.c (rpl_fstat): Remove function.
8626         * m4/fstat.m4: New file.
8627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8628         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8629         declared.
8630         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8631         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8632         * modules/fstat: New file.
8633         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8634         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8635         is set.
8636         * doc/posix-functions/fstat.texi: Mention the new module and the
8637         problem on MSVC.
8638         * NEWS: Mention the change.
8639         * modules/acl (Depends-on): Add fstat.
8640         * modules/chdir-safer (Depends-on): Likewise.
8641         * modules/chown (Depends-on): Likewise.
8642         * modules/copy-file (Depends-on): Likewise.
8643         * modules/fchdir (Depends-on): Likewise.
8644         * modules/fdopendir (Depends-on): Likewise.
8645         * modules/fopen (Depends-on): Likewise.
8646         * modules/fts (Depends-on): Likewise.
8647         * modules/getcwd (Depends-on): Likewise.
8648         * modules/isapipe (Depends-on): Likewise.
8649         * modules/linkat (Depends-on): Likewise.
8650         * modules/lseek (Depends-on): Likewise.
8651         * modules/mkdir-p (Depends-on): Likewise.
8652         * modules/open (Depends-on): Likewise.
8653         * modules/openat (Depends-on): Likewise.
8654         * modules/read-file (Depends-on): Likewise.
8655         * modules/renameat (Depends-on): Likewise.
8656         * modules/utimens (Depends-on): Likewise.
8657
8658 2011-09-25  Bruno Haible  <bruno@clisp.org>
8659
8660         linkat: Fix compilation on MSVC 9.
8661         * lib/linkat.c: Don't include <stdint.h>.
8662
8663 2011-09-25  Bruno Haible  <bruno@clisp.org>
8664
8665         fclose: Support for MSVC 9.
8666         * lib/fclose.c: Include msvc-inval.h.
8667         (fclose_nothrow): New function.
8668         (rpl_fclose): Use it.
8669         * modules/fclose (Depends-on): Add msvc-inval.
8670         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8671
8672 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8673
8674         dup2: minor simplifications
8675         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8676         that it's a performance win.
8677         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8678         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8679
8680 2011-09-24  Jim Meyering  <meyering@redhat.com>
8681
8682         test-futimens: avoid a warning from gcc -Wshadow
8683         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8684         to avoid a shadowing warning.
8685
8686 2011-09-24  Bruno Haible  <bruno@clisp.org>
8687
8688         fdopen: Support for MSVC 9.
8689         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8690         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8691         * lib/fdopen.c: Include msvc-inval.h.
8692         (fdopen_nothrow): New function.
8693         (rpl_fdopen): Use it.
8694         * modules/fdopen (Depends-on): Add msvc-inval.
8695         * modules/fclose-tests (Depends-on): Add fdopen.
8696         * modules/fflush-tests (Depends-on): Likewise.
8697         * modules/fgetc-tests (Depends-on): Likewise.
8698         * modules/fputc-tests (Depends-on): Likewise.
8699         * modules/fread-tests (Depends-on): Likewise.
8700         * modules/freopen-tests (Depends-on): Likewise.
8701         * modules/fseeko-tests (Depends-on): Likewise.
8702         * modules/ftello-tests (Depends-on): Likewise.
8703         * modules/fwrite-tests  (Depends-on): Likewise.
8704         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8705
8706 2011-09-24  Bruno Haible  <bruno@clisp.org>
8707
8708         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8709         * modules/fgetc-tests (Depends-on): Add unistd.
8710         * modules/fputc-tests (Depends-on): Likewise.
8711         * modules/fread-tests (Depends-on): Likewise.
8712         * modules/fwrite-tests (Depends-on): Likewise.
8713
8714 2011-09-24  Bruno Haible  <bruno@clisp.org>
8715
8716         dup: Simplify autoconf test.
8717         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8718         on gl_MSVC_INVAL's result.
8719
8720 2011-09-24  Bruno Haible  <bruno@clisp.org>
8721
8722         Tests for function fwrite().
8723         * modules/fwrite-tests: New file.
8724         * tests/test-fwrite.c: New file.
8725         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8726
8727         Tests for function fread().
8728         * modules/fread-tests: New file.
8729         * tests/test-fread.c: New file.
8730         * modules/stdio-tests (Depends-on): Add fread-tests.
8731
8732         Activate fputc tests.
8733         * modules/stdio-tests (Depends-on): Add fputc-tests.
8734
8735         Enhance fgetc, fputc tests.
8736         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8737         * tests/test-fputc.c (main): Likewise.
8738
8739 2011-09-24  Bruno Haible  <bruno@clisp.org>
8740
8741         write: Support for MSVC 9.
8742         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8743         is not 1.
8744         * lib/write.c (write_nothrow): New function.
8745         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8746         not 1. Use write_nothrow.
8747         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8748         invalid parameter handler.
8749         (gl_PREREQ_WRITE): New macro.
8750         * modules/write (Depends-on): Add msvc-inval.
8751         (configure.ac): Invoke gl_PREREQ_WRITE.
8752         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8753
8754 2011-09-24  Bruno Haible  <bruno@clisp.org>
8755
8756         read: Fix last commit.
8757         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8758
8759 2011-09-24  Bruno Haible  <bruno@clisp.org>
8760
8761         dup2: Fix last commit.
8762         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8763         (rpl_dup2): Disable fcntl workaround on native Windows.
8764
8765         sigprocmask: Make code safer.
8766         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8767         section that changes macro definitions for this compilation unit.
8768
8769 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8770
8771         dup2: clarify by coalescing Windows-specific material
8772         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8773         "msvc-nothrow.h"' to the Windows-specific section, so that the
8774         Emacs source need not contain these include files.
8775         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8776         Windows-specific fixes into this function rather than just the
8777         nothrow fix, as this shortens and clarifies the code.  Always
8778         define as a function, as that's a bit cleaner than having it be
8779         sometimes a function and sometimes a macro.
8780         (rpl_dup2): Move the Windows-specific stuff out of here and into
8781         ms_windows_dup2.  Don't protect the Haiku-related fix with
8782         "#if !defined __linux__", as the same code also works around
8783         a Linux kernel bug, and it doesn't add any system calls on any
8784         platform.  Add comment about FreeBSD 6.1.
8785
8786         sigprocmask: move #include directive
8787         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8788         Windows-specific section, so that the Emacs source need not
8789         contain msvc-inval.h.
8790
8791 2011-09-23  Bruno Haible  <bruno@clisp.org>
8792
8793         read: Support for MSVC 9.
8794         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8795         is not 1.
8796         * lib/read.c (read_nothrow): New function.
8797         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8798         read_nothrow.
8799         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8800         invalid parameter handler.
8801         (gl_PREREQ_READ): New macro.
8802         * modules/read (Depends-on): Add msvc-inval.
8803         (configure.ac): Invoke gl_PREREQ_READ.
8804         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8805
8806 2011-09-23  Bruno Haible  <bruno@clisp.org>
8807
8808         close: Support for MSVC 9.
8809         * lib/close.c: Include <errno.h>, msvc-inval.h.
8810         (close_nothrow): New function.
8811         (rpl_close): Use it.
8812         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8813         invalid parameter handler.
8814         * modules/close (Depends-on): Add msvc-inval.
8815         * modules/dup2-tests (Depends-on): Add close.
8816         * modules/dup3-tests (Depends-on): Likewise.
8817         * modules/fcntl-tests (Depends-on): Likewise.
8818         * modules/spawn-pipe-tests (Depends-on): Likewise.
8819         * modules/unistd-safer-tests (Depends-on): Likewise.
8820         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8821
8822 2011-09-23  Bruno Haible  <bruno@clisp.org>
8823
8824         New module 'dup'.
8825         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8826         Allow replacement.
8827         * lib/dup.c: New file.
8828         * lib/fchdir.c (rpl_dup): Remove function.
8829         * m4/dup.m4: New file.
8830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8831         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8832         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8833         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8834         * modules/dup: New file.
8835         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8836         'dup' module is in use.
8837         * modules/fdopendir (Depends-on): Add dup.
8838         * modules/fdutimensat-tests (Depends-on): Likewise.
8839         * modules/fts (Depends-on): Likewise.
8840         * modules/futimens-tests (Depends-on): Likewise.
8841         * modules/posix_spawnp-tests (Depends-on): Likewise.
8842         * modules/unistd-safer-tests (Depends-on): Likewise.
8843         * modules/utimens-tests (Depends-on): Likewise.
8844         * doc/posix-functions/dup.texi: Mention the new module and the problem
8845         on MSVC.
8846
8847 2011-09-23  Bruno Haible  <bruno@clisp.org>
8848
8849         getdtablesize: Support for MSVC 9.
8850         * lib/getdtablesize.c: Include msvc-inval.h.
8851         (_setmaxstdio_nothrow): New function.
8852         (_setmaxstdio): Redefine it.
8853         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8854         * modules/getdtablesize (Depends-on): Add msvc-inval.
8855         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8856
8857 2011-09-23  Bruno Haible  <bruno@clisp.org>
8858
8859         signal-h: Rename from signal.
8860         * modules/signal-h: Renamed from modules/signal.
8861         * modules/pthread_sigmask (Depends-on): Update.
8862         * modules/raise (Depends-on): Likewise.
8863         * modules/sigaction (Depends-on): Likewise.
8864         * modules/sigpipe (Depends-on): Likewise.
8865         * modules/sigprocmask (Depends-on): Likewise.
8866         * modules/sys_select (Depends-on): Likewise.
8867         * modules/signal-h-tests: Renamed from modules/signal-tests.
8868         (Files, Depends-on, Makefile.am): Update.
8869         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8870         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8871         (Files, Makefile.am): Update.
8872         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8873         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8874         * modules/signal: New placeholder file.
8875         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8876         * doc/posix-headers/signal.texi: Update.
8877         * NEWS: Mention the change.
8878
8879 2011-09-23  Bruno Haible  <bruno@clisp.org>
8880
8881         sigprocmask: Avoid crashes through signal() on MSVC 9.
8882         * lib/sigprocmask.c: Include msvc-inval.h.
8883         (signal_nothrow): New function.
8884         (signal): Redefine it.
8885         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8886         * modules/sigprocmask (Depends-on): Add msvc-inval.
8887         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8888
8889 2011-09-23  Bruno Haible  <bruno@clisp.org>
8890
8891         Tests for module 'raise'.
8892         * modules/raise-tests: New file.
8893         * tests/test-raise.c: New file.
8894
8895         raise: Support for MSVC.
8896         * lib/signal.in.h (raise): New declaration.
8897         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8898         for native Windows platforms.
8899         * m4/raise.m4: New file.
8900         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8901         HAVE_RAISE, REPLACE_RAISE.
8902         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8903         REPLACE_RAISE.
8904         * modules/raise (Status, Notice): Remove fields.
8905         (Files): Add m4/raise.m4.
8906         (Depends-on): Add signal, msvc-inval.
8907         (configure.ac): Use the common idioms.
8908         (Maintainer): Add me.
8909         * tests/test-signal-c++.cc: Check the signature of raise.
8910         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8911
8912 2011-09-23  Bruno Haible  <bruno@clisp.org>
8913
8914         pipe2: Fix compilation on pre-C99 compilers.
8915         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8916
8917 2011-09-23  Bruno Haible  <bruno@clisp.org>
8918
8919         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8920         * lib/msvc-nothrow.h: New file.
8921         * lib/msvc-nothrow.c: New file.
8922         * m4/msvc-nothrow.m4: New file.
8923         * modules/msvc-nothrow: New file.
8924         * lib/dup2.c: Include msvc-nothrow.h.
8925         (rpl_dup2): No need to protect _get_osfhandle call here.
8926         * lib/accept4.c: Include msvc-nothrow.h.
8927         * lib/error.c: Likewise.
8928         * lib/fcntl.c: Likewise.
8929         * lib/lseek.c: Likewise.
8930         * lib/nonblocking.c: Likewise.
8931         * lib/poll.c: Likewise.
8932         * lib/read.c: Likewise.
8933         * lib/select.c: Likewise.
8934         * lib/sockets.h: Likewise.
8935         * lib/sockets.c: Likewise.
8936         * lib/stdio-read.c: Likewise.
8937         * lib/stdio-write.c: Likewise.
8938         * lib/write.c: Likewise.
8939         * lib/w32sock.h: Likewise.
8940         * lib/w32spawn.h: Likewise.
8941         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8942         * lib/fsync.c: Likewise.
8943         * lib/isapipe.c: Likewise.
8944         * modules/dup2 (Depends-on): Add msvc-nothrow.
8945         * modules/accept4 (Depends-on): Likewise.
8946         * modules/error (Depends-on): Likewise.
8947         * modules/fcntl (Depends-on): Likewise.
8948         * modules/lseek (Depends-on): Likewise.
8949         * modules/nonblocking (Depends-on): Likewise.
8950         * modules/poll (Depends-on): Likewise.
8951         * modules/read (Depends-on): Likewise.
8952         * modules/select (Depends-on): Likewise.
8953         * modules/sockets (Depends-on): Likewise.
8954         * modules/sigpipe (Depends-on): Likewise.
8955         * modules/write (Depends-on): Likewise.
8956         * modules/accept (Depends-on): Likewise.
8957         * modules/bind (Depends-on): Likewise.
8958         * modules/connect (Depends-on): Likewise.
8959         * modules/gethostname (Depends-on): Likewise.
8960         * modules/getpeername (Depends-on): Likewise.
8961         * modules/getsockname (Depends-on): Likewise.
8962         * modules/getsockopt (Depends-on): Likewise.
8963         * modules/ioctl (Depends-on): Likewise.
8964         * modules/listen (Depends-on): Likewise.
8965         * modules/recv (Depends-on): Likewise.
8966         * modules/recvfrom (Depends-on): Likewise.
8967         * modules/send (Depends-on): Likewise.
8968         * modules/sendto (Depends-on): Likewise.
8969         * modules/setsockopt (Depends-on): Likewise.
8970         * modules/shutdown (Depends-on): Likewise.
8971         * modules/socket (Depends-on): Likewise.
8972         * modules/execute (Depends-on): Likewise.
8973         * modules/spawn-pipe (Depends-on): Likewise.
8974         * modules/flock (Depends-on): Likewise.
8975         * modules/fsync (Depends-on): Likewise.
8976         * modules/isapipe (Depends-on): Likewise.
8977         * tests/test-cloexec.c: Include msvc-nothrow.h.
8978         * tests/test-dup-safer.c: Likewise.
8979         * tests/test-dup2.c: Likewise.
8980         * tests/test-dup3.c: Likewise.
8981         * tests/test-fcntl.c: Likewise.
8982         * tests/test-pipe.c: Likewise.
8983         * tests/test-pipe2.c: Likewise.
8984         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8985         * modules/unistd-safer-tests (Depends-on): Likewise.
8986         * modules/dup2-tests (Depends-on): Likewise.
8987         * modules/dup3-tests (Depends-on): Likewise.
8988         * modules/fcntl-tests (Depends-on): Likewise.
8989         * modules/pipe-posix-tests (Depends-on): Likewise.
8990         * modules/pipe2-tests (Depends-on): Likewise.
8991
8992 2011-09-23  Bruno Haible  <bruno@clisp.org>
8993
8994         dup2: Make code more maintainable.
8995         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8996         (rpl_dup2): Use it.
8997         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8998         * modules/dup2 (configure.ac): Invoke it.
8999         Reported by Paul Eggert.
9000
9001 2011-09-23  Bruno Haible  <bruno@clisp.org>
9002
9003         msvc-inval: Fix compilation error.
9004         * lib/msvc-inval.h: Include <excpt.h>.
9005
9006 2011-09-23  Bruno Haible  <bruno@clisp.org>
9007
9008         mkdir: Tweak for MSVC 9.
9009         * lib/sys_stat.in.h: Update comments.
9010         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9011
9012         Tests for module 'chdir'.
9013         * modules/chdir-tests: New file.
9014         * tests/test-chdir.c: New file.
9015
9016         New module 'chdir'.
9017         * modules/chdir: New file.
9018         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9019         (chdir): New declaration.
9020         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9021         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9022         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9023         * tests/test-unistd-c++.cc: Check signature of chdir.
9024         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9025         * modules/chdir-long (Depends-on): Add chdir.
9026         * modules/fchdir (Depends-on): Likewise.
9027         * modules/rename (Depends-on): Likewise.
9028         * modules/savewd (Depends-on): Likewise.
9029
9030         rmdir: Support for mingw, MSVC 9.
9031         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9032         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9033
9034         getcwd: Tweak for MSVC 9.
9035         * lib/unistd.in.h: Update comments.
9036         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9037
9038 2011-09-22  Bruno Haible  <bruno@clisp.org>
9039
9040         strerror_r-posix: Avoid a link error on MSVC.
9041         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9042         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9043
9044 2011-09-22  Bruno Haible  <bruno@clisp.org>
9045
9046         select: Avoid link errors on MSVC.
9047         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9048         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9049         * modules/pselect (Link): Likewise.
9050         * NEWS: Mention the change.
9051         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9052         test-select-stdin against $(LIB_SELECT).
9053         * modules/pselect-tests (Makefile.am): Link test-pselect against
9054         $(LIB_SELECT).
9055
9056 2011-09-22  Bruno Haible  <bruno@clisp.org>
9057
9058         select: Avoid compilation error on MSVC.
9059         * lib/select.c: Don't include <stdbool.h>.
9060
9061 2011-09-21  Bruno Haible  <bruno@clisp.org>
9062
9063         Consolidate all uses of PATH_MAX in *.m4 files.
9064         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9065         macros.
9066         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9067         and gl_PATHMAX_SNIPPET.
9068         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9069         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9070         * modules/chdir-long (Files): Add m4/pathmax.m4.
9071         * modules/getcwd (Files): Likewise.
9072
9073 2011-09-21  Bruno Haible  <bruno@clisp.org>
9074
9075         ftruncate: Un-deprecate, concentrate on Win32 support.
9076         * modules/ftruncate (Status, Notice): Remove sections.
9077         (Depends-on): Add largefile.
9078         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9079         non-mingw platforms.
9080         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9081         include <io.h>.
9082         * modules/perror-tests (Depends-on): Add ftruncate.
9083         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9084         'ftruncate' module.
9085
9086 2011-09-21  Bruno Haible  <bruno@clisp.org>
9087
9088         Add dependencies to new dirent related modules.
9089         * modules/opendir (Depends-on): Add closedir.
9090         * modules/getcwd (Depends-on): Add opendir, closedir.
9091         * modules/dirent-safer-tests (Depends-on): Likewise.
9092         * modules/fdopendir-tests (Depends-on): Likewise.
9093         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9094         * modules/renameat-tests (Depends-on): Likewise.
9095
9096 2011-09-21  Bruno Haible  <bruno@clisp.org>
9097
9098         opendir: Avoid compilation error on mingw.
9099         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9100         * modules/opendir (Depends-on): Add unistd.
9101
9102 2011-09-21  Bruno Haible  <bruno@clisp.org>
9103
9104         ftruncate tests: Avoid a test failure on mingw.
9105         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9106
9107 2011-09-21  Bruno Haible  <bruno@clisp.org>
9108
9109         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9110         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9111         native Windows.
9112
9113 2011-09-21  Bruno Haible  <bruno@clisp.org>
9114
9115         New module 'fdopen'.
9116         * lib/stdio.in.h (fdopen): New declaration.
9117         * lib/fdopen.c: New file.
9118         * m4/fdopen.m4: New file.
9119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9120         REPLACE_FDOPEN.
9121         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9122         REPLACE_FDOPEN.
9123         * modules/fdopen: New file.
9124         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9125         * tests/test-stdio-c++.cc: Check signature of fdopen.
9126         * doc/posix-functions/fdopen.texi: Mention the new module.
9127
9128 2011-09-21  Bruno Haible  <bruno@clisp.org>
9129
9130         unlockpt tests: Avoid test failure on NetBSD 5.1.
9131         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9132         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9133
9134 2011-09-21  Bruno Haible  <bruno@clisp.org>
9135
9136         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9137         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9138         * tests/test-getlogin_r.c (main): Likewise.
9139
9140 2011-09-20  Bruno Haible  <bruno@clisp.org>
9141
9142         time tests: Don't require pid_t.
9143         * doc/posix-headers/time.texi: Revert last change.
9144         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9145         * tests/test-time.c: Comment out the check for pid_t.
9146
9147 2011-09-20  Bruno Haible  <bruno@clisp.org>
9148
9149         fsync tests: Avoid a test failure on mingw.
9150         * tests/test-fsync.c (main): Allow a failure with EIO.
9151
9152 2011-09-20  Bruno Haible  <bruno@clisp.org>
9153
9154         euidaccess: Update comments.
9155         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9156
9157 2011-09-20  Bruno Haible  <bruno@clisp.org>
9158
9159         Ensure EBADF returns for socket functions on mingw.
9160         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9161         descriptor is invalid.
9162         * lib/bind.c (rpl_bind): Likewise.
9163         * lib/connect.c (rpl_connect): Likewise.
9164         * lib/getpeername.c (rpl_getpeername): Likewise.
9165         * lib/getsockname.c (rpl_getsockname): Likewise.
9166         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9167         * lib/listen.c (rpl_listen): Likewise.
9168         * lib/recv.c (rpl_recv): Likewise.
9169         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9170         * lib/send.c (rpl_send): Likewise.
9171         * lib/sendto.c (rpl_sendto): Likewise.
9172         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9173         * lib/shutdown.c (rpl_shutdown): Likewise.
9174
9175 2011-09-20  Bruno Haible  <bruno@clisp.org>
9176
9177         select tests: EBADF tests.
9178         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9179         test_bad_fd): New functions.
9180         (test_function): Invoke also test_bad_fd.
9181
9182 2011-09-20  Bruno Haible  <bruno@clisp.org>
9183
9184         Tests for module 'posix_spawn_file_actions_addopen.
9185         * modules/posix_spawn_file_actions_addopen-tests: New file.
9186         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9187
9188         Tests for module 'posix_spawn_file_actions_adddup2'.
9189         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9190         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9191
9192         Tests for module 'posix_spawn_file_actions_addclose'.
9193         * modules/posix_spawn_file_actions_addclose-tests: New file.
9194         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9195
9196 2011-09-20  Bruno Haible  <bruno@clisp.org>
9197
9198         Tests for module 'unlockpt'.
9199         * modules/unlockpt-tests: New file.
9200         * tests/test-unlockpt.c: New file.
9201         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9202
9203         Tests for module 'grantpt'.
9204         * modules/grantpt-tests: New file.
9205         * tests/test-grantpt.c: New file.
9206         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9207
9208 2011-09-20  Bruno Haible  <bruno@clisp.org>
9209
9210         freopen tests: EBADF tests.
9211         * tests/test-freopen.c: Include errno.h, unistd.h.
9212         (main): Add tests for EBADF, commented out for the moment.
9213
9214         fclose tests: EBADF tests.
9215         * tests/test-fclose.c (main): Add tests for EBADF.
9216
9217         fflush tests: EBADF tests.
9218         * tests/test-fflush.c: Include errno.h, macros.h.
9219         (main): Add tests for EBADF.
9220
9221         ftello tests: EBADF tests.
9222         * tests/test-ftello4.sh: New file.
9223         * tests/test-ftello4.c: New file.
9224         * modules/ftello-tests (Files): Add them.
9225         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9226
9227         fseeko tests: EBADF tests.
9228         * tests/test-fseeko4.sh: New file.
9229         * tests/test-fseeko4.c: New file.
9230         * modules/fseeko-tests (Files): Add them.
9231         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9232
9233         Tests for function fputc().
9234         * modules/fputc-tests: New file.
9235         * tests/test-fputc.c: New file.
9236         * modules/stdio-tests (Depends-on): Add fputc-tests.
9237
9238         Tests for function fgetc().
9239         * modules/fgetc-tests: New file.
9240         * tests/test-fgetc.c: New file.
9241         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9242
9243         Tests for function fdopen().
9244         * modules/fdopen-tests: New file.
9245         * tests/test-fdopen.c: New file.
9246         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9247
9248         Tests for module 'vdprintf'.
9249         * modules/vdprintf-tests: New file.
9250         * tests/test-vdprintf.c: New file.
9251
9252         Tests for module 'dprintf'.
9253         * modules/dprintf-tests: New file.
9254         * tests/test-dprintf.c: New file.
9255
9256 2011-09-20  Bruno Haible  <bruno@clisp.org>
9257
9258         Tests for module 'ioctl'.
9259         * modules/ioctl-tests: New file.
9260         * tests/test-ioctl.c: New file.
9261
9262 2011-09-20  Bruno Haible  <bruno@clisp.org>
9263
9264         fcntl tests: EBADF tests.
9265         * tests/test-fcntl.c (main): Add more tests for EBADF.
9266
9267 2011-09-20  Bruno Haible  <bruno@clisp.org>
9268
9269         utimensat tests: EBADF tests.
9270         * tests/test-utimensat.c (main): Add tests for EBADF.
9271
9272         renameat tests: EBADF tests.
9273         * tests/test-renameat.c (main): Add tests for EBADF.
9274
9275         mkfifoat tests: EBADF tests.
9276         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9277
9278         readlinkat tests: EBADF tests.
9279         * tests/test-readlinkat.c (main): Add tests for EBADF.
9280
9281         symlinkat tests: EBADF tests.
9282         * tests/test-symlinkat.c (main): Add tests for EBADF.
9283
9284         linkat tests: EBADF tests.
9285         * tests/test-linkat.c (main): Add tests for EBADF.
9286
9287         Tests for module 'faccessat'.
9288         * modules/faccessat-tests: New file.
9289         * tests/test-faccessat.c: New file.
9290
9291         fdopendir tests: EBADF tests.
9292         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9293
9294         openat tests: EBADF tests.
9295         * tests/test-fchownat.c (main): Add tests for EBADF.
9296         * tests/test-fstatat.c (main): Likewise.
9297         * tests/test-mkdirat.c (main): Likewise.
9298         * tests/test-openat.c (main): Likewise.
9299         * tests/test-unlinkat.c (main): Likewise.
9300         * tests/test-fchmodat.c: New file.
9301         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9302         (Makefile.am): Also run 'test-fchmodat'.
9303
9304 2011-09-20  Bruno Haible  <bruno@clisp.org>
9305
9306         utimens, futimens, fdutimensat tests: EBADF tests.
9307         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9308
9309         Tests for function fstat().
9310         * modules/fstat-tests: New file.
9311         * tests/test-fstat.c: New file.
9312         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9313
9314 2011-09-20  Bruno Haible  <bruno@clisp.org>
9315
9316         test-ttyname_r tests: EBADF tests.
9317         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9318
9319         Tests for module 'isatty'.
9320         * modules/isatty-tests: New file.
9321         * tests/test-isatty.c: New file.
9322
9323         Tests for module 'write'.
9324         * modules/write-tests: New file.
9325         * tests/test-write.c: New file.
9326
9327         Tests for module 'read'.
9328         * modules/read-tests: New file.
9329         * tests/test-read.c: New file.
9330
9331         pwrite tests: EBADF tests.
9332         * tests/test-pwrite.c (main): Add tests for EBADF.
9333
9334         pread tests: EBADF tests.
9335         * tests/test-pread.c (main): Add tests for EBADF.
9336
9337         lseek tests: EBADF tests.
9338         * tests/test-lseek.c (main): Add more tests for EBADF.
9339
9340         Tests for module 'ftruncate'.
9341         * modules/ftruncate-tests: New file.
9342         * tests/test-ftruncate.sh: New file.
9343         * tests/test-ftruncate.c: New file.
9344
9345         fsync tests: EBADF tests.
9346         * tests/test-fsync.c (main): Add more tests for EBADF.
9347
9348         fdatasync tests: EBADF tests.
9349         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9350
9351         Tests for module 'fchown'.
9352         * modules/fchown-tests: New file.
9353         * tests/test-fchown.c: New file.
9354
9355         Tests for module 'fchmod'.
9356         * modules/fchmod-tests: New file.
9357         * tests/test-fchmod.c: New file.
9358
9359         fchdir tests: EBADF tests.
9360         * tests/test-fchdir.c (main): Add more tests for EBADF.
9361
9362         dup2 tests: EBADF tests.
9363         * tests/test-dup2.c (main): Add more tests for EBADF.
9364
9365         Tests for module 'dup'.
9366         * modules/dup-tests: New file.
9367         * tests/test-dup.c: New file.
9368
9369         Tests for module 'close'.
9370         * modules/close-tests: New file.
9371         * tests/test-close.c: New file.
9372
9373 2011-09-20  Bruno Haible  <bruno@clisp.org>
9374
9375         Tests for module 'shutdown'.
9376         * modules/shutdown-tests: New file.
9377         * tests/test-shutdown.c: New file.
9378
9379         Tests for module 'setsockopt'.
9380         * modules/setsockopt-tests: New file.
9381         * tests/test-setsockopt.c: New file.
9382
9383         Tests for module 'sendto'.
9384         * modules/sendto-tests: New file.
9385         * tests/test-sendto.c: New file.
9386
9387         Tests for module 'send'.
9388         * modules/send-tests: New file.
9389         * tests/test-send.c: New file.
9390
9391         Tests for module 'recvfrom'.
9392         * modules/recvfrom-tests: New file.
9393         * tests/test-recvfrom.c: New file.
9394
9395         Tests for module 'recv'.
9396         * modules/recv-tests: New file.
9397         * tests/test-recv.c: New file.
9398
9399         Tests for module 'listen'.
9400         * modules/listen-tests: New file.
9401         * tests/test-listen.c: New file.
9402
9403         Tests for module 'getsockopt'.
9404         * modules/getsockopt-tests: New file.
9405         * tests/test-getsockopt.c: New file.
9406
9407         Tests for module 'getsockname'.
9408         * modules/getsockname-tests: New file.
9409         * tests/test-getsockname.c: New file.
9410
9411         Tests for module 'getpeername'.
9412         * modules/getpeername-tests: New file.
9413         * tests/test-getpeername.c: New file.
9414
9415         Tests for module 'connect'.
9416         * modules/connect-tests: New file.
9417         * tests/test-connect.c: New file.
9418
9419         Tests for module 'bind'.
9420         * modules/bind-tests: New file.
9421         * tests/test-bind.c: New file.
9422
9423         accept4 tests: Fix for native Windows.
9424         * tests/test-accept4.c: Include sockets.h.
9425         (main): Invoke gl_sockets_startup.
9426         * modules/accept4-tests (Depends-on): Add sockets.
9427
9428         accept tests: Fix for native Windows.
9429         * tests/test-accept.c: Include sockets.h.
9430         (main): Invoke gl_sockets_startup.
9431         * modules/accept-tests (Depends-on): Add sockets.
9432
9433 2011-09-19  Bruno Haible  <bruno@clisp.org>
9434
9435         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9436         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9437         do...while(0).
9438         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9439         Suggested by Paul Eggert.
9440
9441 2011-09-19  Bruno Haible  <bruno@clisp.org>
9442
9443         sched: Ensure pid_t is defined.
9444         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9445         not define pid_t.
9446         * lib/sched.in.h: Include <sys/types.h>.
9447         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9448         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9449
9450 2011-09-19  Bruno Haible  <bruno@clisp.org>
9451
9452         msvc-inval: Ensure the entire expansion is a single statement.
9453         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9454         of braces.
9455
9456 2011-09-19  Jim Meyering  <meyering@redhat.com>
9457
9458         tests: use printf, not echo in init.sh's warn_ function
9459         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9460         misbehave when given strings containing a backslash or starting
9461         with e.g., -n.  James Youngman suggested setting IFS.
9462
9463 2011-09-19  Eric Blake  <eblake@redhat.com>
9464
9465         futimens: enhance test
9466         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9467         closed non-negative fd.
9468
9469         date: accept 'hence' as opposite of 'ago'
9470         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9471         * tests/test-parse-datetime.c (main): Enhance test.
9472         Suggested by Jesse Wilson.
9473
9474 2011-09-19  Jim Meyering  <meyering@redhat.com>
9475
9476         getcwd: don't fail in a deep directory on a system without openat
9477         Before this change, getcwd would fail when called from a directory
9478         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9479         the non-openat implementation used "..", "../..", "../../..", etc.
9480         to access ancestor directories.  With too many, that string would
9481         be longer than PATH_MAX.
9482         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9483         using gnulib's openat replacement.
9484         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9485         we're using the replacement function.
9486
9487 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9488
9489         maint.mk: avoid warnings from perl about missing files
9490         * top/maint.mk (def_sym_regex): Ignore files listed in
9491         $(gl_other_headers_) that do not exist, say because a project
9492         does not use a corresponding module.
9493
9494 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9495
9496         stat: use pathmax.h only if needed
9497         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9498         This is better for Emacs, which does not have a mingw port and
9499         therefore can avoid the pathmax module.
9500
9501         utimens: remove dependency on dup2
9502         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9503         to work around the Linux kernel bug.
9504         * modules/utimens (Depends-on): Remove dup2.
9505
9506 2011-09-18  Bruno Haible  <bruno@clisp.org>
9507
9508         inet_ntop, inet_pton: Look for it also in libresolv.
9509         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9510         libnsl, search for it in libresolv.
9511         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9512         Needed on Solaris 7.
9513
9514 2011-09-18  Bruno Haible  <bruno@clisp.org>
9515
9516         accept, accept4 tests: Avoid link error on Solaris.
9517         * modules/accept-tests (Makefile.am): Link test-accept against
9518         $(LIBSOCKET).
9519         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9520         $(LIBSOCKET).
9521
9522         accept4: Avoid link error on Solaris.
9523         * modules/accept4 (Link): New section.
9524
9525         socket functions: Avoid link errors on Solaris.
9526         * modules/accept (Depends-on): Add socketlib.
9527         (Link): New section.
9528         * modules/bind (Depends-on): Add socketlib.
9529         (Link): New section.
9530         * modules/connect (Depends-on): Add socketlib.
9531         (Link): New section.
9532         * modules/getpeername (Depends-on): Add socketlib.
9533         (Link): New section.
9534         * modules/getsockname (Depends-on): Add socketlib.
9535         (Link): New section.
9536         * modules/getsockopt (Depends-on): Add socketlib.
9537         (Link): New section.
9538         * modules/listen (Depends-on): Add socketlib.
9539         (Link): New section.
9540         * modules/recv (Depends-on): Add socketlib.
9541         (Link): New section.
9542         * modules/recvfrom (Depends-on): Add socketlib.
9543         (Link): New section.
9544         * modules/send (Depends-on): Add socketlib.
9545         (Link): New section.
9546         * modules/sendto (Depends-on): Add socketlib.
9547         (Link): New section.
9548         * modules/setsockopt (Depends-on): Add socketlib.
9549         (Link): New section.
9550         * modules/shutdown (Depends-on): Add socketlib.
9551         (Link): New section.
9552         * modules/socket (Depends-on): Add socketlib.
9553         (Link): New section.
9554
9555 2011-09-18  Bruno Haible  <bruno@clisp.org>
9556
9557         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9558         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9559         than 5 seconds.
9560         * modules/ptsname-tests (configure.ac): Test for alarm.
9561
9562 2011-09-18  Bruno Haible  <bruno@clisp.org>
9563
9564         posix_spawn_file_actions_add*: Fix module dependencies.
9565         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9566         posix_spawn_file_actions_init.
9567         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9568         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9569
9570 2011-09-18  Bruno Haible  <bruno@clisp.org>
9571
9572         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9573         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9574         * tests/test-renameat.c (main): Likewise.
9575
9576 2011-09-18  Bruno Haible  <bruno@clisp.org>
9577
9578         Tests for module 'accept4'.
9579         * modules/accept4-tests: New file.
9580         * tests/test-accept4.c: New file.
9581
9582 2011-09-18  Bruno Haible  <bruno@clisp.org>
9583
9584         Tests for module 'accept'.
9585         * modules/accept-tests: New file.
9586         * tests/test-accept.c: New file.
9587
9588 2011-09-18  Bruno Haible  <bruno@clisp.org>
9589
9590         dup2: Support for MSVC.
9591         * lib/dup2.c: Include msvc-inval.h.
9592         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9593         _get_osfhandle calls.
9594         * modules/dup2 (Depends-on): Add msvc-inval.
9595         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9596
9597         New module 'msvc-inval'.
9598         * lib/msvc-inval.h: New file.
9599         * lib/msvc-inval.c: New file.
9600         * m4/msvc-inval.m4: New file.
9601         * modules/msvc-inval: New file.
9602
9603 2011-09-17  Bruno Haible  <bruno@clisp.org>
9604
9605         Tests for module 'pclose'.
9606         * modules/pclose-tests: New file.
9607
9608         New module 'pclose'.
9609         * lib/stdio.in.h (pclose): New declaration.
9610         * lib/pclose.c: New file.
9611         * m4/pclose.m4: New file.
9612         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9613         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9614         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9615         * modules/pclose: New file.
9616         * modules/popen-tests (Depends-on): Add pclose.
9617         * modules/popen-safer-tests (Depends-on): Likewise.
9618         * doc/posix-functions/pclose.texi: Mention the new module.
9619
9620 2011-09-17  Bruno Haible  <bruno@clisp.org>
9621
9622         popen: Support for MSVC.
9623         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9624         * lib/popen.c (popen): Provide alternate definition for native Windows.
9625         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9627         * modules/popen (Depends-on, configure.ac): Update condition.
9628         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9629         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9630         fixed.
9631
9632 2011-09-17  Bruno Haible  <bruno@clisp.org>
9633
9634         isnanl, isnand, isnanf: Work around MSVC bug.
9635         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9636
9637 2011-09-17  Bruno Haible  <bruno@clisp.org>
9638
9639         sys_socket tests: Fix recent mistake.
9640         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9641
9642 2011-09-17  Bruno Haible  <bruno@clisp.org>
9643
9644         putenv: Support for MSVC.
9645         * modules/putenv (Depends-on): Add environ.
9646         * lib/putenv.c (environ): Disable declaration.
9647         * lib/unistd.in.h: Update comment.
9648
9649 2011-09-17  Bruno Haible  <bruno@clisp.org>
9650
9651         math: Avoid macro redefinition warnings on MSVC.
9652         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9653         Undefine before redefining.
9654
9655 2011-09-17  Bruno Haible  <bruno@clisp.org>
9656
9657         doc: Mention functions which are declared as macros.
9658         * doc/posix-functions/*[fl].texi: Mention that some functions are
9659         defined as macros with arguments only.
9660
9661 2011-09-17  Bruno Haible  <bruno@clisp.org>
9662
9663         Add dependencies to new dirent related modules.
9664         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9665         * modules/fts (Depends-on): Likewise.
9666         * modules/glob (Depends-on): Likewise.
9667         * modules/savedir (Depends-on): Likewise.
9668         * modules/scandir (Depends-on): Likewise.
9669         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9670         * modules/fdopendir (Depends-on): Add opendir.
9671
9672 2011-09-17  Bruno Haible  <bruno@clisp.org>
9673
9674         inet_pton: Support for MSVC on Windows Vista or newer.
9675         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9676         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9677         HAVE_DECL_INET_PTON is defined.
9678         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9679         On platforms with <winsock2.h>, test whether inet_pton is declared in
9680         <ws2tcpip.h>. If so, arrange to replace it.
9681         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9682         REPLACE_INET_PTON.
9683         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9684         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9685         (Depends-on, configure.ac): Update condition.
9686         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9687
9688 2011-09-17  Bruno Haible  <bruno@clisp.org>
9689
9690         inet_ntop: Support for MSVC on Windows Vista or newer.
9691         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9692         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9693         HAVE_DECL_INET_NTOP is defined.
9694         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9695         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9696         <ws2tcpip.h>. If so, arrange to replace it.
9697         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9698         REPLACE_INET_NTOP.
9699         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9700         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9701         (Depends-on, configure.ac): Update condition.
9702         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9703
9704 2011-09-16  Eric Blake  <eblake@redhat.com>
9705
9706         test-fsync: yet another enhancement
9707         * tests/test-fsync.c (main): Also test behavior on read-only text
9708         file.
9709
9710 2011-09-16  Bruno Haible  <bruno@clisp.org>
9711
9712         Enhance fsync, fdatasync tests.
9713         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9714         * tests/test-fdatasync.c (main): Likewise.
9715
9716 2011-09-16  Bruno Haible  <bruno@clisp.org>
9717
9718         Support for MSVC compiler: Ensure mode_t gets defined.
9719         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9720         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9721         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9722         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9723         * tests/test-fcntl-h.c: Check that mode_t is defined.
9724         * tests/test-sys_stat.c: Likewise.
9725         * tests/test-sys_types.c: Likewise.
9726         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9727         * doc/posix-headers/sys_stat.texi: Likewise.
9728         * doc/posix-headers/sys_types.texi: Likewise.
9729
9730 2011-09-16  Bruno Haible  <bruno@clisp.org>
9731
9732         sys_stat: Support for MSVC.
9733         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9734         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9735         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9736         MSVC.
9737
9738 2011-09-16  Bruno Haible  <bruno@clisp.org>
9739
9740         Support for MSVC compiler: Ensure off_t gets defined.
9741         * lib/unistd.in.h: Include <sys/types.h>.
9742         * tests/test-fcntl-h.c: Check that off_t is defined.
9743         * tests/test-sys_stat.c: Likewise.
9744         * tests/test-sys_types.c: Likewise.
9745
9746 2011-09-16  Eric Blake  <eblake@redhat.com>
9747
9748         fdatasync: port to Solaris
9749         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9750         * modules/fdatasync (Link): Document it.
9751         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9752
9753         fdatasync: port to MacOS X 10.7
9754         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9755         declared.
9756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9757         * modules/unistd (Makefile.am): Substitute it.
9758         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9759         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9760
9761         fdatasync: minor improvements
9762         * modules/fdatasync (Depends-on): Add condition for fsync.
9763         * lib/fdatasync.c (fdatasync): Add comment.
9764         * tests/test-unistd-c++.cc: Test fdatasync.
9765
9766         unistd: update refs to newer POSIX
9767         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9768         Suggested by Bruno Haible.
9769
9770         fdatasync: new module
9771         * modules/fsync (Description): Document difference to fdatasync.
9772         * modules/fdatasync: New module.
9773         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9774         * lib/fdatasync.c (fdatasync): Likewise.
9775         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9776         defaults.
9777         * modules/unistd (Makefile.am): Set witnesses.
9778         * lib/unistd.in.h (fdatasync): Declare.
9779         * MODULES.html.sh: Document it.
9780         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9781         * modules/fdatasync-tests: New test.
9782         * tests/test-fdatasync.c: Likewise.
9783
9784 2011-09-16  Eric Blake  <eblake@redhat.com>
9785
9786         test-fsync: enhance tests
9787         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9788         * tests/test-fsync.c (main): Enhance test.
9789
9790 2011-09-15  Bruno Haible  <bruno@clisp.org>
9791
9792         Support for MSVC compiler: Ensure ssize_t gets defined.
9793         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9794         * doc/posix-headers/stdio.texi: Likewise.
9795         * modules/stdio (Depends-on): Add ssize_t.
9796         * modules/sys_socket (Depends-on): Likewise.
9797         * modules/sys_types (Depends-on): Likewise.
9798         * modules/sys_uio (Depends-on): Likewise.
9799         * modules/unistd (Depends-on): Likewise.
9800         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9801         * tests/test-sys_types.c: Check that ssize_t is defined.
9802
9803 2011-09-14  Bruno Haible  <bruno@clisp.org>
9804
9805         Avoid using #, the m4 comment starter character, near brackets.
9806         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9807         delimiter character in sed expressions.
9808         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9809         Suggested by Eric Blake.
9810
9811         Properly quote AC_CHECK_DECLS' 4th argument.
9812         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9813         argument.
9814         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9815         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9816         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9817         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9818         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9819         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9820         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9821         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9822         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9823         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9824         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9825         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9826         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9827         * m4/isinf.m4 (gl_ISINF): Likewise.
9828         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9829         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9830         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9831         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9832         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9833         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9834         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9835         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9836         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9837         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9838         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9839         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9841         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9843         Reported by Eric Blake.
9844
9845         Properly quote AC_CHECK_DECL's 4th argument.
9846         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9847         argument.
9848         * m4/argp.m4 (gl_ARGP): Likewise.
9849         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9850         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9851         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9852         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9853         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9854         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9855         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9856         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9857         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9858         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9859         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9860         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9861         Reported by Eric Blake.
9862
9863 2011-09-14  Eric Blake  <eblake@redhat.com>
9864
9865         opendir: avoid compile warning
9866         * lib/opendir.c (includes): Always include errno.h.
9867         Reported by Tatsuro MATSUOKA.
9868
9869 2011-09-14  Jim Meyering  <meyering@redhat.com>
9870
9871         maint.mk: sc_tight_scope: propagate failure from sub-make
9872         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9873         Reported by Martin von Gagern.
9874
9875 2011-09-13  Bruno Haible  <bruno@clisp.org>
9876
9877         tempname: Support for MSVC.
9878         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9879         MSVC.
9880         * modules/tempname (Depends-on): Add fcntl-h.
9881
9882 2011-09-13  Bruno Haible  <bruno@clisp.org>
9883
9884         sys_time: Support for MSVC.
9885         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9886         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9887         include <winsock2.h>.
9888         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9889         function declarations that collide with POSIX.
9890         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9891         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9892
9893 2011-09-13  Bruno Haible  <bruno@clisp.org>
9894
9895         stat: Support for MSVC.
9896         * lib/stat.c: Include pathmax.h.
9897         * modules/stat (Depends-on): Add pathmax.
9898
9899         pathmax: Support for native Windows.
9900         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9901
9902 2011-09-12  Bruno Haible  <bruno@clisp.org>
9903
9904         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9905         * lib/dirent.in.h (struct dirent): New type.
9906         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9907         DT_WHT): New macros.
9908         (DIR): New type.
9909         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9910         (readdir, rewinddir): New declarations.
9911         * lib/dirent-private.h: New file.
9912         * lib/opendir.c: New file.
9913         * lib/readdir.c: New file.
9914         * lib/rewinddir.c: New file.
9915         * lib/closedir.c: New file.
9916         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9917         * m4/opendir.m4: New file.
9918         * m4/readdir.m4: New file.
9919         * m4/rewinddir.m4: New file.
9920         * m4/closedir.m4: New file.
9921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9922         REPLACE_CLOSEDIR here.
9923         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9924         readdir, rewinddir are declared.
9925         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9926         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9927         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9928         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9929         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9930         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9931         * modules/opendir: New file.
9932         * modules/readdir: New file.
9933         * modules/rewinddir: New file.
9934         * modules/closedir: New file.
9935         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9936         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9937         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9938         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9939         * NEWS: Mention the 'fchdir' change.
9940
9941 2011-09-11  Bruno Haible  <bruno@clisp.org>
9942
9943         asm-underscore.m4: Support for MSVC.
9944         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9945         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9946
9947 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9948
9949         Doc about crypt functions.
9950         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9951         needing for _GNU_SOURCE to get crypt.
9952         * doc/posix-functions/encrypt.texi: Likewise.
9953         * doc/posix-functions/setkey.texi: Likewise.
9954
9955 2011-09-11  Bruno Haible  <bruno@clisp.org>
9956
9957         doc: Update regarding MSVC 9.
9958         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9959         tested".
9960         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9961         * doc/posix-headers/*.texi: Likewise.
9962         * doc/pastposix-functions/*.texi: Likewise.
9963         * doc/glibc-functions/*.texi: Likewise.
9964         * doc/glibc-headers/*.texi: Likewise.
9965
9966 2011-09-11  Bruno Haible  <bruno@clisp.org>
9967
9968         unistd et al.: Don't assume <unistd.h> exists.
9969         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9970         does not exist.
9971         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9972         exist. But include <stdlib.h>.
9973         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9974         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9975         symlink() does not exist.
9976         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9977         include <io.h> instead.
9978         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9979         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9980         include <direct.h> instead.
9981         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9982         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9983         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9984         <io.h> instead.
9985         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9986         correctly if the system does not have hard links.
9987         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9988         <direct.h> instead.
9989         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9990         it when looking for function declarations.
9991         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9992         <direct.h> and <io.h> instead.
9993         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9994
9995 2011-09-11  Bruno Haible  <bruno@clisp.org>
9996
9997         strcase: Support for MSVC.
9998         * modules/strcase (Status, Notice): Remove obsoletion mark.
9999         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10000         * doc/posix-functions/strncasecmp.texi: Likewise.
10001
10002         strings: Don't assume <strings.h> exists.
10003         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10004         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10005         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10006         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10007
10008 2011-09-11  Bruno Haible  <bruno@clisp.org>
10009
10010         dirent: Don't assume <dirent.h> exists.
10011         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10012         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10013         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10014         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10015
10016 2011-09-11  Bruno Haible  <bruno@clisp.org>
10017
10018         Fix wint_t on MSVC.
10019         * lib/wchar.in.h (wint_t): On MSVC, override it.
10020         * lib/wctype.in.h (wint_t): Likewise.
10021         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10022         MSVC.
10023         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10024         * doc/posix-headers/wctype.texi: Likewise.
10025
10026 2011-09-11  Bruno Haible  <bruno@clisp.org>
10027
10028         sys_types: Fix typo.
10029         * lib/sys_types.in.h: Fix typo in comment.
10030         Reported by Paul Eggert.
10031
10032         Support for MSVC compiler: Ensure size_t gets defined.
10033         * modules/strings (Depends-on): Add 'sys_types'.
10034         * modules/sys_uio (Depends-on): Likewise.
10035         * lib/sys_uio.in.h: Update comment.
10036
10037         C++ tests for module 'sys_types'.
10038         * modules/sys_types-c++-tests: New file.
10039         * tests/test-sys_types-c++.cc: New file.
10040
10041         Tests for module 'sys_types'.
10042         * modules/sys_types-tests: New file.
10043         * tests/test-sys_types.c: New file.
10044
10045         New module 'sys_types'.
10046         * lib/sys_types.in.h: New file.
10047         * m4/sys_types_h.m4: New file.
10048         * modules/sys_types: New file.
10049         * doc/posix-headers/sys_types.texi: Mention the new module and the
10050         size_t problem on MSVC 9.
10051
10052 2011-09-11  Bruno Haible  <bruno@clisp.org>
10053
10054         Support for MSVC compiler: Avoid division by a literal 0.
10055         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10056         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10057         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10058         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10059         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10060         * tests/infinity.h: New file.
10061         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10062         on MSVC.
10063         * tests/test-ceilf1.c: Include infinity.h.
10064         (main): Use Infinityf.
10065         * tests/test-ceil1.c: Include infinity.h.
10066         (main): Use Infinityd.
10067         * tests/test-ceill.c: Include infinity.h.
10068         (main): Use Infinityl.
10069         * tests/test-dprintf-posix.c: Include infinity.h.
10070         (test_function): Use Infinityd.
10071         * tests/test-floorf1.c: Include infinity.h.
10072         (main): Use Infinityf.
10073         * tests/test-floor1.c: Include infinity.h.
10074         (main): Use Infinityd.
10075         * tests/test-floorl.c: Include infinity.h.
10076         (main): Use Infinityl.
10077         * tests/test-fprintf-posix.c: Include infinity.h.
10078         (test_function): Use Infinityd.
10079         * tests/test-frexp.c: Include infinity.h.
10080         (main): Use Infinityd.
10081         * tests/test-frexpl.c: Include infinity.h.
10082         (main): Use Infinityl.
10083         * tests/test-isfinite.c: Include infinity.h.
10084         (test_isfinitef): Use Infinityf.
10085         (test_isfinited): Use Infinityd.
10086         (test_isfinitel): Use Infinityl.
10087         * tests/test-isinf.c: Include infinity.h.
10088         (test_isinff): Use Infinityf.
10089         (test_isinfd): Use Infinityd.
10090         (test_isinfl): Use Infinityl.
10091         * tests/test-isnan.c: Include infinity.h.
10092         (test_float): Use Infinityf.
10093         (test_double): Use Infinityd.
10094         (test_long_double): Use Infinityl.
10095         * tests/test-isnanf.h: Include infinity.h.
10096         (main): Use Infinityf.
10097         * tests/test-isnand.h: Include infinity.h.
10098         (main): Use Infinityd.
10099         * tests/test-isnanl.h: Include infinity.h.
10100         (main): Use Infinityl.
10101         * tests/test-ldexpl.c: Include infinity.h.
10102         (main): Use Infinityl.
10103         * tests/test-printf-posix.h: Include infinity.h.
10104         (test_function): Use Infinityd.
10105         * tests/test-roundf1.c: Include infinity.h.
10106         (main): Use Infinityf.
10107         * tests/test-round1.c: Include infinity.h.
10108         (main): Use Infinityd.
10109         * tests/test-roundl.c: Include infinity.h.
10110         (main): Use Infinityl.
10111         * tests/test-signbit.c: Include infinity.h.
10112         (test_signbitf): Use Infinityf.
10113         (test_signbitd): Use Infinityd.
10114         (test_signbitl): Use Infinityl.
10115         * tests/test-snprintf-posix.h: Include infinity.h.
10116         (test_function): Use Infinityd, Infinityl.
10117         * tests/test-sprintf-posix.h: Include infinity.h.
10118         (test_function): Use Infinityd, Infinityl.
10119         * tests/test-truncf1.c: Include infinity.h.
10120         (main): Use Infinityf.
10121         * tests/test-trunc1.c: Include infinity.h.
10122         (main): Use Infinityd.
10123         * tests/test-truncl.c: Include infinity.h.
10124         (main): Use Infinityl.
10125         * tests/test-vasnprintf-posix.c: Include infinity.h.
10126         (test_function): Use Infinityd, Infinityl.
10127         * tests/test-vasprintf-posix.c: Include infinity.h.
10128         (test_function): Use Infinityd, Infinityl.
10129         * modules/ceilf-tests (Files): Add tests/infinity.h.
10130         * modules/ceil-tests (Files): Likewise.
10131         * modules/ceill-tests (Files): Likewise.
10132         * modules/dprintf-posix-tests (Files): Likewise.
10133         * modules/floorf-tests (Files): Likewise.
10134         * modules/floor-tests (Files): Likewise.
10135         * modules/floorl-tests (Files): Likewise.
10136         * modules/fprintf-posix-tests (Files): Likewise.
10137         * modules/frexp-tests (Files): Likewise.
10138         * modules/frexp-nolibm-tests (Files): Likewise.
10139         * modules/frexpl-tests (Files): Likewise.
10140         * modules/frexpl-nolibm-tests (Files): Likewise.
10141         * modules/isfinite-tests (Files): Likewise.
10142         * modules/isinf-tests (Files): Likewise.
10143         * modules/isnan-tests (Files): Likewise.
10144         * modules/isnanf-tests (Files): Likewise.
10145         * modules/isnanf-nolibm-tests (Files): Likewise.
10146         * modules/isnand-tests (Files): Likewise.
10147         * modules/isnand-nolibm-tests (Files): Likewise.
10148         * modules/isnanl-tests (Files): Likewise.
10149         * modules/isnanl-nolibm-tests (Files): Likewise.
10150         * modules/ldexpl-tests (Files): Likewise.
10151         * modules/printf-posix-tests (Files): Likewise.
10152         * modules/roundf-tests (Files): Likewise.
10153         * modules/round-tests (Files): Likewise.
10154         * modules/roundl-tests (Files): Likewise.
10155         * modules/signbit-tests (Files): Likewise.
10156         * modules/snprintf-posix-tests (Files): Likewise.
10157         * modules/sprintf-posix-tests (Files): Likewise.
10158         * modules/truncf-tests (Files): Likewise.
10159         * modules/trunc-tests (Files): Likewise.
10160         * modules/truncl-tests (Files): Likewise.
10161         * modules/vasnprintf-posix-tests (Files): Likewise.
10162         * modules/vasprintf-posix-tests (Files): Likewise.
10163         * modules/vdprintf-posix-tests (Files): Likewise.
10164         * modules/vfprintf-posix-tests (Files): Likewise.
10165         * modules/vprintf-posix-tests (Files): Likewise.
10166         * modules/vsnprintf-posix-tests (Files): Likewise.
10167         * modules/vsprintf-posix-tests (Files): Likewise.
10168         * modules/xprintf-posix-tests (Files): Likewise.
10169
10170 2011-09-11  Bruno Haible  <bruno@clisp.org>
10171
10172         Ensure pid_t gets defined.
10173         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10174         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10175         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10176         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10177         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10178         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10179         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10180         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10181         * tests/test-fcntl-h.c: Check that pid_t is defined.
10182         * tests/test-sched.c: Likewise.
10183         * tests/test-termios.c: Likewise.
10184         * tests/test-time.c: Likewise.
10185         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10186         * doc/posix-headers/signal.texi: Likewise.
10187         * doc/posix-headers/sys_types.texi: Likewise.
10188         * doc/posix-headers/time.texi: Likewise.
10189
10190 2011-09-11  Bruno Haible  <bruno@clisp.org>
10191
10192         acl: Fix compilation on Solaris 10 (older version).
10193         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10194         of ACE_EVERYONE.
10195         * lib/set-mode-acl.c (qset_acl): Likewise.
10196         Reported by Christian Jullien <eligis@orange.fr>.
10197
10198 2011-09-10  Bruno Haible  <bruno@clisp.org>
10199
10200         iconv, unsetenv: Add support for MSVC compiler.
10201         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10202         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10203
10204 2011-09-10  Bruno Haible  <bruno@clisp.org>
10205
10206         *printf: Add support for MSVC compiler.
10207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10208         handles the exception caused by the %n directive. When cross-compiling,
10209         guess no on native Windows.
10210         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10211         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10212         emulate it through vsnprintf.
10213         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10214         * doc/posix-functions/dprintf.texi: Update documentation regarding
10215         MSVC 9.
10216         * doc/posix-functions/fprintf.texi: Likewise.
10217         * doc/posix-functions/printf.texi: Likewise.
10218         * doc/posix-functions/snprintf.texi: Likewise.
10219         * doc/posix-functions/sprintf.texi: Likewise.
10220         * doc/posix-functions/swprintf.texi: Likewise.
10221         * doc/posix-functions/vdprintf.texi: Likewise.
10222         * doc/posix-functions/vfprintf.texi: Likewise.
10223         * doc/posix-functions/vprintf.texi: Likewise.
10224         * doc/posix-functions/vsnprintf.texi: Likewise.
10225         * doc/posix-functions/vsprintf.texi: Likewise.
10226         * doc/glibc-functions/asprintf.texi: Likewise.
10227         * doc/glibc-functions/obstack_printf.texi: Likewise.
10228         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10229         * doc/glibc-functions/vasprintf.texi: Likewise.
10230
10231 2011-09-10  Bruno Haible  <bruno@clisp.org>
10232
10233         nocrash: Add support for native Windows.
10234         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10235
10236 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10237             Bruno Haible  <bruno@clisp.org>
10238
10239         absolute-header, include-next: Add support for MSVC compiler.
10240         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10241         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10242         directory separator in #line directives.
10243         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10244         recognize also backslash as directory separator in #line directives.
10245
10246 2011-09-08  Jim Meyering  <meyering@redhat.com>
10247
10248         maint.mk: mark the post-release commit log with "maint: " prefix
10249         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10250         one-line commit-log summary.
10251
10252 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10253             Bruno Haible  <bruno@clisp.org>
10254
10255         Doc about crypt functions.
10256         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10257         systems.
10258         * doc/posix-functions/encrypt.texi: Likewise.
10259         * doc/posix-functions/setkey.texi: Likewise.
10260
10261 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10262
10263         * lib/gc.h: Fix copyright header.
10264
10265 2011-09-07  Bruno Haible  <bruno@clisp.org>
10266
10267         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10268         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10269         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10270
10271 2011-09-07  Bruno Haible  <bruno@clisp.org>
10272
10273         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10274         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10275         * lib/freopen.c: Likewise.
10276         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10277         * lib/lstat.c: Likewise.
10278         * lib/stat.c: Likewise.
10279         * lib/open.c: Use different syntax for include of <fcntl.h>.
10280         * lib/openat.c: Include fcntl.h again, explicitly.
10281
10282 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10283
10284         parse-datetime: document the newly accepted format
10285         * doc/parse-datetime.texi (Combined date and time of day items):
10286         New section.
10287
10288 2011-09-06  Bruno Haible  <bruno@clisp.org>
10289
10290         acl: Fix a test failure on newer Solaris 10 with ZFS.
10291         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10292         ENOSYS as no ACL.
10293         Reported by Jim Meyering.
10294
10295 2011-09-06  Bruno Haible  <bruno@clisp.org>
10296
10297         acl: Update for AIX >= 5.3 with NFS.
10298         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10299         ENOSYS as no ACL.
10300
10301         acl: Fix a test failure on AIX >= 5.3 with NFS.
10302         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10303         as no ACL.
10304
10305 2011-09-06  Bruno Haible  <bruno@clisp.org>
10306
10307         acl: Fix a test failure on IRIX 6.5 with NFS.
10308         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10309         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10310         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10311         * lib/copy-acl.c (qcopy_acl): Likewise.
10312
10313 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10314
10315         openat: port to AIX 7.1 with large files
10316         AIX 7.1 does a "#define openat open64at" if large files are in use,
10317         so we can't simply #undef openat.  Use the orig_openat trick (similar
10318         to orig_open in lib/open.c) to work around the problem.  Problem
10319         reported by Kevin Brott for GNU tar, in the thread containing
10320         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10321         * lib/openat.c (__need_system_fcntl_h): Define first.
10322         Include <fcntl.h> and <sys/types.h> before undefining.
10323         (orig_openat) [HAVE_OPENAT]: New inline function.
10324         (openat) [HAVE_OPENAT]: Do not undef.
10325         (rpl_openat): Use orig_openat, not openat.
10326
10327 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10328             Bruno Haible  <bruno@clisp.org>
10329
10330         acl: Avoid errors on NonStop Kernel.
10331         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10332         ENOTSUP errors.
10333
10334 2011-09-05  Bruno Haible  <bruno@clisp.org>
10335
10336         acl: Clean up Solaris code.
10337         * lib/acl-internal.h: Remove no-op #if.
10338         * lib/file-has-acl.c: Likewise.
10339         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10340         * lib/copy-acl.c (qcopy_acl): Likewise.
10341
10342 2011-09-05  Bruno Haible  <bruno@clisp.org>
10343
10344         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10345         binaries built on the original Solaris 10.
10346         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10347         trivial.
10348
10349 2011-09-05  Bruno Haible  <bruno@clisp.org>
10350
10351         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10352         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10353         10.
10354         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10355         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10356         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10357         instead of acl_get, facl_get, acl_set, facl_set.
10358
10359 2011-09-05  Bruno Haible  <bruno@clisp.org>
10360
10361         copy-file: Try unit tests on more file systems.
10362         * tests/test-copy-file-1.sh: New file.
10363         * tests/test-copy-file-2.sh: New file.
10364         * modules/copy-file-tests (Files): Add them.
10365         (Makefile.am): Add them to TESTS.
10366
10367         acl: Try unit tests on more file systems.
10368         * tests/test-file-has-acl-1.sh: New file.
10369         * tests/test-file-has-acl-2.sh: New file.
10370         * tests/test-set-mode-acl-1.sh: New file.
10371         * tests/test-set-mode-acl-2.sh: New file.
10372         * tests/test-copy-acl-1.sh: New file.
10373         * tests/test-copy-acl-2.sh: New file.
10374         * modules/acl-tests (Files): Add them.
10375         (Makefile.am): Add them to TESTS.
10376
10377 2011-09-04  Bruno Haible  <bruno@clisp.org>
10378
10379         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10380         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10381         10.
10382         (OLD_ALLOW, OLD_DENY): New macros.
10383         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10384         ACE_ACCESS_ALLOWED_ACE_TYPE.
10385         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10386         ACE_ACCESS_DENIED_ACE_TYPE.
10387         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10388         (NEW_ACE_EXECUTE): Fix value.
10389         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10390         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10391         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10392         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10393         NEW_ACE_SYNCHRONIZE): New macros.
10394         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10395         instead of acl_fromtext, acl_set, facl_set.
10396         Fixes a coreutils/tests/cp/perm failure.
10397
10398 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10399
10400         openat: test for fstatat (..., 0) bug
10401         Further testing with tar suggests that fstatat (..., 0)
10402         does not work in general, on AIX 7.1; see
10403         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10404         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10405         replacement fstatat (which is what older AIX releases were using
10406         anyway).
10407         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10408         use is now changed to orig_fstatat.  This was probably the right
10409         thing to do anyway.
10410         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10411         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10412         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10413         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10414         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10415         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10416         if the bug is found.
10417
10418         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10419         This tests for another fstatat bug on AIX 7.1:
10420         fstatat (AT_FDCWD, ..., 0) does not work.  See
10421         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10422         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10423         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10424         (rpl_fstatat): Adjust so that it works around either (or both)
10425         bugs if present.
10426         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10427
10428 2011-09-03  Karl Berry  <karl@gnu.org>
10429
10430         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10431         in index entries.
10432
10433 2011-09-02  Bruno Haible  <bruno@clisp.org>
10434
10435         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10436         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10437         values of AR, ARFLAGS, RANLIB.
10438         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10439
10440 2011-09-02  Bruno Haible  <bruno@clisp.org>
10441
10442         Find 'ar' program that fits with --host argument.
10443         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10444
10445 2011-09-02  Bruno Haible  <bruno@clisp.org>
10446
10447         tests: init.sh: Support any non-GNU diff.
10448         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10449         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10450         Solaris 8.
10451
10452 2011-09-02  Bruno Haible  <bruno@clisp.org>
10453
10454         tests: init.sh: work also with any non-GNU diff that supports -u
10455         * tests/init.sh: Relax check for diff -u support.
10456         Rather than checking for GNU diff via --version, simply check
10457         for support for -u itself.  Useful at least on OpenBSD 4.9,
10458         AIX 7.1, IRIX 6.5, and Solaris 10.
10459
10460 2011-09-01  Bruno Haible  <bruno@clisp.org>
10461
10462         strtoimax, strtoumax: Document problem on HP-UX 11.
10463         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10464         * doc/posix-functions/strtoumax.texi: Likewise.
10465
10466 2011-09-01  Bruno Haible  <bruno@clisp.org>
10467
10468         strtoumax: Avoid link error on OSF/1 with DTK cc.
10469         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10470         defined as a function.
10471         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10472         strtoumax is defined, not whether it is declared.
10473
10474 2011-09-01  Bruno Haible  <bruno@clisp.org>
10475
10476         strtoimax: Avoid link error on OSF/1 with DTK cc.
10477         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10478         defined as a function.
10479         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10480         strtoimax is defined, not whether it is declared.
10481
10482 2011-09-01  Bruno Haible  <bruno@clisp.org>
10483
10484         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10485         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10486         as a function.
10487         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10488         whether it is declared.
10489
10490 2011-09-01  Bruno Haible  <bruno@clisp.org>
10491
10492         imaxabs: Avoid link error on OSF/1 with DTK cc.
10493         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10494         as a function.
10495         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10496         whether it is declared.
10497
10498 2011-09-01  Bruno Haible  <bruno@clisp.org>
10499
10500         Tests for module 'strtoumax'.
10501         * modules/strtoumax-tests: New file.
10502         * tests/test-strtoumax.c: New file.
10503
10504         Tests for module 'strtoimax'.
10505         * modules/strtoimax-tests: New file.
10506         * tests/test-strtoimax.c: New file.
10507
10508         Tests for module 'imaxdiv'.
10509         * modules/imaxdiv-tests: New file.
10510         * tests/test-imaxdiv.c: New file.
10511
10512         Tests for module 'imaxabs'.
10513         * modules/imaxabs-tests: New file.
10514         * tests/test-imaxabs.c: New file.
10515
10516 2011-09-01  Bruno Haible  <bruno@clisp.org>
10517
10518         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10519         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10520         pthread_create.
10521
10522 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10523
10524         openat: work around AIX 7.1 fstatat issue
10525         This should fix the problem that was not properly fixed
10526         in the previous change, dated 2011-08-30.
10527         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10528         __need_system_stat_h defined.
10529         (orig_fstatat) [HAVE_FSTATAT]: New function.
10530         (rpl_fstatat): Go back to the old way of doing things,
10531         except call orig_fstatat instead of fstatat.
10532         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10533         Remove unnecessary check whether fstatat fills in st_size etc.
10534
10535 2011-09-01  Bruno Haible  <bruno@clisp.org>
10536
10537         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10538         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10539         just include the system's header.
10540
10541 2011-08-31  Jim Meyering  <meyering@redhat.com>
10542
10543         tests: avoid spurious assertion failure in test-float.c on ppc64
10544         * tests/test-float.c (test_long_double): Comment out an assertion,
10545         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10546         with gcc-4.4.4.
10547
10548         maint: indent with spaces, not TABs
10549         I need to get in the habit of running gnulib's "make check".
10550         Both of these would have been caught.
10551         * m4/largefile.m4: Indent with spaces, not TABs.
10552         * lib/parse-datetime.y (iso_8601_time): Likewise.
10553         Spotted by Pádraig Brady.
10554
10555         test-parse-datetime.c: accommodate a relatively strict gcc warning
10556         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10557         to avoid a warning from gcc's -Werror=missing-declarations.
10558         Insert a few spaces-before-funcall-parenthesis.
10559
10560 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10561
10562         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10563         The parser now accepts ISO 8601 date-time strings with "T" as the
10564         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10565         with a space between the date and time strings.  Now it also parses
10566         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10567         variants like "2004-02-29T16:21:42.333-07:00"
10568         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10569         of day representation using the 'T' separator character.
10570         * doc/parse-datetime.texi (General date syntax): replace use of
10571         deprecated --iso-8601 option with --rfc-3339 in example of date
10572         command output formats that can be parsed.
10573         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10574         lib/parse-datetime.y.
10575         (gmt_offset): New function.
10576         (main): Add additional test cases to validate ISO8601 extended
10577         date and time of day parsing.
10578
10579 2011-08-31  Bruno Haible  <bruno@clisp.org>
10580
10581         freopen: Documentation.
10582         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10583         name.
10584         Reported by Claudio Bley <claudio.bley@gmail.com>.
10585
10586 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10587
10588         freopen: Don't crash if the filename argument is NULL.
10589         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10590         NULL.
10591
10592 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10593
10594         openat: work around AIX 7.1 fstatat bug
10595         Problem reported by Kevin Brott for GNU tar, in the thread containing
10596         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10597         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10598         FSTATAT_ST_SIZE_ETC_BROKEN.
10599         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10600         rpl_fstatat.
10601         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10602         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10603         AC_CHECK_FUNCS_ONCE for fstatat.
10604         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10605         fchmodat, mkdirat, openat and unlinkat.
10606
10607 2011-08-30  Bruno Haible  <bruno@clisp.org>
10608
10609         Avoid endless recursions if config.h includes some header files.
10610         * lib/fopen.c (__need_FILE): Define already before including config.h.
10611         * lib/freopen.c (__need_FILE): Likewise.
10612         * lib/open.c (__need_system_fcntl_h): Likewise.
10613         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10614         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10615         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10616
10617 2011-08-25  Karl Berry  <karl@gnu.org>
10618
10619         * config/srclist.txt (ylwrap): new try.
10620         * build-aux/ylwrap: new file.
10621
10622 2011-08-23  Bruno Haible  <bruno@clisp.org>
10623
10624         tmpdir: Use a good default directory on native Windows.
10625         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10626         (P_tmpdir): Default to _P_tmpdir on native Windows.
10627         (path_search): On native Windows, try the value returned by GetTempPath
10628         before trying P_tmpdir.
10629         * modules/tmpdir (Depends-on): Add pathmax.
10630         Suggested by John Darrington <john@darrington.wattle.id.au>.
10631
10632 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10633
10634         doc: fix typo in README-release
10635         * top/README-release: Capitalize first word of a sentence.
10636
10637 2011-08-19  Jim Meyering  <meyering@redhat.com>
10638
10639         fts: do not exhaust memory when processing million-entry directories
10640         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10641         directory would require about 256*N bytes of memory.  Thus, it was
10642         easy to construct a directory too large to be processed by any of
10643         those tools.  With this change, fts' maximum memory utilization is
10644         now limited to around 30MB.
10645         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10646         (fts_read): When we've processed the final entry (i.e., when
10647         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10648         using the parent entry to read any remaining entries.  Dispatch
10649         depending on what fts_build returns:
10650         - NULL+stop, aka failure: stop
10651         - NULL otherwise: move up in the dir hierarchy
10652         - non-NULL: handle this new entry
10653         (fts_build): Declare and use new local, continue_readdir.
10654         Prepare to be called from fts_read, when the entries
10655         from a partially-read directory have just been exhausted.
10656         In that case, we'll skip the opendir and instead use the parent's
10657         fts_dirp and derive dir_fd from that.
10658         Finally, in the readdir loop, if we read max_entries entries,
10659         exit the loop ensuring *not* to call closedir.  This is required
10660         so that fts_dirp can be reused on a subsequent call.
10661         Prompted by Ben England's report of memory exhaustion in find
10662         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10663
10664         maint: fts: move decl of `dp' down into while loop; split a long line
10665         * lib/fts.c (fts_build): No semantic change.
10666
10667         fts: add/use new struct member, fts_dirp
10668         We are about to use this to manage any directory with
10669         too many entries to read all of them into memory at once.
10670         To do that, we'll need to save the DIR* pointer in each
10671         affected FTSENT struct.
10672         * lib/fts_.h: Include <dirent.h>.
10673         (struct FTSENT) [fts_dirp]: New member.
10674         * lib/fts.c (closedir_and_clear): Define.
10675         Use it in place of closedir so that we are sure to
10676         clear the new fts_dirp member when done with it.
10677         (fts_alloc): Initialize the new member.
10678         (fts_lfree): Free, if needed.
10679
10680         maint: fts: give __opendir2 a new parameter and rename
10681         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10682         than surreptitiously using sole caller's "dir_fd".
10683         (fts_opendir): Rename from __opendir2.
10684
10685         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10686         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10687
10688         maint: fts.c: correct off-by-one indentation
10689         * lib/fts.c (fts_build): Correct indentation, change style
10690         of a couple of block comments, and bracing style.
10691
10692         maint: fts.c: move __opendir2 #define "up" out of function body
10693         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10694
10695         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10696         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10697         out for a long time and besides was useful only on BSD systems.
10698
10699 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10700
10701         regex: port to Stratus OpenVOS
10702         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10703         define to empty, rather than attempting nonportable optimizations.
10704         Problem reported by Paul Green in:
10705         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10706         and fix suggested by Eric Blake in:
10707         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10708
10709 2011-08-17  Eric Blake  <eblake@redhat.com>
10710
10711         getcwd: fix test failures on mingw
10712         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10713         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10714         test if long directory cannot be created, and allow mingw errno.
10715
10716         getcwd-lgpl: fix m4 to match relaxed test for BSD
10717         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10718         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10719         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10720         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10721         signature problem.
10722
10723         getcwd: fix compilation on mingw64
10724         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10725         getcwd.
10726         Reported by Marc-André Lureau.
10727
10728         pipe2: silence compiler warning
10729         * lib/pipe2.c (pipe2): Hide label if it is not used.
10730
10731 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10732
10733         relocatable-prog: fix link error
10734         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10735         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10736         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10737         into modules/relocatable-lib without noticing that
10738         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10739         also needs to build relocatable.c.
10740
10741 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10742
10743         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10744         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10745         shell code: it contained a 'break' that was not in a loop.
10746         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10747         via a shell-language loop; this may have been true in old Autoconf
10748         versions, but it's not true in Autoconf 2.68.  I found this bug
10749         when testing coreutils git on Solaris 8, whose shell complains
10750         about the syntax error.
10751
10752 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10753
10754         * lib/base64.c: Fix comment to reference RFC 4648.
10755         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10756         <gvtulder@gmail.com>.
10757
10758 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10759
10760         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10761
10762         po/Makefile.in.in: fix make -q problem
10763         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10764         rule, since there's no file named 'check-macro-version' and its
10765         use as a file breaks make -q.
10766         (all): Don't depend on check-macro-version.
10767         (CHECK_MACRO_VERSION): New macro.
10768         (stamp-po): Use it.
10769
10770         configmake: fix make -q problem
10771         * modules/configmake (configmake.h): Update configmake.h's time stamp
10772         even if the file does not change.  Otherwise, 'make -q' fails.
10773         Problem reported by Simon Josefsson in
10774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10775
10776 2011-08-11  Jim Meyering  <meyering@redhat.com>
10777
10778         git-version-gen: correct the advice in a comment
10779         * build-aux/git-version-gen: Correct comment.
10780         Don't recommend to list .tarball-version in .gitignore.
10781
10782 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10783
10784         base64: fix off-by-one buffer size bug
10785         Problem and (trivial) fix reported by Gijs van Tulder in
10786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10787         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10788         * tests/test-base64.c (main): Catch the bug.
10789
10790 2011-08-10  Eric Blake  <eblake@redhat.com>
10791
10792         closein: correct comments
10793         * lib/closein.c (close_stdin): Improve comments.
10794
10795 2011-08-09  Bruno Haible  <bruno@clisp.org>
10796
10797         More tests for 'fseeko'.
10798         * tests/test-fseeko3.c: New file, from Eric Blake.
10799         * tests/test-fseeko3.sh: New file.
10800         * modules/fseeko-tests (Files): Add them.
10801         (TESTS): Add test-fseeko3.sh.
10802         (check_PROGRAMS): Add test-fseeko3.
10803
10804 2011-08-09  Eric Blake  <eblake@redhat.com>
10805
10806         fseeko: remove unneeded hack
10807         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10808
10809         fseeko: fix bug on glibc
10810         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10811         Reported by John W. Eaton.
10812
10813 2011-08-08  Bruno Haible  <bruno@clisp.org>
10814
10815         unictype/base: Fix interoperability with preinstalled libunistring.
10816         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10817         Reported by Simon Josefsson.
10818
10819 2011-08-08  Bruno Haible  <bruno@clisp.org>
10820
10821         iswblank: Detect declaration correctly.
10822         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10823         AC_CHECK_DECLS invocation.
10824
10825 2011-08-08  Bruno Haible  <bruno@clisp.org>
10826
10827         tcgetsid: Detect declaration correctly.
10828         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10829         AC_CHECK_DECLS invocation.
10830         Reported by Simon Josefsson.
10831
10832 2011-08-08  Eric Blake  <eblake@redhat.com>
10833
10834         largefile: fix typo that regressed large file support
10835         * modules/largefile (configure.ac-early): Fix section name.
10836
10837 2011-08-06  Karl Berry  <karl@gnu.org>
10838
10839         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10840         a separate module.
10841
10842 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10843
10844         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10845         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10846         get prototype for free.
10847
10848 2011-08-04  Bruno Haible  <bruno@clisp.org>
10849
10850         Tests for module 'pathmax'.
10851         * modules/pathmax-tests: New file.
10852         * tests/test-pathmax.c: New file.
10853
10854         canonicalize-lgpl: Support larger filenames on the Hurd.
10855         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10856         Reported by Paul Eggert.
10857
10858         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10859         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10860         * lib/chdir-long.h: Include pathmax.h.
10861         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10862         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10863         (PATH_MAX): Remove code that is done by pathmax.h.
10864         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10865         * lib/tmpfile.c: Add a comment.
10866         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10867         * modules/chdir-long (Depends-on): Add pathmax.
10868         * modules/getcwd (Depends-on): Add pathmax.
10869         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10870         is not defined.
10871         * doc/posix-headers/limits.texi: Mention the pathmax module.
10872         * NEWS: Mention the change.
10873
10874 2011-08-02  Bruno Haible  <bruno@clisp.org>
10875
10876         pthread_sigmask: Actually use results of gl_THREADLIB.
10877         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10878         gl_THREADLIB, not gl_[]THREADLIB.
10879         Reported by Eric Blake.
10880
10881 2011-08-02  Jim Meyering  <meyering@redhat.com>
10882
10883         maint.mk: relax the default _gl_TS_function_match regexp
10884         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10885         space between function name and "(" in an "extern" declaration.
10886         That would fail to match a decl with no space there: extern void foo();
10887
10888 2011-07-31  Iain Nicol  <iain@thenicols.net>
10889
10890         git-version-gen: document that EXTRA_DIST must include .version
10891         * build-aux/git-version-gen: In the how-to-use comment, document
10892         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10893         will fail when run from an unpacked distribution tarball.
10894
10895 2011-08-01  Bruno Haible  <bruno@clisp.org>
10896
10897         wctype-h: Fix last change.
10898         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10899         REPLACE_TOWLOWER to 0.
10900         Reported by Sam Steingold <sds@gnu.org>.
10901
10902 2011-07-31  Bruno Haible  <bruno@clisp.org>
10903
10904         frexpl: Update autoconf test.
10905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10906         according to changes of 2011-06-20.
10907
10908 2011-07-31  Bruno Haible  <bruno@clisp.org>
10909
10910         sys_utsname: Add support for Minix.
10911         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10912         <sys/utsname.h>.
10913         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10914         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10915
10916 2011-07-31  Bruno Haible  <bruno@clisp.org>
10917
10918         strings: Add support for Minix.
10919         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10920         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10921         * doc/posix-headers/strings.texi: Document the Minix problem.
10922
10923 2011-07-31  Bruno Haible  <bruno@clisp.org>
10924
10925         wctype-h: Add support for Minix.
10926         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10927         REPLACE_TOWLOWER.
10928         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10929         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10930         REPLACE_ISWCNTRL.
10931
10932 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10933
10934         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10935         This is a performance improvement for 64-bit hosts: it causes the
10936         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10937
10938 2011-07-31  Bruno Haible  <bruno@clisp.org>
10939
10940         stdioext: Add support for Minix.
10941         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10942         * lib/fpurge.c (fpurge): Likewise.
10943         * lib/freadahead.c (freadahead): Likewise.
10944         * lib/freadable.c (freadable): Likewise.
10945         * lib/freading.c (freading): Likewise.
10946         * lib/freadptr.c (freadptr): Likewise.
10947         * lib/freadseek.c (freadptrinc): Likewise.
10948         * lib/fseeko.c (rpl_fseeko): Likewise.
10949         * lib/fseterr.c (fseterr): Likewise.
10950         * lib/fwritable.c (fwritable): Likewise.
10951         * lib/fwriting.c (fwriting): Likewise.
10952         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10953         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10954
10955 2011-07-31  Bruno Haible  <bruno@clisp.org>
10956
10957         errno: Port to Minix.
10958         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10959         ECONNABORTED are defined.
10960         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10961         GNULIB_defined_ECONNABORTED): New macros.
10962         * lib/strerror-override.h (strerror_override): Test also
10963         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10964         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10965         ECONNABORTED.
10966         * doc/posix-headers/errno.texi: Mention the Minix problem.
10967
10968 2011-07-31  Bruno Haible  <bruno@clisp.org>
10969
10970         Work around declaration collisions on Minix.
10971         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10972         defined, set REPLACE_MBSINIT.
10973         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10974         defined, set REPLACE_MBRTOWC.
10975         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10976         set REPLACE_MBRLEN.
10977         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10978         defined, set REPLACE_MBSRTOWCS.
10979         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10980         defined, set REPLACE_WCRTOMB.
10981         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10982         defined, set REPLACE_WCSRTOMBS.
10983
10984 2011-07-31  Bruno Haible  <bruno@clisp.org>
10985
10986         Add support for Minix with ACK compiler.
10987         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10988         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10989         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10990
10991 2011-07-31  Bruno Haible  <bruno@clisp.org>
10992
10993         Documentation about Minix.
10994         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10995         * doc/glibc-headers/*.texi: Likewise.
10996         * doc/posix-functions/*.texi: Likewise.
10997         * doc/glibc-functions/*.texi: Likewise.
10998
10999 2011-07-31  Bruno Haible  <bruno@clisp.org>
11000
11001         snippet/warn-on-use: Fix indentation.
11002         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11003
11004 2011-07-25  Jim Meyering  <meyering@redhat.com>
11005
11006         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11007         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11008         commands.
11009
11010 2011-07-27  Jim Meyering  <meyering@redhat.com>
11011
11012         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11013         * top/maint.mk (gl_extract_significant_defines_): Now that
11014         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11015         gnulib/lib/signal.in.h, and now that we recommend to
11016         define-if-undefined those two symbols in application code,
11017         we must filter them out of the "significant" list.
11018         This avoids a "make syntax-check" failure in coreutils.
11019
11020 2011-07-26  Eric Blake  <eblake@redhat.com>
11021
11022         warnings: add comments about previous patch
11023         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11024         * m4/include_next.m4: Likewise.
11025         * m4/warn-on-use.m4: Likewise.
11026         * m4/warnings.m4: Likewise, and simplify use.
11027         Suggested by Stefano Lattarini.
11028
11029         include-next, warnings: support older autoconf
11030         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11031         AS_VAR_PUSHDEF in a way that works with older autoconf.
11032         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11033         Reported by Daniel P. Berrange.
11034
11035 2011-07-25  Bruno Haible  <bruno@clisp.org>
11036
11037         fseek, ftell: Fix doc.
11038         * doc/posix-functions/fseek.texi: Reword statement about
11039         AC_SYS_LARGEFILE.
11040         * doc/posix-functions/ftell.texi: Likewise.
11041
11042 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11043             Bruno Haible  <bruno@clisp.org>
11044
11045         Add dependencies to the 'largefile' module.
11046         * modules/fopen (Depends-on): Add 'largefile'.
11047         * modules/freopen (Depends-on): Likewise.
11048         * modules/fseeko (Depends-on): Likewise.
11049         * modules/ftello (Depends-on): Likewise.
11050         * modules/glob (Depends-on): Likewise.
11051         * modules/lseek (Depends-on): Likewise.
11052         * modules/lstat (Depends-on): Likewise.
11053         * modules/mkostemp (Depends-on): Likewise.
11054         * modules/mkostemps (Depends-on): Likewise.
11055         * modules/mkstemp (Depends-on): Likewise.
11056         * modules/mkstemps (Depends-on): Likewise.
11057         * modules/open (Depends-on): Likewise.
11058         * modules/openat (Depends-on): Likewise.
11059         * modules/pread (Depends-on): Likewise.
11060         * modules/pwrite (Depends-on): Likewise.
11061         * modules/scandir (Depends-on): Likewise.
11062         * modules/stat (Depends-on): Likewise.
11063         * modules/tmpfile (Depends-on): Likewise.
11064         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11065         since the containing module now depends on the largefile module.
11066         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11067         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11068         off_t is fixed by gnulib.
11069         * doc/posix-functions/freopen.texi: Likewise.
11070         * doc/posix-functions/fseeko.texi: Likewise.
11071         * doc/posix-functions/fstatat.texi: Likewise.
11072         * doc/posix-functions/ftello.texi: Likewise.
11073         * doc/posix-functions/glob.texi: Likewise.
11074         * doc/posix-functions/lseek.texi: Likewise.
11075         * doc/posix-functions/lstat.texi: Likewise.
11076         * doc/posix-functions/mkstemp.texi: Likewise.
11077         * doc/posix-functions/open.texi: Likewise.
11078         * doc/posix-functions/openat.texi: Likewise.
11079         * doc/posix-functions/pread.texi: Likewise.
11080         * doc/posix-functions/pwrite.texi: Likewise.
11081         * doc/posix-functions/scandir.texi: Likewise.
11082         * doc/posix-functions/stat.texi: Likewise.
11083         * doc/posix-functions/tmpfile.texi: Likewise.
11084         * doc/glibc-functions/mkostemp.texi: Likewise.
11085         * doc/glibc-functions/mkostemps.texi: Likewise.
11086         * doc/glibc-functions/mkstemps.texi: Likewise.
11087
11088 2011-07-25  Bruno Haible  <bruno@clisp.org>
11089
11090         fcntl: Move AC_LIBOBJ invocation to module description.
11091         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11092         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11093
11094         fcntl: Remove call-in from fchdir.m4.
11095         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11097
11098         dup3: Remove potential call-in from fchdir.m4.
11099         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11101
11102         dup2: Move AC_LIBOBJ invocation to module description.
11103         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11104         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11105         Don't invoke AC_LIBOBJ.
11106         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11107
11108         dup2: Remove call-in from fchdir.m4.
11109         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11110         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11111
11112         fclose: Move AC_LIBOBJ invocation to module description.
11113         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11114         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11115         to 1.
11116         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11117
11118         fclose: Remove call-in from close.m4.
11119         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11120         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11121
11122         close: Move AC_LIBOBJ invocation to module description.
11123         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11124         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11125         1.
11126         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11127
11128         close: Remove call-in from fchdir.m4.
11129         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11131
11132         open: Move AC_LIBOBJ invocation to module description.
11133         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11134         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11135         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11136
11137         open: Remove call-in from fchdir.m4.
11138         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11139         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11140
11141         fchdir: Start to remove gl_REPLACE_* idiom.
11142         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11143         (gl_FUNC_FCHDIR): Invoke it.
11144
11145 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11146
11147         * lib/ftell.c (ftell): Comment out cast.
11148
11149         close: use gl_REPLACE_FCLOSE only if defined
11150         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11151         is defined.  The close module doesn't depend on the fclose module
11152         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11154         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11155
11156 2011-07-24  Jim Meyering  <meyering@redhat.com>
11157
11158         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11159         * tests/test-select.h (test_function): Declare as "static".
11160
11161 2011-07-24  Bruno Haible  <bruno@clisp.org>
11162
11163         doc: Mention the effects of AC_SYS_LARGEFILE.
11164         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11165         on this function.
11166         * doc/posix-functions/aio_error.texi: Likewise.
11167         * doc/posix-functions/aio_fsync.texi: Likewise.
11168         * doc/posix-functions/aio_read.texi: Likewise.
11169         * doc/posix-functions/aio_return.texi: Likewise.
11170         * doc/posix-functions/aio_suspend.texi: Likewise.
11171         * doc/posix-functions/aio_write.texi: Likewise.
11172         * doc/posix-functions/fgetpos.texi: Likewise.
11173         * doc/posix-functions/fopen.texi: Likewise.
11174         * doc/posix-functions/freopen.texi: Likewise.
11175         * doc/posix-functions/fsetpos.texi: Likewise.
11176         * doc/posix-functions/fstatvfs.texi: Likewise.
11177         * doc/posix-functions/ftruncate.texi: Likewise.
11178         * doc/posix-functions/ftw.texi: Likewise.
11179         * doc/posix-functions/getrlimit.texi: Likewise.
11180         * doc/posix-functions/glob.texi: Likewise.
11181         * doc/posix-functions/lio_listio.texi: Likewise.
11182         * doc/posix-functions/lockf.texi: Likewise.
11183         * doc/posix-functions/mkstemp.texi: Likewise.
11184         * doc/posix-functions/mmap.texi: Likewise.
11185         * doc/posix-functions/nftw.texi: Likewise.
11186         * doc/posix-functions/openat.texi: Likewise.
11187         * doc/posix-functions/opendir.texi: Likewise.
11188         * doc/posix-functions/posix_fadvise.texi: Likewise.
11189         * doc/posix-functions/posix_fallocate.texi: Likewise.
11190         * doc/posix-functions/pread.texi: Likewise.
11191         * doc/posix-functions/pwrite.texi: Likewise.
11192         * doc/posix-functions/readdir.texi: Likewise.
11193         * doc/posix-functions/readdir_r.texi: Likewise.
11194         * doc/posix-functions/rewinddir.texi: Likewise.
11195         * doc/posix-functions/scandir.texi: Likewise.
11196         * doc/posix-functions/seekdir.texi: Likewise.
11197         * doc/posix-functions/setrlimit.texi: Likewise.
11198         * doc/posix-functions/statvfs.texi: Likewise.
11199         * doc/posix-functions/telldir.texi: Likewise.
11200         * doc/posix-functions/tmpfile.texi: Likewise.
11201         * doc/posix-functions/truncate.texi: Likewise.
11202         * doc/glibc-functions/fallocate.texi: Likewise.
11203         * doc/glibc-functions/fstatfs.texi: Likewise.
11204         * doc/glibc-functions/fts_children.texi: Likewise.
11205         * doc/glibc-functions/fts_read.texi: Likewise.
11206         * doc/glibc-functions/getdirentries.texi: Likewise.
11207         * doc/glibc-functions/mkostemp.texi: Likewise.
11208         * doc/glibc-functions/mkostemps.texi: Likewise.
11209         * doc/glibc-functions/mkstemps.texi: Likewise.
11210         * doc/glibc-functions/preadv.texi: Likewise.
11211         * doc/glibc-functions/pwritev.texi: Likewise.
11212         * doc/glibc-functions/sendfile.texi: Likewise.
11213         * doc/glibc-functions/statfs.texi: Likewise.
11214
11215 2011-07-24  Bruno Haible  <bruno@clisp.org>
11216
11217         doc: Fix typo.
11218         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11219
11220 2011-07-24  Bruno Haible  <bruno@clisp.org>
11221
11222         doc: Mention fsusage.
11223         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11224
11225 2011-07-24  Bruno Haible  <bruno@clisp.org>
11226
11227         doc: Mention new glibc headers and functions.
11228         * doc/glibc-headers/gshadow.texi: New file.
11229         * doc/glibc-functions/endsgent.texi: New file.
11230         * doc/glibc-functions/fgetsgent.texi: New file.
11231         * doc/glibc-functions/fgetsgent_r.texi: New file.
11232         * doc/glibc-functions/getsgent.texi: New file.
11233         * doc/glibc-functions/getsgent_r.texi: New file.
11234         * doc/glibc-functions/getsgnam.texi: New file.
11235         * doc/glibc-functions/getsgnam_r.texi: New file.
11236         * doc/glibc-functions/putsgent.texi: New file.
11237         * doc/glibc-functions/setsgent.texi: New file.
11238         * doc/glibc-functions/sgetsgent.texi: New file.
11239         * doc/glibc-functions/sgetsgent_r.texi: New file.
11240         * doc/glibc-functions/malloc_info.texi: New file.
11241         * doc/glibc-functions/preadv.texi: New file.
11242         * doc/glibc-functions/pwritev.texi: New file.
11243         * doc/glibc-functions/register_printf_modifier.texi: New file.
11244         * doc/glibc-functions/register_printf_specifier.texi: New file.
11245         * doc/glibc-functions/register_printf_type.texi: New file.
11246         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11247         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11248         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11249         * doc/glibc-functions/pthread_getname_np.texi: New file.
11250         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11251         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11252         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11253         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11254         * doc/glibc-functions/pthread_setname_np.texi: New file.
11255         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11256         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11257         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11258         * doc/glibc-functions/qsort_r.texi: New file.
11259         * doc/glibc-functions/quick_exit.texi: New file.
11260         * doc/glibc-functions/syncfs.texi: New file.
11261         * doc/gnulib.texi: Include them.
11262         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11263         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11264         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11265         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11266         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11267         * doc/glibc-functions/execvpe.texi: Likewise.
11268
11269 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11270
11271         ftell: don't include <unistd.h>
11272         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11273         guaranteed to define off_t, and the ftell module depends on the
11274         stdio module.
11275
11276         ftell: do not assume wraparound signed arithmetic
11277         * lib/ftell.c: Include <limits.h>.
11278         (ftell): Don't assume wraparound signed arithmetic.
11279
11280 2011-07-24  Bruno Haible  <bruno@clisp.org>
11281
11282         close: No longer depend on module 'fclose'.
11283         * modules/close (Depends-on): Remove fclose.
11284         * NEWS: Mention the change.
11285         Suggested by Sam Steingold <sds@gnu.org>.
11286
11287 2011-07-24  Bruno Haible  <bruno@clisp.org>
11288
11289         fsusage: Enable large volume support on AIX >= 5.2.
11290         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11291         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11292         instead of STAT_STATVFS.
11293         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11294
11295         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11296         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11297         f_blocks field only on MacOS X.
11298
11299         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11300         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11301         * modules/fsusage (Depends-on): Add largefile.
11302
11303 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11304
11305         * README: Modernize discussion of signed integers.
11306         Assuming overflow wraparound is no longer safe.
11307         Mention ones' complement and signed magnitude.
11308
11309 2011-07-22  Bruno Haible  <bruno@clisp.org>
11310
11311         select tests, pselect tests: Refactor.
11312         * tests/test-select.h: New file, extracted from tests/test-select.c.
11313         (select_fn): New type.
11314         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11315         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11316         test_pipe): Add my_select argument.
11317         (test_function): Renamed from main. Add my_select argument.
11318         * tests/test-select.c: Move most code to tests/test-select.h. Include
11319         test-select.h.
11320         * modules/select-tests (Files): Add tests/test-select.h.
11321         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11322         (my_select, main): New functions.
11323         * modules/pselect-tests (Files): Add tests/test-select.h,
11324         tests/macros.h, tests/signature.h.
11325         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11326         (configure.ac): Check for <sys/wait.h>.
11327
11328 2011-07-22  Bruno Haible  <bruno@clisp.org>
11329
11330         sys_select tests: Check the signature of FD_*.
11331         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11332         signature tests from here...
11333         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11334         here.
11335         * modules/sys_select-tests (Files): Add tests/signature.h.
11336
11337 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11338
11339         largefile: new module, replacing large-inode
11340         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11341         * MODULES.html.sh: Add largefile, remove large-inode.
11342         * modules/largefile, m4/largefile.m4: New files.
11343         * modules/large-inode, m4/large-inode.m4: Remove.
11344
11345         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11347         implementations that use only 32 bits to count blocks.
11348         On typical hosts with 1024-byte blocks, this fails with file
11349         systems as small as 4 TiB.  Problem reported by Herb Wartens
11350         <http://debbugs.gnu.org/9140> and this should also fix a similar
11351         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11352
11353         large-inode: New module
11354         * MODULES.html.sh: Add it.
11355         * modules/large-inode, m4/large-inode.m4: New files.
11356
11357         extensions: Enable extensions on MacOS X 10.5 and later.
11358         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11359
11360 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11361
11362         file-has-acl: use acl_extended_file_nofollow if available
11363         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11364         (acl_extended_file): New macro.
11365         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11366         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11367
11368 2011-07-21  Bruno Haible  <bruno@clisp.org>
11369
11370         Declare system functions in a way that works with C++.
11371         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11372         declare fdopendir as extern "C".
11373         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11374         declare frexpl as extern "C".
11375         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11376         declare gai_strerror as extern "C".
11377         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11378         programs, declare gai_strerror as extern "C".
11379         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11380         declare getlogin_r as extern "C".
11381         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11382         as extern "C".
11383         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11384         declare ldexpl as extern "C".
11385         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11386         as extern "C".
11387         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11388         program, declare getmntinfo as extern "C".
11389         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11390         stpncpy as extern "C".
11391         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11392         program, declare __xpg_strerror_r as extern "C".
11393         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11394         strndup as extern "C".
11395         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11396         declare memset and bzero as extern "C".
11397         Reported by Sam Steingold <sds@gnu.org>.
11398
11399 2011-07-12  Jim Meyering  <meyering@redhat.com>
11400
11401         maint.mk: prohibit inclusion of "verify.h" without use
11402         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11403
11404 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11405
11406         timer-time: A new module to check for timer_settime()
11407         * m4/timer_time.m4: Check for the posix function.
11408         * modules/timer-time: Add the new module.
11409         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11410         Mention it.
11411
11412 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11413             Bruno Haible  <bruno@clisp.org>
11414
11415         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11416         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11417         not defined, assume POSIX threads and look for pthread_sigmask in
11418         $LIBS, without changing $CPPFLAGS.
11419
11420 2011-07-19  Bruno Haible  <bruno@clisp.org>
11421
11422         strstr: Update cross-compilation guess.
11423         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11424         CPUs, guess no, in view of glibc
11425         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11426         Suggested by Eric Blake. Reported by Reuben Thomas.
11427
11428 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11429
11430         getopt-gnu: suppress core dumps from detection code
11431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11432         to suppress core dumps that may well occur on glibc systems.
11433         * modules/getopt-gnu: Depend on nocrash.
11434
11435 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11436
11437         pthread_sigmask: ensure usleep is declared
11438         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11439         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11440
11441 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11442
11443         doc: Document NonStop portability issues.
11444         * doc/posix-functions/sigaction.texi (sigaction):
11445         * doc/posix-headers/signal.texi (signal.h):
11446         Document NonStop.  See Joachim Schmitz in
11447         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11448
11449 2011-07-15  Bruno Haible  <bruno@clisp.org>
11450
11451         ffsl, ffsll: Avoid unportable behaviour.
11452         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11453
11454 2011-07-15  Bruno Haible  <bruno@clisp.org>
11455
11456         ffs: More tests.
11457         * tests/test-ffs.c (NBITS): New macro.
11458         (main): Add more tests.
11459         * tests/test-ffsl.c (NBITS): New macro.
11460         (main): Add more tests.
11461         * tests/test-ffsll.c (NBITS): New macro.
11462         (main): Add more tests.
11463
11464 2011-07-15  Eric Blake  <eblake@redhat.com>
11465
11466         ffsl, ffsll: new modules
11467         * modules/ffsl: New file.
11468         * modules/ffsll: Likewise.
11469         * m4/ffsl.m4: Likewise.
11470         * m4/ffsll.m4: Likewise.
11471         * lib/ffsl.c: Likewise.
11472         * lib/ffsl.h: Likewise.
11473         * lib/ffsll.c: Likewise.
11474         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11475         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11476         * modules/string (Makefile.am): Substitute witnesses.
11477         * lib/strings.in.h (ffsl, ffsll): Declare.
11478         * modules/ffsl-tests: New test file.
11479         * modules/ffsll-tests: Likewise.
11480         * tests/test-ffsl.c: Likewise.
11481         * tests/test-ffsll.c: Likewise.
11482         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11483         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11484         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11485
11486         ffs: fix m4 prerequisite
11487         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11488
11489         ffs: avoid undefined behavior
11490         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11491         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11492         Reported by Bruno Haible.
11493
11494 2011-07-12  Bruno Haible  <bruno@clisp.org>
11495
11496         pthread_sigmask: Rely on module 'threadlib'.
11497         * modules/pthread_sigmask (Depends-on): Add threadlib.
11498         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11499         is defined.
11500
11501 2011-07-12  Bruno Haible  <bruno@clisp.org>
11502
11503         regex: Depend on module 'strcase'.
11504         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11505
11506 2011-07-12  Jim Meyering  <meyering@redhat.com>
11507
11508         warn-on-use: fix typo in file name
11509         * modules/snippet/warn-on-use (Files): Correct file name:
11510         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11511
11512 2011-07-12  Bruno Haible  <bruno@clisp.org>
11513
11514         strings: Document module.
11515         * doc/posix-headers/strings.texi: Mention module 'strings'.
11516
11517 2011-07-12  Bruno Haible  <bruno@clisp.org>
11518
11519         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11520         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11521         (Files, Makefile.am): Update.
11522         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11523         * modules/stdlib (Depends-on): Update.
11524
11525 2011-07-12  Bruno Haible  <bruno@clisp.org>
11526
11527         * NEWS: Mention the changes.
11528
11529         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11530         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11531         (Files, Makefile.am): Update.
11532         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11533         * modules/arpa_inet (Depends-on): Update.
11534         * modules/ctype (Depends-on): Update.
11535         * modules/dirent (Depends-on): Update.
11536         * modules/fcntl-h (Depends-on): Update.
11537         * modules/glob (Depends-on): Update.
11538         * modules/iconv-h (Depends-on): Update.
11539         * modules/inttypes-incomplete (Depends-on): Update.
11540         * modules/langinfo (Depends-on): Update.
11541         * modules/locale (Depends-on): Update.
11542         * modules/math (Depends-on): Update.
11543         * modules/netdb (Depends-on): Update.
11544         * modules/poll-h (Depends-on): Update.
11545         * modules/pty (Depends-on): Update.
11546         * modules/search (Depends-on): Update.
11547         * modules/signal (Depends-on): Update.
11548         * modules/spawn (Depends-on): Update.
11549         * modules/stdio (Depends-on): Update.
11550         * modules/stdlib (Depends-on): Update.
11551         * modules/string (Depends-on): Update.
11552         * modules/strings (Depends-on): Update.
11553         * modules/sys_file (Depends-on): Update.
11554         * modules/sys_ioctl (Depends-on): Update.
11555         * modules/sys_select (Depends-on): Update.
11556         * modules/sys_socket (Depends-on): Update.
11557         * modules/sys_stat (Depends-on): Update.
11558         * modules/sys_time (Depends-on): Update.
11559         * modules/sys_times (Depends-on): Update.
11560         * modules/sys_utsname (Depends-on): Update.
11561         * modules/sys_wait (Depends-on): Update.
11562         * modules/termios (Depends-on): Update.
11563         * modules/time (Depends-on): Update.
11564         * modules/unistd (Depends-on): Update.
11565         * modules/wchar (Depends-on): Update.
11566         * modules/wctype-h (Depends-on): Update.
11567         * MODULES.html.sh (Support for building libraries and executables):
11568         Update.
11569
11570         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11571         * modules/snippet/unused-parameter: Renamed from
11572         modules/unused-parameter.
11573         (Files, Makefile.am): Update.
11574         * build-aux/snippet/unused-parameter.h: Renamed from
11575         build-aux/unused-parameter.h.
11576         * modules/selinux-h (Depends-on): Update.
11577         * modules/unistr/base (Depends-on): Update.
11578         * MODULES.html.sh (Core language properties): Update.
11579
11580         Rename module 'link-warning' to 'snippet/link-warning'.
11581         * modules/snippet/link-warning: Renamed from modules/link-warning.
11582         (Files, Makefile.am): Update.
11583         * build-aux/snippet/link-warning.h: Renamed from
11584         build-aux/link-warning.h.
11585         * MODULES.html.sh (Support for building libraries and executables):
11586         Update.
11587
11588         Rename module 'c++defs' to 'snippet/c++defs'.
11589         * modules/snippet/c++defs: Renamed from modules/c++defs.
11590         (Files, Makefile.am): Update.
11591         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11592         * modules/arpa_inet (Depends-on): Update.
11593         * modules/ctype (Depends-on): Update.
11594         * modules/dirent (Depends-on): Update.
11595         * modules/fcntl-h (Depends-on): Update.
11596         * modules/glob (Depends-on): Update.
11597         * modules/iconv-h (Depends-on): Update.
11598         * modules/langinfo (Depends-on): Update.
11599         * modules/locale (Depends-on): Update.
11600         * modules/math (Depends-on): Update.
11601         * modules/netdb (Depends-on): Update.
11602         * modules/poll-h (Depends-on): Update.
11603         * modules/pty (Depends-on): Update.
11604         * modules/search (Depends-on): Update.
11605         * modules/signal (Depends-on): Update.
11606         * modules/spawn (Depends-on): Update.
11607         * modules/stdio (Depends-on): Update.
11608         * modules/stdlib (Depends-on): Update.
11609         * modules/string (Depends-on): Update.
11610         * modules/strings (Depends-on): Update.
11611         * modules/sys_ioctl (Depends-on): Update.
11612         * modules/sys_select (Depends-on): Update.
11613         * modules/sys_socket (Depends-on): Update.
11614         * modules/sys_stat (Depends-on): Update.
11615         * modules/sys_time (Depends-on): Update.
11616         * modules/sys_wait (Depends-on): Update.
11617         * modules/termios (Depends-on): Update.
11618         * modules/time (Depends-on): Update.
11619         * modules/unistd (Depends-on): Update.
11620         * modules/wchar (Depends-on): Update.
11621         * modules/wctype-h (Depends-on): Update.
11622
11623         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11624         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11625         (Files, Makefile.am): Update.
11626         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11627         * modules/argv-iter (Depends-on): Update.
11628         * modules/arpa_inet (Depends-on): Update.
11629         * modules/dirent (Depends-on): Update.
11630         * modules/fcntl-h (Depends-on): Update.
11631         * modules/fnmatch (Depends-on): Update.
11632         * modules/getopt-posix (Depends-on): Update.
11633         * modules/glob (Depends-on): Update.
11634         * modules/iconv-h (Depends-on): Update.
11635         * modules/inttypes-incomplete (Depends-on): Update.
11636         * modules/locale (Depends-on): Update.
11637         * modules/math (Depends-on): Update.
11638         * modules/netdb (Depends-on): Update.
11639         * modules/search (Depends-on): Update.
11640         * modules/signal (Depends-on): Update.
11641         * modules/spawn (Depends-on): Update.
11642         * modules/stdio (Depends-on): Update.
11643         * modules/stdlib (Depends-on): Update.
11644         * modules/string (Depends-on): Update.
11645         * modules/strings (Depends-on): Update.
11646         * modules/sys_socket (Depends-on): Update.
11647         * modules/sys_stat (Depends-on): Update.
11648         * modules/sys_time (Depends-on): Update.
11649         * modules/sys_times (Depends-on): Update.
11650         * modules/sys_utsname (Depends-on): Update.
11651         * modules/time (Depends-on): Update.
11652         * modules/unistd (Depends-on): Update.
11653         * modules/wchar (Depends-on): Update.
11654         * MODULES.html.sh (Support for building libraries and executables):
11655         Update.
11656
11657 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11658
11659         Improvements on _Noreturn and related modules.
11660
11661         modules/_Exit-tests: test _Noreturn too
11662         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11663         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11664         (main): Use them.
11665
11666         stdnoreturn, stdnoreturn-tests: remove modules
11667         They're not needed here and a bit premature for use elsewhere.  See
11668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11669         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11670         * tests/test-stdnoreturn.c: Remove files.
11671         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11672         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11673         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11674         and using noreturn.
11675         * modules/openat, modules/sigpipe-die, modules/xalloc:
11676         * modules/xmemdup0, modules/xstrtol:
11677         Remove dependency on stdnoreturn.
11678
11679         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11680         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11681         Reparenthesize to avoid GCC warning.
11682         Support Microsoft's syntax.
11683         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11684
11685         _Noreturn-tests: remove module
11686         * modules/_Noreturn-tests: Remove.
11687         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11688         * tests/test-_Noreturn.c: Remove.
11689         * tests/test-stdnoreturn.c: Merge from the old
11690         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11691
11692 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11693
11694         _Noreturn, stdnoreturn, and related modules.
11695
11696         * top/maint.mk: Adjust to new noreturn support.
11697         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11698         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11699
11700         xalloc: use stdnoreturn.h
11701         * lib/xalloc.h: Include <stdnoreturn.h>.
11702         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11703         * modules/xalloc (Depends-on): Add stdnoreturn.
11704
11705         xstrtol: use stdnoreturn.h
11706         * lib/xstrtol.h: Include <stdnoreturn.h>.
11707         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11708         * modules/xstrtol (Depends-on): Add stdnoreturn.
11709
11710         xmemdup0: use stdnoreturn.h
11711         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11712         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11713         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11714
11715         sigpipe-die: use stdnoreturn.h
11716         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11717         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11718         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11719
11720         openat: use stdnoreturn.h
11721         * lib/openat.h: Include <stdnoreturn.h>.
11722         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11723         * modules/openat (Depends-on): Add stdnoreturn.
11724
11725         * lib/openat-die.c (openat_save_fail): Modernize comment.
11726
11727         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11728
11729         * lib/glthread/thread.h: Modernize comment.
11730
11731         obstack: use _Noreturn
11732         * lib/obstack.c (__attribute__): Remove macro.
11733         (print_and_abort): Use _Noreturn.
11734
11735         c-stack: use _Noreturn
11736         * lib/c-stack.c (die, overflow_handler, segv_handler):
11737         Use _Noreturn rather than __attribute__((noreturn)).
11738
11739         argmatch-tests, exclude_tests: use _Noreturn
11740         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11741         Remove.
11742         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11743
11744         stdlib: use _Noreturn
11745         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11746         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11747         * modules/stdlib (Depends-on): Add _Noreturn.
11748         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11749
11750         stdnoreturn-tests: new module
11751         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11752
11753         stdnoreturn: new module
11754         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11755         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11756
11757         _Noreturn-tests: new module
11758         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11759
11760         _Noreturn: new module
11761         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11762         New section, mentioning it.
11763         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11764
11765         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11766
11767 2011-07-11  Eric Blake  <eblake@redhat.com>
11768
11769         ffs: new module
11770         * modules/ffs: New file.
11771         * m4/ffs.m4: Likewise.
11772         * lib/ffs.c: Likewise.
11773         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11774         * modules/strings (Makefile.am): Substitute witness.
11775         (Depends-on): Add c++defs.
11776         * lib/strings.in.h (ffs): Declare.
11777         * modules/ffs-tests: New test file.
11778         * tests/test-ffs.c: Test new module.
11779         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11780         * doc/posix-functions/ffs.texi (ffs): Likewise.
11781
11782         regex: avoid compiler warning
11783         * lib/regex.c (includes): Include <strings.h>, for use of
11784         strcasecmp in regcomp.c.
11785         Reported by Joachim Schmitz.
11786
11787 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11788
11789         stdint: respect system's intmax_t if INTMAX_MAX
11790         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11791         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11792         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11793         long but int64_t is long long, and where we will clash with the
11794         system intmax_t if we override it.  See
11795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11796         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11797         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11798         similarly for UINTMAX_C.
11799
11800 2011-07-08  Bruno Haible  <bruno@clisp.org>
11801
11802         pthread_sigmask tests: Avoid a compiler warning.
11803         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11804         non-zero.
11805
11806         sigprocmask tests: A better way to avoid a compiler warning.
11807         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11808         (main): Complain if system() returns non-zero.
11809         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11810
11811 2011-07-08  Bruno Haible  <bruno@clisp.org>
11812
11813         pthread_sigmask: Work around IRIX bug.
11814         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11815         bug.
11816         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11817         there may be unblocked pending signals.
11818         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11819
11820 2011-07-08  Bruno Haible  <bruno@clisp.org>
11821
11822         pthread_sigmask: Work around Cygwin bug.
11823         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11824         bug.
11825         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11826         the system's pthread_sigmask function.
11827         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11828
11829 2011-07-08  Bruno Haible  <bruno@clisp.org>
11830
11831         pthread_sigmask: Work around bug in single-threaded implementation.
11832         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11833         FreeBSD, HP-UX, Solaris bug.
11834         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11835         * lib/pthread_sigmask.c: Include <stddef.h>.
11836         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11837         the system's pthread_sigmask function.
11838         * modules/pthread_sigmask (configure.ac): Invoke
11839         gl_PREREQ_PTHREAD_SIGMASK.
11840         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11841         HP-UX, Solaris.
11842
11843 2011-07-08  Eric Blake  <eblake@redhat.com>
11844
11845         test-sigprocmask: avoid compiler warning
11846         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11847         * tests/test-sigprocmask.c (main): Use it to silence warning.
11848         Reported by Jim Meyering.
11849
11850         test-snprintf: avoid compiler warning
11851         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11852         * tests/test-vsnprintf.c (main): Likewise.
11853         Reported by Jim Meyering.
11854
11855 2011-07-08  Bruno Haible  <bruno@clisp.org>
11856
11857         Tests for module 'pthread_sigmask'.
11858         * modules/pthread_sigmask-tests: New file.
11859         * tests/test-pthread_sigmask1.c: New file, based on
11860         tests/test-sigprocmask.c.
11861         * tests/test-pthread_sigmask2.c: New file.
11862
11863 2011-07-08  Jim Meyering  <meyering@redhat.com>
11864
11865         test-getopt.h: avoid warning about an unused variable
11866         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11867
11868 2011-07-07  Jim Meyering  <meyering@redhat.com>
11869
11870         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11871         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11872         now that it no longer contains leading TABs.
11873         Remove unused "url=FIXME" statement.
11874
11875 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11876
11877         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11879         When gl_THREADLIB is not in use, assume that the POSIX sematics
11880         are desired.  This is better for Emacs, which uses POSIX semantics
11881         on GNUish and/or POSIXish platforms, and does not use threads at
11882         all otherwise.
11883
11884         pthread_sigmask: fix typo when testing for libraries
11885         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11886         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11887
11888 2011-07-08  Eric Blake  <eblake@redhat.com>
11889
11890         fts: introduce FTS_NOATIME
11891         * lib/fts_.h (FTS_NOATIME): New bit flag.
11892         (FTS_OPTIONMASK): Adjust.
11893         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11894         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11895
11896 2011-07-08  Bruno Haible  <bruno@clisp.org>
11897
11898         Tests for module 'thread'.
11899         * modules/thread-tests: New file.
11900         * tests/test-thread_self.c: New file.
11901         * tests/test-thread_create.cc: New file.
11902
11903 2011-07-08  Bruno Haible  <bruno@clisp.org>
11904
11905         thread: Avoid gcc warnings when using gl_thread_self().
11906         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11907         'void *'.
11908         (gl_thread_self_pointer): Update.
11909
11910 2011-07-07  Bruno Haible  <bruno@clisp.org>
11911
11912         signal-c++-tests: Check declaration of pthread_sigmask.
11913         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11914         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11915         $(LIB_PTHREAD_SIGMASK).
11916
11917 2011-07-07  Bruno Haible  <bruno@clisp.org>
11918
11919         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11920         * lib/signal.in.h (pthread_sigmask): Override if
11921         REPLACE_PTHREAD_SIGMASK is 1.
11922         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11923         REPLACE_PTHREAD_SIGMASK.
11924         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11925         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11926         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11927         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11928         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11929
11930 2011-07-07  Bruno Haible  <bruno@clisp.org>
11931
11932         pthread_sigmask: Ensure declaration in <signal.h>.
11933         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11934         include <pthread.h>.
11935         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11936         problem.
11937
11938 2011-07-07  Bruno Haible  <bruno@clisp.org>
11939
11940         pthread_sigmask: Document the module.
11941         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11942
11943 2011-07-07  Bruno Haible  <bruno@clisp.org>
11944
11945         pthread_sigmask: Follow gnulib conventions.
11946         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11947         gl_PTHREAD_SIGMASK.
11948         * modules/pthread_sigmask (configure.ac): Update.
11949
11950 2011-07-07  Bruno Haible  <bruno@clisp.org>
11951
11952         pthread_sigmask: Make declaration C++ safe.
11953         * lib/signal.in.h: In two special conditions, just do an #include_next.
11954         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11955         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11956         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11957         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11958         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11959         not REPLACE_PTHREAD_MASK.
11960         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11961         not REPLACE_PTHREAD_MASK.
11962         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11963
11964 2011-07-07  Bruno Haible  <bruno@clisp.org>
11965
11966         pthread_sigmask: Fix return value.
11967         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11968         * lib/pthread_sigmask.c: New file.
11969         * modules/pthread_sigmask (Files): Add it.
11970         (configure.ac): Invoke AC_LIBOBJ.
11971
11972 2011-07-07  Eric Blake  <eblake@redhat.com>
11973
11974         getopt: more portable argv creation
11975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11976         const, use char arrays rather than strings.
11977         Suggested by Paul Eggert.
11978
11979 2011-07-07  Bruno Haible  <bruno@clisp.org>
11980
11981         Tests for module 'sigprocmask'.
11982         * modules/sigprocmask-tests: New file.
11983         * tests/test-sigprocmask.c: New file.
11984
11985 2011-07-07  Bruno Haible  <bruno@clisp.org>
11986
11987         float tests: Tweak.
11988         * tests/test-float.c (main): Tweak skip message.
11989
11990 2011-07-07  Eric Blake  <eblake@redhat.com>
11991
11992         getopt: avoid compiler warning during configure
11993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11994         assigning string literals to non-const pointer.
11995
11996         getopt-gnu: avoid crash in glibc getopt
11997         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11998         * tests/test-getopt.h (test_getopt): Enhance test.
11999         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12000         * doc/posix-functions/getopt.texi (getopt): Document it.
12001         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12002         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12003         Likewise.
12004
12005 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12006
12007         getopt: handle W; without long options in getopt [BZ #12922]
12008         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12009         but no long options are defined, just return 'W'.
12010
12011 2011-07-07  Bruno Haible  <bruno@clisp.org>
12012
12013         Avoid literal tabs.
12014         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12015         variable containing a tab instead of a literal tab.
12016         Reported by Jim Meyering.
12017
12018 2011-07-07  Bruno Haible  <bruno@clisp.org>
12019
12020         Comments.
12021         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12022
12023 2011-07-06  Bruno Haible  <bruno@clisp.org>
12024
12025         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12026         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12027         <winsock2.h>.
12028         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12029         lib/sys_socket.in.h.
12030         (close, gethostname): Hide declarations from <winsock2.h>.
12031         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12032         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12033         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12034         (select): Don't override if gnulib's <sys/select.h> was already
12035         included.
12036         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12037         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12038         setsockopt, shutdown, select): Tweak indentation.
12039
12040 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12041
12042         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12043         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12044         in an application that does not use the sys_select module.
12045
12046 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12047
12048         poll: do not return 0 on timeout=-1
12049         * lib/poll.c: Loop with yield if no events occured
12050
12051 2011-07-06  Eric Blake  <eblake@redhat.com>
12052
12053         pthread_sigmask: always replace when not using pthread
12054         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12055         replacement when using some threading other than pthread.  Fix
12056         logic bug.
12057
12058 2011-07-06  Bruno Haible  <bruno@clisp.org>
12059
12060         Comments.
12061         * m4/printf.m4: Update comments about mingw.
12062
12063 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12064
12065         sys_select: define sigset_t more portably
12066         * lib/sys_select.in.h: Always include <sys/types.h>, since
12067         we now need sigset_t and mingw defines it there.
12068         Include <signal.h> before split inclusion guard, to avoid
12069         mishaps on Solaris, whose <signal.h> eventually includes us.
12070         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12071         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12072         which come from ...
12073         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12074         gl_CHECK_TYPE_SIGSET_T.
12075         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12076         does the real work.
12077         * modules/sys_select (Depends-on): Add 'signal'.
12078
12079         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12080         Suggested by Bruno Haible.
12081
12082         pselect: Use pthread_sigmask, not sigprocmask.
12083         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12084         multithreaded apps better than sigprocmask does.
12085         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12086         sigprocmask directly.
12087
12088 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12089
12090         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12091         Don't #undef,  since we don't need any underlying pselect.
12092         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12093         (Depends-on): Add select.
12094         (Link): Add $(LIBSOCKET).
12095         These changes suggested by Bruno Haible.
12096
12097         pselect: document better
12098         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12099         * doc/posix-functions/pselect.texi (pselect): Document new module.
12100
12101         pthread_sigmask: new module
12102         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12103         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12104         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12105         This is done only as a macro; I don't know how well that'll
12106         work for C++.  Move <sys/types.h> include before the include_next,
12107         to avoid mishap on Solaris.
12108         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12109         * modules/signal (Makefile.am): Substitute the check's results.
12110         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12111
12112         test-pselect: new module
12113         * modules/pselect-tests, tests/test-pselect.c: New files.
12114         * tests/test-select.c, tests/test-sys_select-c++.cc:
12115         If TEST_PSELECT is defined, test pselect instead of testing select.
12116
12117         * tests/test-sys_select.c (sigset_t): Test for it, too.
12118         Suggested by Bruno Haible.
12119
12120 2011-07-05  Eric Blake  <eblake@redhat.com>
12121
12122         snprintf: guarantee %1$d, for libintl
12123         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12124         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12125         * doc/posix-functions/snprintf.texi (snprintf): Update.
12126         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12127         * tests/test-snprintf.c (main): Enhance test.
12128         * tests/test-vsnprintf.c (main): Likewise.
12129
12130 2011-07-05  Jim Meyering  <meyering@redhat.com>
12131
12132         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12133         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12134         per Bruno's request, to accommodate this idiom (no space after "#")
12135         even when the function is inside an #if block:
12136         char *
12137         gets (char *s)
12138         #undef gets
12139         {
12140           ...
12141         }
12142
12143 2011-07-04  Jim Meyering  <meyering@redhat.com>
12144
12145         maint: indent with spaces, not TABs, and add a rule to check this
12146         * tests/test-userspec.c: Indent with spaces, not TABs.
12147         * tests/test-argp.c: Likewise.
12148         * tests/test-c-stack2.sh: Likewise.
12149         * tests/test-parse-duration.sh: Likewise
12150         * m4/strtod.m4: Likewise.
12151         * m4/alloca.m4: Likewise.
12152         * m4/pselect.m4: Likewise.
12153         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12154
12155 2011-07-03  Jim Meyering  <meyering@redhat.com>
12156
12157         maint.mk: correct omissions in prohibit_argmatch_without_use check
12158         This rule would mistakenly report that argmatch.h is included without
12159         use even when both the argmatch and invalid_arg macro were used.
12160         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12161         of argmatch and invalid_arg.
12162
12163 2011-07-03  Bruno Haible  <bruno@clisp.org>
12164
12165         Comments about EINTR.
12166         * lib/safe-read.h: Explain the purpose of this module.
12167         * lib/safe-write.h: Likewise.
12168         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12169         module.
12170         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12171         module.
12172         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12173
12174 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12175
12176         xnanosleep: Rewrite to use new dtotimespec module.
12177         It has the conversion code that used to be in xnanosleep.
12178         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12179         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12180         (TIME_T_MAX): Remove.
12181         (xnanosleep): Rewrite in terms of dtotimespec.
12182         * modules/xnanosleep (Depends-on): Add dtotimespec.
12183         Remove intprops, stdbool.
12184
12185         timespec-add, timespec-sub: new modules
12186         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12187         * lib/timespec-add.c, lib/timespec-sub.c:
12188         * modules/timespec-add, modules/timespec-sub: New files.
12189
12190         dtotimespec: new module
12191         * lib/timespec.h (dtotimespec): New decl.
12192         * lib/dtotimespec.c, modules/dtotimespec: New files.
12193
12194         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12195
12196         pselect: new module
12197         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12198         (pselect): New decls.
12199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12200         since the standard pselect decl uses 'restrict'.
12201         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12202         HAVE_PSELECT, REPLACE_PSELECT.
12203         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12204         HAVE_PSELECT, REPLACE_PSELECT.
12205         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12206
12207         sys_select: don't depend on sys_socket
12208         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12210         This fix works on GNU and GNU-like platforms, but has not been tested
12211         on native Windows.
12212         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12213         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12214         gl_HEADER_SYS_SOCKET.
12215         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12216         gl_PREREQ_SYS_H_WINSOCK2.
12217
12218 2011-06-29  Eric Blake  <eblake@redhat.com>
12219
12220         pipe2: fix C89 compile problem
12221         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12222         Reported by Bruno Haible.
12223
12224         pipe, pipe2: don't corrupt fd on error
12225         * lib/pipe.c (pipe): Leave fd unchanged on error.
12226         * lib/pipe2.c (pipe2): Likewise.
12227         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12228         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12229
12230 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12231
12232         mmap-anon: do not use regular expressions inadvertently
12233         * m4/mmap-anon.m4: Remove trailing period from strings sought
12234         in the output.
12235
12236 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12237
12238         nanosleep: fix integer overflow problem
12239         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12240         arithmetic wraps around on overflow.
12241
12242         nanosleep: simplify carrying
12243         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12244         first call to the underyling nanosleep, not for the last one.
12245         This doesn't fix any bugs, but it simplifies the computation of
12246         the remaining delay.  Found while auditing integer overflow issues.
12247
12248         dup2: remove test for existence of fcntl
12249         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12250         "#if HAVE_FCNTL", in the configure-time test program.
12251         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12252         and therefore speeds up "configure" a bit.  Found while
12253         adding the dup2 module to Emacs.
12254
12255 2011-06-24  Eric Blake  <eblake@redhat.com>
12256
12257         maint.mk: enhance useless header checks
12258         * top/maint.mk (_sc_header_without_use): Check both include
12259         styles.
12260         (sc_prohibit_assert_without_use)
12261         (sc_prohibit_close_stream_without_use)
12262         (sc_prohibit_getopt_without_use)
12263         (sc_prohibit_quotearg_without_use)
12264         (sc_prohibit_quote_without_use)
12265         (sc_prohibit_long_options_without_use)
12266         (sc_prohibit_inttostr_without_use)
12267         (sc_prohibit_ignore_value_without_use)
12268         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12269         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12270         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12271         (sc_prohibit_hash_pjw_without_use)
12272         (sc_prohibit_safe_read_without_use)
12273         (sc_prohibit_argmatch_without_use)
12274         (sc_prohibit_canonicalize_without_use)
12275         (sc_prohibit_root_dev_ino_without_use)
12276         (sc_prohibit_openat_without_use)
12277         (sc_prohibit_c_ctype_without_use)
12278         (sc_prohibit_signal_without_use)
12279         (sc_prohibit_stdio--_without_use)
12280         (sc_prohibit_stdio-safer_without_use)
12281         (sc_prohibit_strings_without_use)
12282         (sc_prohibit_intprops_without_use)
12283         (sc_prohibit_stddef_without_use)
12284         (sc_prohibit_xfreopen_without_use): Update clients.
12285
12286 2011-06-24  Jim Meyering  <meyering@redhat.com>
12287
12288         syntax-check: keep one maint.mk rule in sync with its header
12289         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12290         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12291         I prefer to avoid temporary files here, so use <(...), but that
12292         is not supported by /bin/sh, so...
12293         (SHELL): Define to /bin/bash.
12294
12295 2011-06-24  Eric Blake  <eblake@redhat.com>
12296
12297         maint.mk: update sc_prohibit_intprops_without_use
12298         * top/maint.mk (_intprops_names): Match recent changes.
12299
12300 2011-06-24  Bruno Haible  <bruno@clisp.org>
12301
12302         strerror-override: No-op tweak.
12303         * lib/strerror-override.h (strerror_override): Reorder conditions,
12304         for consistency with lib/strerror-override.c.
12305
12306 2011-06-23  Eric Blake  <eblake@redhat.com>
12307
12308         maint.mk: test further PATH_MAX issues
12309         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12310         (sc_prohibit_path_max_allocation): ...and also test alloca.
12311         Suggested by Jim Meyering.
12312
12313 2011-06-22  Eric Blake  <eblake@redhat.com>
12314
12315         maint.mk: add syntax-check to avoid char[PATH_MAX]
12316         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12317
12318         stat: be robust to PATH_MAX definition
12319         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12320         * modules/stat (Depends-on): Add verify.
12321
12322         link: work around IRIX bug
12323         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12324         * lib/link.c (rpl_link): Work around it.
12325         * tests/test-link.h (test_link): Enhance test.
12326         * doc/posix-functions/link.texi (link): Document the bug.
12327
12328         getopt: silence clang warning
12329         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12330         dereference.
12331         Reported by Gustavo Martin Domato.
12332
12333 2011-06-22  Jim Meyering  <meyering@redhat.com>
12334
12335         bootstrap: do not insert a blank line into each .gitignore file
12336         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12337
12338 2011-06-21  Eric Blake  <eblake@redhat.com>
12339
12340         perror: test for output mismatch
12341         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12342         perror on IRIX.
12343
12344         strerror_r: fix OpenBSD behavior on out-of-range
12345         * lib/strerror_r.c (strerror_r): Always use maximal string.
12346         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12347
12348         strerror_r: fix OpenBSD behavior on 0
12349         * lib/strerror-override.c (strerror_override): Also override 0
12350         when needed.
12351         * lib/strerror-override.h (strerror_override): Likewise.
12352         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12353         earlier.
12354         * lib/strerror_r.c (strerror_r): Likewise.
12355         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12356         behavior...
12357         (gl_FUNC_STRERROR_0): ...into new macro.
12358         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12359         is overridden.
12360         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12361         * modules/strerror-override (Files): Add strerror.m4.
12362         (configure.ac): Also provide override for 0 when needed.
12363         * doc/posix-functions/strerror.texi (strerror): Document this.
12364         * doc/posix-functions/perror.texi (perror): Likewise.
12365
12366         perror: adjust array size
12367         * modules/perror (Depends-on): Add strerror-override.
12368         * lib/perror.c (perror): Use it to avoid magic number.
12369
12370         strerror-override: reduce size
12371         * lib/strerror-override.c (strerror_override): Use fewer lines.
12372
12373 2011-06-20  Bruno Haible  <bruno@clisp.org>
12374
12375         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12376         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12377
12378 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12379
12380         alloca: port to compilers that can optimize like GCC 4.6.0
12381         * lib/alloca.c (find_stack_direction): New signature, taken from
12382         Autoconf git.  This works with GCC 4.6.0.  This code should never
12383         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12384         be used with other compilers that optimize as well as GCC 4.6.0 does.
12385         (alloca): Adjust to new signature.
12386         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12387         New macro, which patches Autoconf in a similar way.
12388
12389         c-stack: stop worrying about stack direction
12390         * lib/c-stack.c (find_stack_direction): Remove.
12391         (segv_handler): Don't worry about stack direction growth, as it's
12392         too much of a pain to configure this correctly, given how compilers
12393         are optimizing-away our stack-growth detection code.  Instead, assume
12394         that any access to just before or just after the stack is OK.
12395         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12396         Don't require AC_FUNC_ALLOCA; no longer needed.
12397
12398 2011-06-20  Eric Blake  <eblake@redhat.com>
12399
12400         test-stat: don't allocate PATH_MAX bytes
12401         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12402         PATH_MAX-sized buffer.
12403         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12404         * modules/stat-tests (Depends-on): Likewise.
12405         * tests/test-fstatat.c (includes): Drop pathmax.h.
12406         * tests/test-stat.c (includes): Likewise.
12407         Reported by Bruno Haible.
12408
12409 2011-06-20  Bruno Haible  <bruno@clisp.org>
12410
12411         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12412         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12413         * lib/float.c: New file.
12414         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12415         REPLACE_FLOAT_LDBL.
12416         * modules/float (Files): Add lib/float.c.
12417         (configure.ac): Invoke AC_LIBOBJ.
12418         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12419
12420 2011-06-20  Bruno Haible  <bruno@clisp.org>
12421
12422         Tests for module 'float'.
12423         * modules/float-tests: New file.
12424         * tests/test-float.c: New file.
12425
12426 2011-06-19  Bruno Haible  <bruno@clisp.org>
12427
12428         isinf: Coding style.
12429         * lib/isinf.c: Use GNU coding style.
12430
12431 2011-06-19  Bruno Haible  <bruno@clisp.org>
12432
12433         linkat test: Avoid test failure on AIX 7.1.
12434         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12435         * tests/test-link.h (test_link): Likewise.
12436
12437 2011-06-19  Bruno Haible  <bruno@clisp.org>
12438
12439         pread test: Avoid test failure on OpenBSD 4.9.
12440         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12441
12442 2011-06-19  Bruno Haible  <bruno@clisp.org>
12443
12444         sprintf-posix: Fix test failure on AIX 7.1.
12445         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12446         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12447         on AIX.
12448         * doc/posix-functions/fprintf.texi: Likewise.
12449         * doc/posix-functions/printf.texi: Likewise.
12450         * doc/posix-functions/snprintf.texi: Likewise.
12451         * doc/posix-functions/sprintf.texi: Likewise.
12452         * doc/posix-functions/vdprintf.texi: Likewise.
12453         * doc/posix-functions/vfprintf.texi: Likewise.
12454         * doc/posix-functions/vprintf.texi: Likewise.
12455         * doc/posix-functions/vsnprintf.texi: Likewise.
12456         * doc/posix-functions/vsprintf.texi: Likewise.
12457
12458 2011-06-19  Bruno Haible  <bruno@clisp.org>
12459
12460         roundl-ieee: Fix test failure on AIX 7.1.
12461         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12462         * doc/posix-functions/roundl.texi: Mention problem with negative
12463         arguments.
12464
12465 2011-06-19  Bruno Haible  <bruno@clisp.org>
12466
12467         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12468         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12469         * doc/posix-functions/round.texi: Mention problem with negative
12470         arguments.
12471         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12472
12473 2011-06-19  Bruno Haible  <bruno@clisp.org>
12474
12475         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12476         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12477         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12478         * doc/posix-functions/roundf.texi: Mention problem with negative
12479         arguments.
12480         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12481
12482 2011-06-19  Bruno Haible  <bruno@clisp.org>
12483
12484         ceilf-ieee: Work around bug on MacOS X 10.5.
12485         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12486
12487         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12488         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12489         IEEE compliant, avoid compiler optimizations.
12490         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12491         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12492         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12493         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12494         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12495         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12496         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12497         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12498         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12499         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12500
12501 2011-06-19  Bruno Haible  <bruno@clisp.org>
12502
12503         ceilf-ieee: Work around bug on AIX 7.1.
12504         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12505         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12506
12507 2011-06-19  Bruno Haible  <bruno@clisp.org>
12508
12509         ceil-ieee: Work around bug on AIX 7.1.
12510         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12511         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12512
12513 2011-06-18  Bruno Haible  <bruno@clisp.org>
12514
12515         fsync test: Avoid test failure on MacOS X and AIX.
12516         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12517         EINVAL.
12518
12519 2011-06-18  Bruno Haible  <bruno@clisp.org>
12520
12521         openat, fdopendir tests: Fix link errors.
12522         * modules/openat-tests (Depends-on): Add progname.
12523         * modules/fdopendir-tests (Depends-on): Likewise.
12524         * tests/test-fchownat.c: Include progname.h.
12525         (main): Call set_program_name.
12526         * tests/test-fstatat.c: Include progname.h.
12527         (main): Call set_program_name.
12528         * tests/test-mkdirat.c: Include progname.h.
12529         (main): Call set_program_name.
12530         * tests/test-openat.c: Include progname.h.
12531         (main): Call set_program_name.
12532         * tests/test-unlinkat.c: Include progname.h.
12533         (main): Call set_program_name.
12534         * tests/test-fdopendir.c: Include progname.h.
12535         (main): Call set_program_name.
12536
12537 2011-06-18  Bruno Haible  <bruno@clisp.org>
12538
12539         Doc update.
12540         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12541         HP-UX.
12542         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12543
12544 2011-06-18  Bruno Haible  <bruno@clisp.org>
12545
12546         getcwd tests: Avoid compilation error on HP-UX 11.31.
12547         * modules/getcwd-tests (Depends-on): Add pathmax.
12548         * tests/test-getcwd.c: Include pathmax.h.
12549
12550 2011-06-18  Bruno Haible  <bruno@clisp.org>
12551
12552         isfinite, isinf: Fix link error on AIX 6 and 7.
12553         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12554         needed, also test the macro with a 'float' argument.
12555         * m4/isinf.m4 (gl_ISINF): Likewise.
12556
12557 2011-06-18  Bruno Haible  <bruno@clisp.org>
12558
12559         getloadavg: Don't clobber LIBS. Regression from previous commit.
12560         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12561         AC_CHECK_LIB from here...
12562         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12563         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12564         gl_func_getloadavg_done.
12565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12566
12567 2011-06-18  Bruno Haible  <bruno@clisp.org>
12568
12569         clean-temp: Improve documentation.
12570         * lib/clean-temp.h: Explain better how to use this module.
12571         Reported by John Darrington <john@darrington.wattle.id.au>.
12572
12573 2011-06-17  Bruno Haible  <bruno@clisp.org>
12574
12575         pread, pwrite: Avoid cc warning on AIX.
12576         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12577         (pwrite): Likewise.
12578
12579 2011-06-17  Bruno Haible  <bruno@clisp.org>
12580
12581         spawn-pipe tests: Fix link error.
12582         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12584
12585 2011-06-17  Bruno Haible  <bruno@clisp.org>
12586
12587         Tests: Remove unnecessary dependency.
12588         * modules/canonicalize-tests (Depends-on): Remove progname.
12589         * modules/chown-tests (Depends-on): Likewise.
12590         * modules/dirname-tests (Depends-on): Likewise.
12591         * modules/fdopendir-tests (Depends-on): Likewise.
12592         * modules/fdutimensat-tests (Depends-on): Likewise.
12593         * modules/hash-tests (Depends-on): Likewise.
12594         * modules/lchown-tests (Depends-on): Likewise.
12595         * modules/linkat-tests (Depends-on): Likewise.
12596         * modules/renameat-tests (Depends-on): Likewise.
12597         * modules/spawn-pipe-tests (Depends-on): Likewise.
12598         * modules/utimensat-tests (Depends-on): Likewise.
12599
12600 2011-06-17  Bruno Haible  <bruno@clisp.org>
12601
12602         spawn-pipe tests: Fix link error.
12603         * tests/test-spawn-pipe-child.c: Undefine fflush.
12604
12605 2011-06-17  Bruno Haible  <bruno@clisp.org>
12606
12607         Fix tests link errors.
12608         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12609         * modules/chown-tests (Makefile.am): Don't link test-chown with
12610         LIBINTL.
12611         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12612         LIBINTL.
12613         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12614         LIBINTL.
12615         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12616         LIBINTL.
12617
12618 2011-06-16  Bruno Haible  <bruno@clisp.org>
12619
12620         crypto/gc-sha1: Fix recent regression.
12621         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12622         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12623
12624         crypto/gc-md5: Fix recent regression.
12625         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12626
12627         crypto/gc-md4: Fix recent regression.
12628         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12629         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12630
12631         crypto/gc-arctwo: Fix recent regression.
12632         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12633         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12634
12635         crypto/gc-rijndael: Fix recent regression.
12636         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12637         (configure.ac): Invoke AC_LIBOBJ here.
12638         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12640
12641         crypto/gc-hmac-sha1: Fix recent regression.
12642         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12643         (configure.ac): Invoke AC_LIBOBJ here.
12644         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12645         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12646
12647         crypto/gc-hmac-md5: Fix recent regression.
12648         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12649         (configure.ac): Invoke AC_LIBOBJ here.
12650         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12651         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12652
12653         crypto/gc-des: Fix recent regression.
12654         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12655         (configure.ac): Invoke AC_LIBOBJ here.
12656         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12657         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12658
12659         crypto/gc-arcfour: Fix recent regression.
12660         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12661         (configure.ac): Invoke AC_LIBOBJ here.
12662         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12663         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12664
12665 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12666
12667         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12668         After the 2011-05-21 change, this macro requires
12669         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12670         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12671
12672 2011-06-16  Bruno Haible  <bruno@clisp.org>
12673
12674         fprintftime: Move AC_LIBOBJ invocations to module description.
12675         * m4/fprintftime.m4: Remove file.
12676         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12677         (configure.ac): Remove gl_FPRINTFTIME call.
12678         (Makefile.am): Augment lib_SOURCES.
12679         Reported by Jim Meyering.
12680
12681 2011-06-16  Bruno Haible  <bruno@clisp.org>
12682
12683         tmpfile-safer: Finish 2011-05-23 commit.
12684         * m4/stdio-safer.m4: Really remove file.
12685         Reported by Jim Meyering.
12686
12687 2011-06-16  Bruno Haible  <bruno@clisp.org>
12688
12689         syntax-check: Fix typo.
12690         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12691         printf-posix.m4.
12692         Reported by Jim Meyering.
12693
12694 2011-06-13  Jim Meyering  <meyering@redhat.com>
12695
12696         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12697         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12698
12699 2011-05-23  Bruno Haible  <bruno@clisp.org>
12700
12701         yesno: Move AC_LIBOBJ invocations to module description.
12702         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12703         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12704
12705 2011-05-23  Bruno Haible  <bruno@clisp.org>
12706
12707         xstrtol: Move AC_LIBOBJ invocations to module description.
12708         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12709         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12710
12711 2011-05-23  Bruno Haible  <bruno@clisp.org>
12712
12713         xstrtold: Move AC_LIBOBJ invocations to module description.
12714         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12715         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12716
12717 2011-05-23  Bruno Haible  <bruno@clisp.org>
12718
12719         xstrtod: Move AC_LIBOBJ invocations to module description.
12720         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12721         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12722
12723 2011-05-23  Bruno Haible  <bruno@clisp.org>
12724
12725         xnanosleep: Move AC_LIBOBJ invocations to module description.
12726         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12727         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12728
12729 2011-05-23  Bruno Haible  <bruno@clisp.org>
12730
12731         xgetcwd: Move AC_LIBOBJ invocations to module description.
12732         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12733         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12734
12735 2011-05-23  Bruno Haible  <bruno@clisp.org>
12736
12737         xalloc: Move AC_LIBOBJ invocations to module description.
12738         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12739         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12740
12741 2011-05-23  Bruno Haible  <bruno@clisp.org>
12742
12743         write-any-file: Move AC_LIBOBJ invocations to module description.
12744         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12745         invocation.
12746         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12747
12748 2011-05-23  Bruno Haible  <bruno@clisp.org>
12749
12750         utimens: Move AC_LIBOBJ invocations to module description.
12751         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12752         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12753
12754 2011-05-23  Bruno Haible  <bruno@clisp.org>
12755
12756         utimecmp: Move AC_LIBOBJ invocations to module description.
12757         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12758         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12759
12760 2011-05-23  Bruno Haible  <bruno@clisp.org>
12761
12762         userspec: Move AC_LIBOBJ invocations to module description.
12763         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12764         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12765
12766 2011-05-23  Bruno Haible  <bruno@clisp.org>
12767
12768         unlinkdir: Move AC_LIBOBJ invocations to module description.
12769         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12770         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12771
12772 2011-05-23  Bruno Haible  <bruno@clisp.org>
12773
12774         unistd-safer: Move AC_LIBOBJ invocations to module description.
12775         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12776         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12777
12778 2011-05-23  Bruno Haible  <bruno@clisp.org>
12779
12780         tempname: Move AC_LIBOBJ invocations to module description.
12781         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12782         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12783
12784 2011-05-23  Bruno Haible  <bruno@clisp.org>
12785
12786         strftime: Move AC_LIBOBJ invocations to module description.
12787         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12788         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12789
12790 2011-05-23  Bruno Haible  <bruno@clisp.org>
12791
12792         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12793         * m4/stdlib-safer.m4: Remove file.
12794         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12795         (configure.ac): Remove gl_STDLIB_SAFER call.
12796         (Makefile.am): Augment lib_SOURCES.
12797
12798 2011-05-23  Bruno Haible  <bruno@clisp.org>
12799
12800         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12801         * m4/stdio-safer.m4: Remove file.
12802         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12803         (configure.ac): Remove gl_TMPFILE_SAFER call.
12804         (Makefile.am): Augment lib_SOURCES.
12805
12806 2011-05-23  Bruno Haible  <bruno@clisp.org>
12807
12808         popen-safer: Move AC_LIBOBJ invocations to module description.
12809         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12810         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12811         (configure.ac): Remove gl_POPEN_SAFER call.
12812         (Makefile.am): Augment lib_SOURCES.
12813
12814 2011-05-23  Bruno Haible  <bruno@clisp.org>
12815
12816         freopen-safer: Move AC_LIBOBJ invocations to module description.
12817         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12818         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12819         (configure.ac): Remove gl_FREOPEN_SAFER call.
12820         (Makefile.am): Augment lib_SOURCES.
12821
12822 2011-05-23  Bruno Haible  <bruno@clisp.org>
12823
12824         fopen-safer: Move AC_LIBOBJ invocations to module description.
12825         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12826         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12827         (configure.ac): Remove gl_FOPEN_SAFER call.
12828         (Makefile.am): Augment lib_SOURCES.
12829
12830 2011-05-23  Bruno Haible  <bruno@clisp.org>
12831
12832         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12833         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12834         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12835
12836 2011-05-23  Bruno Haible  <bruno@clisp.org>
12837
12838         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12839         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12840         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12841
12842 2011-05-23  Bruno Haible  <bruno@clisp.org>
12843
12844         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12845         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12846         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12847
12848 2011-05-23  Bruno Haible  <bruno@clisp.org>
12849
12850         settime: Move AC_LIBOBJ invocations to module description.
12851         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12852         * modules/settime (Makefile.am): Augment lib_SOURCES.
12853
12854 2011-05-23  Bruno Haible  <bruno@clisp.org>
12855
12856         savedir: Move AC_LIBOBJ invocations to module description.
12857         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12858         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12859
12860 2011-05-23  Bruno Haible  <bruno@clisp.org>
12861
12862         save-cwd: Move AC_LIBOBJ invocations to module description.
12863         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12864         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12865
12866 2011-05-23  Bruno Haible  <bruno@clisp.org>
12867
12868         same: Move AC_LIBOBJ invocations to module description.
12869         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12870         * modules/same (Makefile.am): Augment lib_SOURCES.
12871
12872 2011-05-23  Bruno Haible  <bruno@clisp.org>
12873
12874         safe-write: Move AC_LIBOBJ invocations to module description.
12875         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12876         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12877         instead of gl_SAFE_WRITE.
12878         (Makefile.am): Augment lib_SOURCES.
12879
12880 2011-05-23  Bruno Haible  <bruno@clisp.org>
12881
12882         safe-read: Move AC_LIBOBJ invocations to module description.
12883         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12884         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12885         of gl_SAFE_READ.
12886         (Makefile.am): Augment lib_SOURCES.
12887
12888 2011-05-23  Bruno Haible  <bruno@clisp.org>
12889
12890         safe-alloc: Move AC_LIBOBJ invocations to module description.
12891         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12892         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12893
12894 2011-05-23  Bruno Haible  <bruno@clisp.org>
12895
12896         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12897         * m4/rijndael.m4: Remove file.
12898         * modules/crypto/rijndael (Files): Remove it.
12899         (configure.ac): Remove gl_RIJNDAEL call.
12900         (Makefile.am): Augment lib_SOURCES.
12901
12902 2011-05-23  Bruno Haible  <bruno@clisp.org>
12903
12904         readtokens: Move AC_LIBOBJ invocations to module description.
12905         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12906         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12907
12908 2011-05-23  Bruno Haible  <bruno@clisp.org>
12909
12910         read-file: Move AC_LIBOBJ invocations to module description.
12911         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12912         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12913         of gl_FUNC_READ_FILE.
12914         (Makefile.am): Augment lib_SOURCES.
12915
12916 2011-05-23  Bruno Haible  <bruno@clisp.org>
12917
12918         quotearg: Move AC_LIBOBJ invocations to module description.
12919         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12920         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12921
12922 2011-05-23  Bruno Haible  <bruno@clisp.org>
12923
12924         quote: Move AC_LIBOBJ invocations to module description.
12925         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12926         * modules/quote (Makefile.am): Augment lib_SOURCES.
12927
12928 2011-05-23  Bruno Haible  <bruno@clisp.org>
12929
12930         posixver: Move AC_LIBOBJ invocations to module description.
12931         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12932         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12933
12934 2011-05-23  Bruno Haible  <bruno@clisp.org>
12935
12936         posixtm: Move AC_LIBOBJ invocations to module description.
12937         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12938         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12939
12940 2011-05-23  Bruno Haible  <bruno@clisp.org>
12941
12942         physmem: Move AC_LIBOBJ invocations to module description.
12943         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12944         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12945
12946 2011-05-23  Bruno Haible  <bruno@clisp.org>
12947
12948         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12949         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12950         invocation.
12951         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12952
12953 2011-05-23  Bruno Haible  <bruno@clisp.org>
12954
12955         mpsort: Move AC_LIBOBJ invocations to module description.
12956         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12957         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12958
12959 2011-05-23  Bruno Haible  <bruno@clisp.org>
12960
12961         modechange: Move AC_LIBOBJ invocations to module description.
12962         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12963         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12964
12965 2011-05-23  Bruno Haible  <bruno@clisp.org>
12966
12967         mkdir-p: Move AC_LIBOBJ invocations to module description.
12968         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12969         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12970
12971 2011-05-23  Bruno Haible  <bruno@clisp.org>
12972
12973         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12974         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12975         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12976
12977 2011-05-23  Bruno Haible  <bruno@clisp.org>
12978
12979         mgetgroups: Move AC_LIBOBJ invocations to module description.
12980         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12981         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12982
12983 2011-05-23  Bruno Haible  <bruno@clisp.org>
12984
12985         memxor: Move AC_LIBOBJ invocations to module description.
12986         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12987         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12988
12989 2011-05-23  Bruno Haible  <bruno@clisp.org>
12990
12991         memcoll: Move AC_LIBOBJ invocations to module description.
12992         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12993         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12994
12995 2011-05-23  Bruno Haible  <bruno@clisp.org>
12996
12997         memcasecmp: Move AC_LIBOBJ invocations to module description.
12998         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12999         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13000
13001 2011-05-23  Bruno Haible  <bruno@clisp.org>
13002
13003         crypto/md5: Move AC_LIBOBJ invocations to module description.
13004         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13005         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13006
13007 2011-05-23  Bruno Haible  <bruno@clisp.org>
13008
13009         crypto/md4: Move AC_LIBOBJ invocations to module description.
13010         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13011         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13012
13013 2011-05-23  Bruno Haible  <bruno@clisp.org>
13014
13015         crypto/md2: Move AC_LIBOBJ invocations to module description.
13016         * m4/md2.m4: Remove file.
13017         * modules/crypto/md2 (Files): Remove it.
13018         (configure.ac): Remove gl_MD2 call.
13019         (Makefile.am): Augment lib_SOURCES.
13020
13021 2011-05-23  Bruno Haible  <bruno@clisp.org>
13022
13023         long-options: Move AC_LIBOBJ invocations to module description.
13024         * m4/long-options.m4: Remove file.
13025         * modules/long-options (Files): Remove it.
13026         (configure.ac): Remove gl_LONG_OPTIONS call.
13027         (Makefile.am): Augment lib_SOURCES.
13028
13029 2011-05-23  Bruno Haible  <bruno@clisp.org>
13030
13031         i-ring: Move AC_LIBOBJ invocations to module description.
13032         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13033         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13034
13035 2011-05-23  Bruno Haible  <bruno@clisp.org>
13036
13037         idcache: Move AC_LIBOBJ invocations to module description.
13038         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13039         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13040
13041 2011-05-23  Bruno Haible  <bruno@clisp.org>
13042
13043         human: Move AC_LIBOBJ invocations to module description.
13044         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13045         * modules/human (Makefile.am): Augment lib_SOURCES.
13046
13047 2011-05-23  Bruno Haible  <bruno@clisp.org>
13048
13049         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13050         * m4/hmac-sha1.m4: Remove file.
13051         * modules/crypto/hmac-sha1 (Files): Remove it.
13052         (configure.ac): Remove gl_HMAC_SHA1 call.
13053         (Makefile.am): Augment lib_SOURCES.
13054
13055 2011-05-23  Bruno Haible  <bruno@clisp.org>
13056
13057         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13058         * m4/hmac-md5.m4: Remove file.
13059         * modules/crypto/hmac-md5 (Files): Remove it.
13060         (configure.ac): Remove gl_HMAC_MD5 call.
13061         (Makefile.am): Augment lib_SOURCES.
13062
13063 2011-05-23  Bruno Haible  <bruno@clisp.org>
13064
13065         hash: Move AC_LIBOBJ invocations to module description.
13066         * m4/hash.m4: Remove file.
13067         * modules/hash (Files): Remove it.
13068         (configure.ac): Remove gl_HASH call.
13069         (Makefile.am): Augment lib_SOURCES.
13070
13071 2011-05-23  Bruno Haible  <bruno@clisp.org>
13072
13073         hard-locale: Move AC_LIBOBJ invocations to module description.
13074         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13075         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13076
13077 2011-05-23  Bruno Haible  <bruno@clisp.org>
13078
13079         getugroups: Move AC_LIBOBJ invocations to module description.
13080         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13081         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13082
13083 2011-05-23  Bruno Haible  <bruno@clisp.org>
13084
13085         gettime: Move AC_LIBOBJ invocations to module description.
13086         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13087         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13088
13089 2011-05-23  Bruno Haible  <bruno@clisp.org>
13090
13091         getndelim2: Move AC_LIBOBJ invocations to module description.
13092         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13093         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13094
13095 2011-05-23  Bruno Haible  <bruno@clisp.org>
13096
13097         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13098         * m4/gc-pbkdf2-sha1.m4: Remove file.
13099         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13100         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13101         (Makefile.am): Augment lib_SOURCES.
13102
13103 2011-05-23  Bruno Haible  <bruno@clisp.org>
13104
13105         fts: Move AC_LIBOBJ invocations to module description.
13106         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13107         * modules/fts (configure.ac): ... to here.
13108
13109 2011-05-23  Bruno Haible  <bruno@clisp.org>
13110
13111         file-type: Move AC_LIBOBJ invocations to module description.
13112         * m4/file-type.m4: Remove file.
13113         * modules/file-type (Files): Remove it.
13114         (configure.ac): Remove gl_FILE_TYPE call.
13115         (Makefile.am): Augment lib_SOURCES.
13116
13117 2011-05-23  Bruno Haible  <bruno@clisp.org>
13118
13119         filenamecat*: Respect rules for use of AC_LIBOBJ.
13120         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13121         Remove AC_LIBOBJ invocation.
13122         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13123         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13124
13125 2011-05-23  Bruno Haible  <bruno@clisp.org>
13126
13127         filemode: Move AC_LIBOBJ invocations to module description.
13128         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13129         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13130
13131 2011-05-23  Bruno Haible  <bruno@clisp.org>
13132
13133         openat-safer: Move AC_LIBOBJ invocations to module description.
13134         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13135         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13136
13137 2011-05-23  Bruno Haible  <bruno@clisp.org>
13138
13139         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13140         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13141         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13142
13143 2011-05-23  Bruno Haible  <bruno@clisp.org>
13144
13145         exclude: Move AC_LIBOBJ invocations to module description.
13146         * m4/exclude.m4: Remove file.
13147         * modules/exclude (Files): Remove it.
13148         (configure.ac): Remove gl_EXCLUDE call.
13149         (Makefile.am): Augment lib_SOURCES.
13150
13151 2011-05-23  Bruno Haible  <bruno@clisp.org>
13152
13153         dirname*: Respect rules for use of AC_LIBOBJ.
13154         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13155         invocations.
13156         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13157         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13158
13159 2011-05-23  Bruno Haible  <bruno@clisp.org>
13160
13161         dirent-safer: Move AC_LIBOBJ invocations to module description.
13162         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13163         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13164
13165 2011-05-23  Bruno Haible  <bruno@clisp.org>
13166
13167         crypto/des: Move AC_LIBOBJ invocations to module description.
13168         * m4/des.m4: Remove file.
13169         * modules/crypto/des (Files): Remove it.
13170         (configure.ac): Remove gl_DES call.
13171         (Makefile.am): Augment lib_SOURCES.
13172
13173 2011-05-23  Bruno Haible  <bruno@clisp.org>
13174
13175         cycle-check: Move AC_LIBOBJ invocations to module description.
13176         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13177         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13178
13179 2011-05-23  Bruno Haible  <bruno@clisp.org>
13180
13181         c-strtold: Move AC_LIBOBJ invocations to module description.
13182         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13183         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13184
13185 2011-05-23  Bruno Haible  <bruno@clisp.org>
13186
13187         c-strtod: Move AC_LIBOBJ invocations to module description.
13188         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13189         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13190
13191 2011-05-23  Bruno Haible  <bruno@clisp.org>
13192
13193         crc: Move AC_LIBOBJ invocations to module description.
13194         * m4/crc.m4: Remove file.
13195         * modules/crc (Files): Remove it.
13196         (configure.ac): Remove gl_CRC call.
13197         (Makefile.am): Augment lib_SOURCES.
13198
13199 2011-05-23  Bruno Haible  <bruno@clisp.org>
13200
13201         close-stream: Move AC_LIBOBJ invocations to module description.
13202         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13203         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13204
13205 2011-05-23  Bruno Haible  <bruno@clisp.org>
13206
13207         closeout: Move AC_LIBOBJ invocations to module description.
13208         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13209         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13210
13211 2011-05-23  Bruno Haible  <bruno@clisp.org>
13212
13213         closein: Move AC_LIBOBJ invocations to module description.
13214         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13215         * modules/closein (Makefile.am): Augment lib_SOURCES.
13216
13217 2011-05-23  Bruno Haible  <bruno@clisp.org>
13218
13219         cloexec: Move AC_LIBOBJ invocations to module description.
13220         * m4/cloexec.m4: Remove file.
13221         * modules/cloexec (Files): Remove it.
13222         (configure.ac): Remove gl_CLOEXEC call.
13223         (Makefile.am): Augment lib_SOURCES.
13224
13225 2011-05-23  Bruno Haible  <bruno@clisp.org>
13226
13227         check-version: Move AC_LIBOBJ invocations to module description.
13228         * m4/check-version.m4: Remove file.
13229         * modules/check-version (Files): Remove it.
13230         (configure.ac): Remove gl_CHECK_VERSION call.
13231         (Makefile.am): Augment lib_SOURCES.
13232
13233 2011-05-23  Bruno Haible  <bruno@clisp.org>
13234
13235         chdir-safer: Move AC_LIBOBJ invocations to module description.
13236         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13237         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13238
13239 2011-05-23  Bruno Haible  <bruno@clisp.org>
13240
13241         canonicalize: Move AC_LIBOBJ invocations to module description.
13242         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13243         AC_LIBOBJ invocation.
13244         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13245
13246 2011-05-23  Bruno Haible  <bruno@clisp.org>
13247
13248         canon-host: Move AC_LIBOBJ invocations to module description.
13249         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13250         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13251         instead of gl_CANON_HOST.
13252         (Makefile.am): Augment lib_SOURCES.
13253
13254 2011-05-23  Bruno Haible  <bruno@clisp.org>
13255
13256         backupfile: Move AC_LIBOBJ invocations to module description.
13257         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13258         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13259
13260 2011-05-23  Bruno Haible  <bruno@clisp.org>
13261
13262         argmatch: Move AC_LIBOBJ invocations to module description.
13263         * m4/argmatch.m4: Remove file.
13264         * modules/argmatch (Files): Remove it.
13265         (configure.ac): Remove gl_ARGMATCH call.
13266         (Makefile.am): Augment lib_SOURCES.
13267
13268 2011-05-23  Bruno Haible  <bruno@clisp.org>
13269
13270         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13271         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13272         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13273
13274 2011-05-23  Bruno Haible  <bruno@clisp.org>
13275
13276         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13277         * m4/arcfour.m4: Remove file.
13278         * modules/crypto/arcfour (Files): Remove it.
13279         (configure.ac): Remove gl_ARCFOUR call.
13280         (Makefile.am): Augment lib_SOURCES.
13281
13282 2011-05-22  Bruno Haible  <bruno@clisp.org>
13283
13284         write: Move AC_LIBOBJ invocations to module description.
13285         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13286         * modules/write (configure.ac): ... to here.
13287
13288 2011-05-22  Bruno Haible  <bruno@clisp.org>
13289
13290         wmemset: Move AC_LIBOBJ invocations to module description.
13291         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13292         here...
13293         * modules/wmemset (configure.ac): ... to here.
13294
13295 2011-05-22  Bruno Haible  <bruno@clisp.org>
13296
13297         wmemmove: Move AC_LIBOBJ invocations to module description.
13298         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13299         here...
13300         * modules/wmemmove (configure.ac): ... to here.
13301
13302 2011-05-22  Bruno Haible  <bruno@clisp.org>
13303
13304         wmemcpy: Move AC_LIBOBJ invocations to module description.
13305         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13306         here...
13307         * modules/wmemcpy (configure.ac): ... to here.
13308
13309 2011-05-22  Bruno Haible  <bruno@clisp.org>
13310
13311         wmemcmp: Move AC_LIBOBJ invocations to module description.
13312         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13313         here...
13314         * modules/wmemcmp (configure.ac): ... to here.
13315
13316 2011-05-22  Bruno Haible  <bruno@clisp.org>
13317
13318         wmemchr: Move AC_LIBOBJ invocations to module description.
13319         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13320         here...
13321         * modules/wmemchr (configure.ac): ... to here.
13322
13323 2011-05-22  Bruno Haible  <bruno@clisp.org>
13324
13325         wcswidth: Move AC_LIBOBJ invocations to module description.
13326         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13327         here...
13328         * modules/wcswidth (configure.ac): ... to here.
13329
13330 2011-05-22  Bruno Haible  <bruno@clisp.org>
13331
13332         wcwidth: Respect rules for use of AC_LIBOBJ.
13333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13334         invocation from here...
13335         * modules/wcwidth (configure.ac): ... to here.
13336         (Depends-on): Update conditions.
13337
13338 2011-05-22  Bruno Haible  <bruno@clisp.org>
13339
13340         wctype: Move AC_LIBOBJ invocations to module description.
13341         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13342         invocation from here...
13343         * modules/wctype (configure.ac): ... to here.
13344         (Depends-on): Update conditions.
13345
13346 2011-05-22  Bruno Haible  <bruno@clisp.org>
13347
13348         wctrans: Move AC_LIBOBJ invocations to module description.
13349         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13350         invocation from here...
13351         * modules/wctrans (configure.ac): ... to here.
13352
13353 2011-05-22  Bruno Haible  <bruno@clisp.org>
13354
13355         wctomb: Move AC_LIBOBJ invocations to module description.
13356         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13357         invocations from here...
13358         * modules/wctomb (configure.ac): ... to here.
13359
13360 2011-05-22  Bruno Haible  <bruno@clisp.org>
13361
13362         wctob: Move AC_LIBOBJ invocations to module description.
13363         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13364         gl_PREREQ_WCTOB invocations from here...
13365         * modules/wctob (configure.ac): ... to here.
13366         (Depends-on): Update conditions.
13367
13368 2011-05-22  Bruno Haible  <bruno@clisp.org>
13369
13370         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13371         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13372         here...
13373         * modules/wcsxfrm (configure.ac): ... to here.
13374
13375 2011-05-22  Bruno Haible  <bruno@clisp.org>
13376
13377         wcstok: Move AC_LIBOBJ invocations to module description.
13378         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13379         * modules/wcstok (configure.ac): ... to here.
13380
13381 2011-05-22  Bruno Haible  <bruno@clisp.org>
13382
13383         wcsstr: Move AC_LIBOBJ invocations to module description.
13384         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13385         * modules/wcsstr (configure.ac): ... to here.
13386
13387 2011-05-22  Bruno Haible  <bruno@clisp.org>
13388
13389         wcsspn: Move AC_LIBOBJ invocations to module description.
13390         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13391         * modules/wcsspn (configure.ac): ... to here.
13392
13393 2011-05-22  Bruno Haible  <bruno@clisp.org>
13394
13395         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13396         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13397         gl_PREREQ_WCSRTOMBS invocations from here...
13398         * modules/wcsrtombs (configure.ac): ... to here.
13399
13400 2011-05-22  Bruno Haible  <bruno@clisp.org>
13401
13402         wcsrchr: Move AC_LIBOBJ invocations to module description.
13403         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13404         here...
13405         * modules/wcsrchr (configure.ac): ... to here.
13406
13407 2011-05-22  Bruno Haible  <bruno@clisp.org>
13408
13409         wcspbrk: Move AC_LIBOBJ invocations to module description.
13410         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13411         here...
13412         * modules/wcspbrk (configure.ac): ... to here.
13413
13414 2011-05-22  Bruno Haible  <bruno@clisp.org>
13415
13416         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13417         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13418         gl_PREREQ_WCSNRTOMBS invocations from here...
13419         * modules/wcsnrtombs (configure.ac): ... to here.
13420
13421 2011-05-22  Bruno Haible  <bruno@clisp.org>
13422
13423         wcsnlen: Move AC_LIBOBJ invocations to module description.
13424         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13425         here...
13426         * modules/wcsnlen (configure.ac): ... to here.
13427
13428 2011-05-22  Bruno Haible  <bruno@clisp.org>
13429
13430         wcsncpy: Move AC_LIBOBJ invocations to module description.
13431         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13432         here...
13433         * modules/wcsncpy (configure.ac): ... to here.
13434
13435 2011-05-22  Bruno Haible  <bruno@clisp.org>
13436
13437         wcsncmp: Move AC_LIBOBJ invocations to module description.
13438         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13439         here...
13440         * modules/wcsncmp (configure.ac): ... to here.
13441
13442 2011-05-22  Bruno Haible  <bruno@clisp.org>
13443
13444         wcsncat: Move AC_LIBOBJ invocations to module description.
13445         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13446         here...
13447         * modules/wcsncat (configure.ac): ... to here.
13448
13449 2011-05-22  Bruno Haible  <bruno@clisp.org>
13450
13451         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13452         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13453         from here...
13454         * modules/wcsncasecmp (configure.ac): ... to here.
13455
13456 2011-05-22  Bruno Haible  <bruno@clisp.org>
13457
13458         wcslen: Move AC_LIBOBJ invocations to module description.
13459         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13460         * modules/wcslen (configure.ac): ... to here.
13461
13462 2011-05-22  Bruno Haible  <bruno@clisp.org>
13463
13464         wcsdup: Move AC_LIBOBJ invocations to module description.
13465         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13466         * modules/wcsdup (configure.ac): ... to here.
13467
13468 2011-05-22  Bruno Haible  <bruno@clisp.org>
13469
13470         wcscspn: Move AC_LIBOBJ invocations to module description.
13471         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13472         here...
13473         * modules/wcscspn (configure.ac): ... to here.
13474
13475 2011-05-22  Bruno Haible  <bruno@clisp.org>
13476
13477         wcscpy: Move AC_LIBOBJ invocations to module description.
13478         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13479         * modules/wcscpy (configure.ac): ... to here.
13480
13481 2011-05-22  Bruno Haible  <bruno@clisp.org>
13482
13483         wcscoll: Move AC_LIBOBJ invocations to module description.
13484         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13485         here...
13486         * modules/wcscoll (configure.ac): ... to here.
13487
13488 2011-05-22  Bruno Haible  <bruno@clisp.org>
13489
13490         wcscmp: Move AC_LIBOBJ invocations to module description.
13491         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13492         * modules/wcscmp (configure.ac): ... to here.
13493
13494 2011-05-22  Bruno Haible  <bruno@clisp.org>
13495
13496         wcschr: Move AC_LIBOBJ invocations to module description.
13497         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13498         * modules/wcschr (configure.ac): ... to here.
13499
13500 2011-05-22  Bruno Haible  <bruno@clisp.org>
13501
13502         wcscat: Move AC_LIBOBJ invocations to module description.
13503         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13504         * modules/wcscat (configure.ac): ... to here.
13505
13506 2011-05-22  Bruno Haible  <bruno@clisp.org>
13507
13508         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13509         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13510         here...
13511         * modules/wcscasecmp (configure.ac): ... to here.
13512
13513 2011-05-22  Bruno Haible  <bruno@clisp.org>
13514
13515         wcrtomb: Move AC_LIBOBJ invocations to module description.
13516         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13517         invocations from here...
13518         * modules/wcrtomb (configure.ac): ... to here.
13519
13520 2011-05-22  Bruno Haible  <bruno@clisp.org>
13521
13522         wcpncpy: Move AC_LIBOBJ invocations to module description.
13523         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13524         here...
13525         * modules/wcpncpy (configure.ac): ... to here.
13526
13527 2011-05-22  Bruno Haible  <bruno@clisp.org>
13528
13529         wcpcpy: Move AC_LIBOBJ invocations to module description.
13530         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13531         * modules/wcpcpy (configure.ac): ... to here.
13532
13533 2011-05-22  Bruno Haible  <bruno@clisp.org>
13534
13535         waitpid: Move AC_LIBOBJ invocations to module description.
13536         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13537         invocation from here...
13538         * modules/waitpid (configure.ac): ... to here.
13539
13540 2011-05-22  Bruno Haible  <bruno@clisp.org>
13541
13542         utimensat: Move AC_LIBOBJ invocations to module description.
13543         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13544         here...
13545         * modules/utimensat (configure.ac): ... to here.
13546
13547 2011-05-22  Bruno Haible  <bruno@clisp.org>
13548
13549         usleep: Move AC_LIBOBJ invocations to module description.
13550         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13551         here...
13552         * modules/usleep (configure.ac): ... to here.
13553
13554 2011-05-22  Bruno Haible  <bruno@clisp.org>
13555
13556         unlockpt: Move AC_LIBOBJ invocations to module description.
13557         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13558         gl_PREREQ_UNLOCKPT invocations from here...
13559         * modules/unlockpt (configure.ac): ... to here.
13560
13561 2011-05-22  Bruno Haible  <bruno@clisp.org>
13562
13563         unlink: Respect rules for use of AC_LIBOBJ.
13564         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13565         * modules/unlink (configure.ac): ... to here.
13566
13567 2011-05-22  Bruno Haible  <bruno@clisp.org>
13568
13569         uname: Move AC_LIBOBJ invocations to module description.
13570         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13571         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13572         here...
13573         * modules/uname (configure.ac): ... to here.
13574
13575 2011-05-22  Bruno Haible  <bruno@clisp.org>
13576
13577         ttyname_r: Move AC_LIBOBJ invocations to module description.
13578         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13579         gl_PREREQ_TTYNAME_R invocations from here...
13580         * modules/ttyname_r (configure.ac): ... to here.
13581
13582 2011-05-22  Bruno Haible  <bruno@clisp.org>
13583
13584         tsearch: Move AC_LIBOBJ invocations to module description.
13585         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13586         invocations from here...
13587         * modules/tsearch (configure.ac): ... to here.
13588
13589 2011-05-22  Bruno Haible  <bruno@clisp.org>
13590
13591         towctrans: Move AC_LIBOBJ invocations to module description.
13592         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13593         AC_LIBOBJ invocation from here...
13594         * modules/towctrans (configure.ac): ... to here.
13595
13596 2011-05-22  Bruno Haible  <bruno@clisp.org>
13597
13598         tmpfile: Move AC_LIBOBJ invocations to module description.
13599         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13600         invocations from here...
13601         * modules/tmpfile (configure.ac): ... to here.
13602
13603 2011-05-22  Bruno Haible  <bruno@clisp.org>
13604
13605         times: Move AC_LIBOBJ invocations to module description.
13606         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13607         * modules/times (configure.ac): ... to here.
13608
13609 2011-05-22  Bruno Haible  <bruno@clisp.org>
13610
13611         time_r: Move AC_LIBOBJ invocations to module description.
13612         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13613         invocations from here...
13614         * modules/time_r (configure.ac): ... to here.
13615
13616 2011-05-22  Bruno Haible  <bruno@clisp.org>
13617
13618         timegm: Move AC_LIBOBJ invocations to module description.
13619         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13620         invocations from here...
13621         * modules/timegm (configure.ac): ... to here.
13622
13623 2011-05-22  Bruno Haible  <bruno@clisp.org>
13624
13625         tcgetsid: Move AC_LIBOBJ invocations to module description.
13626         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13627         and gl_PREREQ_TCGETSID invocations from here...
13628         * modules/tcgetsid (configure.ac): ... to here.
13629         (Depends-on): Update conditions.
13630
13631 2011-05-22  Bruno Haible  <bruno@clisp.org>
13632
13633         symlinkat: Move AC_LIBOBJ invocations to module description.
13634         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13635         here...
13636         * modules/symlinkat (configure.ac): ... to here.
13637
13638 2011-05-22  Bruno Haible  <bruno@clisp.org>
13639
13640         symlink: Move AC_LIBOBJ invocations to module description.
13641         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13642         here...
13643         * modules/symlink (configure.ac): ... to here.
13644
13645 2011-05-22  Bruno Haible  <bruno@clisp.org>
13646
13647         strverscmp: Move AC_LIBOBJ invocations to module description.
13648         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13650         from here...
13651         * modules/strverscmp (configure.ac): ... to here.
13652
13653 2011-05-22  Bruno Haible  <bruno@clisp.org>
13654
13655         strtok_r: Move AC_LIBOBJ invocations to module description.
13656         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13657         and gl_PREREQ_STRTOK_R invocations from here...
13658         * modules/strtok_r (configure.ac): ... to here.
13659         (Depends-on): Update conditions.
13660
13661 2011-05-22  Bruno Haible  <bruno@clisp.org>
13662
13663         strtoumax: Move AC_LIBOBJ invocations to module description.
13664         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13665         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13666         from here...
13667         * modules/strtoumax (configure.ac): ... to here.
13668
13669 2011-05-22  Bruno Haible  <bruno@clisp.org>
13670
13671         strtoimax: Move AC_LIBOBJ invocations to module description.
13672         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13673         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13674         from here...
13675         * modules/strtoimax (configure.ac): ... to here.
13676
13677 2011-05-22  Bruno Haible  <bruno@clisp.org>
13678
13679         strtoull: Move AC_LIBOBJ invocations to module description.
13680         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13681         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13682         from here...
13683         * modules/strtoull (configure.ac): ... to here.
13684
13685 2011-05-22  Bruno Haible  <bruno@clisp.org>
13686
13687         strtoll: Move AC_LIBOBJ invocations to module description.
13688         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13689         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13690         here...
13691         * modules/strtoll (configure.ac): ... to here.
13692
13693 2011-05-22  Bruno Haible  <bruno@clisp.org>
13694
13695         strtoul: Move AC_LIBOBJ invocations to module description.
13696         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13697         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13698         * modules/strtoul (configure.ac): ... to here.
13699
13700 2011-05-22  Bruno Haible  <bruno@clisp.org>
13701
13702         strtol: Move AC_LIBOBJ invocations to module description.
13703         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13704         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13705         * modules/strtol (configure.ac): ... to here.
13706
13707 2011-05-22  Bruno Haible  <bruno@clisp.org>
13708
13709         strtod: Move AC_LIBOBJ invocations to module description.
13710         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13711         invocations from here...
13712         * modules/strtod (configure.ac): ... to here.
13713
13714 2011-05-22  Bruno Haible  <bruno@clisp.org>
13715
13716         strstr*: Move AC_LIBOBJ invocations to module description.
13717         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13718         invocations from here...
13719         * modules/strstr-simple (configure.ac): ... to here.
13720         * modules/strstr (configure.ac): ... and here.
13721
13722 2011-05-22  Bruno Haible  <bruno@clisp.org>
13723
13724         strsignal: Move AC_LIBOBJ invocations to module description.
13725         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13726         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13727         * modules/strsignal (configure.ac): ... to here.
13728         (Depends-on): Update conditions.
13729
13730 2011-05-22  Bruno Haible  <bruno@clisp.org>
13731
13732         strsep: Move AC_LIBOBJ invocations to module description.
13733         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13734         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13735         here...
13736         * modules/strsep (configure.ac): ... to here.
13737
13738 2011-05-22  Bruno Haible  <bruno@clisp.org>
13739
13740         strptime: Move AC_LIBOBJ invocations to module description.
13741         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13742         gl_PREREQ_STRPTIME invocations from here...
13743         * modules/strptime (configure.ac): ... to here.
13744
13745 2011-05-22  Bruno Haible  <bruno@clisp.org>
13746
13747         strpbrk: Move AC_LIBOBJ invocations to module description.
13748         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13749         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13750         here...
13751         * modules/strpbrk (configure.ac): ... to here.
13752
13753 2011-05-22  Bruno Haible  <bruno@clisp.org>
13754
13755         strnlen: Move AC_LIBOBJ invocations to module description.
13756         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13757         invocations from here...
13758         * modules/strnlen (configure.ac): ... to here.
13759
13760 2011-05-22  Bruno Haible  <bruno@clisp.org>
13761
13762         strndup: Move AC_LIBOBJ invocations to module description.
13763         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13764         invocations from here...
13765         * modules/strndup (configure.ac): ... to here.
13766         (Depends-on): Update conditions.
13767
13768 2011-05-22  Bruno Haible  <bruno@clisp.org>
13769
13770         strncat: Move AC_LIBOBJ invocations to module description.
13771         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13772         invocations from here...
13773         * modules/strncat (configure.ac): ... to here.
13774
13775 2011-05-22  Bruno Haible  <bruno@clisp.org>
13776
13777         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13778         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13779         invocations from here...
13780         * modules/strdup (configure.ac): ... to here.
13781         * modules/strdup-posix (configure.ac): ... and here.
13782
13783 2011-05-22  Bruno Haible  <bruno@clisp.org>
13784
13785         strcspn: Move AC_LIBOBJ invocations to module description.
13786         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13787         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13788         here...
13789         * modules/strcspn (configure.ac): ... to here.
13790
13791 2011-05-22  Bruno Haible  <bruno@clisp.org>
13792
13793         strchrnul: Move AC_LIBOBJ invocations to module description.
13794         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13795         gl_PREREQ_STRCHRNUL invocations from here...
13796         * modules/strchrnul (configure.ac): ... to here.
13797
13798 2011-05-22  Bruno Haible  <bruno@clisp.org>
13799
13800         strcasestr*: Move AC_LIBOBJ invocations to module description.
13801         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13802         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13803         * modules/strcasestr-simple (configure.ac): ... to here.
13804         * modules/strcasestr (configure.ac): ... and here.
13805
13806 2011-05-22  Bruno Haible  <bruno@clisp.org>
13807
13808         strcase: Move AC_LIBOBJ invocations to module description.
13809         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13810         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13811         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13812         gl_PREREQ_STRNCASECMP invocations from here...
13813         * modules/strcase (configure.ac): ... to here.
13814
13815 2011-05-22  Bruno Haible  <bruno@clisp.org>
13816
13817         stpncpy: Move AC_LIBOBJ invocations to module description.
13818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13819         here...
13820         * modules/stpncpy (configure.ac): ... to here.
13821
13822 2011-05-22  Bruno Haible  <bruno@clisp.org>
13823
13824         stpcpy: Move AC_LIBOBJ invocations to module description.
13825         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13826         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13827         here...
13828         * modules/stpcpy (configure.ac): ... to here.
13829
13830 2011-05-21  Bruno Haible  <bruno@clisp.org>
13831
13832         stat: Move AC_LIBOBJ invocations to module description.
13833         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13834         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13835         here...
13836         * modules/stat (configure.ac): ... to here.
13837
13838 2011-05-21  Bruno Haible  <bruno@clisp.org>
13839
13840         sleep: Move AC_LIBOBJ invocations to module description.
13841         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13842         * modules/sleep (configure.ac): ... to here.
13843
13844 2011-05-21  Bruno Haible  <bruno@clisp.org>
13845
13846         signbit: Move AC_LIBOBJ invocations to module description.
13847         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13848         * modules/signbit (configure.ac): ... to here.
13849
13850 2011-05-21  Bruno Haible  <bruno@clisp.org>
13851
13852         sigprocmask: Move AC_LIBOBJ invocations to module description.
13853         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13854         gl_PREREQ_SIGPROMASK invocations from here...
13855         * modules/sigprocmask (configure.ac): ... to here.
13856
13857 2011-05-21  Bruno Haible  <bruno@clisp.org>
13858
13859         sigaction: Move AC_LIBOBJ invocations to module description.
13860         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13861         gl_PREREQ_SIGACTION invocations from here...
13862         * modules/sigaction (configure.ac): ... to here.
13863
13864 2011-05-21  Bruno Haible  <bruno@clisp.org>
13865
13866         sig2str: Move AC_LIBOBJ invocations to module description.
13867         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13869         here...
13870         * modules/sig2str (configure.ac): ... to here.
13871
13872 2011-05-21  Bruno Haible  <bruno@clisp.org>
13873
13874         setlocale: Move AC_LIBOBJ invocations to module description.
13875         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13876         gl_PREREQ_SETLOCALE invocations from here...
13877         * modules/setlocale (configure.ac): ... to here.
13878
13879 2011-05-21  Bruno Haible  <bruno@clisp.org>
13880
13881         unsetenv: Move AC_LIBOBJ invocations to module description.
13882         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13883         and gl_PREREQ_UNSETENV invocations from here...
13884         * modules/unsetenv (configure.ac): ... to here.
13885         (Depends-on): Update.
13886
13887 2011-05-21  Bruno Haible  <bruno@clisp.org>
13888
13889         setenv: Move AC_LIBOBJ invocations to module description.
13890         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13891         here...
13892         * modules/setenv (configure.ac): ... to here.
13893
13894 2011-05-21  Bruno Haible  <bruno@clisp.org>
13895
13896         selinux-h: Move AC_LIBOBJ invocations to module description.
13897         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13898         AC_LIBOBJ invocation from here...
13899         * modules/selinux-h (configure.ac): ... to here.
13900
13901 2011-05-21  Bruno Haible  <bruno@clisp.org>
13902
13903         select: Respect rules for use of AC_LIBOBJ.
13904         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13905         here...
13906         * modules/select (configure.ac): ... to here.
13907
13908 2011-05-21  Bruno Haible  <bruno@clisp.org>
13909
13910         scandir: Move AC_LIBOBJ invocations to module description.
13911         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13912         invocations from here...
13913         * modules/scandir (configure.ac): ... to here.
13914
13915 2011-05-21  Bruno Haible  <bruno@clisp.org>
13916
13917         rpmatch: Move AC_LIBOBJ invocations to module description.
13918         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13920         here...
13921         * modules/rpmatch (configure.ac): ... to here.
13922
13923 2011-05-21  Bruno Haible  <bruno@clisp.org>
13924
13925         rmdir: Respect rules for use of AC_LIBOBJ.
13926         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13927         * modules/rmdir (configure.ac): ... to here.
13928
13929 2011-05-21  Bruno Haible  <bruno@clisp.org>
13930
13931         renameat: Move AC_LIBOBJ invocations to module description.
13932         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13933         here...
13934         * modules/renameat (configure.ac): ... to here.
13935
13936 2011-05-21  Bruno Haible  <bruno@clisp.org>
13937
13938         rename: Respect rules for use of AC_LIBOBJ.
13939         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13940         here...
13941         * modules/rename (configure.ac): ... to here.
13942
13943 2011-05-21  Bruno Haible  <bruno@clisp.org>
13944
13945         remove: Move AC_LIBOBJ invocations to module description.
13946         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13947         here...
13948         * modules/remove (configure.ac): ... to here.
13949
13950 2011-05-21  Bruno Haible  <bruno@clisp.org>
13951
13952         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13953         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13954         macro.
13955         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13956         * modules/relocatable-lib (configure.ac): ... to here.
13957         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13958         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13959
13960 2011-05-21  Bruno Haible  <bruno@clisp.org>
13961
13962         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13963         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13964         here...
13965         * modules/relocatable-prog (configure.ac): ... to here.
13966
13967 2011-05-21  Bruno Haible  <bruno@clisp.org>
13968
13969         regex: Move AC_LIBOBJ invocations to module description.
13970         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13971         invocations from here...
13972         * modules/regex (configure.ac): ... to here.
13973
13974 2011-05-21  Bruno Haible  <bruno@clisp.org>
13975
13976         realloc-*: Move AC_LIBOBJ invocations to module description.
13977         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13978         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13979         AC_LIBOBJ invocations from here...
13980         * modules/realloc-gnu (configure.ac): ... to here.
13981         * modules/realloc-posix (configure.ac): ... and here.
13982
13983 2011-05-21  Bruno Haible  <bruno@clisp.org>
13984
13985         readutmp: Move AC_LIBOBJ invocations to module description.
13986         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13987         * modules/readutmp (configure.ac): ... to here.
13988
13989 2011-05-21  Bruno Haible  <bruno@clisp.org>
13990
13991         readlinkat: Move AC_LIBOBJ invocations to module description.
13992         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13993         here...
13994         * modules/readlinkat (configure.ac): ... to here.
13995
13996 2011-05-21  Bruno Haible  <bruno@clisp.org>
13997
13998         readlink: Move AC_LIBOBJ invocations to module description.
13999         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14000         gl_PREREQ_READLINK invocations from here...
14001         * modules/readlink (configure.ac): ... to here.
14002
14003 2011-05-21  Bruno Haible  <bruno@clisp.org>
14004
14005         readline: Move AC_LIBOBJ invocations to module description.
14006         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14007         gl_PREREQ_READLINE invocations from here...
14008         * modules/readline (configure.ac): ... to here.
14009
14010 2011-05-21  Bruno Haible  <bruno@clisp.org>
14011
14012         read: Move AC_LIBOBJ invocations to module description.
14013         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14014         * modules/read (configure.ac): ... to here.
14015
14016 2011-05-21  Bruno Haible  <bruno@clisp.org>
14017
14018         rawmemchr: Move AC_LIBOBJ invocations to module description.
14019         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14020         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14021         from here...
14022         * modules/rawmemchr (configure.ac): ... to here.
14023
14024 2011-05-21  Bruno Haible  <bruno@clisp.org>
14025
14026         random_r: Move AC_LIBOBJ invocations to module description.
14027         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14028         gl_PREREQ_RANDOM_R invocations from here...
14029         * modules/random_r (configure.ac): ... to here.
14030
14031 2011-05-21  Bruno Haible  <bruno@clisp.org>
14032
14033         pwrite: Move AC_LIBOBJ invocations to module description.
14034         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14035         * modules/pwrite (configure.ac): ... to here.
14036
14037 2011-05-21  Bruno Haible  <bruno@clisp.org>
14038
14039         putenv: Move AC_LIBOBJ invocations to module description.
14040         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14041         * modules/putenv (configure.ac): ... to here.
14042
14043 2011-05-21  Bruno Haible  <bruno@clisp.org>
14044
14045         login_tty: Move AC_LIBOBJ invocations to module description.
14046         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14047         * modules/login_tty (configure.ac): ... to here.
14048
14049 2011-05-21  Bruno Haible  <bruno@clisp.org>
14050
14051         openpty: Move AC_LIBOBJ invocations to module description.
14052         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14053         * modules/openpty (configure.ac): ... to here.
14054
14055 2011-05-21  Bruno Haible  <bruno@clisp.org>
14056
14057         forkpty: Move AC_LIBOBJ invocations to module description.
14058         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14059         * modules/forkpty (configure.ac): ... to here.
14060
14061 2011-05-21  Bruno Haible  <bruno@clisp.org>
14062
14063         ptsname: Move AC_LIBOBJ invocations to module description.
14064         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14065         invocations from here...
14066         * modules/ptsname (configure.ac): ... to here.
14067
14068 2011-05-21  Bruno Haible  <bruno@clisp.org>
14069
14070         pread: Move AC_LIBOBJ invocations to module description.
14071         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14072         * modules/pread (configure.ac): ... to here.
14073
14074 2011-05-21  Bruno Haible  <bruno@clisp.org>
14075
14076         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14077         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14078         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14079         * modules/posix_spawn (configure.ac): ... to here.
14080         * modules/posix_spawnp (configure.ac): ... and here.
14081
14082 2011-05-21  Bruno Haible  <bruno@clisp.org>
14083
14084         popen: Move AC_LIBOBJ invocations to module description.
14085         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14086         invocations from here...
14087         * modules/popen (configure.ac): ... to here.
14088
14089 2011-05-21  Bruno Haible  <bruno@clisp.org>
14090
14091         poll: Move AC_LIBOBJ invocations to module description.
14092         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14093         invocations from here...
14094         * modules/poll (configure.ac): ... to here.
14095
14096 2011-05-21  Bruno Haible  <bruno@clisp.org>
14097
14098         pipe-posix: Move AC_LIBOBJ invocations to module description.
14099         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14100         * modules/pipe-posix (configure.ac): ... to here.
14101
14102 2011-05-21  Bruno Haible  <bruno@clisp.org>
14103
14104         openat: Respect rules for use of AC_LIBOBJ.
14105         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14106         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14107         * modules/openat (configure.ac): ... to here.
14108
14109 2011-05-21  Bruno Haible  <bruno@clisp.org>
14110
14111         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14112         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14113         invocation from here...
14114         * modules/obstack-printf (configure.ac): ... to here.
14115         * modules/obstack-printf-posix (configure.ac): ... and here.
14116
14117 2011-05-21  Bruno Haible  <bruno@clisp.org>
14118
14119         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14120         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14121         from here...
14122         * modules/nl_langinfo (configure.ac): ... to here.
14123
14124 2011-05-21  Bruno Haible  <bruno@clisp.org>
14125
14126         nanosleep: Move AC_LIBOBJ invocations to module description.
14127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14128         gl_PREREQ_NANOSLEEP invocations from here...
14129         * modules/nanosleep (configure.ac): ... to here.
14130
14131 2011-05-21  Bruno Haible  <bruno@clisp.org>
14132
14133         mountlist: Move AC_LIBOBJ invocations to module description.
14134         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14135         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14136         * modules/mountlist (configure.ac): ... to here.
14137
14138 2011-05-21  Bruno Haible  <bruno@clisp.org>
14139
14140         mktime: Respect rules for use of AC_LIBOBJ.
14141         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14142         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14143         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14144         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14145         * modules/mktime (configure.ac): ... to here.
14146         * modules/mktime-internal (configure.ac): ... and here.
14147         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14148
14149 2011-05-21  Bruno Haible  <bruno@clisp.org>
14150
14151         mkstemps: Move AC_LIBOBJ invocations to module description.
14152         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14153         here...
14154         * modules/mkstemps (configure.ac): ... to here.
14155
14156 2011-05-21  Bruno Haible  <bruno@clisp.org>
14157
14158         mkstemp: Move AC_LIBOBJ invocations to module description.
14159         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14160         gl_PREREQ_MKSTEMP invocations from here...
14161         * modules/mkstemp (configure.ac): ... to here.
14162
14163 2011-05-21  Bruno Haible  <bruno@clisp.org>
14164
14165         mkostemps: Move AC_LIBOBJ invocations to module description.
14166         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14167         here...
14168         * modules/mkostemps (configure.ac): ... to here.
14169
14170 2011-05-21  Bruno Haible  <bruno@clisp.org>
14171
14172         mkostemp: Move AC_LIBOBJ invocations to module description.
14173         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14174         gl_PREREQ_MKOSTEMP invocations from here...
14175         * modules/mkostemp (configure.ac): ... to here.
14176
14177 2011-05-21  Bruno Haible  <bruno@clisp.org>
14178
14179         mknod: Move AC_LIBOBJ invocations to module description.
14180         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14181         * modules/mknod (configure.ac): ... to here.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         mkfifoat: Move AC_LIBOBJ invocations to module description.
14186         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14187         here...
14188         * modules/mkfifoat (configure.ac): ... to here.
14189
14190 2011-05-21  Bruno Haible  <bruno@clisp.org>
14191
14192         mkfifo: Respect rules for use of AC_LIBOBJ.
14193         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14194         here...
14195         * modules/mkfifo (configure.ac): ... to here.
14196
14197 2011-05-21  Bruno Haible  <bruno@clisp.org>
14198
14199         mkdtemp: Move AC_LIBOBJ invocations to module description.
14200         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14201         invocations from here...
14202         * modules/mkdtemp (configure.ac): ... to here.
14203
14204 2011-05-21  Bruno Haible  <bruno@clisp.org>
14205
14206         mkdir: Move AC_LIBOBJ invocations to module description.
14207         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14208         * modules/mkdir (configure.ac): ... to here.
14209
14210 2011-05-21  Bruno Haible  <bruno@clisp.org>
14211
14212         memset: Move AC_LIBOBJ invocations to module description.
14213         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14214         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14215         here...
14216         * modules/memset (configure.ac): ... to here.
14217
14218 2011-05-21  Bruno Haible  <bruno@clisp.org>
14219
14220         memrchr: Move AC_LIBOBJ invocations to module description.
14221         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14222         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14223         here...
14224         * modules/memrchr (configure.ac): ... to here.
14225
14226 2011-05-21  Bruno Haible  <bruno@clisp.org>
14227
14228         mempcpy: Move AC_LIBOBJ invocations to module description.
14229         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14231         here...
14232         * modules/mempcpy (configure.ac): ... to here.
14233
14234 2011-05-21  Bruno Haible  <bruno@clisp.org>
14235
14236         memmove: Move AC_LIBOBJ invocations to module description.
14237         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14238         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14239         here...
14240         * modules/memmove (configure.ac): ... to here.
14241
14242 2011-05-21  Bruno Haible  <bruno@clisp.org>
14243
14244         memmem*: Move AC_LIBOBJ invocations to module description.
14245         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14246         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14247         here...
14248         (gl_FUNC_MEMMEM): ... and here...
14249         * modules/memmem-simple (configure.ac): ... to here.
14250         * modules/memmem (configure.ac): ... and here.
14251
14252 2011-05-21  Bruno Haible  <bruno@clisp.org>
14253
14254         memcpy: Move AC_LIBOBJ invocations to module description.
14255         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14256         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14257         here...
14258         * modules/memcpy (configure.ac): ... to here.
14259
14260 2011-05-21  Bruno Haible  <bruno@clisp.org>
14261
14262         memcmp: Simplify autoconf macro.
14263         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14264         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14265         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14266
14267 2011-05-21  Bruno Haible  <bruno@clisp.org>
14268
14269         memcmp: Move AC_LIBOBJ invocations to module description.
14270         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14271         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14272         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14273         * modules/memcmp (configure.ac): ... to here.
14274         (Depends-on): Update conditions.
14275
14276 2011-05-21  Bruno Haible  <bruno@clisp.org>
14277
14278         memchr: Respect rules for use of AC_LIBOBJ.
14279         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14280         invocations from here...
14281         * modules/memchr (configure.ac): ... to here.
14282
14283 2011-05-21  Bruno Haible  <bruno@clisp.org>
14284
14285         mbtowc: Move AC_LIBOBJ invocations to module description.
14286         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14287         invocations from here...
14288         * modules/mbtowc (configure.ac): ... to here.
14289
14290 2011-05-21  Bruno Haible  <bruno@clisp.org>
14291
14292         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14293         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14294         gl_PREREQ_MBSRTOWCS invocations from here...
14295         * modules/mbsrtowcs (configure.ac): ... to here.
14296
14297 2011-05-21  Bruno Haible  <bruno@clisp.org>
14298
14299         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14300         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14301         gl_PREREQ_MBSNRTOWCS invocations from here...
14302         * modules/mbsnrtowcs (configure.ac): ... to here.
14303
14304 2011-05-21  Bruno Haible  <bruno@clisp.org>
14305
14306         mbsinit: Move AC_LIBOBJ invocations to module description.
14307         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14308         invocations from here...
14309         * modules/mbsinit (configure.ac): ... to here.
14310
14311 2011-05-21  Bruno Haible  <bruno@clisp.org>
14312
14313         mbrlen: Move AC_LIBOBJ invocations to module description.
14314         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14315         invocations from here...
14316         * modules/mbrlen (configure.ac): ... to here.
14317
14318 2011-05-21  Bruno Haible  <bruno@clisp.org>
14319
14320         mbrtowc: Respect rules for use of AC_LIBOBJ.
14321         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14322         invocations from here...
14323         * modules/mbrtowc (configure.ac): ... to here.
14324
14325 2011-05-21  Bruno Haible  <bruno@clisp.org>
14326
14327         malloc-*: Move AC_LIBOBJ invocations to module description.
14328         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14329         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14330         AC_LIBOBJ invocations from here...
14331         * modules/malloc-gnu (configure.ac): ... to here.
14332         * modules/malloc-posix (configure.ac): ... and here.
14333
14334 2011-05-21  Bruno Haible  <bruno@clisp.org>
14335
14336         lstat, openat: Respect rules for use of AC_LIBOBJ.
14337         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14338         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14339         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14340         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14341         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14342         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14343         here.
14344         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14345
14346 2011-05-21  Bruno Haible  <bruno@clisp.org>
14347
14348         lseek: Move AC_LIBOBJ invocations to module description.
14349         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14350         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14351         * modules/lseek (configure.ac): ... to here.
14352
14353 2011-05-21  Bruno Haible  <bruno@clisp.org>
14354
14355         linkat: Move AC_LIBOBJ invocations to module description.
14356         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14357         here...
14358         * modules/linkat (configure.ac): ... to here.
14359
14360 2011-05-21  Bruno Haible  <bruno@clisp.org>
14361
14362         link: Respect rules for use of AC_LIBOBJ.
14363         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14364         * modules/link (configure.ac): ... to here.
14365
14366 2011-05-21  Bruno Haible  <bruno@clisp.org>
14367
14368         lchown: Move AC_LIBOBJ invocations to module description.
14369         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14370         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14371         * modules/lchown (configure.ac): ... to here.
14372
14373 2011-05-21  Bruno Haible  <bruno@clisp.org>
14374
14375         iswctype: Move AC_LIBOBJ invocations to module description.
14376         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14377         here...
14378         * modules/iswctype (configure.ac): ... to here.
14379
14380 2011-05-21  Bruno Haible  <bruno@clisp.org>
14381
14382         iswblank: Move AC_LIBOBJ invocations to module description.
14383         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14384         here...
14385         * modules/iswblank (configure.ac): ... to here.
14386
14387 2011-05-21  Bruno Haible  <bruno@clisp.org>
14388
14389         atanl: Move AC_LIBOBJ invocations to module description.
14390         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14391         * modules/atanl (configure.ac): ... to here.
14392
14393 2011-05-21  Bruno Haible  <bruno@clisp.org>
14394
14395         acosl: Move AC_LIBOBJ invocations to module description.
14396         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14397         * modules/acosl (configure.ac): ... to here.
14398
14399 2011-05-21  Bruno Haible  <bruno@clisp.org>
14400
14401         asinl: Respect rules for use of AC_LIBOBJ.
14402         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14403         * modules/asinl (configure.ac): ... to here.
14404
14405 2011-05-21  Bruno Haible  <bruno@clisp.org>
14406
14407         tanl: Move AC_LIBOBJ invocations to module description.
14408         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14409         * modules/tanl (configure.ac): ... to here.
14410
14411 2011-05-21  Bruno Haible  <bruno@clisp.org>
14412
14413         cosl: Move AC_LIBOBJ invocations to module description.
14414         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14415         * modules/cosl (configure.ac): ... to here.
14416
14417 2011-05-21  Bruno Haible  <bruno@clisp.org>
14418
14419         sinl: Move AC_LIBOBJ invocations to module description.
14420         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14421         * modules/sinl (configure.ac): ... to here.
14422
14423 2011-05-21  Bruno Haible  <bruno@clisp.org>
14424
14425         logl: Move AC_LIBOBJ invocations to module description.
14426         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14427         * modules/logl (configure.ac): ... to here.
14428
14429 2011-05-21  Bruno Haible  <bruno@clisp.org>
14430
14431         expl: Move AC_LIBOBJ invocations to module description.
14432         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14433         * modules/expl (configure.ac): ... to here.
14434
14435 2011-05-21  Bruno Haible  <bruno@clisp.org>
14436
14437         roundl: Move AC_LIBOBJ invocations to module description.
14438         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14439         * modules/roundl (configure.ac): ... to here.
14440
14441 2011-05-21  Bruno Haible  <bruno@clisp.org>
14442
14443         round: Move AC_LIBOBJ invocations to module description.
14444         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14445         * modules/round (configure.ac): ... to here.
14446
14447 2011-05-21  Bruno Haible  <bruno@clisp.org>
14448
14449         roundf: Move AC_LIBOBJ invocations to module description.
14450         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14451         * modules/roundf (configure.ac): ... to here.
14452
14453 2011-05-21  Bruno Haible  <bruno@clisp.org>
14454
14455         truncl: Move AC_LIBOBJ invocations to module description.
14456         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14457         * modules/truncl (configure.ac): ... to here.
14458
14459 2011-05-21  Bruno Haible  <bruno@clisp.org>
14460
14461         trunc: Move AC_LIBOBJ invocations to module description.
14462         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14463         * modules/trunc (configure.ac): ... to here.
14464
14465 2011-05-21  Bruno Haible  <bruno@clisp.org>
14466
14467         truncf: Move AC_LIBOBJ invocations to module description.
14468         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14469         * modules/truncf (configure.ac): ... to here.
14470
14471 2011-05-21  Bruno Haible  <bruno@clisp.org>
14472
14473         ceill: Move AC_LIBOBJ invocations to module description.
14474         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14475         * modules/ceill (configure.ac): ... to here.
14476
14477 2011-05-21  Bruno Haible  <bruno@clisp.org>
14478
14479         ceil: Move AC_LIBOBJ invocations to module description.
14480         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14481         * modules/ceil (configure.ac): ... to here.
14482
14483 2011-05-21  Bruno Haible  <bruno@clisp.org>
14484
14485         ceilf: Move AC_LIBOBJ invocations to module description.
14486         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14487         * modules/ceilf (configure.ac): ... to here.
14488
14489 2011-05-21  Bruno Haible  <bruno@clisp.org>
14490
14491         floorl: Respect rules for use of AC_LIBOBJ.
14492         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14493         * modules/floorl (configure.ac): ... to here.
14494
14495 2011-05-21  Bruno Haible  <bruno@clisp.org>
14496
14497         floor: Respect rules for use of AC_LIBOBJ.
14498         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14499         * modules/floor (configure.ac): ... to here.
14500
14501 2011-05-21  Bruno Haible  <bruno@clisp.org>
14502
14503         floorf: Move AC_LIBOBJ invocations to module description.
14504         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14505         * modules/floorf (configure.ac): ... to here.
14506
14507 2011-05-20  Bruno Haible  <bruno@clisp.org>
14508
14509         sqrtl: Respect rules for use of AC_LIBOBJ.
14510         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14511         * modules/sqrtl (configure.ac): ... to here.
14512
14513 2011-05-20  Bruno Haible  <bruno@clisp.org>
14514
14515         ldexpl: Respect rules for use of AC_LIBOBJ.
14516         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14517         * modules/ldexpl (configure.ac): ... to here.
14518
14519 2011-05-20  Bruno Haible  <bruno@clisp.org>
14520
14521         frexpl*: Respect rules for use of AC_LIBOBJ.
14522         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14523         invocation from here...
14524         * modules/frexpl (configure.ac): ... to here.
14525         * modules/frexpl-nolibm (configure.ac): ... and here.
14526
14527 2011-05-20  Bruno Haible  <bruno@clisp.org>
14528
14529         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14530         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14531         invocation from here...
14532         * modules/frexp (configure.ac): ... to here.
14533         * modules/frexp-nolibm (configure.ac): ... and here.
14534
14535 2011-05-20  Bruno Haible  <bruno@clisp.org>
14536
14537         isnan: Respect rules for use of AC_LIBOBJ.
14538         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14539         invocations here.
14540         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14541         REPLACE_ISNAN.
14542         * modules/isnand (configure.ac): Likewise.
14543         * modules/isnanl (configure.ac): Likewise.
14544
14545 2011-05-20  Bruno Haible  <bruno@clisp.org>
14546
14547         isnanl*: Respect rules for use of AC_LIBOBJ.
14548         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14549         invocation from here...
14550         * modules/isnanl (configure.ac): ... to here.
14551         * modules/isnanl-nolibm (configure.ac): ... and here.
14552
14553 2011-05-20  Bruno Haible  <bruno@clisp.org>
14554
14555         isnand*: Move AC_LIBOBJ invocations to module description.
14556         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14557         invocation from here...
14558         * modules/isnand (configure.ac): ... to here.
14559         * modules/isnand-nolibm (configure.ac): ... and here.
14560
14561 2011-05-20  Bruno Haible  <bruno@clisp.org>
14562
14563         isnanf*: Move AC_LIBOBJ invocations to module description.
14564         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14565         invocation from here...
14566         * modules/isnanf (configure.ac): ... to here.
14567         * modules/isnanf-nolibm (configure.ac): ... and here.
14568
14569 2011-05-20  Bruno Haible  <bruno@clisp.org>
14570
14571         isnan*: Separate the AC_LIBOBJ invocations.
14572         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14573         AC_LIBOBJ invocation.
14574         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14575         here.
14576         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14577         AC_LIBOBJ invocation.
14578         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14579         here.
14580         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14581         AC_LIBOBJ invocation.
14582         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14583         here.
14584         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14585
14586 2011-05-08  Bruno Haible  <bruno@clisp.org>
14587
14588         isinf: Move AC_LIBOBJ invocations to module description.
14589         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14590         * modules/isinf (configure.ac): ... to here.
14591
14592 2011-05-08  Bruno Haible  <bruno@clisp.org>
14593
14594         isfinite: Move AC_LIBOBJ invocations to module description.
14595         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14596         * modules/isfinite (configure.ac): ... to here.
14597
14598 2011-05-08  Bruno Haible  <bruno@clisp.org>
14599
14600         isblank: Move AC_LIBOBJ invocations to module description.
14601         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14602         here...
14603         * modules/isblank (configure.ac): ... to here.
14604
14605 2011-05-08  Bruno Haible  <bruno@clisp.org>
14606
14607         isapipe: Move AC_LIBOBJ invocations to module description.
14608         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14609         gl_PREREQ_ISAPIPE invocations from here...
14610         * modules/isapipe (configure.ac): ... to here.
14611         (Depends-on): Update condition.
14612
14613 2011-05-08  Bruno Haible  <bruno@clisp.org>
14614
14615         ioctl: Move AC_LIBOBJ invocations to module description.
14616         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14617         invocations from here...
14618         * modules/ioctl (configure.ac): ... to here.
14619         (Depends-on): Update condition.
14620
14621 2011-05-08  Bruno Haible  <bruno@clisp.org>
14622
14623         imaxdiv: Move AC_LIBOBJ invocations to module description.
14624         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14625         invocations from here...
14626         * modules/imaxdiv (configure.ac): ... to here.
14627
14628 2011-05-08  Bruno Haible  <bruno@clisp.org>
14629
14630         imaxabs: Move AC_LIBOBJ invocations to module description.
14631         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14632         invocations from here...
14633         * modules/imaxabs (configure.ac): ... to here.
14634
14635 2011-05-08  Bruno Haible  <bruno@clisp.org>
14636
14637         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14639         AC_LIBOBJ invocations from here...
14640         * modules/getaddrinfo (configure.ac): ... to here.
14641         (Depends-on): Add conditions.
14642
14643 2011-05-08  Bruno Haible  <bruno@clisp.org>
14644
14645         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14646         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14647         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14648         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14649         (gl_PREREQ_INET_PTON): ... from here.
14650         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14651         gl_PREREQ_INET_PTON here.
14652         (Depends-on): Update condition.
14653
14654 2011-05-08  Bruno Haible  <bruno@clisp.org>
14655
14656         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14657         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14658         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14659         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14660         (gl_PREREQ_INET_NTOP): ... from here.
14661         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14662         gl_PREREQ_INET_NTOP here.
14663         (Depends-on): Update condition.
14664
14665 2011-05-08  Bruno Haible  <bruno@clisp.org>
14666
14667         iconv_open: Move AC_LIBOBJ invocations to module description.
14668         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14669         AC_LIBOBJ invocations from here...
14670         * modules/iconv_open (configure.ac): ... to here.
14671
14672 2011-05-08  Bruno Haible  <bruno@clisp.org>
14673
14674         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14675         If module 'iconv_open' is among the main modules and module
14676         'iconv_open-utf' is among the tests dependencies, then
14677         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14678         return the special iconv_t values. Therefore iconv() and iconv_close()
14679         must support these special iconv_t values, already in lib, not only in
14680         tests.
14681         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14682         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14683         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14684         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14685         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14686         (Depends-on): Add the dependencies of iconv_open-utf.
14687         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14688         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14689         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14690
14691 2011-05-08  Bruno Haible  <bruno@clisp.org>
14692
14693         group-member: Move AC_LIBOBJ invocations to module description.
14694         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14695         gl_PREREQ_GROUP_MEMBER invocations from here...
14696         * modules/group-member (configure.ac): ... to here.
14697
14698 2011-05-08  Bruno Haible  <bruno@clisp.org>
14699
14700         grantpt: Move AC_LIBOBJ invocations to module description.
14701         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14702         invocations from here...
14703         * modules/grantpt (configure.ac): ... to here.
14704
14705 2011-05-08  Bruno Haible  <bruno@clisp.org>
14706
14707         glob: Move AC_LIBOBJ invocations to module description.
14708         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14709         from here...
14710         * modules/glob (configure.ac): ... to here.
14711
14712 2011-05-08  Bruno Haible  <bruno@clisp.org>
14713
14714         getusershell: Move AC_LIBOBJ invocations to module description.
14715         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14716         Move AC_LIBOBJ invocation from here...
14717         * modules/getusershell (configure.ac): ... to here.
14718         (Depends-on): Update condition.
14719
14720 2011-05-08  Bruno Haible  <bruno@clisp.org>
14721
14722         gettimeofday: Move AC_LIBOBJ invocations to module description.
14723         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14724         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14725         gl_PREREQ_GETTIMEOFDAY invocations from here...
14726         * modules/gettimeofday (configure.ac): ... to here.
14727
14728 2011-05-08  Bruno Haible  <bruno@clisp.org>
14729
14730         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14731         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14732         just gl_FUNC_TZSET.
14733         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14734         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14735         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14736         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14737
14738 2011-05-08  Bruno Haible  <bruno@clisp.org>
14739
14740         getsubopt: Move AC_LIBOBJ invocations to module description.
14741         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14742         gl_PREREQ_GETSUBOPT invocations from here...
14743         * modules/getsubopt (configure.ac): ... to here.
14744
14745 2011-05-08  Bruno Haible  <bruno@clisp.org>
14746
14747         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14748         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14749         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14750         * modules/getpass-gnu (configure.ac): ... to here.
14751
14752 2011-05-08  Bruno Haible  <bruno@clisp.org>
14753
14754         getpass: Move AC_LIBOBJ invocations to module description.
14755         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14756         gl_PREREQ_GETPASS invocations from here...
14757         * modules/getpass (configure.ac): ... to here.
14758
14759 2011-05-08  Bruno Haible  <bruno@clisp.org>
14760
14761         getpagesize: Move AC_LIBOBJ invocations to module description.
14762         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14763         from here...
14764         * modules/getpagesize (configure.ac): ... to here.
14765
14766 2011-05-08  Bruno Haible  <bruno@clisp.org>
14767
14768         getopt: Move AC_LIBOBJ invocations to module description.
14769         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14770         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14771         invocations from here...
14772         * modules/getopt-gnu (configure.ac): ... to here.
14773         * modules/getopt-posix (configure.ac): ... and here.
14774         (Depends-on): Update condition.
14775
14776 2011-05-08  Bruno Haible  <bruno@clisp.org>
14777
14778         getopt, argp: Respect rules for use of AC_LIBOBJ.
14779         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14780         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14781         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14782         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14783
14784 2011-05-08  Bruno Haible  <bruno@clisp.org>
14785
14786         getlogin_r: Move AC_LIBOBJ invocations to module description.
14787         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14788         gl_PREREQ_GETLOGIN_R invocations from here...
14789         * modules/getlogin_r (configure.ac): ... to here.
14790
14791 2011-05-08  Bruno Haible  <bruno@clisp.org>
14792
14793         getlogin: Move AC_LIBOBJ invocations to module description.
14794         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14795         here...
14796         * modules/getlogin (configure.ac): ... to here.
14797
14798 2011-05-08  Bruno Haible  <bruno@clisp.org>
14799
14800         getloadavg: Move AC_LIBOBJ invocations to module description.
14801         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14802         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14803         * modules/getloadavg (configure.ac): ... to here.
14804
14805 2011-05-08  Bruno Haible  <bruno@clisp.org>
14806
14807         gethrxtime: Move AC_LIBOBJ invocations to module description.
14808         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14809         LIB_GETHRXTIME from here...
14810         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14811         invocations from here...
14812         * modules/gethrxtime (configure.ac): ... to here.
14813
14814 2011-05-08  Bruno Haible  <bruno@clisp.org>
14815
14816         gethostname: Move AC_LIBOBJ invocations to module description.
14817         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14818         gl_PREREQ_GETHOSTNAME invocations from here...
14819         * modules/gethostname (configure.ac): ... to here.
14820
14821 2011-05-08  Bruno Haible  <bruno@clisp.org>
14822
14823         getgroups: Move AC_LIBOBJ invocations to module description.
14824         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14825         here...
14826         * modules/getgroups (configure.ac): ... to here.
14827
14828 2011-05-08  Bruno Haible  <bruno@clisp.org>
14829
14830         getdtablesize: Move AC_LIBOBJ invocations to module description.
14831         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14832         invocation from here...
14833         * modules/getdtablesize (configure.ac): ... to here.
14834
14835 2011-05-08  Bruno Haible  <bruno@clisp.org>
14836
14837         getdomainname: Move AC_LIBOBJ invocations to module description.
14838         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14839         gl_PREREQ_GETDOMAINNAME invocations from here...
14840         * modules/getdomainname (configure.ac): ... to here.
14841
14842 2011-05-08  Bruno Haible  <bruno@clisp.org>
14843
14844         getline: Move AC_LIBOBJ invocations to module description.
14845         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14846         invocations from here...
14847         * modules/getline (configure.ac): ... to here.
14848
14849 2011-05-08  Bruno Haible  <bruno@clisp.org>
14850
14851         getline: Simplify.
14852         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14853         It's already handled through the module dependency.
14854
14855 2011-05-08  Bruno Haible  <bruno@clisp.org>
14856
14857         getdelim: Move AC_LIBOBJ invocations to module description.
14858         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14859         and gl_PREREQ_GETDELIM invocations from here...
14860         * modules/getdelim (configure.ac): ... to here.
14861         (Depends-on): Fix condition.
14862
14863 2011-05-08  Bruno Haible  <bruno@clisp.org>
14864
14865         getcwd: Move AC_LIBOBJ invocations to module description.
14866         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14867         invocations from here...
14868         * modules/getcwd (configure.ac): ... to here.
14869
14870 2011-05-08  Bruno Haible  <bruno@clisp.org>
14871
14872         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14873         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14874         here...
14875         * modules/getcwd-lgpl (configure.ac): ... to here.
14876
14877 2011-05-07  Bruno Haible  <bruno@clisp.org>
14878
14879         crypto/gc: Move AC_LIBOBJ invocations to module description.
14880         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14881         * modules/crypto/gc (configure.ac): ... to here.
14882
14883 2011-05-07  Bruno Haible  <bruno@clisp.org>
14884
14885         fwriting: Move AC_LIBOBJ invocations to module description.
14886         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14887         here...
14888         * modules/fwriting (configure.ac): ... to here.
14889
14890 2011-05-07  Bruno Haible  <bruno@clisp.org>
14891
14892         fwritable: Move AC_LIBOBJ invocations to module description.
14893         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14894         here...
14895         * modules/fwritable (configure.ac): ... to here.
14896
14897 2011-05-07  Bruno Haible  <bruno@clisp.org>
14898
14899         futimens: Move AC_LIBOBJ invocations to module description.
14900         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14901         here...
14902         * modules/futimens (configure.ac): ... to here.
14903
14904 2011-05-07  Bruno Haible  <bruno@clisp.org>
14905
14906         ftruncate: Move AC_LIBOBJ invocations to module description.
14907         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14908         gl_PREREQ_FTRUNCATE invocations from here...
14909         * modules/ftruncate (configure.ac): ... to here.
14910
14911 2011-05-07  Bruno Haible  <bruno@clisp.org>
14912
14913         fsync: Move AC_LIBOBJ invocations to module description.
14914         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14915         invocations from here...
14916         * modules/fsync (configure.ac): ... to here.
14917
14918 2011-05-07  Bruno Haible  <bruno@clisp.org>
14919
14920         fsusage: Move AC_LIBOBJ invocations to module description.
14921         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14922         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14923         * modules/fsusage (configure.ac): ... to here.
14924
14925 2011-05-07  Bruno Haible  <bruno@clisp.org>
14926
14927         freopen: Move AC_LIBOBJ invocations to module description.
14928         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14929         invocations from here...
14930         * modules/freopen (configure.ac): ... to here.
14931
14932 2011-05-07  Bruno Haible  <bruno@clisp.org>
14933
14934         free: Move AC_LIBOBJ invocations to module description.
14935         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14936         invocations from here...
14937         * modules/free (configure.ac): ... to here.
14938
14939 2011-05-07  Bruno Haible  <bruno@clisp.org>
14940
14941         freadable: Move AC_LIBOBJ invocations to module description.
14942         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14943         here...
14944         * modules/freadable (configure.ac): ... to here.
14945
14946 2011-05-07  Bruno Haible  <bruno@clisp.org>
14947
14948         fpurge: Move AC_LIBOBJ invocations to module description.
14949         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14950         invocations from here...
14951         * modules/fpurge (configure.ac): ... to here.
14952
14953 2011-05-07  Bruno Haible  <bruno@clisp.org>
14954
14955         fpending: Move AC_LIBOBJ invocations to module description.
14956         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14957         gl_FUNC_FPENDING.
14958         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14959         invocations from here...
14960         * modules/fpending (configure.ac): ... to here.
14961
14962 2011-05-07  Bruno Haible  <bruno@clisp.org>
14963
14964         fopen: Move AC_LIBOBJ invocations to module description.
14965         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14966         invocations from here...
14967         * modules/fopen (configure.ac): ... to here.
14968
14969 2011-05-07  Bruno Haible  <bruno@clisp.org>
14970
14971         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14972         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14973         gl_FUNC_FNMATCH_POSIX.
14974         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14975         invocations from here...
14976         * modules/fnmatch (configure.ac): ... to here.
14977         * modules/fnmatch-gnu (configure.ac): ... and here.
14978
14979 2011-05-07  Bruno Haible  <bruno@clisp.org>
14980
14981         flock: Move AC_LIBOBJ invocations to module description.
14982         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14983         invocations from here...
14984         * modules/flock (configure.ac): ... to here.
14985
14986 2011-05-07  Bruno Haible  <bruno@clisp.org>
14987
14988         fileblocks: Move AC_LIBOBJ invocations to module description.
14989         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14990         gl_PREREQ_FILEBLOCKS invocations from here...
14991         * modules/fileblocks (configure.ac): ... to here.
14992
14993 2011-05-06  Bruno Haible  <bruno@clisp.org>
14994
14995         fflush: Move AC_LIBOBJ invocations to module description.
14996         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14997         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14998         invocations from here...
14999         * modules/fflush (configure.ac): ... to here.
15000
15001 2011-05-06  Bruno Haible  <bruno@clisp.org>
15002
15003         fdopendir: Move AC_LIBOBJ invocations to module description.
15004         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15005         here...
15006         * modules/fdopendir (configure.ac): ... to here.
15007         (Depends-on): Improve conditions.
15008
15009 2011-05-06  Bruno Haible  <bruno@clisp.org>
15010
15011         _Exit: Move AC_LIBOBJ invocations to module description.
15012         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15013         invocations from here...
15014         * modules/_Exit (configure.ac): ... to here.
15015
15016 2011-05-21  Bruno Haible  <bruno@clisp.org>
15017
15018         euidaccess: Respect rules for use of AC_LIBOBJ.
15019         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15020         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15021         from here...
15022         * modules/euidaccess (configure.ac): ... to here.
15023
15024 2011-05-06  Bruno Haible  <bruno@clisp.org>
15025
15026         error: Move AC_LIBOBJ invocations to module description.
15027         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15028         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15029         invocations from here...
15030         * modules/error (configure.ac): ... to here.
15031
15032 2011-05-06  Bruno Haible  <bruno@clisp.org>
15033
15034         duplocale: Move AC_LIBOBJ invocations to module description.
15035         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15036         gl_PREREQ_DUPLOCALE invocations from here...
15037         * modules/duplocale (configure.ac): ... to here.
15038
15039 2011-05-05  Bruno Haible  <bruno@clisp.org>
15040
15041         dirfd: Move AC_LIBOBJ invocations to module description.
15042         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15043         gl_FUNC_DIRFD.
15044         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15045         here...
15046         * modules/dirfd (configure.ac): ... to here.
15047         (Depends-on): Fix condition.
15048
15049 2011-05-05  Bruno Haible  <bruno@clisp.org>
15050
15051         chown: Respect rules for use of AC_LIBOBJ.
15052         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15053         * modules/chown (configure.ac): ... to here.
15054
15055 2011-05-05  Bruno Haible  <bruno@clisp.org>
15056
15057         chdir-long: Move AC_LIBOBJ invocations to module description.
15058         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15059         gl_PREREQ_CHDIR_LONG invocations from here...
15060         * modules/chdir-long (configure.ac): ... to here.
15061
15062 2011-05-05  Bruno Haible  <bruno@clisp.org>
15063
15064         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15065         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15066         from here...
15067         * modules/canonicalize-lgpl (configure.ac): ... to here.
15068
15069 2011-05-05  Bruno Haible  <bruno@clisp.org>
15070
15071         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15072         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15073         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15074         REPLACE_CALLOC.
15075         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15076         * modules/calloc-gnu (configure.ac): Likewise.
15077
15078 2011-05-05  Bruno Haible  <bruno@clisp.org>
15079
15080         btowc: Move AC_LIBOBJ invocations to module description.
15081         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15082         invocations from here...
15083         * modules/btowc (configure.ac): ... to here.
15084
15085 2011-05-21  Bruno Haible  <bruno@clisp.org>
15086
15087         atexit: Move AC_LIBOBJ invocations to module description.
15088         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15090         here...
15091         * modules/atexit (configure.ac): ... to here.
15092
15093 2011-05-05  Bruno Haible  <bruno@clisp.org>
15094
15095         atoll: Move AC_LIBOBJ invocations to module description.
15096         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15097         invocations from here...
15098         * modules/atoll (configure.ac): ... to here.
15099
15100 2011-05-05  Bruno Haible  <bruno@clisp.org>
15101
15102         argz: Move AC_LIBOBJ invocations to module description.
15103         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15104         * modules/argz (configure.ac): ... to here.
15105
15106 2011-05-05  Bruno Haible  <bruno@clisp.org>
15107
15108         alphasort: Move AC_LIBOBJ invocations to module description.
15109         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15110         gl_PREREQ_ALPHASORT invocations from here...
15111         * modules/alphasort (configure.ac): ... to here.
15112
15113 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15114
15115         verify: new macro verify_expr; verify_true deprecated
15116         * NEWS: Mention this.
15117         * doc/verify.texi (Compile-time Assertions): Document this.
15118         * lib/verify.h (verify_true): Deprecate.
15119         (verify_expr): New macro.
15120         * tests/test-verify.c (function): Test verify_expr.
15121
15122 2011-06-14  Jim Meyering  <meyering@redhat.com>
15123
15124         init.sh: give more portable redirection-related advice in a comment
15125         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15126         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15127         for lots of discussion.  Stefano Lattarini suggested the solution
15128         of putting "9>&2" after the command.  Reported by Bruno Haible.
15129
15130 2011-06-13  Bruno Haible  <bruno@clisp.org>
15131
15132         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15133         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15134         'none'.
15135
15136 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         ftoastr: use strtof only if HAVE_STRTOF
15139         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15141         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15142         * modules/ftoastr (configure.ac): Check for strtof.
15143
15144 2011-06-13  Bruno Haible  <bruno@clisp.org>
15145
15146         gnulib-tool: Addendum to 2011-06-08 commit.
15147         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15148         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15149
15150 2011-06-13  Bruno Haible  <bruno@clisp.org>
15151
15152         fseeko: Provide a non-inline replacement of fseek().
15153         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15154         * modules/fseeko (Depends-on): Add fseek.
15155         * modules/fseek (License): Change to LGPLv2+.
15156
15157 2011-06-13  Bruno Haible  <bruno@clisp.org>
15158
15159         ftello: Provide a non-inline replacement of ftell().
15160         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15161         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15162         not have ftello() (such as on mingw).
15163         * modules/ftello (Depends-on): Add ftell.
15164         * modules/ftell (License): Change to LGPLv2+.
15165
15166 2011-05-07  Bruno Haible  <bruno@clisp.org>
15167
15168         ftell: Move AC_LIBOBJ invocations to module description.
15169         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15170         * modules/ftell (configure.ac): ... to here.
15171
15172 2011-05-07  Bruno Haible  <bruno@clisp.org>
15173
15174         ftello: Respect rules for use of AC_LIBOBJ.
15175         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15176         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15177         here...
15178         * modules/ftello (configure.ac): ... to here.
15179
15180 2011-05-07  Bruno Haible  <bruno@clisp.org>
15181
15182         fseeko: Simplify.
15183         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15184         (gl_FUNC_FSEEKO): Inline it here.
15185
15186 2011-05-07  Bruno Haible  <bruno@clisp.org>
15187
15188         fseek: Move AC_LIBOBJ invocations to module description.
15189         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15190         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15191         * modules/fseek (configure.ac): ... to here.
15192
15193 2011-05-07  Bruno Haible  <bruno@clisp.org>
15194
15195         fseek: Respect rules for use of AC_LIBOBJ.
15196         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15197         here...
15198         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15199
15200 2011-05-07  Bruno Haible  <bruno@clisp.org>
15201
15202         fseeko: Respect rules for use of AC_LIBOBJ.
15203         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15204         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15205         here...
15206         * modules/fseeko (configure.ac): ... to here.
15207
15208 2011-06-13  Bruno Haible  <bruno@clisp.org>
15209
15210         gnulib-tool: Allow comments in the 'Depends-on' section.
15211         * doc/gnulib.texi (Module description): Mention comment syntax in the
15212         Depends-on section.
15213         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15214
15215 2011-06-13  Bruno Haible  <bruno@clisp.org>
15216
15217         file-set.h: guard __attibute__ use, now that it's not always defined
15218         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15219         versions that support it.  This fixes a coreutils build failure with
15220         the vendor cc on HP-UX 11.31.
15221
15222 2011-06-12  Bruno Haible  <bruno@clisp.org>
15223
15224         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15225         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15226         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15227         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15228         (acl, aclsort): New declarations.
15229         (aclv_nontrivial): New declaration.
15230         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15231         (file_has_acl): Read also the second kind of HP-UX ACLs.
15232         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15233         kind of HP-UX ACLs if the first kind fails.
15234         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15235         second kind of HP-UX ACLs.
15236         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15237         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15238         agree.
15239         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15240         hpuxjfs.
15241         Handle hpuxjfs.
15242         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15243         hpuxjfs.
15244         Handle hpuxjfs.
15245         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15246         (func_test_same_acls): Use both lsacl and getacl.
15247         Handle hpuxjfs.
15248         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15249         (func_test_same_acls): Use both lsacl and getacl.
15250         Handle hpuxjfs.
15251
15252 2011-06-12  Bruno Haible  <bruno@clisp.org>
15253
15254         acl: Complete the 2010-08-10 fix.
15255         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15256         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15257         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15258         explicitly.
15259         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15260         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15261
15262 2011-06-12  Bruno Haible  <bruno@clisp.org>
15263
15264         spawn-pipe tests: Comments.
15265         * tests/test-spawn-pipe-child.c (main): Update comment.
15266         Reported by James Youngman <jay@gnu.org>.
15267
15268 2011-06-11  James Youngman  <jay@gnu.org>
15269
15270         New module 'stat-size'.
15271         * modules/stat-size: New module.  Provides macros for accessing
15272         file size information in instances of struct stat.  Depends on the
15273         fileblocks module because it calls st_blocks.
15274         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15275         * doc/gnulib.texi: Include stat-size.texi.
15276         * doc/stat-size.texi: Documentation for this module.
15277         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15278         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15279         AC_STRUCT_ST_BLOCKS.
15280
15281 2011-06-09  Bruno Haible  <bruno@clisp.org>
15282
15283         thread: Support pthreads-win32.
15284         * lib/glthread/thread.h (gl_thread_self): Define differently on
15285         pthreads-win32.
15286         (gl_null_thread): New declaration.
15287         (gl_thread_self_pointer): New macro.
15288         * lib/glthread/thread.c (gl_null_thread): New constant.
15289         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15290         gl_thread_self.
15291         * tests/test-tls.c: Likewise.
15292         Suggested by Paul Eggert. Reported by Eric Blake.
15293
15294 2011-06-09  Bruno Haible  <bruno@clisp.org>
15295
15296         thread: Fix confusion between NULL and 0.
15297         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15298         Reported by Paul Eggert.
15299
15300 2011-06-09  Bruno Haible  <bruno@clisp.org>
15301
15302         spawn-pipe tests: Avoid test failure on HP-UX 11.
15303         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15304         is closed.
15305
15306 2011-06-09  Bruno Haible  <bruno@clisp.org>
15307
15308         acl tests: Fix compilation error on HP-UX 11.
15309         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15310
15311 2011-06-09  Bruno Haible  <bruno@clisp.org>
15312
15313         rmdir: Avoid test failure on HP-UX 10.20.
15314         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15315         EEXIST.
15316
15317 2011-06-08  Eric Blake  <eblake@redhat.com>
15318
15319         perror: fix test on mingw
15320         * modules/perror-tests (Depends-on): Add dup2.
15321
15322         strerror_r-posix: fix on MacOS
15323         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15324         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15325         logic bug.
15326         * lib/strerror_r.c (strerror_r): Fix the bug.
15327         * lib/strerror.c (strerror): Likewise.
15328         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15329         problem.
15330         * doc/posix-functions/strerror.texi (strerror): Likewise.
15331         * doc/posix-functions/perror.texi (perror): Likewise.
15332         * tests/test-strerror.c (main): Enhance test.
15333         * tests/test-strerror_r.c (main): Likewise.
15334
15335 2011-06-08  Bruno Haible  <bruno@clisp.org>
15336
15337         gnulib-tool: Better isolation between different gnulib-tool invocations.
15338         * gnulib-tool: New option --witness-c-macro.
15339         (witness_c_macro): New variable.
15340         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15341         AM_CPPFLAGS define it as a C macro.
15342         (func_emit_tests_Makefile_am): Likewise.
15343         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15344         read it from there.
15345         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15346         m4_define, not AC_DEFUN.
15347         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15348         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15349         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15350         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15351         s|...|...|, to substitute the values of the GNULIB_* module indicator
15352         variables.
15353         * modules/dirent (Makefile.am): Likewise.
15354         * modules/fcntl-h (Makefile.am): Likewise.
15355         * modules/iconv-h (Makefile.am): Likewise.
15356         * modules/langinfo (Makefile.am): Likewise.
15357         * modules/locale (Makefile.am): Likewise.
15358         * modules/math (Makefile.am): Likewise.
15359         * modules/netdb (Makefile.am): Likewise.
15360         * modules/poll-h (Makefile.am): Likewise.
15361         * modules/pty (Makefile.am): Likewise.
15362         * modules/search (Makefile.am): Likewise.
15363         * modules/signal (Makefile.am): Likewise.
15364         * modules/spawn (Makefile.am): Likewise.
15365         * modules/stdio (Makefile.am): Likewise.
15366         * modules/stdlib (Makefile.am): Likewise.
15367         * modules/string (Makefile.am): Likewise.
15368         * modules/sys_ioctl (Makefile.am): Likewise.
15369         * modules/sys_select (Makefile.am): Likewise.
15370         * modules/sys_socket (Makefile.am): Likewise.
15371         * modules/sys_stat (Makefile.am): Likewise.
15372         * modules/sys_times (Makefile.am): Likewise.
15373         * modules/sys_utsname (Makefile.am): Likewise.
15374         * modules/sys_wait (Makefile.am): Likewise.
15375         * modules/termios (Makefile.am): Likewise.
15376         * modules/time (Makefile.am): Likewise.
15377         * modules/unistd (Makefile.am): Likewise.
15378         * modules/wchar (Makefile.am): Likewise.
15379
15380 2011-06-08  Eric Blake  <eblake@redhat.com>
15381
15382         strerror: simplify replacement
15383         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15384         * modules/strerror (configure.ac): No prereqs needed here...
15385         * modules/strerror-override (configure.ac): ...but this needs it.
15386         (Files): Add file for needed prereq macro.
15387
15388 2011-06-08  Bruno Haible  <bruno@clisp.org>
15389
15390         strerror_r-posix: Tweaks.
15391         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15392         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15393         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15394         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15395         (gl_FUNC_STRERROR_R): ... to here.
15396         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15397
15398 2011-06-07  Eric Blake  <eblake@redhat.com>
15399
15400         perror: document fixed bugs
15401         * doc/posix-functions/perror.texi (perror): Document recent
15402         patches.
15403
15404 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15405
15406         stat-time: get_stat_birthtime failure is better-defined
15407         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15408         return a timestamp whose tv_sec and tv_nsec values are both -1.
15409         Previously, the spec said only that the tv_nsec value was negative.
15410         This upward-compatible change simplifies GNU tar a bit.
15411
15412 2011-06-07  Eric Blake  <eblake@redhat.com>
15413
15414         strerror_r-posix: work around cygwin 1.7.9
15415         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15416         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15417         bug without replacing strerror_r.
15418         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15419         strerror_r is buggy, but without requiring strerror_r compilation.
15420         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15421
15422         test-perror: relax test to ignore cygwin bug
15423         * tests/test-perror2.c (main): Relax test on requiring detection
15424         of stream errors, and use unbuffered stream.
15425         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15426         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15427         * doc/posix-functions/fputc.texi (fputc): Likewise.
15428         * doc/posix-functions/fputs.texi (fputs): Likewise.
15429         * doc/posix-functions/fputws.texi (fputws): Likewise.
15430         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15431         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15432         * doc/posix-functions/getopt.texi (getopt): Likewise.
15433         * doc/posix-functions/perror.texi (perror): Likewise.
15434         * doc/posix-functions/printf.texi (printf): Likewise.
15435         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15436         * doc/posix-functions/psignal.texi (psignal): Likewise.
15437         * doc/posix-functions/putc.texi (putc): Likewise.
15438         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15439         Likewise.
15440         * doc/posix-functions/putchar.texi (putchar): Likewise.
15441         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15442         Likewise.
15443         * doc/posix-functions/puts.texi (puts): Likewise.
15444         * doc/posix-functions/putwc.texi (putwc): Likewise.
15445         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15446         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15447         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15448         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15449         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15450         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15451         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15452         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15453
15454 2011-05-22  Bruno Haible  <bruno@clisp.org>
15455
15456         strerror: Move AC_LIBOBJ invocations to module description.
15457         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15458         gl_PREREQ_STRERROR invocations from here...
15459         * modules/strerror (configure.ac): ... to here.
15460
15461 2011-05-21  Bruno Haible  <bruno@clisp.org>
15462
15463         perror: Use common idiom.
15464         * modules/perror (configure.ac): Reorder statements.
15465
15466 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15467
15468         tests: fix usage message in 'mktempd_'
15469         * tests/init.sh (mktempd_): In the usage message, use literal
15470         'mktempd_', not '$ME' (which is even undefined), as the name of
15471         the subroutine.
15472
15473 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15474
15475         tests init: new function 'fatal_', for hard errors
15476         Before this patch, the only way offered by tests/init.sh to
15477         properly signal a hard error was the `framework_failure_'
15478         function.  But the error message issued by that function,
15479         as its name would suggest, refers to a set-up failure in the
15480         testsuite, while hard errors can obviously also be due to
15481         other reasons.  The best way to fix this inconsistency is to
15482         introduce a new function with a more general error message.
15483         * tests/init.sh (fatal_): New function.
15484
15485 2011-06-06  Eric Blake  <eblake@redhat.com>
15486
15487         canonicalize-lgpl: use common idiom
15488         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15489         over newer POSIX -Rf.
15490         Reported by Bruno Haible.
15491
15492         canonicalize-lgpl: work around AIX realpath bug
15493         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15494         * doc/posix-functions/realpath.texi (realpath): Document it.
15495         Reported by Bruno Haible.
15496
15497         strerror: work around FreeBSD bug
15498         * lib/strerror.c (strerror): Special case 0.
15499         Reported by Bruno Haible.
15500
15501         strerror-override: avoid bloating errno module
15502         * modules/errno (Files, configure.ac): Move replacement strings...
15503         * modules/strerror-override: ...to new module.
15504         * modules/strerror (Depends-on): Add strerror-override.
15505         * modules/strerror_r-posix (Depends-on): Likewise.
15506         * MODULES.html.sh: Document new module.
15507         Reported by Bruno Haible.
15508
15509 2011-06-06  Bruno Haible  <bruno@clisp.org>
15510
15511         spawn-pipe tests: Rename program.
15512         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15513         * tests/test-spawn-pipe-child.c: Update comment.
15514         * tests/test-spawn-pipe.sh: Update.
15515         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15516
15517         spawn-pipe tests: Link the child program only against libc.
15518         * tests/test-spawn-pipe-child.c: New file, extracted from
15519         tests/test-spawn-pipe.c.
15520         (main): Expect only one argument.
15521         (is_open): New function, copied from tests/test-pipe.c.
15522         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15523         (child_main): Remove function.
15524         (test_pipe): Pass only one argument to the child program.
15525         (main): Remove child process code. Expect the child program's name as
15526         first argument.
15527         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15528         argument.
15529         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15530         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15531         test-spawn-pipe-child against no libraries.
15532
15533 2011-06-06  Bruno Haible  <bruno@clisp.org>
15534
15535         careadlinkat: Avoid mismatch between ssize_t and int.
15536         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15537         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15538
15539 2011-06-06  Jim Meyering  <meyering@redhat.com>
15540
15541         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15542         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15543         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15544
15545 2011-06-05  Bruno Haible  <bruno@clisp.org>
15546
15547         ansi-c++-opt: Interoperability with libtool.
15548         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15549         set the variable to "no", not to ":".
15550         * NEWS: Mention the change.
15551
15552 2011-06-05  Bruno Haible  <bruno@clisp.org>
15553
15554         acl: Fix test failure on AIX 7.
15555         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15556         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15557
15558 2011-06-05  Bruno Haible  <bruno@clisp.org>
15559
15560         pipe-filter-ii: Fix test failure on AIX and IRIX.
15561         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15562         with EAGAIN, retry with a smaller buffer size.
15563
15564 2011-06-05  Bruno Haible  <bruno@clisp.org>
15565
15566         localename: Fix link dependencies.
15567         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15568         * modules/localename-tests (Makefile.am): Link test-localename with
15569         $(LIBTHREAD).
15570
15571 2011-06-05  Bruno Haible  <bruno@clisp.org>
15572
15573         error: Avoid gcc warning.
15574         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15575
15576 2011-06-05  Bruno Haible  <bruno@clisp.org>
15577
15578         unsetenv: Avoid gcc warning.
15579         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15580
15581 2011-06-05  Bruno Haible  <bruno@clisp.org>
15582
15583         setenv: Avoid gcc warning.
15584         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15585
15586 2011-06-05  Bruno Haible  <bruno@clisp.org>
15587
15588         sys_select: Ensure memset is declared also on AIX 7.
15589         * lib/sys_select.in.h: Include <string.h> also on AIX.
15590         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15591         self-contained also on AIX 7.1.
15592
15593 2011-06-04  Jim Meyering  <meyering@redhat.com>
15594
15595         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15596         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15597         function name, "error".
15598         (_gl_translatable_diag_func_re): New configurable variable.
15599
15600 2011-06-04  Bruno Haible  <bruno@clisp.org>
15601
15602         getopt: Avoid gcc warning.
15603         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15604
15605 2011-06-04  Bruno Haible  <bruno@clisp.org>
15606
15607         strerror_r: Fix comments.
15608         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15609         commit.
15610
15611 2011-06-04  Bruno Haible  <bruno@clisp.org>
15612
15613         perror: Fix compilation error.
15614         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15615         Undefine fprintf, not sprintf.
15616         * modules/perror (Depends-on): Remove intprops, verify.
15617
15618 2011-06-04  Bruno Haible  <bruno@clisp.org>
15619
15620         setlocale: Enable replacement on Cygwin 1.5.
15621         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15622         Cygwin 1.5.x.
15623         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15624         LC_CTYPE category also exists on Cygwin 1.5.x.
15625
15626 2011-06-04  Bruno Haible  <bruno@clisp.org>
15627
15628         strerror-override: Don't disable symbol renamings.
15629         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15630         * lib/strerror-override.c: Include config.h.
15631         (strerror_override): Don't undefine.
15632
15633 2011-06-03  Bruno Haible  <bruno@clisp.org>
15634
15635         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15636         * lib/localename.h: Update copyright header.
15637         * lib/localename.c: Likewise.
15638         * lib/relocatable.h: Likewise.
15639         * lib/relocatable.c: Likewise.
15640
15641 2011-06-02  Bruno Haible  <bruno@clisp.org>
15642
15643         doc: Fix a module name.
15644         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15645
15646 2011-06-02  Bruno Haible  <bruno@clisp.org>
15647
15648         pipe2: Remove dependency on 'nonblocking' module.
15649         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15650         O_NONBLOCK is defined by gnulib.
15651         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15652         is zero.
15653         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15654         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15655         defined by gnulib.
15656         (get_nonblocking_flag): New function.
15657         (main): Test O_NONBLOCK flag only if it is nonzero.
15658         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15659
15660 2011-06-03  Jim Meyering  <meyering@redhat.com>
15661
15662         maint: three new prohibit-header-without-use rules
15663         Prohibit use of cloexec.h, posixver.h, same.h without use.
15664         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15665         (sc_prohibit_posixver_without_use): Likewise.
15666         (sc_prohibit_same_without_use): Likewise.
15667
15668 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15669
15670         allocator: 'die' routine is now given requested size
15671         * lib/allocator.h (struct allocator.die): New size arg.
15672         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15673         If the actual problem is an ssize_t limitation, not a size_t or
15674         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15675
15676 2011-06-01  Eric Blake  <eblake@redhat.com>
15677
15678         strerror: drop strerror_r dependency
15679         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15680         * lib/strerror-override.c (strerror_override): ...to new file.
15681         * lib/strerror-override.h: Add prototype.
15682         * lib/strerror-impl.h: Delete.
15683         * lib/strerror.c (strerror): New implementation.
15684         * modules/errno (Files): Add new files.
15685         (configure.ac): Compile new file as appropriate.
15686         * modules/strerror (Files): Drop unused file.
15687         (Depends-on): Drop strerror_r-posix.
15688         * MODULES.html.sh: Document strerror_r-posix.
15689         Requested by Sam Steingold.
15690
15691         perror: call strerror_r directly
15692         * modules/perror (Files): Drop strerror-impl.h.
15693         * lib/perror.c (perror): Use our own stack buffer, rather than
15694         calling a wrapper that uses static storage.
15695         * doc/posix-functions/perror.texi (perror): Document a limitation
15696         of our replacement.
15697
15698         strerror_r: fix includes for FreeBSD
15699         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15700         since we use abort on some platforms.
15701         Reported by Matthias Bolte.
15702
15703 2011-05-31  Bruno Haible  <bruno@clisp.org>
15704
15705         Fix link errors in tests: openat-die uses gettext-h.
15706         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15707         against $(LIBINTL).
15708         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15709         against $(LIBINTL).
15710         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15711         $(LIBINTL).
15712         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15713         against $(LIBINTL).
15714         * modules/linkat-tests (Makefile.am): Link test-linkat against
15715         $(LIBINTL).
15716         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15717         $(LIBINTL).
15718         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15719         against $(LIBINTL).
15720         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15721         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15722         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15723         $(LIBINTL).
15724         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15725         $(LIBINTL).
15726         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15727         $(LIBINTL).
15728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15729
15730 2011-05-31  Bruno Haible  <bruno@clisp.org>
15731
15732         Fix link errors in tests: wait-process uses gettext-h.
15733         * modules/nonblocking-pipe-tests (Makefile.am): Set
15734         test_nonblocking_pipe_main_LDADD.
15735         * modules/nonblocking-socket-tests (Makefile.am): Link
15736         test-nonblocking-socket-main against $(LIBINTL).
15737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15738
15739 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15740
15741         assert-h: work around 'verify' incompatibility
15742         * lib/verify.h: Use @...@ directives, not ifdef.
15743         * modules/assert-h (assert.h): Implement the directives.
15744         (assert.h): Substitute the symbol-prefix more consistently.
15745
15746 2011-05-29  Jim Meyering  <meyering@redhat.com>
15747
15748         trim: remove three superfluous assignments
15749         * lib/trim.c (trim2): Remove three superfluous assignments
15750         and correct brace positioning.
15751
15752 2011-05-29  Bruno Haible  <bruno@clisp.org>
15753
15754         wctype-h: Avoid namespace pollution on Solaris 2.6.
15755         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15756         identifiers.
15757         * doc/posix-headers/wctype.texi: Mention the problem.
15758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15759
15760 2011-05-28  Jim Meyering  <meyering@redhat.com>
15761
15762         parse-datetime.y: accommodate -Wstrict-overflow
15763         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15764         placate -Wstrict-overflow.
15765
15766         trim: avoid a warning from -O2 -Wstrict-overflow
15767         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15768
15769 2011-05-29  Bruno Haible  <bruno@clisp.org>
15770
15771         gnulib-tool: Fix bug in yesterday's commit.
15772         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15773         twice.
15774
15775 2011-05-29  Bruno Haible  <bruno@clisp.org>
15776
15777         Allow multiple gnulib generated include files to be combined.
15778         * gnulib-tool (func_compute_include_guard_prefix): New function.
15779         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15780         ${gl_include_guard_prefix} references.
15781         (func_import, func_create_testdir): Invoke
15782         func_compute_include_guard_prefix.
15783         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15784         * lib/ctype.in.h: Likewise.
15785         * lib/dirent.in.h: Likewise.
15786         * lib/errno.in.h: Likewise.
15787         * lib/fcntl.in.h: Likewise.
15788         * lib/float.in.h: Likewise.
15789         * lib/getopt.in.h: Likewise.
15790         * lib/iconv.in.h: Likewise.
15791         * lib/langinfo.in.h: Likewise.
15792         * lib/locale.in.h: Likewise.
15793         * lib/math.in.h: Likewise.
15794         * lib/netdb.in.h: Likewise.
15795         * lib/netinet_in.in.h: Likewise.
15796         * lib/poll.in.h: Likewise.
15797         * lib/pthread.in.h: Likewise.
15798         * lib/pty.in.h: Likewise.
15799         * lib/sched.in.h: Likewise.
15800         * lib/se-selinux.in.h: Likewise.
15801         * lib/search.in.h: Likewise.
15802         * lib/signal.in.h: Likewise.
15803         * lib/spawn.in.h: Likewise.
15804         * lib/stdarg.in.h: Likewise.
15805         * lib/stddef.in.h: Likewise.
15806         * lib/stdint.in.h: Likewise.
15807         * lib/stdio.in.h: Likewise.
15808         * lib/stdlib.in.h: Likewise.
15809         * lib/string.in.h: Likewise.
15810         * lib/strings.in.h: Likewise.
15811         * lib/sys_file.in.h: Likewise.
15812         * lib/sys_ioctl.in.h: Likewise.
15813         * lib/sys_select.in.h: Likewise.
15814         * lib/sys_socket.in.h: Likewise.
15815         * lib/sys_stat.in.h: Likewise.
15816         * lib/sys_time.in.h: Likewise.
15817         * lib/sys_times.in.h: Likewise.
15818         * lib/sys_uio.in.h: Likewise.
15819         * lib/sys_utsname.in.h: Likewise.
15820         * lib/sys_wait.in.h: Likewise.
15821         * lib/sysexits.in.h: Likewise.
15822         * lib/termios.in.h: Likewise.
15823         * lib/time.in.h: Likewise.
15824         * lib/unistd.in.h: Likewise.
15825         * lib/wchar.in.h: Likewise.
15826         * lib/wctype.in.h: Likewise.
15827         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15828         * modules/ctype (Makefile.am): Likewise.
15829         * modules/dirent (Makefile.am): Likewise.
15830         * modules/errno (Makefile.am): Likewise.
15831         * modules/fcntl-h (Makefile.am): Likewise.
15832         * modules/float (Makefile.am): Likewise.
15833         * modules/getopt-posix (Makefile.am): Likewise.
15834         * modules/iconv-h (Makefile.am): Likewise.
15835         * modules/langinfo (Makefile.am): Likewise.
15836         * modules/locale (Makefile.am): Likewise.
15837         * modules/math (Makefile.am): Likewise.
15838         * modules/netdb (Makefile.am): Likewise.
15839         * modules/netinet_in (Makefile.am): Likewise.
15840         * modules/poll-h (Makefile.am): Likewise.
15841         * modules/pthread (Makefile.am): Likewise.
15842         * modules/pty (Makefile.am): Likewise.
15843         * modules/sched (Makefile.am): Likewise.
15844         * modules/search (Makefile.am): Likewise.
15845         * modules/selinux-h (Makefile.am): Likewise.
15846         * modules/signal (Makefile.am): Likewise.
15847         * modules/spawn (Makefile.am): Likewise.
15848         * modules/stdarg (Makefile.am): Likewise.
15849         * modules/stddef (Makefile.am): Likewise.
15850         * modules/stdint (Makefile.am): Likewise.
15851         * modules/stdio (Makefile.am): Likewise.
15852         * modules/stdlib (Makefile.am): Likewise.
15853         * modules/string (Makefile.am): Likewise.
15854         * modules/strings (Makefile.am): Likewise.
15855         * modules/sys_file (Makefile.am): Likewise.
15856         * modules/sys_ioctl (Makefile.am): Likewise.
15857         * modules/sys_select (Makefile.am): Likewise.
15858         * modules/sys_socket (Makefile.am): Likewise.
15859         * modules/sys_stat (Makefile.am): Likewise.
15860         * modules/sys_time (Makefile.am): Likewise.
15861         * modules/sys_times (Makefile.am): Likewise.
15862         * modules/sys_uio (Makefile.am): Likewise.
15863         * modules/sys_utsname (Makefile.am): Likewise.
15864         * modules/sys_wait (Makefile.am): Likewise.
15865         * modules/sysexits (Makefile.am): Likewise.
15866         * modules/termios (Makefile.am): Likewise.
15867         * modules/time (Makefile.am): Likewise.
15868         * modules/unistd (Makefile.am): Likewise.
15869         * modules/wchar (Makefile.am): Likewise.
15870         * modules/wctype-h (Makefile.am): Likewise.
15871         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15872
15873 2011-05-29  Bruno Haible  <bruno@clisp.org>
15874
15875         assert-h: Allow multiple gnulib generated replacements to coexist.
15876         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15877
15878 2011-05-29  Bruno Haible  <bruno@clisp.org>
15879
15880         argp: Allow coexistence with strerror_r-posix module.
15881         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15882         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15883         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15884         not the glibc signature.
15885
15886 2011-05-28  Bruno Haible  <bruno@clisp.org>
15887
15888         gnulib-tool: Alternative structure of testdirs, similar to --import.
15889         * gnulib-tool: New option --single-configure.
15890         (func_usage): Document it.
15891         (single_configure): New variable.
15892         (func_modules_transitive_closure_separately,
15893         func_modules_transitive_closure_separately,
15894         func_determine_use_libtests, func_modules_add_dummy_separately,
15895         func_modules_to_filelist_separately): New functions, extracted from
15896         func_import.
15897         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15898         (func_import): Use the new functions.
15899         (func_create_testdir): Set final_modules. Handle $single_configure =
15900         true case.
15901
15902 2011-05-28  Bruno Haible  <bruno@clisp.org>
15903
15904         getloadavg: Remove an unreliable safety check.
15905         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15906         getloadavg.c is in place.
15907         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15908         Reported by Sam Steingold <sds@gnu.org>.
15909
15910 2011-05-28  Bruno Haible  <bruno@clisp.org>
15911
15912         doc: Cleanup yet another file produced by texinfo.tex.
15913         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15914
15915 2011-05-28  Bruno Haible  <bruno@clisp.org>
15916
15917         Finish the conditional dependencies mechanism.
15918         * gnulib-tool: New option --no-conditional-dependencies.
15919         (func_usage): Document it. Don't mark --conditional-dependencies as
15920         experimental.
15921         (cond_dependencies): The possible values can now be true, false, empty.
15922         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15923         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15924         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15925
15926 2011-05-28  Bruno Haible  <bruno@clisp.org>
15927
15928         doc: Use a recent texinfo.tex.
15929         * doc/Makefile (tex_opts): New variable.
15930         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15931
15932 2011-05-28  Jim Meyering  <meyering@redhat.com>
15933
15934         intprops.h: adjust comment to match code change
15935         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15936         only once, it *may* have side effects.  Also fix an unrelated typo.
15937         (_GL_INT_SIGNED): Likewise.
15938
15939 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15940
15941         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15942
15943 2011-05-26  Bruno Haible  <bruno@clisp.org>
15944
15945         mbsrchr: Avoid collision with system function on Interix.
15946         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15947         Reported by Markus Duft <mduft@gentoo.org>.
15948
15949 2011-05-15  James Youngman  <jay@gnu.org>
15950
15951         getopt: for ambiguous options, enumerate the possibilities.
15952         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15953         the ambiguous options when an ambiguous prefix is given. This was
15954         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15955         glibc change was
15956         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15957
15958 2011-05-25  Eric Blake  <eblake@redhat.com>
15959
15960         getcwd: work around mingw bug
15961         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15962         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15963         Reported by Matthias Bolte.
15964
15965 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15966
15967         test-intprops: disable -Wtype-limits diagnostics
15968         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15969         diagnostics.  Otherwise, the integer overflow macros generate many
15970         diagnostics.  Reported by Jim Meyering in
15971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15972
15973         intprops: shorten, to pacify gcc -Woverlength-strings
15974         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15975         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15976         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15977         likely to run afoul of C compiler limits for string constant lengths.
15978         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15979
15980 2011-05-24  Eric Blake  <eblake@redhat.com>
15981
15982         docs: document recently fixed glibc printf bug
15983         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15984         * doc/posix-functions/printf.texi (printf): Likewise.
15985         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15986         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15987
15988         closein-tests: convert to init.sh
15989         * modules/closein-tests (Files): Add init.sh
15990         * tests/test-closein.sh Use it.
15991
15992         yesno-tests: convert to init.sh
15993         * modules/yesno-tests (Files): Add init.sh.
15994         * tests/test-yesno.sh: Use it.
15995
15996         atexit-tests: ensure reliable exit status
15997         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15998         Reported by Bruno Haible.
15999
16000 2011-05-24  Bruno Haible  <bruno@clisp.org>
16001
16002         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16003         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16004         gl_PREREQ_STRERROR_R invocations from here...
16005         * modules/strerror_r-posix (configure.ac): ... to here.
16006
16007 2011-05-24  Eric Blake  <eblake@redhat.com>
16008
16009         strerror_r: fix missing header
16010         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16011
16012         strerror_r: fix AIX test failures
16013         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16014         ERANGE failure.
16015
16016         strerror_r: fix Solaris test failures
16017         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16018         failures.
16019         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16020
16021         strerror_r: enforce POSIX recommendations
16022         * lib/strerror_r.c (safe_copy): New helper method.
16023         (strerror_r): Guarantee a non-empty string.
16024         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16025         recent POSIX rulings and to match our strerror guarantees.
16026         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16027
16028 2011-05-24  Jim Meyering  <meyering@redhat.com>
16029
16030         test-perror2.c: avoid warning about unused variable
16031         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16032
16033 2011-05-24  Eric Blake  <eblake@redhat.com>
16034
16035         perror: avoid spurious test failure on HP-UX
16036         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16037
16038         tests: fix logic bug in init.sh
16039         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16040         shell.
16041
16042 2011-05-24  Jim Meyering  <meyering@redhat.com>
16043
16044         utimensat: do not reference an out-of-scope buffer
16045         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16046         declared in an inner scope, yet "times" would be dereferenced outside
16047         the scope in which "ts" was valid.
16048         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16049         of ts[2] "out/up", so that the use of aliased "times" (via
16050         "times = ts;") does not end up referencing an out-of-scope "ts"
16051
16052         opendir-safer.c: don't clobber errno; don't close negative FD
16053         * lib/opendir-safer.c (opendir_safer):
16054         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16055         file descriptor, and more importantly, don't clobber the
16056         offending errno value with EINVAL.  Before, upon failure
16057         of dup_safer, we would pass the negative file descriptor to
16058         fdopendir, which would clobber errno.
16059
16060 2011-05-23  Bruno Haible  <bruno@clisp.org>
16061
16062         idcache: Fix module description.
16063         * modules/idcache (Include): Set to "idcache.h".
16064
16065 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16066
16067         gnulib-tool: fix portability problem with MacOS sed
16068         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16069         before the "}".  Problem reported by Leo in
16070         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16071         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16072         sed_extract_condition1, sed_extract_condition2.
16073
16074 2011-05-23  Bruno Haible  <bruno@clisp.org>
16075
16076         hash: Simplify autoconf macro.
16077         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16078
16079 2011-05-23  Bruno Haible  <bruno@clisp.org>
16080
16081         getugroups: Fix module description.
16082         * modules/getugroups (Include): Set to "getugroups.h".
16083
16084 2011-05-23  Bruno Haible  <bruno@clisp.org>
16085
16086         linkat: Simplify autoconf macro.
16087         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16088
16089 2011-05-23  Bruno Haible  <bruno@clisp.org>
16090             Eric Blake  <eblake@redhat.com>
16091
16092         linkat, renameat: Update dependencies.
16093         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16094         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16095         symlinkat.
16096
16097 2011-05-23  Jim Meyering  <meyering@redhat.com>
16098
16099         maint.mk: more tight_scope improvements
16100         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16101         (_gl_TS_headers): Define only in if-0'd block.
16102         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16103         sometimes we must *not* use it.  Adjust uses accordingly.
16104         (sc_tight_scope): Use much simpler grep-based test to determine
16105         whether we skip this rule.
16106
16107         maint.mk: generalize/improve the tight-scope rule
16108         * top/maint.mk: Emit a warning when the test is skipped.
16109         (_gl_TS_dir): Add $(srcdir)/ prefix.
16110         (_gl_TS_function_match): Simplify, rather than trying
16111         to enumerate common types.  Otherwise, it would fail to match an
16112         "extern unsigned char const *" declaration in idutils.
16113         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16114         a way to support use of that type of macro.
16115         (_gl_TS_var_match): Simplify regexp.
16116         (_gl_TS_obj_files): New configurable variable.
16117         (_gl_TS_headers): Likewise.
16118
16119 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16120
16121         verify: fix bug when gnulib <assert.h> is also included
16122         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16123         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16124         Perhaps there's a better way, but this fixes the immediate problem.
16125         Problem reported by Bruno Haible in
16126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16127
16128 2011-05-22  Bruno Haible  <bruno@clisp.org>
16129
16130         xgetcwd: Simplify autoconf macro.
16131         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16132
16133 2011-05-22  Bruno Haible  <bruno@clisp.org>
16134
16135         New module 'mktime-internal'.
16136         * modules/mktime-internal: New file.
16137         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16138         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16139         mktime_internal as a C macro if libc has __mktime_internal.
16140         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16141         conditions.
16142         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16143
16144 2011-05-22  Bruno Haible  <bruno@clisp.org>
16145
16146         timegm: Correct mktime replacement statements.
16147         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16148         defining mktime as a C macro. This completes a 2009-07-28 commit.
16149
16150 2011-05-22  Bruno Haible  <bruno@clisp.org>
16151
16152         timegm: Simplify autoconf macro.
16153         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16154
16155 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16156
16157         clock-time: change to LGPLv2+.
16158         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16159         BSD-like but we have no mark for that; this is good enough for now.
16160
16161 2011-05-21  Bruno Haible  <bruno@clisp.org>
16162
16163         strerror_r: Fix comments.
16164         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16165
16166 2011-05-21  Bruno Haible  <bruno@clisp.org>
16167
16168         relocatable-prog-wrapper: Fix possible link error.
16169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16170         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16171         (gl_FUNC_SETENV): ... to here.
16172         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16173         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16174
16175 2011-05-21  Bruno Haible  <bruno@clisp.org>
16176
16177         relocatable-prog-wrapper: Assume strerror() exists.
16178         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16179         m4/strerror.m4.
16180         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16181         * lib/relocwrapper.c: Remove mention of strerror module.
16182         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16183         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16184         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16185         C macro.
16186
16187 2011-05-21  Bruno Haible  <bruno@clisp.org>
16188
16189         select: Simplify replacement idiom.
16190         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16191         Win32 platforms.
16192         * lib/sys_select.in.h (select): Simplify accordingly.
16193         * modules/select (Depends-on): Likewise.
16194
16195 2011-05-21  Bruno Haible  <bruno@clisp.org>
16196
16197         mkdir-p: Simplify autoconf macro.
16198         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16199         gl_FUNC_LCHOWN.
16200
16201 2011-05-21  Eric Blake  <eblake@redhat.com>
16202
16203         strerror_r: avoid clobbering strerror on cygwin
16204         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16205         fall back instead to sys_errlist.
16206         * modules/strerror (configure.ac): Add witness.
16207         * tests/test-strerror_r.c (main): Enhance test.
16208         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16209         * tests/test-perror2.c (main): Free memory before exit.
16210
16211 2011-05-21  Bruno Haible  <bruno@clisp.org>
16212
16213         mkdtemp: Use gnulib naming conventions.
16214         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16215         * modules/mkdtemp (configure.ac): Update.
16216
16217 2011-05-20  Eric Blake  <eblake@redhat.com>
16218
16219         strerror_r: avoid corrupting errno on Solaris
16220         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16221         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16222
16223         strerror_r: avoid compiler warning
16224         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16225
16226         strerror_r: simplify AIX code
16227         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16228
16229         test-perror: avoid spurious failure on FreeBSD
16230         * modules/perror-tests (Depends-on): Add strerror, now that
16231         strerror_r no longer pulls it in.
16232
16233 2011-05-20  Bruno Haible  <bruno@clisp.org>
16234
16235         strerror_r-posix: Remove unused dependencies.
16236         * modules/strerror_r-posix (Depends-on): Remove strerror.
16237         Reported by Eric Blake.
16238
16239 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16240
16241         intprops: remove assumption about A|B representation
16242         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16243         is a valid integer if both A and B are.  Although this is true for
16244         all known practical hosts, the C standard doesn't guarantee it,
16245         and the code need not assume it.  Also, this change may work around
16246         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16248
16249 2011-05-20  Eric Blake  <eblake@redhat.com>
16250
16251         perror: work around FreeBSD bug
16252         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16253         is broken.  Move AC_LIBOBJ...
16254         * modules/perror (configure.ac): Here.
16255         * doc/posix-functions/perror.texi (perror): Document this.
16256         * tests/test-perror2.c (main): Enhance test.
16257
16258         test-perror: check for strerror interactions
16259         * tests/macros.h (STREQ): Add macro.
16260         * modules/perror-tests (Files): Add second test.
16261         * tests/test-perror2.c (main): New file.
16262         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16263
16264         test-perror: rewrite to use init script
16265         * modules/perror-tests (Files): Add init.sh.
16266         * tests/test-perror.sh: Use temporary directory.
16267
16268 2011-05-20  Jim Meyering  <meyering@redhat.com>
16269
16270         maint: replace misused "a" with "an"
16271         * doc/intprops.texi: "a integer"
16272         * doc/regex.texi: "a explanation"
16273         * lib/alignof.h: "a object"
16274         * lib/argmatch.h: "a explanation"
16275         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16276         * lib/stdint.in.h: "a integer"
16277         * lib/userspec.c: "a owner"
16278         * doc/gnulib.texi: Fix "a idea", and reword.
16279
16280 2011-05-19  Jim Meyering  <meyering@redhat.com>
16281
16282         maint: correct misuse of "a" and "an"
16283         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16284         * lib/argp-help.c: "an docum...": s/an/a/
16285         * lib/argp-parse.c: "An vector": s/An/A/
16286         * lib/execute.c: "an native": s/an/a/
16287         * lib/spawn-pipe.c: Likewise.
16288         * lib/gc.h: "an Gc_rc": s/an/a/
16289         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16290         * lib/fts.c: "an stat.st_dev": s/an/a/
16291
16292 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16293
16294         intprops-tests: work around HP-UX 11.23 cc bug with constants
16295         * tests/test-intprops.c (VERIFY): New macro.
16296         (main): Use it, instead of verify, to work around the compiler bug; see
16297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16298
16299         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16300         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16301         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16302         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16303         (_GL_REMAINDER_OVERFLOW): Use it.
16304
16305         intprops-tests: revert unsigned part of previous change
16306         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16307         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16308         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16310
16311 2011-05-19  Bruno Haible  <bruno@clisp.org>
16312
16313         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16314         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16315         strerror_r() returned without filling the buffer.
16316         Reported by Eric Blake.
16317
16318 2011-05-19  Eric Blake  <eblake@redhat.com>
16319
16320         strerror_r: guarantee unchanged errno
16321         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16322         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16323         failure.
16324         * tests/test-strerror_r.c (main): Enhance test.
16325
16326 2011-05-19  Bruno Haible  <bruno@clisp.org>
16327
16328         strerror_r: Reorder #if blocks.
16329         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16330         for consistency with the previous commit.
16331
16332 2011-05-19  Bruno Haible  <bruno@clisp.org>
16333
16334         perror: Avoid clobbering the strerror buffer when possible.
16335         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16336         * lib/strerror.c: Include it.
16337         * modules/strerror (Files): Add lib/strerror-impl.h.
16338         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16339         (my_strerror): New function, defined through lib/strerror-impl.h.
16340         (perror): Use it instead of strerror.
16341         * modules/perror (Files): Add lib/strerror-impl.h.
16342         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16343
16344 2011-05-19  Eric Blake  <eblake@redhat.com>
16345
16346         strerror_r: fix on newer cygwin
16347         * lib/strerror_r.c (strerror_r): Cygwin now has
16348         __xpg_strerror_r, use it.
16349
16350 2011-05-19  Bruno Haible  <bruno@clisp.org>
16351
16352         strerror_r: Avoid clobbering the strerror buffer when possible.
16353         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16354         (sys_nerr, sys_errlist): New declarations.
16355         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16356         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16357         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16358
16359 2011-05-19  Bruno Haible  <bruno@clisp.org>
16360
16361         strerror_r: Fix test failure on mingw.
16362         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16363         EXTEND_STRERROR_R.
16364         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16365         macros from errno.in.h instead.
16366
16367 2011-05-19  Eric Blake  <eblake@redhat.com>
16368
16369         strerror: relax test for Solaris
16370         * tests/test-strerror.c (main): Permit Solaris behavior.
16371         * tests/test-strerror_r.c (main): Likewise.
16372
16373         strerror: enforce POSIX ruling on strerror(0)
16374         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16375         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16376         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16377         * doc/posix-functions/strerror.texi (strerror): Document it.
16378         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16379         * tests/test-strerror.c (main): Strengthen test.
16380         * tests/test-strerror_r.c (main): Likewise.
16381
16382 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16383
16384         intprop-tests: port to older and more-pedantic compilers
16385         * modules/intprops-tests (Files): Add tests/macros.h.
16386         * tests/test-intprops.c: Include macros.h.
16387         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16388         it's no longer documented to expand to an integer constant expression.
16389         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16390         argument is floating point, as it's no longer documented to expand
16391         to an integer constant expression in that case.
16392         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16393         compiler bugs reported by Bruno Haible.  See
16394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16395         (U0, U1): New constants, to work around the same bugs.  Also,
16396         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16397
16398         intprops: work around C compiler bugs
16399         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16400         bug in Sun C 5.11 2010/08/13 and other compilers; see
16401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16402
16403         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16404         * doc/intprops.texi (Integer Type Determination): Fix
16405         documentation for TYPE_IS_INTEGER: it returns an constant
16406         expression, not an integer constant expression.  Fix doc for
16407         TYPE_SIGNED: it returns an integer constant expression only if its
16408         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16409         hardly worth documented that way....)
16410
16411 2011-05-18  Bruno Haible  <bruno@clisp.org>
16412
16413         strerror_r: Avoid clobbering the strerror buffer when possible.
16414         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16415         Handle gnulib defined errno values here. When strerror() returns NULL
16416         or an empty string, return EINVAL.
16417         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16418         gnulib defined errno values here.
16419         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16420
16421 2011-05-18  Eric Blake  <eblake@redhat.com>
16422
16423         fnmatch: avoid compiler warning
16424         * lib/fnmatch_loop.c (FCT): Use correct type.
16425         Reported by Matthias Bolte.
16426
16427 2011-05-13  Jim Meyering  <meyering@redhat.com>
16428
16429         maint.mk: three new prohibit_<HDR>_without_use rules
16430         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16431         (sc_prohibit_stdio-safer_without_use): Likewise.
16432         (sc_prohibit_xfreopen_without_use): Likewise.
16433
16434 2011-05-17  Jim Meyering  <meyering@redhat.com>
16435
16436         announce-gen: fail if the NEWS delta is empty
16437         If there's nothing noteworthy in NEWS, then either you forgot
16438         or you shouldn't be releasing.
16439         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16440
16441 2011-05-17  Pádraig Brady <P@draigBrady.com>
16442
16443         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16444         reserved symbols starting with double underscore from the check.
16445
16446 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16447
16448         intprops: add doc
16449         * doc/intprops.texi: New file, documenting intprops.
16450         * doc/gnulib.texi (Particular Modules): Include it.
16451
16452         verify: add doc to gnulib manual and fix example
16453         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16454         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16455         (Compile-time Assertions): Fix example so it can't overflow.
16456
16457 2011-05-17  Jim Meyering  <meyering@redhat.com>
16458
16459         warnings.m4: don't usurp save_CPPFLAGS variable name
16460         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16461
16462         doc: fix typo
16463         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16464
16465 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16466             Bruno Haible  <bruno@clisp.org>
16467
16468         doc: Tweak recent change.
16469         * README (Portability guidelines): Tweak new text.
16470         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16471         Interix 6.1.
16472
16473 2011-05-16  Eric Blake  <eblake@redhat.com>
16474
16475         inttypes: avoid autoconf warning
16476         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16477         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16478
16479 2011-05-16  Sam Steingold <sds@gnu.org>
16480         and Eric Blake  <eblake@redhat.com>
16481
16482         vc-list-files: accept multiple directory operands
16483         * build-aux/vc-list-files: Iterate over all remaining operands.
16484
16485 2011-05-16  Bruno Haible  <bruno@clisp.org>
16486
16487         Fix confusion regarding deprecated modules.
16488         * modules/calloc (Status, Notice): Mark module as deprecated, not
16489         obsolete.
16490         * modules/fnmatch-posix (Status, Notice): Likewise.
16491         * modules/getdate (Status, Notice): Likewise.
16492         * modules/getopt (Status, Notice): Likewise.
16493         * modules/malloc (Status, Notice): Likewise.
16494         * modules/pipe (Status, Notice): Likewise.
16495         * modules/realloc (Status, Notice): Likewise.
16496         * modules/rename-dest-slash (Status, Notice): Likewise.
16497         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16498         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16499         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16500         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16501         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16502
16503 2011-05-16  Bruno Haible  <bruno@clisp.org>
16504
16505         doc: List the target platforms.
16506         * doc/gnulib-intro.texi (Target Platforms): New section.
16507         * doc/gnulib.texi (Introduction): Update menu.
16508         * README (Portability guidelines): Refer to the new section. Update
16509         statement about oldest supported environment. Remove rationale why
16510         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16511         unportable C89 function.
16512         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16513         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16514
16515 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16518
16519 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16520
16521         intprops-tests: new module
16522         * modules/intprops-tests, tests/test-intprops.c: New files.
16523
16524         intprops: add safe, portable integer overflow checking
16525         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16526         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16527         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16528         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16529         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16530         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16531         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16532         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16533         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16534         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16535         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16536
16537 2011-05-12  James Youngman  <jay@gnu.org>
16538
16539         Add a test for glibc's Bugzilla bug #12378.
16540         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16541         doesn't allow the literal matching of a lone "[" (which is
16542         required by POSIX).
16543         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16544
16545 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16546
16547         Sync glibc change fixing Bugzilla bug #12378.
16548         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16549         beginning and fall back to matching as normal character if the
16550         string ends before the matching ']' is found.  This is what POSIX
16551         requires.
16552
16553 2011-05-13  Eric Blake  <eblake@redhat.com>
16554
16555         getcwd-lgpl: relax test for FreeBSD
16556         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16557         issue.
16558         * tests/test-getcwd-lgpl.c (main): Relax test.
16559         Reported by Matthias Bolte.
16560
16561 2011-05-11  Eric Blake  <eblake@redhat.com>
16562
16563         test-fflush: silence compiler warning
16564         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16565
16566 2011-05-11  Bruno Haible  <bruno@clisp.org>
16567
16568         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16569         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16570         * modules/canonicalize (Depends-on): Add 'nocrash'.
16571         * modules/canonicalize-lgpl (Depends-on): Likewise.
16572         * doc/posix-functions/realpath.texi: Update platforms list.
16573         Reported by Ryan Schmidt <ryandesign@macports.org>.
16574
16575 2011-05-11  Bruno Haible  <bruno@clisp.org>
16576
16577         group-member: Declare function in <unistd.h>.
16578         * lib/unistd.in.h (group_member): New declaration.
16579         * lib/group-member.h: Remove file.
16580         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16581         * tests/test-unistd-c++.cc: Check signature of group_member.
16582         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16583         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16584         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16585         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16586         HAVE_GROUP_MEMBER.
16587         * modules/group-member (Files): Remove lib/group-member.h.
16588         (Depends-on): Add unistd. Specify conditions.
16589         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16590         (Include): Change to <unistd.h>.
16591         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16592         HAVE_GROUP_MEMBER.
16593         * NEWS: Mention the change.
16594         * lib/euidaccess.c: Don't include group-member.h.
16595
16596 2011-05-11  Bruno Haible  <bruno@clisp.org>
16597
16598         group-member: Document module.
16599         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16600         module.
16601
16602 2011-05-11  Bruno Haible  <bruno@clisp.org>
16603
16604         fclose: Fix mistake earlier today.
16605         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16606
16607 2011-05-11  Eric Blake  <eblake@redhat.com>
16608
16609         fclose: preserve fflush errors
16610         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16611         Reported by Jim Meyering.
16612
16613         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16614         * build-aux/bootstrap (check_versions): When no specific version
16615         is required, merely check that the app produces an exit status
16616         that indicates its existence.
16617
16618         maint.mk: drop redundant check
16619         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16620         the same but better.
16621
16622 2011-05-11  Bruno Haible  <bruno@clisp.org>
16623
16624         fclose: Fix possible link error.
16625         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16626         unregister_shadow_fd. Improve comments.
16627         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16628         Eric Blake.
16629
16630 2011-05-11  Jim Meyering  <meyering@redhat.com>
16631
16632         maint.mk: improve "can not" detection and generalize rule name
16633         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16634         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16635         Use the same technique as in sc_prohibit_doubled_word, so that
16636         we recognize "can not" also when the words are separated by a newline.
16637         Suggested by Eric Blake.
16638         (perl_filename_lineno_text_): Define.  Factored out of...
16639         (prohibit_doubled_word_): ...here.  Use the new definition.
16640         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16641         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16642         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16643
16644 2011-05-10  Eric Blake  <eblake@redhat.com>
16645
16646         fclose: avoid double close race when possible
16647         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16648         all but WINDOWS_SOCKETS.
16649
16650 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16651
16652         openat: correct new comment
16653         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16654
16655 2011-05-10  Jim Meyering  <meyering@redhat.com>
16656
16657         openat: add comments
16658         * lib/openat-proc.c (openat_proc_name): Add comments,
16659         mostly from Eric Blake.
16660
16661 2011-05-09  Eric Blake  <eblake@redhat.com>
16662
16663         openat: reduce syscalls in first probe of /proc
16664         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16665         be a directory.  Simplify the probe for .. bugs.
16666         * modules/openat (Depends-on): Drop same-inode.
16667         Reported by Bastien ROUCARIES.
16668
16669 2011-05-09  Jim Meyering  <meyering@redhat.com>
16670
16671         maint.mk: change semantics/name of tight_scope variables
16672         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16673         Rename variables to align with semantics that make them more useful.
16674
16675         maint.mk: tweak new rule's name not to impinge
16676         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16677         (sc_tight_scope): Use new rule name rather than $@-0.
16678
16679         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16680         * top/maint.mk (sc_tight_scope): New rule.
16681         (sc_tight_scope-0): New rule, ifdef'd out.
16682         (_gl_TS_dir): Default.
16683         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16684         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16685
16686 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16687
16688         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16689         Haible <bruno@clisp.org>.
16690
16691 2011-05-08  Bruno Haible  <bruno@clisp.org>
16692
16693         Comments.
16694         * m4/isnanf.m4: Add comment.
16695         * m4/isnanl.m4: Likewise.
16696
16697 2011-05-08  Bruno Haible  <bruno@clisp.org>
16698
16699         glob: Remove obsolete macro.
16700         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16701
16702 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16703
16704         intprops: Sun C 5.11 supports __typeof__
16705         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16706         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16707         which is new.
16708         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16709
16710         intprops: switch to usual gnulib indenting and naming
16711         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16712         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16713
16714         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16715
16716 2011-05-08  Jim Meyering  <meyering@redhat.com>
16717
16718         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16719         * top/maint.mk (release-prep): Use make's --no-print-directory
16720         option when generating the announcement.  This eliminates the
16721         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16722         generated announcement template.
16723
16724 2011-05-08  Bruno Haible  <bruno@clisp.org>
16725
16726         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16727         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16728         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16729
16730 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16731
16732         ignore-value, verify: Omit include files from lib_SOURCES.
16733         * modules/ignore-value, modules/verify (Makefile.am):
16734         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16735         that leads Automake to duplicate use of am__objects_... variables
16736         in Makefile.in.  See
16737         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16738
16739 2011-05-07  Bruno Haible  <bruno@clisp.org>
16740
16741         fclose: Simplify autoconf macro.
16742         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16743         defined.
16744
16745 2011-05-07  Bruno Haible  <bruno@clisp.org>
16746
16747         canonicalize-lgpl: Fix autoconf macro ordering bug.
16748         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16749         gl_STDLIB_H_DEFAULTS.
16750
16751 2011-05-06  Eric Blake  <eblake@redhat.com>
16752
16753         maintainer-makefile: make sc_po_check easier to tune
16754         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16755         to probe for strings, such as an alternate location for gnulib.
16756
16757         fclose: guarantee behavior on seekable stdin
16758         * modules/fclose (Depends-on): Add fflush.
16759         * doc/posix-functions/fclose.texi (fclose): Document this.
16760         * tests/test-fclose.c (main): Make test for this unconditional.
16761
16762 2011-05-06  Bruno Haible  <bruno@clisp.org>
16763
16764         fflush, fpurge: Relicense under LGPLv2+.
16765         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16766         * modules/fpurge (License): Likewise.
16767         With permission from Eric Blake and Jim Meyering.
16768         Suggested by Eric Blake.
16769
16770 2011-05-06  Karl Berry  <karl@gnu.org>
16771
16772         * MODULES.html.sh (func_all_modules): remove exit.
16773
16774 2011-05-06  Jim Meyering  <meyering@redhat.com>
16775
16776         maint.mk: use info-gnu@ as the default only for a stable release
16777         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16778         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16779         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16780         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16781
16782 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16783
16784         assert-h: new module, which supports C1X-style static_assert
16785         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16786         * lib/verify.h: Revamp so that this can be copied into assert.h,
16787         while retaining the ability to use it standalone as before.
16788         Rename private identifiers so as not to encroach on the
16789         standard C namespace, since this is now used by assert.h.
16790         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16791         the old verify_true.
16792         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16793         the old verify_true.  Use _GL_VERIFY_TYPE.
16794         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16795         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16796         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16797         defined when this file is copied into the replacement assert.h.
16798         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16799         and _Static_assert is not built in.
16800         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16801         defined, and use the new macros mentioned above.
16802         * doc/posix-headers/assert.texi: Document this.
16803
16804 2011-05-05  Bruno Haible  <bruno@clisp.org>
16805
16806         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16807         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16808         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16809         gl_REPLACE_FCLOSE here.
16810         * modules/fflush (Depends-on): Remove fclose.
16811         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16812         combination with module 'fclose'.
16813
16814 2011-05-05  Bruno Haible  <bruno@clisp.org>
16815
16816         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16817         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16818         gl_FUNC_FFLUSH.
16819         (gl_FUNC_FFLUSH): Use it.
16820         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16821         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16822         gl_REPLACE_FSEEKO here.
16823
16824 2011-05-05  Bruno Haible  <bruno@clisp.org>
16825
16826         tzset: Relicense under LGPL.
16827         * modules/tzset (License): Change to LGPL.
16828         No agreement needed; it's a no-op.
16829
16830         strtoimax, strtoumax: Relicense under LGPL.
16831         * modules/strtoimax (License): Change to LGPL.
16832         * modules/strtoumax (License): Likewise.
16833         With permission from Jim Meyering, Paul Eggert:
16834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16836
16837         getgroups: Relicense under LGPL.
16838         * modules/getgroups (License): Change to LGPL.
16839         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16843
16844         nanosleep: Relicense under LGPL.
16845         * modules/nanosleep (License): Change to LGPL.
16846         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16847         Haible:
16848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16852
16853         futimens: Relicense under LGPL.
16854         * modules/futimens (License): Change to LGPL.
16855         With permission from Eric Blake:
16856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16857
16858         fflush: Relicense under LGPL.
16859         * modules/fflush (License): Change to LGPL.
16860         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16864
16865         tmpfile: Relicense under LGPL.
16866         * modules/tmpfile (License): Change to LGPL.
16867         With permission from Ben Pfaff:
16868         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16869
16870         isfinite: Relicense under LGPL.
16871         * modules/isfinite (License): Change to LGPL.
16872         With permission from Ben Pfaff, Bruno Haible:
16873         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16875
16876         acosl..tanl: Relicense under LGPL.
16877         * modules/acosl (License): Change to LGPL.
16878         * modules/asinl (License): Likewise.
16879         * modules/atanl (License): Likewise.
16880         * modules/cosl (License): Likewise.
16881         * modules/expl (License): Likewise.
16882         * modules/logl (License): Likewise.
16883         * modules/sinl (License): Likewise.
16884         * modules/sqrtl (License): Likewise.
16885         * modules/tanl (License): Likewise.
16886         Source code originally from glibc and Paolo Bonzini. Agreements:
16887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16889
16890 2011-05-05  Bruno Haible  <bruno@clisp.org>
16891
16892         signal: Define sighandler_t.
16893         * lib/signal.in.h (sighandler_t): New type.
16894         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16895         whether sighandler_t is defined.
16896         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16897         * modules/signal (Depends-on): Add extensions.
16898         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16899         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16900         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16901
16902 2011-05-05  Eric Blake  <eblake@redhat.com>
16903
16904         maint: remove useless REPLACE_*_H macros
16905         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16906         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16907         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16908         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16909         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16910         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16911         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16912         * m4/btowc.m4: Update callers.
16913         * m4/dirfd.m4: Likewise.
16914         * m4/duplocale.m4: Likewise.
16915         * m4/fchdir.m4: Likewise.
16916         * m4/fdopendir.m4: Likewise.
16917         * m4/inet_ntop.m4: Likewise.
16918         * m4/inet_pton.m4: Likewise.
16919         * m4/ioctl.m4: Likewise.
16920         * m4/mbrlen.m4: Likewise.
16921         * m4/mbrtowc.m4: Likewise.
16922         * m4/mbsinit.m4: Likewise.
16923         * m4/mbsnrtowcs.m4: Likewise.
16924         * m4/mbsrtowcs.m4: Likewise.
16925         * m4/poll.m4: Likewise.
16926         * m4/setlocale.m4: Likewise.
16927         * m4/wcrtomb.m4: Likewise.
16928         * m4/wcsnrtombs.m4: Likewise.
16929         * m4/wcsrtombs.m4: Likewise.
16930         * m4/wctob.m4: Likewise.
16931         * m4/wcwidth.m4: Likewise.
16932         * modules/posix_spawn: Likewise.
16933         * modules/posix_spawn_file_actions_addclose: Likewise.
16934         * modules/posix_spawn_file_actions_adddup2: Likewise.
16935         * modules/posix_spawn_file_actions_addopen: Likewise.
16936         * modules/posix_spawn_file_actions_destroy: Likewise.
16937         * modules/posix_spawn_file_actions_init: Likewise.
16938         * modules/posix_spawnattr_destroy: Likewise.
16939         * modules/posix_spawnattr_getflags: Likewise.
16940         * modules/posix_spawnattr_getpgroup: Likewise.
16941         * modules/posix_spawnattr_getschedparam: Likewise.
16942         * modules/posix_spawnattr_getschedpolicy: Likewise.
16943         * modules/posix_spawnattr_getsigdefault: Likewise.
16944         * modules/posix_spawnattr_getsigmask: Likewise.
16945         * modules/posix_spawnattr_init: Likewise.
16946         * modules/posix_spawnattr_setflags: Likewise.
16947         * modules/posix_spawnattr_setpgroup: Likewise.
16948         * modules/posix_spawnattr_setschedparam: Likewise.
16949         * modules/posix_spawnattr_setschedpolicy: Likewise.
16950         * modules/posix_spawnattr_setsigdefault: Likewise.
16951         * modules/posix_spawnattr_setsigmask: Likewise.
16952         * modules/posix_spawnp: Likewise.
16953
16954 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16955
16956         Add option to do-release-commit-and-tag to specify branch.
16957         * build-aux/do-release-commit-and-tag: Add --branch.
16958
16959 2011-05-03  Bruno Haible  <bruno@clisp.org>
16960
16961         Avoid unnecessary compilation units, through conditional dependencies.
16962         * modules/accept (Depends-on): Add conditions to the dependencies.
16963         * modules/acosl (Depends-on): Likewise.
16964         * modules/argz (Depends-on): Likewise.
16965         * modules/asinl (Depends-on): Likewise.
16966         * modules/atanl (Depends-on): Likewise.
16967         * modules/atoll (Depends-on): Likewise.
16968         * modules/bind (Depends-on): Likewise.
16969         * modules/btowc (Depends-on): Likewise.
16970         * modules/canonicalize-lgpl (Depends-on): Likewise.
16971         * modules/ceil (Depends-on): Likewise.
16972         * modules/ceilf (Depends-on): Likewise.
16973         * modules/ceill (Depends-on): Likewise.
16974         * modules/chdir-long (Depends-on): Likewise.
16975         * modules/chown (Depends-on): Likewise.
16976         * modules/close (Depends-on): Likewise.
16977         * modules/connect (Depends-on): Likewise.
16978         * modules/cosl (Depends-on): Likewise.
16979         * modules/dirfd (Depends-on): Likewise.
16980         * modules/dprintf (Depends-on): Likewise.
16981         * modules/dprintf-posix (Depends-on): Likewise.
16982         * modules/error (Depends-on): Likewise.
16983         * modules/euidaccess (Depends-on): Likewise.
16984         * modules/expl (Depends-on): Likewise.
16985         * modules/faccessat (Depends-on): Likewise.
16986         * modules/fchdir (Depends-on): Likewise.
16987         * modules/fclose (Depends-on): Likewise.
16988         * modules/fcntl (Depends-on): Likewise.
16989         * modules/fdopendir (Depends-on): Likewise.
16990         * modules/fflush (Depends-on): Likewise.
16991         * modules/floor (Depends-on): Likewise.
16992         * modules/floorf (Depends-on): Likewise.
16993         * modules/floorl (Depends-on): Likewise.
16994         * modules/fnmatch (Depends-on): Likewise.
16995         * modules/fopen (Depends-on): Likewise.
16996         * modules/fprintf-posix (Depends-on): Likewise.
16997         * modules/frexp (Depends-on): Likewise.
16998         * modules/frexp-nolibm (Depends-on): Likewise.
16999         * modules/frexpl (Depends-on): Likewise.
17000         * modules/frexpl-nolibm (Depends-on): Likewise.
17001         * modules/fseek (Depends-on): Likewise.
17002         * modules/fsusage (Depends-on): Likewise.
17003         * modules/ftell (Depends-on): Likewise.
17004         * modules/ftello (Depends-on): Likewise.
17005         * modules/futimens (Depends-on): Likewise.
17006         * modules/getcwd (Depends-on): Likewise.
17007         * modules/getcwd-lgpl (Depends-on): Likewise.
17008         * modules/getdelim (Depends-on): Likewise.
17009         * modules/getdomainname (Depends-on): Likewise.
17010         * modules/getgroups (Depends-on): Likewise.
17011         * modules/gethostname (Depends-on): Likewise.
17012         * modules/getline (Depends-on): Likewise.
17013         * modules/getlogin_r (Depends-on): Likewise.
17014         * modules/getopt-posix (Depends-on): Likewise.
17015         * modules/getpeername (Depends-on): Likewise.
17016         * modules/getsockname (Depends-on): Likewise.
17017         * modules/getsockopt (Depends-on): Likewise.
17018         * modules/getsubopt (Depends-on): Likewise.
17019         * modules/getusershell (Depends-on): Likewise.
17020         * modules/glob (Depends-on): Likewise.
17021         * modules/grantpt (Depends-on): Likewise.
17022         * modules/iconv_open (Depends-on): Likewise.
17023         * modules/iconv_open-utf (Depends-on): Likewise.
17024         * modules/inet_ntop (Depends-on): Likewise.
17025         * modules/inet_pton (Depends-on): Likewise.
17026         * modules/ioctl (Depends-on): Likewise.
17027         * modules/isapipe (Depends-on): Likewise.
17028         * modules/isfinite (Depends-on): Likewise.
17029         * modules/isinf (Depends-on): Likewise.
17030         * modules/lchown (Depends-on): Likewise.
17031         * modules/ldexpl (Depends-on): Likewise.
17032         * modules/link (Depends-on): Likewise.
17033         * modules/linkat (Depends-on): Likewise.
17034         * modules/listen (Depends-on): Likewise.
17035         * modules/logl (Depends-on): Likewise.
17036         * modules/lstat (Depends-on): Likewise.
17037         * modules/mbrlen (Depends-on): Likewise.
17038         * modules/mbrtowc (Depends-on): Likewise.
17039         * modules/mbsinit (Depends-on): Likewise.
17040         * modules/mbsnrtowcs (Depends-on): Likewise.
17041         * modules/mbsrtowcs (Depends-on): Likewise.
17042         * modules/mbtowc (Depends-on): Likewise.
17043         * modules/memcmp (Depends-on): Likewise.
17044         * modules/mkdir (Depends-on): Likewise.
17045         * modules/mkdtemp (Depends-on): Likewise.
17046         * modules/mkfifo (Depends-on): Likewise.
17047         * modules/mkfifoat (Depends-on): Likewise.
17048         * modules/mknod (Depends-on): Likewise.
17049         * modules/mkostemp (Depends-on): Likewise.
17050         * modules/mkostemps (Depends-on): Likewise.
17051         * modules/mkstemp (Depends-on): Likewise.
17052         * modules/mkstemps (Depends-on): Likewise.
17053         * modules/mktime (Depends-on): Likewise.
17054         * modules/nanosleep (Depends-on): Likewise.
17055         * modules/open (Depends-on): Likewise.
17056         * modules/openat (Depends-on): Likewise.
17057         * modules/perror (Depends-on): Likewise.
17058         * modules/poll (Depends-on): Likewise.
17059         * modules/popen (Depends-on): Likewise.
17060         * modules/posix_spawn (Depends-on): Likewise.
17061         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17062         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17063         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17064         * modules/posix_spawnp (Depends-on): Likewise.
17065         * modules/pread (Depends-on): Likewise.
17066         * modules/printf-posix (Depends-on): Likewise.
17067         * modules/ptsname (Depends-on): Likewise.
17068         * modules/putenv (Depends-on): Likewise.
17069         * modules/pwrite (Depends-on): Likewise.
17070         * modules/readline (Depends-on): Likewise.
17071         * modules/readlink (Depends-on): Likewise.
17072         * modules/readlinkat (Depends-on): Likewise.
17073         * modules/recv (Depends-on): Likewise.
17074         * modules/recvfrom (Depends-on): Likewise.
17075         * modules/regex (Depends-on): Likewise.
17076         * modules/remove (Depends-on): Likewise.
17077         * modules/rename (Depends-on): Likewise.
17078         * modules/renameat (Depends-on): Likewise.
17079         * modules/rmdir (Depends-on): Likewise.
17080         * modules/round (Depends-on): Likewise.
17081         * modules/roundf (Depends-on): Likewise.
17082         * modules/roundl (Depends-on): Likewise.
17083         * modules/rpmatch (Depends-on): Likewise.
17084         * modules/select (Depends-on): Likewise.
17085         * modules/send (Depends-on): Likewise.
17086         * modules/sendto (Depends-on): Likewise.
17087         * modules/setenv (Depends-on): Likewise.
17088         * modules/setlocale (Depends-on): Likewise.
17089         * modules/setsockopt (Depends-on): Likewise.
17090         * modules/shutdown (Depends-on): Likewise.
17091         * modules/sigaction (Depends-on): Likewise.
17092         * modules/signbit (Depends-on): Likewise.
17093         * modules/sigprocmask (Depends-on): Likewise.
17094         * modules/sinl (Depends-on): Likewise.
17095         * modules/sleep (Depends-on): Likewise.
17096         * modules/snprintf (Depends-on): Likewise.
17097         * modules/snprintf-posix (Depends-on): Likewise.
17098         * modules/socket (Depends-on): Likewise.
17099         * modules/sprintf-posix (Depends-on): Likewise.
17100         * modules/sqrtl (Depends-on): Likewise.
17101         * modules/stat (Depends-on): Likewise.
17102         * modules/strchrnul (Depends-on): Likewise.
17103         * modules/strdup-posix (Depends-on): Likewise.
17104         * modules/strerror (Depends-on): Likewise.
17105         * modules/strerror_r-posix (Depends-on): Likewise.
17106         * modules/strndup (Depends-on): Likewise.
17107         * modules/strnlen (Depends-on): Likewise.
17108         * modules/strptime (Depends-on): Likewise.
17109         * modules/strsep (Depends-on): Likewise.
17110         * modules/strsignal (Depends-on): Likewise.
17111         * modules/strstr-simple (Depends-on): Likewise.
17112         * modules/strtod (Depends-on): Likewise.
17113         * modules/strtoimax (Depends-on): Likewise.
17114         * modules/strtok_r (Depends-on): Likewise.
17115         * modules/strtoumax (Depends-on): Likewise.
17116         * modules/symlink (Depends-on): Likewise.
17117         * modules/symlinkat (Depends-on): Likewise.
17118         * modules/tanl (Depends-on): Likewise.
17119         * modules/tcgetsid (Depends-on): Likewise.
17120         * modules/tmpfile (Depends-on): Likewise.
17121         * modules/trunc (Depends-on): Likewise.
17122         * modules/truncf (Depends-on): Likewise.
17123         * modules/truncl (Depends-on): Likewise.
17124         * modules/uname (Depends-on): Likewise.
17125         * modules/unlink (Depends-on): Likewise.
17126         * modules/unlockpt (Depends-on): Likewise.
17127         * modules/unsetenv (Depends-on): Likewise.
17128         * modules/usleep (Depends-on): Likewise.
17129         * modules/utimensat (Depends-on): Likewise.
17130         * modules/vasprintf (Depends-on): Likewise.
17131         * modules/vdprintf (Depends-on): Likewise.
17132         * modules/vdprintf-posix (Depends-on): Likewise.
17133         * modules/vfprintf-posix (Depends-on): Likewise.
17134         * modules/vprintf-posix (Depends-on): Likewise.
17135         * modules/vsnprintf (Depends-on): Likewise.
17136         * modules/vsnprintf-posix (Depends-on): Likewise.
17137         * modules/vsprintf-posix (Depends-on): Likewise.
17138         * modules/wcrtomb (Depends-on): Likewise.
17139         * modules/wcscasecmp (Depends-on): Likewise.
17140         * modules/wcscspn (Depends-on): Likewise.
17141         * modules/wcsdup (Depends-on): Likewise.
17142         * modules/wcsncasecmp (Depends-on): Likewise.
17143         * modules/wcsnrtombs (Depends-on): Likewise.
17144         * modules/wcspbrk (Depends-on): Likewise.
17145         * modules/wcsrtombs (Depends-on): Likewise.
17146         * modules/wcsspn (Depends-on): Likewise.
17147         * modules/wcsstr (Depends-on): Likewise.
17148         * modules/wcstok (Depends-on): Likewise.
17149         * modules/wcswidth (Depends-on): Likewise.
17150         * modules/wctob (Depends-on): Likewise.
17151         * modules/wctomb (Depends-on): Likewise.
17152         * modules/wctype (Depends-on): Likewise.
17153         * modules/wcwidth (Depends-on): Likewise.
17154         * modules/write (Depends-on): Likewise.
17155
17156 2011-05-03  Bruno Haible  <bruno@clisp.org>
17157
17158         Support for conditional dependencies.
17159         * doc/gnulib.texi (Module description): Document the syntax of
17160         conditional dependencies.
17161         * gnulib-tool: New option --conditional-dependencies.
17162         (func_usage): Document it.
17163         (cond_dependencies): New variable.
17164         (func_get_automake_snippet_conditional,
17165         func_get_automake_snippet_unconditional): New functions, extracted from
17166         func_get_automake_snippet.
17167         (func_get_automake_snippet): Use them.
17168         (sed_first_32_chars): New variable.
17169         (func_module_shellfunc_name): New function.
17170         (func_module_shellvar_name): New function.
17171         (func_module_conditional_name): New function.
17172         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17173         func_cond_module_condition): New functions.
17174         (func_modules_transitive_closure): Add support for conditional
17175         dependencies.
17176         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17177         conditional automake snippet in an automake conditional.
17178         (func_emit_autoconf_snippets): Emit shell functions that contain the
17179         code for conditional modules.
17180         (func_import, func_create_testdir): Update specification.
17181
17182 2011-05-03  Eric Blake  <eblake@redhat.com>
17183
17184         test-getaddrinfo: report error information
17185         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17186
17187 2011-05-03  Jim Meyering  <meyering@redhat.com>
17188
17189         bootstrap: avoid build failure when $GZIP is set
17190         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17191         program name.  If defined at all, it is supposed to list gzip options.
17192         Reported by Alan Curry in http://debbugs.gnu.org/8609
17193
17194 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17195
17196         readme-release: new module with release instructions
17197         * modules/readme-release: New module.
17198         * top/README-release: New file, from coreutils, grep, diffutils.
17199         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17200
17201 2011-05-02  Eric Blake  <eblake@redhat.com>
17202
17203         fflush: also replace fclose when fixing fflush
17204         * modules/fflush (Depends-on): Add fclose.
17205         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17206         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17207         memstreams with no backing fd.
17208         * doc/posix-functions/fclose.texi (fclose): Document the use of
17209         fflush module to fix the bug.
17210         * tests/test-fclose.c (main): Relax test when fclose is used in
17211         isolation.
17212
17213         fclose: add some tests
17214         * modules/fclose-tests: New test module.
17215         * tests/test-fclose.c: New file.
17216         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17217
17218         fclose: reduced dependencies
17219         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17220         simpler lseek.
17221         * lib/fclose.c (rpl_fclose): Likewise.
17222         Reported by Simon Josefsson.
17223
17224         exit: drop remaining clients
17225         * modules/argmatch (Depends-on): Replace exit with stdlib.
17226         * modules/copy-file (Depends-on): Likewise.
17227         * modules/execute (Depends-on): Likewise.
17228         * modules/exitfail (Depends-on): Likewise.
17229         * modules/obstack (Depends-on): Likewise.
17230         * modules/pagealign_alloc (Depends-on): Likewise.
17231         * modules/pipe-filter-gi (Depends-on): Likewise.
17232         * modules/pipe-filter-ii (Depends-on): Likewise.
17233         * modules/savewd (Depends-on): Likewise.
17234         * modules/spawn-pipe (Depends-on): Likewise.
17235         * modules/wait-process (Depends-on): Likewise.
17236         * modules/xsetenv (Depends-on): Likewise.
17237         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17238         * modules/git-merge-changelog (Depends-on): Likewise.
17239         * modules/long-options (Depends-on): Likewise.
17240         * modules/pt_chown (Depends-on): Likewise.
17241         * modules/sysexits (Depends-on): Likewise.
17242
17243         freading: relax license from LGPLv3+ to LGPLv2+
17244         * modules/freading (License): Relax LGPL version.
17245
17246 2011-05-02  Bruno Haible  <bruno@clisp.org>
17247
17248         fchdir: Remove unused dependencies.
17249         * modules/fchdir (Depends-on): Remove include_next.
17250
17251 2011-05-02  Bruno Haible  <bruno@clisp.org>
17252
17253         gnulib-tool: Refactor.
17254         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17255         from func_emit_autoconf_snippets.
17256         (func_emit_autoconf_snippets): Use it.
17257
17258 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17259
17260         * NEWS: Document removal of 'exit'.
17261         * modules/exit: Remove file.
17262
17263 2011-05-01  Bruno Haible  <bruno@clisp.org>
17264
17265         Update DEPENDENCIES.
17266         * DEPENDENCIES (gettext): Recommend the newest release.
17267         Reported by Simon Josefsson.
17268
17269 2011-05-01  Bruno Haible  <bruno@clisp.org>
17270
17271         gnulib-tool: Reduce code duplication.
17272         * gnulib-tool (func_emit_autoconf_snippets): New function.
17273         (func_import, func_create_testdir): Use it.
17274
17275 2011-04-30  Eric Blake  <eblake@redhat.com>
17276
17277         fclose: don't fail on non-seekable input stream
17278         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17279         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17280         since fflush is allowed to fail in that case.
17281
17282 2011-04-30  Bruno Haible  <bruno@clisp.org>
17283
17284         dup3: cleanup
17285         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17286
17287 2011-04-30  Bruno Haible  <bruno@clisp.org>
17288
17289         netdb: Make it work in C++ mode.
17290         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17291         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17292         module.
17293         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17294         gl_MODULE_INDICATOR_FOR_TESTS.
17295         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17296         * modules/netdb-c++-tests: New file.
17297         * tests/test-netdb-c++.cc: New file.
17298
17299 2011-04-30  Bruno Haible  <bruno@clisp.org>
17300
17301         New modules 'vfscanf', 'vscanf'.
17302         * modules/vfscanf: New file.
17303         * modules/vscanf: New file.
17304         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17305         here.
17306         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17307         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17308
17309 2011-04-30  Bruno Haible  <bruno@clisp.org>
17310
17311         passfd: Add comments.
17312         * lib/passfd.c: Add comments about platforms.
17313
17314 2011-04-30  Bruno Haible  <bruno@clisp.org>
17315
17316         sys_uio: Make <sys/uio.h> self-contained.
17317         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17318         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17319
17320 2011-04-30  Bruno Haible  <bruno@clisp.org>
17321
17322         sys_socket: Ensure 'struct iovec' definition.
17323         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17324         <sys/socket.h>.
17325         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17326
17327 2011-04-30  Bruno Haible  <bruno@clisp.org>
17328
17329         sys_uio: Protect definition of 'struct iovec'.
17330         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17331         it as a C struct.
17332
17333 2011-04-30  Bruno Haible  <bruno@clisp.org>
17334
17335         manywarnings: fix indentation
17336         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17337
17338 2011-04-30  Pádraig Brady <P@draigBrady.com>
17339
17340         manywarnings: add -Wno-missing-field-initializers if needed.
17341         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17342         option if it's needed to allow initialization with { 0, }
17343
17344 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17345
17346         announce-gen: cosmetic improvement
17347         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17348
17349 2011-04-29  Jim Meyering  <meyering@redhat.com>
17350
17351         vc-list-files: indent with spaces, not TABs
17352         * build-aux/vc-list-files: Convert leading TABs to spaces,
17353         to match the style of most other files in gnulib.
17354
17355         announce-gen: indent with spaces, not TABs
17356         * build-aux/announce-gen: Convert all TABs to spaces, to match
17357         the style of most other files in gnulib.
17358
17359 2011-04-29  Eric Blake  <eblake@redhat.com>
17360
17361         quotearg: avoid uninitialized variable use
17362         * lib/quotearg.c (quoting_options_from_style): Initialize
17363         remaining fields, and ensure that custom styles are only used via
17364         quoting_options rather than quoting_style.
17365
17366 2011-04-29  Jim Meyering  <meyering@redhat.com>
17367
17368         maint.mk: remove unused VC-tag variable
17369         * top/maint.mk (VC-tag): Remove unused variable.
17370
17371 2011-04-29  Bruno Haible  <bruno@clisp.org>
17372
17373         netdb: fix gai_strerror replacements
17374         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17375         * modules/netdb: Substitute it.
17376
17377 2011-04-29  Jim Meyering  <meyering@redhat.com>
17378
17379         test-getcwd.c: avoid new set-but-not-used warning
17380         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17381         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17382         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17383         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17384
17385         test-hash.c: avoid a new shadowing warning
17386         * tests/test-hash.c (main): Don't shadow "dup".
17387
17388 2011-04-28  Eric Blake  <eblake@redhat.com>
17389
17390         getaddrinfo: fix gai_strerror signature
17391         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17392         and work around mingw with UNICODE defined.
17393         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17394         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17395         * modules/netdb (Makefile.am): Substitute it.
17396         * lib/netdb.in.h (gai_strerror): Declare replacement.
17397         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17398         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17399         the fix.
17400
17401         getsockopt: avoid compiler warning
17402         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17403         Reported by Matthias Bolte.
17404
17405         tests: drop unused link dependency
17406         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17407         * modules/dirent-safer-tests (Makefile.am): Likewise.
17408         * modules/fdopendir-tests (Makefile.am): Likewise.
17409         * modules/mkfifoat-tests (Makefile.am): Likewise.
17410         * modules/openat-safer-tests (Makefile.am): Likewise.
17411         * modules/openat-tests (Makefile.am): Likewise.
17412         * modules/readlinkat-tests (Makefile.am): Likewise.
17413         * modules/symlinkat-tests (Makefile.am): Likewise.
17414         * modules/linkat-tests (Makefile.am): Likewise.
17415         (Depends-on): Switch to filenamecat-lgpl.
17416         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17417         LIBINTL.
17418         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17419         * tests/test-linkat.c (main): Don't require xalloc.
17420
17421         hash, mgetgroups: drop xalloc dependency
17422         * lib/hash.c (includes): Adjust includes.
17423         * lib/mgetgroups.c (includes): Likewise.
17424         (xgetgroups): Move...
17425         * lib/xgetgroups.c: ...to new file.
17426         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17427         * modules/xgetgroups: New file, split from...
17428         * modules/mgetgroups: ...here.
17429         (Depends-on): Add xalloc-oversized.
17430         * modules/hash (Depends-on): Likewise.
17431         * modules/hash-tests (Depends-on): Drop xalloc.
17432         (test_hash_LDADD): Drop unused library.
17433         * tests/test-hash.c (main): Break xalloc dependency.
17434         (includes): Drop unused include.
17435
17436         xalloc-oversized: new module
17437         * modules/xalloc-oversized: New module.
17438         * modules/xalloc (Depends-on): Add it.
17439         * lib/xalloc.h (xalloc_oversized): Move...
17440         * lib/xalloc-oversized.h: ...into new file.
17441
17442         utimecmp: drop dependency on xmalloc
17443         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17444         due to memory pressure.
17445         * modules/utimecmp (Depends-on): Drop xalloc.
17446
17447 2011-04-27  Eric Blake  <eblake@redhat.com>
17448
17449         getcwd: fix mingw bugs
17450         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17451         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17452         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17453
17454 2011-04-27  Bruno Haible  <bruno@clisp.org>
17455
17456         mkstemps: Ensure declaration on MacOS X 10.5.
17457         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17458         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17459         MacOS X.
17460
17461 2011-04-27  Bruno Haible  <bruno@clisp.org>
17462
17463         mkstemp: More documentation.
17464         * doc/posix-functions/mkstemp.texi: Document header file problem on
17465         MacOS X.
17466
17467 2011-04-27  Bruno Haible  <bruno@clisp.org>
17468
17469         mkstemp: Tweak configure message when cross-compiling.
17470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17471         result as a guess.
17472
17473 2011-04-27  Bruno Haible  <bruno@clisp.org>
17474
17475         clean-temp: Clarify what it does.
17476         * lib/clean-temp.h: Add more comments.
17477         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17478         module.
17479         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17480         * doc/glibc-functions/mkstemps.texi: Likewise.
17481         * doc/glibc-functions/mkostemps.texi: Likewise.
17482
17483 2011-04-27  Eric Blake  <eblake@redhat.com>
17484
17485         fchdir: avoid extra chdir and fix test
17486         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17487         getcwd-lgpl.
17488         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17489         have to be canonical.
17490         (canonicalize_file_name): Drop unused macro.
17491         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17492
17493         filenamecat-lgpl: fix licence
17494         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17495         when it was first created.
17496
17497         linkat, renameat: add missing dependency
17498         * modules/linkat (Depends-on): Require getcwd-lgpl.
17499         * modules/renameat (Depends-on): Likewise.
17500
17501         tests: reduce dependencies
17502         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17503         * tests/test-renameat.c (main): Likewise.
17504         * modules/linkat-tests (Depends-on): Relax dependency.
17505         * modules/renameat-tests (Depends-on): Likewise.
17506         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17507         dependency explicit.
17508
17509         save-cwd: reduce default dependency
17510         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17511         * lib/save-cwd.c: Update comments.
17512         * NEWS: Document the semantic change.
17513
17514         getcwd: enhance tests
17515         * tests/test-getcwd-lgpl.c: New file, taken from...
17516         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17517         repeat long path stress tests from m4 probe.
17518         * modules/getcwd-lgpl-tests: New module.
17519         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17520         * m4/getcwd-abort-bug.m4: Update comment.
17521         * m4/getcwd-path-max.m4: Likewise.
17522
17523         getcwd-lgpl: new module
17524         * modules/getcwd-lgpl: New module.
17525         * lib/getcwd-lgpl.c: New file.
17526         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17527         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17528         * modules/getcwd (configure.ac): Set C witness.
17529         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17530
17531         getcwd: tweak comments
17532         * m4/getcwd-abort-bug.m4: Fix comments.
17533         * m4/getcwd-path-max.m4: Likewise.
17534         * m4/getcwd.m4: Likewise.
17535
17536 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17537         and Eric Blake  <eblake@redhat.com>
17538
17539         mkstemp: replace if system version uses wrong permissions
17540         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17541         read/write mode bits set in file created by mkstemp.
17542         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17543
17544 2011-04-27  Eric Blake  <eblake@redhat.com>
17545
17546         passfd: avoid compiler warning
17547         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17548         Reported by Laine Stump.
17549
17550 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17551
17552         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17553         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17554
17555 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17556         and Eric Blake  <eblake@redhat.com>
17557
17558         mkstemp: mention clean-temp module
17559         * lib/mkstemp.c: Add comment.
17560         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17561
17562 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17563
17564         inttypes: also provide default values for 32-bit tests
17565         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17566         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17567
17568 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17569
17570         strtoumax: remove dependency on strtoimax
17571         This is like the strtoull change of yesterday.
17572         * modules/strtoumax (Files): Add lib/strtoimax.c.
17573         (Depends-on): Remove strtoimax and add verify.
17574
17575         inttypes-incomplete: new module
17576         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17577         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17578         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17579         of gl_INTTYPES_H.
17580         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17581         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17582         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17583         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17584         * modules/strtoumax, modules/xstrtol (Depends-on):
17585         Depend on inttypes-incomplete, not inttypes.
17586         * modules/inttypes-incomplete: New module, containing the contents
17587         of the old modules/inttypes module, except that the Files: section
17588         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17589         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17590         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17591         (Depends-on): Depend only on inttypes-incomplete.
17592         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17593
17594         inttypes: omit now-redundant strtoimax and strtoumax work
17595         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17596         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17597
17598         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17599         This supports apps that need pointers to strtoimax and strtoumax,
17600         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17601         nonexistent functions.  See
17602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17603         et seq.
17604         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17605         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17606         a macro.
17607         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17608
17609 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17610
17611         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17612
17613 2011-04-25  Bruno Haible  <bruno@clisp.org>
17614
17615         strtol, strtoul: Mark modules as obsolete.
17616         * modules/strtol (Status, Notice): New sections.
17617         * modules/strtoul (Status, Notice): New sections.
17618
17619 2011-04-25  Bruno Haible  <bruno@clisp.org>
17620
17621         strtod: Remove check for strtod, unless supporting old platforms.
17622         * modules/strtod-obsolete: New file.
17623         * m4/strtod-obsolete.m4: New file.
17624         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17625         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17626         * modules/strtod (Depends-on): Add strtod-obsolete.
17627         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17628
17629 2011-04-25  Bruno Haible  <bruno@clisp.org>
17630
17631         strcase: Make module obsolete.
17632         * modules/strcase (Status, Notice): New sections.
17633
17634 2011-04-25  Bruno Haible  <bruno@clisp.org>
17635
17636         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17637         * modules/dup2-obsolete: New file.
17638         * m4/dup2-obsolete.m4: New file.
17639         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17640         gl_FUNC_DUP2_OBSOLETE is not also defined.
17641         * modules/dup2 (Depends-on): Add dup2-obsolete.
17642         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17643
17644 2011-04-25  Bruno Haible  <bruno@clisp.org>
17645
17646         strnlen: Avoid memchr related link error on old obsolete platforms.
17647         * modules/memchr-obsolete: New file.
17648         * m4/memchr-obsolete.m4: New file.
17649         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17650         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17651         * modules/memchr (Depends-on): Add memchr-obsolete.
17652         * modules/strnlen (Depends-on): Likewise.
17653         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17654
17655 2011-04-25  Jim Meyering  <meyering@redhat.com>
17656
17657         maint.mk: makefile_at_at_check extend and clean up
17658         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17659         in addition to */Makefile.am.
17660         Exempt legitimate uses of @VAR@ notation, e.g.,
17661         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17662         Remove obsolete coreutils-specific comment.
17663         Prompted by discussion here:
17664         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17665
17666 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17667
17668         strtoul: remove dependency on strtol
17669         This is so that 'configure' need not check for strtol merely because
17670         the application needs strtoul.
17671         * modules/strtoul (Files): Add lib/strtol.c.
17672         (Depends-on): Remove strtol.
17673
17674         strtoull: remove dependency on strtoul
17675         This is like the strtoll change.
17676         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17677         (Depends-on): Remove strtoul.
17678
17679         strtoll: remove dependency on strtol
17680         This is so that 'configure' need not check for strtol merely because
17681         the application needs strtoll.
17682         * modules/strtoll (Files): Add lib/strtol.c.
17683         (Depends-on): Remove strtol.
17684
17685 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17686
17687         inttypes: Move some configure check to module 'imaxdiv'.
17688         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17689         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17690         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17691
17692 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17693
17694         inttypes: Move some configure check to module 'imaxabs'.
17695         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17696         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17697         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17698
17699 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17700
17701         inttypes: Remove configure tests that are not needed since 2009-12-31.
17702         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17703         gl_cv_header_working_inttypes_h.
17704
17705 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17706
17707         * modules/strnlen (Depends-on): Remove memchr.
17708         The strnlen implementation doesn't need the memchr module's fixes; see
17709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17710
17711         strtol: remove dependency on wchar
17712         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17713         * modules/strtol (Depends-on): Remove wchar.
17714
17715 2011-04-21  Eric Blake  <eblake@redhat.com>
17716
17717         passfd: fix test regression on Linux
17718         * modules/passfd-tests (configure.ac): Correct socketpair check.
17719
17720         passfd: speed up configure and drop unused code
17721         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17722         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17723         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17724         Instead of probing at configure for unix_scm_rights_bsd44_way,
17725         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17726         check to a struct member probe.
17727         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17728         (sendfd, recvfd): Update preprocessor checks.
17729         * modules/passfd (Files): Reflect rename, and drop unused file.
17730         (Depends-on): Drop unused dependency.
17731
17732         passfd: allow compilation on mingw
17733         * modules/sys_socket (Depends-on): Add sys_uio.
17734         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17735         iovec and a minimal struct msghdr.
17736         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17737         * tests/test-sys_socket.c (main): Enhance test.
17738         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17739         guaranteed to provide what we need.
17740         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17741         * modules/passfd-tests (Depends-on): Add sys_wait.
17742         * tests/test-passfd.c (main): Skip test on mingw, for now.
17743         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17744         partial 'struct msghdr' implementation.
17745
17746         sys_uio: new module
17747         * modules/sys_uio: New module.
17748         * modules/sys_uio-tests: Likewise.
17749         * lib/sys_uio.in.h: New file.
17750         * m4/sys_uio_h.m4: Likewise.
17751         * tests/test-sys_uio.c: Likewise.
17752         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17753         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17754
17755 2011-04-20  Jim Meyering  <meyering@redhat.com>
17756
17757         useless-if-before-free: avoid false-positive
17758         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17759         disjunct so that it too requires a terminating ";".  Without that,
17760         this script would identify as useless one statement from gcc that
17761         was not:
17762           if (aligned_ptr)
17763             free (((void **) aligned_ptr) [-1]);
17764
17765 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17766
17767         doc: update users.txt.
17768         * users.txt: Add barcode.
17769
17770 2011-04-19  Bruno Haible  <bruno@clisp.org>
17771
17772         ioctl: Remove link dependency on native Windows.
17773         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17774         (gl_close_fn, gl_ioctl_fn): New types.
17775         (struct fd_hook): Renamed from struct close_hook. Change type of
17776         private_close_fn field. Add private_ioctl_fn field.
17777         (close_hook_fn): Add parameter for primary close method.
17778         (execute_close_hooks, execute_all_close_hooks): Likewise.
17779         (ioctl_hook_fn): New type.
17780         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17781         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17782         argument.
17783         (unregister_fd_hook): Renamed from unregister_close_hook.
17784         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17785         Don't include <unistd.h>.
17786         (close): Remove undef.
17787         (anchor): Update.
17788         (execute_close_hooks): Add argument for primary close method.
17789         (execute_all_close_hooks): Likewise.
17790         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17791         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17792         argument. Allow each argument to be NULL.
17793         (unregister_fd_hook): Renamed from unregister_close_hook.
17794         * lib/close.c (rpl_close): Pass 'close' function pointer to
17795         execute_all_close_hooks.
17796         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17797         (primary_ioctl): New function.
17798         (ioctl): Don't call ioctlsocket here. Instead, call
17799         execute_all_ioctl_hooks.
17800         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17801         close method.
17802         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17803         (fd_sockets_hook): Renamed from close_sockets_hook.
17804         (gl_sockets_startup, gl_sockets_cleanup): Update.
17805         * modules/fd-hook: Renamed from modules/close-hook. Update.
17806         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17807         * modules/sockets (Depends-on): Likewise.
17808         * modules/ioctl (Depends-on): Add fd-hook.
17809         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17810         GNULIB_SOCKET.
17811
17812 2011-04-19  Bruno Haible  <bruno@clisp.org>
17813
17814         Move the support of O_NONBLOCK in open() to the 'open' module.
17815         * modules/nonblocking (Depends-on): Remove 'open'.
17816         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17817         gl_cv_have_open_O_NONBLOCK.
17818         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17819         O_NONBLOCK support.
17820         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17821
17822 2011-04-17  Bruno Haible  <bruno@clisp.org>
17823
17824         pipe2: Simplify code.
17825         * lib/pipe2.c (pipe2): Reduce code duplication.
17826
17827 2011-04-17  Bruno Haible  <bruno@clisp.org>
17828
17829         nonblocking: Add comment.
17830         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17831
17832 2011-04-17  Bruno Haible  <bruno@clisp.org>
17833
17834         nonblocking: Add tests for sockets.
17835         * tests/test-nonblocking-socket.sh: New file.
17836         * tests/test-nonblocking-socket-main.c: New file.
17837         * tests/test-nonblocking-socket-child.c: New file.
17838         * tests/test-nonblocking-socket.h: New file.
17839         * tests/socket-server.h: New file.
17840         * tests/socket-client.h: New file.
17841         * modules/nonblocking-socket-tests: New file.
17842         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17843
17844 2011-04-17  Bruno Haible  <bruno@clisp.org>
17845
17846         nonblocking: Add tests for pipes.
17847         * tests/test-nonblocking-pipe.sh: New file.
17848         * tests/test-nonblocking-pipe-main.c: New file.
17849         * tests/test-nonblocking-pipe-child.c: New file.
17850         * tests/test-nonblocking-pipe.h: New file.
17851         * tests/test-nonblocking-writer.h: New file.
17852         * tests/test-nonblocking-reader.h: New file.
17853         * tests/test-nonblocking-misc.h: New file.
17854         * modules/nonblocking-pipe-tests: New file.
17855         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17856
17857 2011-04-16  Bruno Haible  <bruno@clisp.org>
17858
17859         gettext: Clarify the needed programmer actions.
17860         * modules/gettext (Notice): New field.
17861         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17862
17863 2011-04-16  Bruno Haible  <bruno@clisp.org>
17864
17865         strchrnul: Tweak last commit.
17866         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17867         bug.
17868         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17869         as in _GL_FUNCDECL_SYS.
17870         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17871         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17872
17873 2011-04-15  Eric Blake  <eblake@redhat.com>
17874
17875         strchrnul: work around cygwin bug
17876         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17877         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17879         * modules/string (Makefile.am): Substitute it.
17880         * lib/string.in.h (strchrnul): Use it.
17881
17882 2011-04-15  Bruno Haible  <bruno@clisp.org>
17883
17884         Don't require lib/stdio-write.c when only module 'stdio' is used.
17885         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17886         invocation.
17887         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17888
17889 2011-04-14  Bruno Haible  <bruno@clisp.org>
17890
17891         Support non-blocking pipe I/O in read() on native Windows.
17892         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17893         (read): New declaration.
17894         * lib/read.c: New file.
17895         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17896         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17897         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17898         vscanf): New declarations.
17899         * lib/stdio-read.c: New file.
17900         * m4/read.m4: New file.
17901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17902         REPLACE_READ.
17903         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17904         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17905         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17906         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17907         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17908         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17909         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17910         * modules/read: New file.
17911         * modules/nonblocking (Files): Add lib/stdio-read.c.
17912         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17913         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17914         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17915         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17916         * modules/pread (Depends-on): Add read.
17917         * modules/safe-read (Depends-on): Likewise.
17918         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17919         gets, scanf, vfscanf, vscanf): Verify signatures.
17920         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17921         problem with non-blocking pipes.
17922         * doc/posix-functions/fgetc.texi: Likewise.
17923         * doc/posix-functions/fgets.texi: Likewise.
17924         * doc/posix-functions/fread.texi: Likewise.
17925         * doc/posix-functions/fscanf.texi: Likewise.
17926         * doc/posix-functions/getc.texi: Likewise.
17927         * doc/posix-functions/getchar.texi: Likewise.
17928         * doc/posix-functions/gets.texi: Likewise.
17929         * doc/posix-functions/scanf.texi: Likewise.
17930         * doc/posix-functions/vfscanf.texi: Likewise.
17931         * doc/posix-functions/vscanf.texi: Likewise.
17932
17933 2011-04-14  Bruno Haible  <bruno@clisp.org>
17934
17935         Support non-blocking pipe I/O in write() on native Windows.
17936         * lib/write.c (rpl_write): Split a write request that failed merely
17937         because the byte count was larger than the pipe buffer's size.
17938         * doc/posix-functions/write.texi: Mention the problem with large byte
17939         counts.
17940
17941 2011-04-14  Bruno Haible  <bruno@clisp.org>
17942
17943         wchar: Ensure that wchar_t gets defined on uClibc.
17944         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17945         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17946
17947 2011-04-13  Bruno Haible  <bruno@clisp.org>
17948
17949         safe-write, full-read: Avoid unnecessary compilation units.
17950         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17951         (Depends-on): Remove safe-read. Add ssize_t.
17952         * modules/full-read (Files): Add lib/full-write.c.
17953         (Depends-on): Add full-write.
17954
17955 2011-04-13  Bruno Haible  <bruno@clisp.org>
17956
17957         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17958         * modules/pwrite (Depends-on): Add 'write'.
17959
17960 2011-04-13  Bruno Haible  <bruno@clisp.org>
17961
17962         Support non-blocking pipe I/O in write() on native Windows.
17963         * lib/unistd.in.h (write): Enable replacement also if
17964         GNULIB_UNISTD_H_NONBLOCKING is 1.
17965         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17966         (rpl_write): When failing to write on a non-blocking pipe, change
17967         errno from ENOSPC to EAGAIN.
17968         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17969         putchar, puts, vfprintf, vprintf): Enable replacement also if
17970         GNULIB_STDIO_H_NONBLOCKING is 1.
17971         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17972         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17973         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17974         CALL_WITH_SIGPIPE_EMULATION.
17975         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17976         * m4/nonblocking.m4: New file.
17977         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17978         for non-blocking I/O support.
17979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17980         GNULIB_UNISTD_H_NONBLOCKING.
17981         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17982         required for non-blocking I/O support.
17983         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17984         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17985         lib/stdio-write.c, m4/asm-underscore.m4.
17986         (Depends-on): Add stdio, unistd.
17987         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17988         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17989         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17990         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17991         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17992         problem with non-blocking pipes.
17993         * doc/posix-functions/fputc.texi: Likewise.
17994         * doc/posix-functions/fputs.texi: Likewise.
17995         * doc/posix-functions/fwrite.texi: Likewise.
17996         * doc/posix-functions/printf.texi: Likewise.
17997         * doc/posix-functions/putc.texi: Likewise.
17998         * doc/posix-functions/putchar.texi: Likewise.
17999         * doc/posix-functions/puts.texi: Likewise.
18000         * doc/posix-functions/vfprintf.texi: Likewise.
18001         * doc/posix-functions/vprintf.texi: Likewise.
18002         * doc/posix-functions/write.texi: Likewise.
18003
18004 2011-04-10  Jim Meyering  <meyering@redhat.com>
18005
18006         maint.mk: prohibit doubled words
18007         Detect them also when they're separated by a newline.
18008         There are 3 ways to customize it:
18009           - disable the test on a per file basis, as usual with rules using
18010             $(VC_LIST_EXCEPT)
18011           - replace the default doubled-word-selecting regexp (affects all files)
18012           - ignore a particular file-vs-doubled-word match
18013         I nearly used that last one to ignore the "is is" match in
18014         coreutils' NEWS file, since the text was "ls -is is ..."
18015         To do that, I would have added this line to cfg.mk:
18016           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18017         but it would have ignored any "is is" match in NEWS.
18018         Low probability, but still...
18019         Instead, I changed the text, slightly:
18020           -  ls -is is now consistent with ls -lis in ignoring values returned
18021           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18022         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18023         (prohibit_doubled_word_): Define.
18024         (sc_prohibit_doubled_word): New rule.
18025         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18026
18027 2011-04-10  Jim Meyering  <meyering@redhat.com>
18028
18029         maint: fix doubled-word typo in comment
18030         * m4/gethostname.m4: s/is is/it is/
18031         * m4/getdomainname.m4: Likewise.
18032
18033 2011-04-10  Jim Meyering  <meyering@redhat.com>
18034
18035         maint: remove doubled word: s/it it/it/
18036         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18037
18038 2011-04-10  Jim Meyering  <meyering@redhat.com>
18039
18040         maint.mk: remove useless semicolon and backslash
18041         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18042         semicolon and backslash.
18043
18044 2011-04-10  Bruno Haible  <bruno@clisp.org>
18045
18046         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18047         * modules/stdint-tests (Depends-on): Add wchar.
18048
18049 2011-04-10  Jim Meyering  <meyering@redhat.com>
18050
18051         maint: remove doubled words in comments, e.g., s/a a/a/
18052         * lib/strptime.c (day_of_the_week): s/the the/the/
18053         * tests/test-chown.h (test_chown): s/a a/a/
18054
18055         test-chown.h: correct a cast
18056         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18057         when the destination is a stat.st_gid.
18058
18059 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18060
18061         getaddrinfo: Fix test for sa_len member.
18062         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18063         include <sys/types.h> before <sys/socket.h>.
18064
18065 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18066
18067         maint: change "can not" to "cannot"
18068         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18069         boundaries.
18070
18071 2011-04-09  Jim Meyering  <meyering@redhat.com>
18072
18073         maint: change "a a" to "a"
18074         * tests/test-lchown.h (test_lchown): s/a a/a/
18075
18076         maint.mk: prohibit \<the the\>
18077         * top/maint.mk (sc_prohibit_the_the): New rule.
18078
18079         maint: fix "the the" in comment
18080         * lib/count-one-bits.h: s/the the/the/
18081
18082         maint: change "can not" to "cannot"
18083         But do not change the occurrences in maintain.texi or in
18084         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18085         * doc/gnulib-tool.texi: s/can not/cannot/
18086         * doc/posix-functions/accept.texi (accept): Likewise.
18087         * doc/posix-functions/socket.texi (socket): Likewise.
18088         * lib/mbrtowc.c: Likewise.
18089
18090         maint.mk: prohibit use of "can not"
18091         * top/maint.mk (sc_prohibit_can_not): New rule.
18092         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18093
18094 2011-04-09  Bruno Haible  <bruno@clisp.org>
18095
18096         careadlinkat: Guard against misuse of careadlinkatcwd.
18097         * lib/careadlinkat.c: Include <stdlib.h>.
18098         (careadlinkatcwd): Check that the fd argument is as expected.
18099
18100 2011-04-09  Bruno Haible  <bruno@clisp.org>
18101
18102         careadlinkat: Use common coding style.
18103         * lib/careadlinkat.c: Move gnulib includes after system includes.
18104
18105 2011-04-09  Bruno Haible  <bruno@clisp.org>
18106
18107         careadlinkat: Clarify specification.
18108         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18109         (careadlinkatcwd): Add comment.
18110         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18111
18112 2011-04-09  Bruno Haible  <bruno@clisp.org>
18113
18114         areadlinkat: Avoid link error on many platforms.
18115         * modules/areadlinkat (Depends-on): Add areadlink.
18116
18117 2011-04-09  Bruno Haible  <bruno@clisp.org>
18118
18119         allocator, careadlinkat: Fix double-inclusion guard.
18120         * lib/allocator.h: Fix double-inclusion guard.
18121         * lib/careadlinkat.h: Likewise.
18122
18123 2011-04-09  Bruno Haible  <bruno@clisp.org>
18124
18125         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18126         * lib/relocwrapper.c: Update dependencies hierarchy.
18127         * build-aux/install-reloc: Update list of files to be compiled.
18128         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18129         lib/allocator.[hc].
18130
18131 2011-04-08  Eric Blake  <eblake@redhat.com>
18132
18133         strftime: silence gnulib-tool warning
18134         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18135
18136 2011-04-08  Bruno Haible  <bruno@clisp.org>
18137
18138         verify: Fix syntax error with GCC 4.6 in C++ mode.
18139         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18140         (HAVE_STATIC_ASSERT): New macro.
18141         (verify_true, verify): Use 'static_assert' if it is supported and
18142         '_Static_assert' is not supported.
18143
18144 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18145
18146         allocator: New module.
18147         * modules/allocator, lib/allocator.c: New files.
18148         * lib/allocator.h (stdlib_allocator): New decl.
18149         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18150         Remove.  Do not include <stdlib.h>.
18151         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18152         * modules/careadlinkat (Files): Remove lib/allocator.h.
18153         (Depends-on): Add allocator.
18154
18155         stdlib: let modules use system malloc, realloc
18156         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18157         if !_GL_USE_STDLIB_ALLOC.
18158         (malloc, realloc): Limit this change to a smaller scope.
18159
18160         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18161         (malloc, realloc): Don't #undef; no longer needed.
18162         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18163         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18164         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18165         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18166         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18167         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18168         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18169         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18170
18171         careadlinkat: rename members to avoid problem
18172         * lib/allocator.h (struct allocator): Rename members from
18173         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18174         and realloc are #define'd.  Reported by Eric Blake in
18175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18176         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18177
18178 2011-04-08  Eric Blake  <eblake@redhat.com>
18179
18180         nonblocking: reduce dependency
18181         * tests/test-nonblocking.c: Only test sockets when in use.
18182         * modules/nonblocking-tests (Depends-on): Drop socket.
18183         (Makefile.am): Link even if sockets are not present.
18184         * modules/pipe2-tests (Makefile.am): Likewise.
18185         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18186
18187         pipe2: fix O_NONBLOCK support on mingw
18188         * modules/pipe2 (Depends-on): Add nonblocking.
18189         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18190         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18191         * tests/test-nonblocking.c (main): Likewise.
18192         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18193
18194         fcntl-h: fix O_ACCMODE on cygwin
18195         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18196         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18197
18198         pipe-filter: drop O_NONBLOCK workarounds
18199         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18200         * modules/pipe-filter-ii (Depends-on): Likewise.
18201         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18202
18203         nonblocking: provide O_NONBLOCK for mingw
18204         * modules/nonblocking (Depends-on): Add open.
18205         (configure.ac): Set new witness macro.
18206         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18207         * modules/fcntl-h (Makefile.am): Substitute it.
18208         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18209         nonblocking module is in use.
18210         * lib/nonblocking.c: Adjust portability test.
18211         * lib/open.c (open): Don't let native open see gnulib flag.
18212         * tests/test-fcntl-h.c (main): Enhance test.
18213         * tests/test-open.h (test_open): Likewise.
18214         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18215
18216         careadlinkat: fix compilation error on mingw
18217         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18218         within struct allocator.
18219
18220 2011-04-06  Eric Blake  <eblake@redhat.com>
18221
18222         binary-io: relicense under LGPLv2+
18223         * modules/binary-io (License): Relax to LGPLv2+.
18224         Requested for libvirt, and required by pipe2.
18225
18226 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18227
18228         verify: use _Static_assert if available
18229         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18230         (verify_true, verify): Use it if available.  This generates better
18231         diagnostics with GCC 4.6.0 and later.
18232
18233 2011-04-05  Bruno Haible  <bruno@clisp.org>
18234
18235         Remove leftover generated .h files after config.status changed.
18236
18237         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18238         GL_GENERATE_ALLOCA_H.
18239         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18240         GL_GENERATE_ALLOCA_H evaluates to false.
18241
18242         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18243         GL_GENERATE_ARGZ_H.
18244         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18245         evaluates to false.
18246
18247         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18248         GL_GENERATE_BYTESWAP_H.
18249         * modules/byteswap (Makefile.am): Remove byteswap.h if
18250         GL_GENERATE_BYTESWAP_H evaluates to false.
18251
18252         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18253         GL_GENERATE_ERRNO_H.
18254         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18255         evaluates to false.
18256
18257         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18258         GL_GENERATE_FLOAT_H.
18259         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18260         evaluates to false.
18261
18262         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18263         GL_GENERATE_FNMATCH_H.
18264         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18265         GL_GENERATE_FNMATCH_H evaluates to false.
18266
18267         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18268         GL_GENERATE_GLOB_H.
18269         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18270         evaluates to false.
18271
18272         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18273         automake conditional GL_GENERATE_ICONV_H.
18274         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18275         evaluates to false.
18276
18277         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18278         GL_GENERATE_NETINET_IN_H.
18279         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18280         GL_GENERATE_NETINET_IN_H evaluates to false.
18281
18282         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18283         conditional GL_GENERATE_PTHREAD_H.
18284         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18285         * modules/pthread (Makefile.am): Remove pthread.h if
18286         GL_GENERATE_PTHREAD_H evaluates to false.
18287
18288         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18289         GL_GENERATE_SCHED_H.
18290         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18291         evaluates to false.
18292
18293         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18294         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18295         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18296         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18297
18298         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18299         GL_GENERATE_STDARG_H.
18300         * modules/stdarg (Makefile.am): Remove stdarg.h if
18301         GL_GENERATE_STDARG_H evaluates to false.
18302
18303         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18304         GL_GENERATE_STDBOOL_H.
18305         * modules/stdbool (Makefile.am): Remove stdbool.h if
18306         GL_GENERATE_STDBOOL_H evaluates to false.
18307
18308         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18309         conditional GL_GENERATE_STDDEF_H.
18310         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18311         * modules/stddef (Makefile.am): Remove stddef.h if
18312         GL_GENERATE_STDDEF_H evaluates to false.
18313
18314         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18315         GL_GENERATE_STDINT_H.
18316         * modules/stdint (Makefile.am): Remove stdint.h if
18317         GL_GENERATE_STDINT_H evaluates to false.
18318
18319         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18320         GL_GENERATE_SYSEXITS_H.
18321         * modules/sysexits (Makefile.am): Remove sysexits.h if
18322         GL_GENERATE_SYSEXITS_H evaluates to false.
18323
18324         Reported by Karl Berry and Ralf Wildenhues.
18325
18326 2011-04-05  Bruno Haible  <bruno@clisp.org>
18327
18328         Ensure to rebuild generated .h files when config.status has changed.
18329         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18330         config.status.
18331         * modules/ctype (Makefile.am): Likewise.
18332         * modules/dirent (Makefile.am): Likewise.
18333         * modules/errno (Makefile.am): Likewise.
18334         * modules/fcntl-h (Makefile.am): Likewise.
18335         * modules/float (Makefile.am): Likewise.
18336         * modules/getopt-posix (Makefile.am): Likewise.
18337         * modules/glob (Makefile.am): Likewise.
18338         * modules/iconv-h (Makefile.am): Likewise.
18339         * modules/inttypes (Makefile.am): Likewise.
18340         * modules/langinfo (Makefile.am): Likewise.
18341         * modules/locale (Makefile.am): Likewise.
18342         * modules/math (Makefile.am): Likewise.
18343         * modules/netdb (Makefile.am): Likewise.
18344         * modules/netinet_in (Makefile.am): Likewise.
18345         * modules/poll-h (Makefile.am): Likewise.
18346         * modules/pthread (Makefile.am): Likewise.
18347         * modules/pty (Makefile.am): Likewise.
18348         * modules/sched (Makefile.am): Likewise.
18349         * modules/search (Makefile.am): Likewise.
18350         * modules/selinux-h (Makefile.am): Likewise.
18351         * modules/signal (Makefile.am): Likewise.
18352         * modules/spawn (Makefile.am): Likewise.
18353         * modules/stdarg (Makefile.am): Likewise.
18354         * modules/stdbool (Makefile.am): Likewise.
18355         * modules/stddef (Makefile.am): Likewise.
18356         * modules/stdint (Makefile.am): Likewise.
18357         * modules/stdio (Makefile.am): Likewise.
18358         * modules/stdlib (Makefile.am): Likewise.
18359         * modules/string (Makefile.am): Likewise.
18360         * modules/strings (Makefile.am): Likewise.
18361         * modules/sys_file (Makefile.am): Likewise.
18362         * modules/sys_ioctl (Makefile.am): Likewise.
18363         * modules/sys_select (Makefile.am): Likewise.
18364         * modules/sys_socket (Makefile.am): Likewise.
18365         * modules/sys_stat (Makefile.am): Likewise.
18366         * modules/sys_time (Makefile.am): Likewise.
18367         * modules/sys_times (Makefile.am): Likewise.
18368         * modules/sys_utsname (Makefile.am): Likewise.
18369         * modules/sys_wait (Makefile.am): Likewise.
18370         * modules/sysexits (Makefile.am): Likewise.
18371         * modules/termios (Makefile.am): Likewise.
18372         * modules/time (Makefile.am): Likewise.
18373         * modules/unistd (Makefile.am): Likewise.
18374         * modules/wchar (Makefile.am): Likewise.
18375         * modules/wctype-h (Makefile.am): Likewise.
18376         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18377
18378 2011-04-05  Bruno Haible  <bruno@clisp.org>
18379
18380         pipe2: Relicense under LGPLv2+.
18381         * modules/pipe2 (License): Change to LGPLv2+.
18382         Requested by Eric Blake, for libvirt.
18383
18384 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18385
18386         bootstrap: compute gnulib_extra_files after updating build_aux
18387         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18388         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18389
18390 2011-04-05  Eric Blake  <eblake@redhat.com>
18391
18392         bootstrap: preserve git whitelist item sorting
18393         * build-aux/bootstrap (sort_patterns): New function.
18394         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18395
18396 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18397
18398         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18399         sc_space_tab check.
18400
18401 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18402
18403         areadlink, areadlinkat: rewrite in terms of careadlinkat
18404         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18405         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18406         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18407         (malloc, realloc): Remove #undefs.
18408         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18409         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18410         readlink, ssize_t, stdint, unistd.
18411         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18412         areadlink, stdint.
18413
18414         careadlinkat: new module
18415         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18416         * modules/careadlinkat: New files, written by me with
18417         a review and feedback from Ben Pfaff in
18418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18419
18420 2011-04-01  Bruno Haible  <bruno@clisp.org>
18421
18422         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18423         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18424         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18425         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18426         Reported by Bruce Korb <bruce.korb@gmail.com>.
18427
18428 2011-04-01  Bruno Haible  <bruno@clisp.org>
18429
18430         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18431         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18432         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18433         * modules/wcpcpy (Depends-on): Add extensions.
18434         * modules/wcpncpy (Depends-on): Likewise.
18435         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18436         systems.
18437         * doc/posix-functions/wcpncpy.texi: Likewise.
18438         * doc/posix-functions/wcwidth.texi: Likewise.
18439
18440 2011-03-31  Eric Blake  <eblake@redhat.com>
18441
18442         nonblocking: fix mingw test failures
18443         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18444         non-blocking flag on regular file.
18445         (get_nonblocking_flag): Set errno on invalid fd.
18446         * tests/test-nonblocking.c (main): Avoid test failure on
18447         directories if fchdir is not active.
18448         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18449
18450 2011-03-31  Bruno Haible  <bruno@clisp.org>
18451
18452         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18453         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18454         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18455         Reported by Simon Josefsson <simon@josefsson.org>.
18456
18457 2011-03-31  Bruno Haible  <bruno@clisp.org>
18458         and Eric Blake  <eblake@redhat.com>
18459
18460         nonblocking: new module
18461         * modules/nonblocking: New module.
18462         * modules/nonblocking-tests: Likewise.
18463         * lib/nonblocking.h: New file.
18464         * lib/nonblocking.c: Likewise.
18465         * tests/test-nonblocking.c: New test.
18466         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18467
18468 2011-03-30  Bruno Haible  <bruno@clisp.org>
18469
18470         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18471         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18472         instead of 'printf' format for GCC >= 4.4.
18473         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18474         (fprintf, printf, vfprintf, vprintf): Declare with
18475         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18476         the system's vfprintf() function.
18477         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18478
18479 2011-03-30  Eric Blake  <eblake@redhat.com>
18480
18481         passfd: fix scoping bug
18482         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18483         before sendmsg/recvmsg.
18484
18485         passfd: standardize coding conventions
18486         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18487         can be learned at compile time.
18488         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18489         ifdefs.
18490         (sendfd, recvfd): Follow gnulib code conventions.
18491
18492         passfd: fix incorrect sendmsg arguments
18493         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18494         incorrect msg_controllen value.
18495         * modules/passfd-tests (Depends-on): Check for alarm.
18496         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18497         Reported by Bastien ROUCARIES.
18498
18499 2011-03-30  Bruno Haible  <bruno@clisp.org>
18500
18501         c-strcasestr: Relicense under LGPLv2+.
18502         * modules/c-strcasestr (License): Change to LGPLv2+.
18503         Requested by Eric Blake, for libvirt.
18504
18505 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18506
18507         * users.txt: Add libidn2.  Fix libtasn1 link.
18508
18509 2011-03-30  Jim Meyering  <meyering@redhat.com>
18510
18511         tests: readlink* ("",... fails with EINVAL on newer kernels
18512         readlink and readlinkat have typically failed with ENOENT for
18513         the invalid, empty file name,  "".  However, with the advent
18514         of linux-2.6.39, they fail with EINVAL.
18515         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18516         when operating on the empty file name.
18517         * tests/test-readlink.h (test_readlink): Likewise.
18518
18519 2011-03-29  Bruno Haible  <bruno@clisp.org>
18520
18521         Relicense some modules under LGPLv2+, for libidn2.
18522         * modules/array-mergesort (License): Change to LGPLv2+.
18523         * modules/c-strcaseeq (License): Likewise.
18524         * modules/striconveh (License): Likewise.
18525         * modules/striconveha (License): Likewise.
18526         * modules/uniconv/base (License): Likewise.
18527         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18528         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18529         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18530         * modules/unictype/base (License): Likewise.
18531         * modules/unictype/bidiclass-of (License): Likewise.
18532         * modules/unictype/category-M (License): Likewise.
18533         * modules/unictype/category-none (License): Likewise.
18534         * modules/unictype/category-of (License): Likewise.
18535         * modules/unictype/category-test (License): Likewise.
18536         * modules/unictype/category-test-withtable (License): Likewise.
18537         * modules/unictype/combining-class (License): Likewise.
18538         * modules/unictype/joiningtype-of (License): Likewise.
18539         * modules/unictype/scripts (License): Likewise.
18540         * modules/uninorm/base (License): Likewise.
18541         * modules/uninorm/canonical-decomposition (License): Likewise.
18542         * modules/uninorm/composition (License): Likewise.
18543         * modules/uninorm/decompose-internal (License): Likewise.
18544         * modules/uninorm/decomposition-table (License): Likewise.
18545         * modules/uninorm/nfc (License): Likewise.
18546         * modules/uninorm/nfd (License): Likewise.
18547         * modules/uninorm/u32-normalize (License): Likewise.
18548         * modules/unistr/base (License): Likewise.
18549         * modules/unistr/u32-cpy (License): Likewise.
18550         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18551         * modules/unistr/u32-to-u8 (License): Likewise.
18552         * modules/unistr/u32-uctomb (License): Likewise.
18553         * modules/unistr/u8-check (License): Likewise.
18554         * modules/unistr/u8-mblen (License): Likewise.
18555         * modules/unistr/u8-mbtouc (License): Likewise.
18556         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18557         * modules/unistr/u8-mbtoucr (License): Likewise.
18558         * modules/unistr/u8-prev (License): Likewise.
18559         * modules/unistr/u8-strlen (License): Likewise.
18560         * modules/unistr/u8-to-u32 (License): Likewise.
18561         * modules/unistr/u8-uctomb (License): Likewise.
18562         * modules/unitypes (License): Likewise.
18563         Requested by Simon Josefsson.
18564
18565 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18566
18567         lib-symbol-visibility: Add a notice.
18568         * modules/lib-symbol-visibility (Notice): New field.
18569
18570 2011-03-29  Bruno Haible  <bruno@clisp.org>
18571
18572         getaddrinfo: Doc fix.
18573         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18574         section "fixed in Gnulib".
18575
18576 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18577
18578         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18579         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18580
18581 2011-03-26  Bruno Haible  <bruno@clisp.org>
18582
18583         unictype/property-byname: Reduce the number of load-time relocations.
18584         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18585         (UC_PROPERTY_INDEX_*): New enumeration values.
18586         (uc_property_byname): Convert an index from the lookup table to an
18587         uc_property_t.
18588         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18589         values.
18590
18591 2011-03-26  Bruno Haible  <bruno@clisp.org>
18592
18593         unictype/property-byname: Allow omitted word separators and aliases.
18594         * lib/unictype/pr_byname.gperf: Add property names without word
18595         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18596         for 'space'.
18597
18598 2011-03-26  Bruno Haible  <bruno@clisp.org>
18599
18600         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18601         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18602         also hyphens to space.
18603         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18604         without spaces.
18605         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18606
18607 2011-03-26  Bruno Haible  <bruno@clisp.org>
18608
18609         unictype/joiningtype-byname: Recognize long names as well.
18610         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18611         a long name.
18612         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18613         unictype/joiningtype_byname.h.
18614         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18615         * lib/unictype/joiningtype_byname.gperf: New file.
18616         * modules/unictype/joiningtype-byname (Files): Add
18617         lib/unictype/joiningtype_byname.gperf.
18618         (Depends-on): Add gperf.
18619         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18620         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18621         long names.
18622
18623         Tests for module 'unictype/joiningtype-longname'.
18624         * modules/unictype/joiningtype-longname-tests: New file.
18625         * tests/unictype/test-joiningtype_longname.c: New file.
18626
18627         New module 'unictype/joiningtype-longname'.
18628         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18629         * lib/unictype/joiningtype_longname.c: New file.
18630         * modules/unictype/joiningtype-longname: New file.
18631         * modules/unictype/joiningtype-all (Depends-on): Add
18632         unictype/joiningtype-longname.
18633
18634 2011-03-26  Bruno Haible  <bruno@clisp.org>
18635
18636         unictype/bidiclass-byname: Recognize long names as well.
18637         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18638         name.
18639         * lib/unictype/bidi_byname.c: Include <string.h>,
18640         unictype/bidi_byname.h.
18641         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18642         * lib/unictype/bidi_byname.gperf: New file.
18643         * modules/unictype/bidiclass-byname (Files): Add
18644         lib/unictype/bidi_byname.gperf.
18645         (Depends-on): Add gperf.
18646         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18647         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18648         long names.
18649
18650         Tests for module 'unictype/bidiclass-longname'.
18651         * modules/unictype/bidiclass-longname-tests: New file.
18652         * tests/unictype/test-bidi_longname.c: New file.
18653
18654         New module 'unictype/bidiclass-longname'.
18655         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18656         * lib/unictype/bidi_longname.c: New file.
18657         * modules/unictype/bidiclass-longname: New file.
18658         * modules/unictype/bidiclass-all (Depends-on): Add
18659         unictype/bidiclass-longname.
18660
18661 2011-03-26  Bruno Haible  <bruno@clisp.org>
18662
18663         unictype/bidi*: Rename modules.
18664         * modules/unictype/bidiclass-all: Renamed from
18665         modules/unictype/bidicategory-all.
18666         * modules/unictype/bidiclass-name: Renamed from
18667         modules/unictype/bidiclass-name.
18668         (Description): Update.
18669         * modules/unictype/bidiclass-name-tests: Renamed from
18670         modules/unictype/bidicategory-name-tests.
18671         * modules/unictype/bidiclass-byname: Renamed from
18672         modules/unictype/bidicategory-byname.
18673         (Description): Update.
18674         * modules/unictype/bidiclass-byname-tests: Renamed from
18675         modules/unictype/bidicategory-byname-tests.
18676         * modules/unictype/bidiclass-of: Renamed from
18677         modules/unictype/bidicategory-of.
18678         (Description): Update.
18679         * modules/unictype/bidiclass-of-tests: Renamed from
18680         modules/unictype/bidicategory-of-tests.
18681         * modules/unictype/bidiclass-test: Renamed from
18682         modules/unictype/bidicategory-test.
18683         (Description): Update.
18684         * modules/unictype/bidiclass-test-tests: Renamed from
18685         modules/unictype/bidicategory-test-tests.
18686         * modules/unictype/bidicategory-all: New file, a simple redirection.
18687         * modules/unictype/bidicategory-name: Likewise.
18688         * modules/unictype/bidicategory-byname: Likewise.
18689         * modules/unictype/bidicategory-of: Likewise.
18690         * modules/unictype/bidicategory-test: Likewise.
18691         * modules/unictype/property-bidi-* (Dependencies): Update.
18692         * lib/unictype/bidi_*.c: Update comment.
18693
18694 2011-03-26  Bruno Haible  <bruno@clisp.org>
18695
18696         unictype/bidi*: Rename functions, part 2.
18697         * modules/unictype/bidicategory-name (configure.ac): Update required
18698         libunistring version.
18699         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18700
18701 2011-03-25  Bruno Haible  <bruno@clisp.org>
18702
18703         New module 'unictype/combining-class-all'.
18704         * modules/unictype/combining-class-all: New file.
18705
18706         Tests for module 'unictype/combining-class-byname'.
18707         * modules/unictype/combining-class-byname-tests: New file.
18708         * tests/unictype/test-combiningclass_byname.c: New file.
18709
18710         New module 'unictype/combining-class-byname'.
18711         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18712         * lib/unictype/combiningclass_byname.c: New file.
18713         * lib/unictype/combiningclass_byname.gperf: New file.
18714         * modules/unictype/combining-class-byname: New file.
18715
18716         Tests for module 'unictype/combining-class-longname'.
18717         * modules/unictype/combining-class-longname-tests: New file.
18718         * tests/unictype/test-combiningclass_longname.c: New file.
18719
18720         New module 'unictype/combining-class-longname'.
18721         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18722         * lib/unictype/combiningclass_longname.c: New file.
18723         * modules/unictype/combining-class-longname: New file.
18724
18725         Tests for module 'unictype/combining-class-name'.
18726         * modules/unictype/combining-class-name-tests: New file.
18727         * tests/unictype/test-combiningclass_name.c: New file.
18728
18729         New module 'unictype/combining-class-name'.
18730         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18731         * lib/unictype/combiningclass_name.c: New file.
18732         * modules/unictype/combining-class-name: New file.
18733
18734 2011-03-25  Bruno Haible  <bruno@clisp.org>
18735
18736         unictype/combining-class: Rename source files.
18737         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18738         of unictype/combining.h.
18739         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18740         Update.
18741         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18742         * modules/unictype/combining-class (Description): Fix.
18743         (Files, Makefile.am): Update.
18744         * tests/unictype/test-combiningclass.c: Renamed from
18745         tests/unictype/test-combining.c.
18746         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18747
18748 2011-03-25  Bruno Haible  <bruno@clisp.org>
18749
18750         unictype: Update list of canonical combining classes.
18751         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18752
18753 2011-03-25  Bruno Haible  <bruno@clisp.org>
18754
18755         unictype/category-byname: Recognize long names as well.
18756         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18757         a long name.
18758         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18759         unictype/categ_byname.h.
18760         (UC_CATEGORY_INDEX_*): New enumeration values.
18761         (uc_general_category_byname): Use uc_general_category_lookup and
18762         convert from index to value.
18763         * lib/unictype/categ_byname.gperf: New file.
18764         * modules/unictype/category-byname (Files): Add
18765         lib/unictype/categ_byname.gperf.
18766         (Depends-on): Add gperf.
18767         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18768         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18769         long names.
18770
18771         Tests for module 'unictype/category-longname'.
18772         * modules/unictype/category-longname-tests: New file.
18773         * tests/unictype/test-categ_longname.c: New file.
18774
18775         New module 'unictype/category-longname'.
18776         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18777         * lib/unictype/categ_longname.c: New file.
18778         * modules/unictype/category-longname: New file.
18779         * modules/unictype/category-all (Depends-on): Add it.
18780
18781 2011-03-25  Bruno Haible  <bruno@clisp.org>
18782
18783         Tests for module 'unictype/category-LC'.
18784         * modules/unictype/category-LC-tests: New file.
18785         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18786
18787         New module 'unictype/category-LC'.
18788         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18789         (UC_CATEGORY_LC): New declaration.
18790         (UC_CASED_LETTER): New macro.
18791         * lib/gen-uni-tables.c (is_category_LC): New function.
18792         (output_categories): Also handle category LC.
18793         (UC_CATEGORY_MASK_LC): New enumeration value.
18794         (general_category_byname): Also handle category LC.
18795         * lib/unictype/categ_LC.c: New file.
18796         * lib/unictype/categ_LC.h: New file, automatically generated.
18797         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18798         category LC.
18799         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18800         * modules/unictype/category-LC: New file.
18801         * modules/unictype/category-byname (Depends-on): Add
18802         unictype/category-LC.
18803         * modules/unictype/category-all (Depends-on): Likewise.
18804
18805 2011-03-25  Eric Blake  <eblake@redhat.com>
18806
18807         xmalloc: revert yesterday's regression
18808         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18809         realloc's underlying behavior (allowing allocation of zero-size
18810         objects, especially if malloc-gnu is also in use).
18811
18812 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18813
18814         maint.mk: add missing version to VC-tag
18815         * top/maint.mk: git tag was missing actual tag name; add it.
18816
18817         valgrind: do leak checking, and exit with code 1 on error (not 0)
18818         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18819         to VALGRIND.
18820
18821 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18822
18823         posix-modules: say what it does.
18824         * posix-modules: Add a line to the --help output saying what it does.
18825
18826 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18827
18828         xmalloc: Do not leak if underlying realloc is C99 compatible.
18829         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18830         This avoids a leak on C99-based systems.  See
18831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18832
18833 2011-03-24  Eric Blake  <eblake@redhat.com>
18834
18835         realloc: document portability problem
18836         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18837         passing 0 size to realloc.
18838
18839 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18840
18841         doc: update users.txt
18842         * users.txt: Add cvsps, tmpwatch
18843
18844 2011-03-23  Matt Rice  <ratmice@gmail.com>
18845
18846         doc: update users.txt
18847         * users.txt: Add gdb.
18848
18849 2011-03-23  Jim Meyering  <meyering@redhat.com>
18850
18851         doc: update users.txt
18852         Looking through matches up to the following URL (there are still
18853         several more pages), I found several projects that use gnulib:
18854         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18855         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18856         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18857
18858 2011-03-22  Bruno Haible  <bruno@clisp.org>
18859
18860         unictype/bidi*: Rename functions.
18861         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18862         uc_bidi_class, uc_is_bidi_class): New declarations.
18863         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18864         uc_bidi_category_byname.
18865         (uc_bidi_category_byname): New function.
18866         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18867         u_bidi_category_name.
18868         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18869         (uc_bidi_category_name): New function.
18870         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18871         uc_bidi_category.
18872         (uc_bidi_category): New function.
18873         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18874         uc_is_bidi_category. Invoke uc_bidi_class.
18875         (uc_is_bidi_category): New function.
18876         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18877         instead of uc_bidi_category_byname.
18878         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18879         instead of uc_bidi_category_name.
18880         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18881         uc_bidi_category.
18882         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18883         instead of uc_is_bidi_category.
18884
18885 2011-03-21  Bruno Haible  <bruno@clisp.org>
18886
18887         New module 'unictype/joininggroup-all'.
18888         * modules/unictype/joininggroup-all: New file.
18889
18890         Tests for module 'unictype/joininggroup-of'.
18891         * modules/unictype/joininggroup-of-tests: New file.
18892         * tests/unictype/test-joininggroup_of.c: New file.
18893         * tests/unictype/test-joininggroup_of.h: New file, automatically
18894         generated by gen-uni-tables.
18895
18896         New module 'unictype/joininggroup-of'.
18897         * modules/unictype/joininggroup-of: New file.
18898         * lib/unictype/joininggroup_of.c: New file.
18899         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18900         gen-uni-tables.
18901
18902         Tests for module 'unictype/joininggroup-byname'.
18903         * modules/unictype/joininggroup-byname-tests: New file.
18904         * tests/unictype/test-joininggroup_byname.c: New file.
18905
18906         New module 'unictype/joininggroup-byname'.
18907         * modules/unictype/joininggroup-byname: New file.
18908         * lib/unictype/joininggroup_byname.c: New file.
18909         * lib/unictype/joininggroup_byname.gperf: New file.
18910
18911         Tests for module 'unictype/joininggroup-name'.
18912         * modules/unictype/joininggroup-name-tests: New file.
18913         * tests/unictype/test-joininggroup_name.c: New file.
18914
18915         New module 'unictype/joininggroup-name'.
18916         * modules/unictype/joininggroup-name: New file.
18917         * lib/unictype/joininggroup_name.c: New file.
18918         * lib/unictype/joininggroup_name.h: New file.
18919
18920         New module 'unictype/joiningtype-all'.
18921         * modules/unictype/joiningtype-all: New file.
18922
18923         Tests for module 'unictype/joiningtype-of'.
18924         * modules/unictype/joiningtype-of-tests: New file.
18925         * tests/unictype/test-joiningtype_of.c: New file.
18926         * tests/unictype/test-joiningtype_of.h: New file, automatically
18927         generated by gen-uni-tables.
18928
18929         New module 'unictype/joiningtype-of'.
18930         * modules/unictype/joiningtype-of: New file.
18931         * lib/unictype/joiningtype_of.c: New file.
18932         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18933         gen-uni-tables.
18934
18935         Tests for module 'unictype/joiningtype-byname'.
18936         * modules/unictype/joiningtype-byname-tests: New file.
18937         * tests/unictype/test-joiningtype_byname.c: New file.
18938
18939         New module 'unictype/joiningtype-byname'.
18940         * modules/unictype/joiningtype-byname: New file.
18941         * lib/unictype/joiningtype_byname.c: New file.
18942
18943         Tests for module 'unictype/joiningtype-name'.
18944         * modules/unictype/joiningtype-name-tests: New file.
18945         * tests/unictype/test-joiningtype_name.c: New file.
18946
18947         New module 'unictype/joiningtype-name'.
18948         * modules/unictype/joiningtype-name: New file.
18949         * lib/unictype/joiningtype_name.c: New file.
18950
18951         unictype: Add support for Arabic shaping properties.
18952         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18953         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18954         declarations.
18955         (UC_JOINING_GROUP_*): New enumeration values.
18956         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18957         declarations.
18958         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18959         (unicode_joining_type): New variable.
18960         (UC_JOINING_GROUP_*): New enumeration values.
18961         (unicode_joining_group): New variable.
18962         (fill_arabicshaping, joining_type_as_c_identifier,
18963         output_joining_type_test, output_joining_type,
18964         joining_group_as_c_identifier, output_joining_group_test,
18965         output_joining_group): New functions.
18966         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18967         fill_arabicshaping and output_joining_type_test, output_joining_type,
18968         output_joining_group_test, output_joining_group.
18969         Reported by Simon Josefsson.
18970
18971 2011-03-21  Jim Meyering  <meyering@redhat.com>
18972
18973         strftime: fix a bug in yesterday's change
18974         * lib/strftime.c (add): Accommodate width's initial value of -1.
18975         Otherwise, nstrftime would copy uninitialized data into
18976         the result buffer.
18977
18978 2011-03-21  Jim Meyering  <meyering@redhat.com>
18979
18980         tests: add strftime-tests module
18981         * tests/test-strftime.c: New file.
18982         * modules/strftime-tests: New module.
18983
18984 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18985
18986         strftime: don't assume a byte count fits in 'int'
18987         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18988         found this problem by static analysis, using gcc -Wstrict-overflow
18989         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18990         on an integer overflow having undefined behavior, but it turns out
18991         that the argument is a size, which might not fit in 'int' anyway,
18992
18993 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18994
18995         stdio: don't require ignore_value around fwrite
18996
18997         This patch works around libc bug 11959
18998         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18999         Without this patch, applications must often write
19000         ignore_value (fwrite (...)) even though the ignore_value is
19001         not helpful here.  It's common to write many objects, using
19002         fwrite/printf/etc., and then use ferror to detect output error.
19003
19004         I considered making this patch optional, but decided against it,
19005         because libc is obviously being inconsistent here: there is no
19006         reason libc should insist that user code must inspect fwrite
19007         return's value without also insisting that it inspect printf's,
19008         putchar's, etc.  If user code wants to have a strict style where
19009         all these functions' values are checked (so that ferror need not
19010         be checked), we could add support for that style in a new gnulib
19011         module, but in the meantime it's better to be consistent and to
19012         support common usage.
19013
19014         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19015         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19016         that we are compiling in checking mode, and if not C++, and
19017         if not already wrapping fwrite for some other reason.
19018         (fwrite): #define to rpl_fwrite if the latter is defined.
19019
19020 2011-03-20  Bruno Haible  <bruno@clisp.org>
19021
19022         verror: Fix compilation error introduced on 2011-02-13.
19023         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19024         instead of __attribute__.
19025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19026
19027 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19028             Bruno Haible  <bruno@clisp.org>
19029
19030         socklen: do not depend on sys_socket
19031         While trying to modify Emacs to use gnulib's socklen module,
19032         I discovered a circular dependency: socklen depends on sys_socket
19033         and vice versa.  Emacs can use socklen, but it does not need
19034         sys_socket because it has its own substitute for sys/socket.h.
19035         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19036         gl_TYPE_SOCKLEN_T.
19037         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19038         gl_PREREQ_SYS_H_SOCKET.
19039         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19040         gl_PREREQ_SYS_H_SOCKET.
19041         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19042         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19043         * modules/socklen (Depends-on): Do not depend on sys_socket.
19044         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19045
19046 2011-03-20  Jim Meyering  <meyering@redhat.com>
19047
19048         maint.mk: sort file names *after* new transformation
19049         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19050         prefix would have led to an unwarranted failure in GNU parted.
19051         Sort after that transformation.
19052
19053 2011-03-19  Jim Meyering  <meyering@redhat.com>
19054
19055         maint.mk: fix po-file syntax-check rule
19056         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19057         Patch by Bruno Haible.
19058
19059 2011-03-19  Bruno Haible  <bruno@clisp.org>
19060
19061         socklen: Update comment.
19062         * m4/socklen.m4: Update comment about platforms.
19063
19064 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19065             Bruno Haible  <bruno@clisp.org>
19066
19067         inet_ntop, inet_pton: Simplify.
19068         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19069         documented to provide socklen_t and we already depend on sys_socket.
19070         * modules/inet_pton (Depends-on): Likewise.
19071         * lib/arpa_inet.in.h: Adjust comment.
19072
19073 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19074             Bruno Haible  <bruno@clisp.org>
19075
19076         netdb: Simplify.
19077         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19078         documented to provide socklen_t and we already depend on sys_socket.
19079         * lib/netdb.in.h: Adjust comment.
19080
19081 2011-03-19  Bruno Haible  <bruno@clisp.org>
19082
19083         sys_socket, netdb: Document problem with socklen_t.
19084         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19085         platforms.
19086         * doc/posix-headers/netdb.texi: Likewise.
19087
19088 2011-03-18  Eric Blake  <eblake@redhat.com>
19089
19090         maint.mk: let po check work in VPATH build
19091         * top/maint.mk (po_file): Allow cfg.mk override.
19092         (sc_po_check): Allow VPATH use.
19093         Reported by Jiri Denemark.
19094
19095 2011-03-16  Jim Meyering  <meyering@redhat.com>
19096
19097         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19098         Before, you would have had to create one .x-sc_ file per rule in order
19099         to exempt offending files.  Now, you may instead use a Make variable --
19100         usually defined in cfg.mk -- whose name identifies the affected rule.
19101         * top/maint.mk (_sc_excl): Define.
19102         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19103         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19104
19105 2011-03-13  Bruno Haible  <bruno@clisp.org>
19106
19107         ignore-value tests: Avoid warnings.
19108         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19109         empty for gcc < 3.4.
19110
19111 2011-03-13  Bruno Haible  <bruno@clisp.org>
19112
19113         passfd: Fix link error on Solaris.
19114         * modules/passfd (Description): Correct.
19115         (Depends-on): Add socketlib.
19116         (Link): New section.
19117         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19118
19119 2011-03-13  Bruno Haible  <bruno@clisp.org>
19120
19121         passfd: Fix link error on AIX 5.2.
19122         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19123
19124 2011-03-13  Bruno Haible  <bruno@clisp.org>
19125
19126         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19127         * lib/sys_socket.in.h: Include <stddef.h>.
19128         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19129         CMSG_FIRSTHDR. Remove unused variable.
19130
19131 2011-03-13  Bruno Haible  <bruno@clisp.org>
19132
19133         passfd: Fix compilation error on OpenBSD.
19134         * lib/passfd.c: Include <sys/uio.h>.
19135
19136 2011-03-13  Bruno Haible  <bruno@clisp.org>
19137
19138         passfd test: Fix warnings.
19139         * tests/test-passfd.c: Include <sys/wait.h>.
19140         (main): Fix typo.
19141
19142 2011-03-13  Bruno Haible  <bruno@clisp.org>
19143
19144         passfd module, part 4, tweaks.
19145         * tests/test-passfd.c: Reorder includes.
19146         (main): Fix perror and printf calls.
19147
19148 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19149
19150         passfd module, part 4.
19151         * modules/passfd-tests: New file.
19152         * tests/test-passfd.c: New file.
19153
19154 2011-03-13  Jim Meyering  <meyering@redhat.com>
19155
19156         Makefile: rely on GNU make; derive syntax-check rule names
19157         Rather than requiring that each sc_ rule be listed as a dependent
19158         of "check", use features of GNU make to derive the list.
19159         * Makefile (syntax-check-rules): Define.
19160         (check): Depend on the new variable, not the hard-coded list.
19161
19162 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19163             Bruno Haible  <bruno@clisp.org>
19164
19165         passfd module, part 3.
19166         * lib/passfd.h (recvfd): Add a flags argument.
19167         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19168         (recvfd): Add a flags argument.
19169         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19170         exists.
19171         * modules/passfd (Depends-on): Add cloexec.
19172         Suggested by Eric Blake.
19173
19174 2011-03-13  Bruno Haible  <bruno@clisp.org>
19175
19176         passfd module, part 2, tweaks.
19177         * modules/passfd (Files): Reorder.
19178         (Depends-on): Remove errno.
19179         (Include): Remove <sys/socket.h>, <sys/un.h>.
19180         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19181         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19182         specification header. Include <sys/socket.h> always. Don't include
19183         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19184         (sendfd): Clarify that it sets errno when it fails.
19185         (recvfd): Fix specification.
19186
19187 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19188
19189         passfd module, part 2.
19190         * modules/passfd: New file.
19191         * lib/passfd.h: New file.
19192         * lib/passfd.c: New file.
19193
19194 2011-03-12  Bruno Haible  <bruno@clisp.org>
19195
19196         wcswidth, mbswidth: Avoid integer overflow.
19197         * lib/wcswidth.c: Include <limits.h>.
19198         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19199         * lib/mbswidth.c: Include <limits.h>.
19200         (mbsnwidth): Avoid 'int' overflow.
19201         Reported by Jim Meyering.
19202
19203 2011-03-12  Bruno Haible  <bruno@clisp.org>
19204
19205         futimens, utimensat: Avoid endless recursion on Solaris 10.
19206         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19207         Solaris.
19208         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19209         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19210
19211 2011-03-11  Jim Meyering  <meyering@redhat.com>
19212
19213         maint.mk: relax a regexp to accommodate other formatting styles
19214         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19215         between "ngettext" and the following "(".
19216
19217 2011-03-11  Pádraig Brady <P@draigBrady.com>
19218
19219         maint.mk: suppress a false positive warning
19220         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19221         diagnostics are marked with ngettext.
19222
19223 2011-03-10  Eric Blake  <eblake@redhat.com>
19224
19225         wchar: add explicit dependencies, for Tru64
19226         * modules/mbmemcasecoll (Depends-on): Add wchar.
19227         * modules/mbtowc (Depends-on): Likewise.
19228         * modules/vasnprintf (Depends-on): Likewise.
19229         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19230         * modules/wctomb (Depends-on): Likewise.
19231         Reported by Peter O'Gorman.
19232
19233 2011-03-08  Bruno Haible  <bruno@clisp.org>
19234
19235         passfd module, part 1, tweaks.
19236         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19237         Improve indentation. Improve AC_MSG_CHECKING messages.
19238         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19239         gl_SOCKET_FAMILIES.
19240
19241 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19242
19243         passfd module, part 1.
19244         * m4/afunix.m4: New file.
19245         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19246         sockets.
19247
19248 2011-03-08  Bruno Haible  <bruno@clisp.org>
19249
19250         regex-quote: New API.
19251         * lib/regex-quote.h: Include <stdbool.h>.
19252         (struct regex_quote_spec): New type.
19253         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19254         New declarations.
19255         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19256         'const struct regex_quote_spec *' argument.
19257         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19258         (pcre_special): New constant.
19259         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19260         New functions.
19261         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19262         'const struct regex_quote_spec *' argument.
19263         * modules/regex-quote (Depends-on): Add stdbool.
19264         * tests/test-regex-quote.c (check): Update for new API. Add test for
19265         anchored results.
19266         * NEWS: Mention the API change.
19267         Reported by Reuben Thomas and Eric Blake.
19268
19269 2011-03-06  Bruno Haible  <bruno@clisp.org>
19270
19271         regex-quote: Fix creation of POSIX extended regular expressions.
19272         * lib/regex-quote.c (ere_special): Add grouping and alternation
19273         operators.
19274
19275 2011-03-05  Bruno Haible  <bruno@clisp.org>
19276
19277         doc: Improve doc regarding autopoint vs. gnulib.
19278         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19279         disable autopoint while running autoreconf.
19280         Suggested by Ralf Wildenhues.
19281
19282 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19283
19284         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19285         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19286
19287 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19288
19289         parse-duration: remove xalloc.h dependency
19290         * lib/parse-duration.c (parse_period): handle NULL return from
19291         strdup instead of calling xstrdup().
19292         * modules/parse-duration: remove "xalloc" dependency
19293
19294 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19295
19296         bootstrap: honor m4_base when running aclocal
19297         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19298
19299 2011-03-02  Jim Meyering  <meyering@redhat.com>
19300
19301         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19302         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19303         on request from Matt Booth.
19304
19305 2011-03-01  Eric Blake  <eblake@redhat.com>
19306
19307         test-link: work on Hurd
19308         * tests/test-link.h (test_link): Hurd rejects linking directories
19309         with EISDIR instead of the POSIX-mandated EPERM.
19310
19311 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19312
19313         stdio: simplify by moving files to printf-posix, sigpipe
19314         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19315         since this symbol is needed only if printf is replaced.
19316         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19317         Require gl_ASM_SYMBOL_PREFIX.
19318         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19319         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19320         (Depends-on): Add 'raise'.
19321         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19322         * modules/stdio (Files): Remove lib/stdio-write.c,
19323         m4/asm-underscore.m4.
19324         (Depends-on): Remove 'raise'.
19325
19326         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19327         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19328         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19329         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19330
19331 2011-02-28  Bruno Haible  <bruno@clisp.org>
19332
19333         localcharset: Assume ANSI C behaviour of free().
19334         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19335         calling free().
19336         Suggested by Simon Josefsson <simon@josefsson.org>.
19337
19338 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19339             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19340             Bruno Haible  <bruno@clisp.org>  (tiny change)
19341
19342         On Cygwin, use /proc file system instead of win32 API.
19343         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19344         Win32 file names.
19345         (DllMain): Simplify by removing Cygwin specific code.
19346         (find_shared_library_fullname): Use Linux specific implementation also
19347         for Cygwin.
19348         (get_shared_library_fullname): Update accordingly.
19349         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19350         Win32 file names.
19351         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19352         Cygwin specific code.
19353
19354 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19355             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19356
19357         Fix OpenMP flag detection for various Fortran compilers.
19358         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19359         OpenMP-conditional compilation construct, to force compile
19360         failure with missing OpenMP flag.
19361         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19362
19363 2011-02-25  Eric Blake  <eblake@redhat.com>
19364
19365         strstr: expand test coverage
19366         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19367         compilation.
19368         * tests/test-memmem.c (main): Duplicate tests.
19369         * tests/test-strcasestr.c (main): Likewise.
19370         * tests/test-c-strcasestr.c (main): Likewise.
19371
19372 2011-02-25  Jim Meyering  <meyering@redhat.com>
19373
19374         maint.mk: detect missing-NL-at-EOF, too
19375         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19376         it also detects when a file lacks a newline at EOF.
19377         (require_exactly_one_NL_at_EOF_): Renamed from
19378         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19379         since people may well have .x-sc_... file names tied to the
19380         existing name.  Suggested by Eric Blake.
19381
19382 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19383
19384         dirname: move m4/dos.m4 functionality into lib/dosname.h
19385
19386         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19387         extracts symbols from it, puts them into config.h; but it's much
19388         easier to use the symbols directly.  filename.h already does this,
19389         but it disagrees with dos.m4 in some respects.  This patch
19390         introduces a different include file dosname.h that packages up
19391         dos.m4, and then later we can work on merging filename.h and
19392         dosname.h.  Applications that need only the easy-to-configure
19393         symbols should consider including dosname.h rather than dirname.h.
19394         * NEWS: Mention incompatible changes.
19395         * m4/dos.m4: Remove.
19396         * lib/dosname.h, modules/dosname: New files.
19397         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19398         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19399         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19400         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19401         Include dosname.h, not dirname.h.
19402         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19403         Include dosname.h, for definitions of symbols like ISSLASH
19404         that used to be in config.h.
19405         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19406         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19407         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19408         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19409         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19410         * modules/rmdir (Files): Likewise.
19411         * modules/stat (Files): Likewise.
19412         * modules/unlink (Files): Likewise.
19413         * modules/dirname-lgpl (Depends-on): Add dosname.
19414         * modules/lstat (Depends-on): Likewise.
19415         * modules/openat (Depends-on): Likewise.
19416         * modules/rmdir (Depends-on): Likewise.
19417         * modules/savewd (Depends-on): Likewise.
19418         * modules/stat (Depends-on): Likewise.
19419         * modules/unlink (Depends-on): Likewise.
19420         * modules/openat (Depends-on): Remove dirname-lgpl.
19421         * modules/savewd (Depends-on): Likewise.
19422         * tests/test-dirname.c: Do not use removed symbols like
19423         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19424         the remaining symbols, e.g., ISSLASH ('\\').
19425
19426 2011-02-25  Eric Blake  <eblake@redhat.com>
19427
19428         strstr: revert patches that introduced bug and pessimization
19429         * lib/str-two-way.h: Add another reference.
19430         (two_way_short_needle, two_way_long_needle): Revert changes from
19431         2011-02-24; they pessimize search speed.
19432         (critical_factorization): Partially revert changes from
19433         2010-06-22; they violate the requirement that the left half of the
19434         needle be smaller than the period of the needle.
19435
19436 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19437
19438         filenamecat: remove unnecessary dependency on dirname-lgpl
19439         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19440         is no direct dependency, just an indirect one via filenamecat-lgpl.
19441
19442         remove: remove unnecessary use of m4/dos.m4
19443         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19444         * modules/remove (FILES): Remove m4/dos.m4.
19445
19446         * lib/openat-proc.c: Don't include dirname.h; not needed.
19447
19448         backupfile: remove unnecessary use of m4/dos.m4
19449         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19450         of its symbols are used by the backupfile code.  backupfile.c does
19451         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19452         for the rare case of programs that want all their backup file
19453         names to live within 8+3 limits, and dos.m4 doesn't address that.
19454         * modules/backupfile (Files): Remove m4/dos.m4.
19455
19456 2011-02-24  Jim Meyering  <meyering@redhat.com>
19457
19458         strstr: fix a bug whereby strstr would mistakenly return NULL
19459         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19460         in period calculation.
19461         (two_way_long_needle): Likewise.
19462         The original problem was reported by Mike Stump in
19463         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19464         Ralf Wildenhues provided the short needle and haystack.
19465         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19466         Add a more involved test to trigger the bug in two_way_long_needle.
19467
19468 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19469
19470         gnulib-tool: remove use of bold display in help screen
19471         * gnulib-tool (func_usage): Do not use bold display anymore in the
19472         help screen.  That was just meant to be a temporary emphasis for a
19473         backward-incompatible change.
19474
19475 2011-02-23  Bruno Haible  <bruno@clisp.org>
19476
19477         Fix misindentation of preprocessor directives.
19478         * lib/argp-namefrob.h: Reindent preprocessor directives.
19479         * lib/getopt_int.h (struct _getopt_data): Likewise.
19480         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19481         * lib/vasnprintf.c (decode_long_double): Likewise.
19482         * tests/test-argmatch.c: Insert blank lines, for clarity.
19483         * tests/test-exclude.c: Likewise.
19484
19485 2011-02-22  Bruno Haible  <bruno@clisp.org>
19486
19487         ioctl: Fix for MacOS X in 64-bit mode.
19488         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19489         value.
19490         Suggested by Eric Blake.
19491         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19492
19493 2011-02-22  Jim Meyering  <meyering@redhat.com>
19494
19495         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19496         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19497         in lib/.
19498
19499 2011-02-22  Eric Blake  <eblake@redhat.com>
19500
19501         maint: avoid any CDPATH issue
19502         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19503
19504         maint: adjust cpp indentation for my modules, as well
19505         * Makefile (sc_cpp_indent_check): Add my name.
19506         * lib/fbufmode.c: Filter through cppi.
19507         * lib/fpurge.c: Likewise.
19508         * lib/freadable.c: Likewise.
19509         * lib/freading.c: Likewise.
19510         * lib/fwritable.c: Likewise.
19511         * lib/fwriting.c: Likewise.
19512         * lib/sigaction.c: Likewise.
19513
19514 2011-02-22  Jim Meyering  <meyering@redhat.com>
19515
19516         maint: adjust cpp indentation to reflect nesting depth
19517         I.e., in a block of code that begins with an unnested "#if",
19518         put one space between the "#" in column 1 and following token.
19519         For example,
19520         -#include <sys/vfs.h>
19521         +# include <sys/vfs.h>
19522         Do this only in .c files that are part of a module I maintain.
19523         * lib/linkat.c: Filter through cppi.
19524         * lib/nanosleep.c: Likewise.
19525         * lib/openat.c: Likewise.
19526         * lib/openat-die.c: Likewise.
19527         * lib/dup3.c: Likewise.
19528         * lib/fchownat.c: Likewise.
19529         * lib/flock.c: Likewise.
19530         * lib/fsync.c: Likewise.
19531         * lib/fts.c: Likewise.
19532         * lib/getpass.c: Likewise.
19533         * lib/gettimeofday.c: Likewise.
19534         * lib/userspec.c: Likewise.
19535         * Makefile (sc_cpp_indent_check): New rule, to check this.
19536
19537 2011-02-22  Bruno Haible  <bruno@clisp.org>
19538
19539         New module 'wctomb'.
19540         * lib/stdlib.in.h (wctomb): New declaration.
19541         * lib/wctomb.c: New file.
19542         * lib/wctomb-impl.h: New file.
19543         * m4/wctomb.m4: New file.
19544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19545         REPLACE_WCTOMB.
19546         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19547         REPLACE_WCTOMB.
19548         * modules/wctomb: New file.
19549         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19550         * doc/posix-functions/wctomb.texi: Mention the new module.
19551         * modules/wctob (Depends-on): Add wctomb.
19552
19553 2011-02-22  Bruno Haible  <bruno@clisp.org>
19554
19555         New module 'mbtowc'.
19556         * lib/stdlib.in.h (mbtowc): New declaration.
19557         * lib/mbtowc.c: New file.
19558         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19559         * m4/mbtowc.m4: New file.
19560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19561         REPLACE_MBTOWC.
19562         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19563         REPLACE_MBTOWC.
19564         * modules/mbtowc: New file.
19565         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19566         * doc/posix-functions/mbtowc.texi: Mention the new module.
19567         * modules/btowc (Depends-on): Add mbtowc.
19568
19569 2011-02-22  Bruno Haible  <bruno@clisp.org>
19570
19571         wcrtomb: Add more tests for native Windows platforms.
19572         * tests/test-wcrtomb-w32-1.sh: New file.
19573         * tests/test-wcrtomb-w32-2.sh: New file.
19574         * tests/test-wcrtomb-w32-3.sh: New file.
19575         * tests/test-wcrtomb-w32-4.sh: New file.
19576         * tests/test-wcrtomb-w32-5.sh: New file.
19577         * tests/test-wcrtomb-w32.c: New file.
19578         * modules/wcrtomb-tests (Files): Add them.
19579         (Makefile.am): Arrange to run these tests.
19580         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19581         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19582
19583 2011-02-20  Bruno Haible  <bruno@clisp.org>
19584
19585         wcrtomb: Enhance test.
19586         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19587
19588 2011-02-20  Bruno Haible  <bruno@clisp.org>
19589
19590         mbrtowc: Tiny optimization.
19591         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19592
19593 2011-02-20  Jim Meyering  <meyering@redhat.com>
19594
19595         test-exclude.c: remove unmatched #endif
19596         * tests/test-exclude.c: Remove stray #endif, left over from
19597         the change of a week ago.
19598
19599 2011-02-19  Jim Meyering  <meyering@redhat.com>
19600
19601         git-version-gen: skip "-dirty" check when appropriate
19602         * build-aux/git-version-gen: Don't run any git commands when the
19603         version string comes from .tarball-version.  Prior to this, we
19604         would run git update-index --refresh even from a just-unpacked
19605         tarball directory, and that could affect a .git/ directory in a
19606         parent of the build directory.  Reported by Mike Frysinger.
19607
19608 2011-02-19  Bruno Haible  <bruno@clisp.org>
19609
19610         unictype/property-byname: Reduce the size of the 'data' segment.
19611         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19612
19613 2011-02-19  Bruno Haible  <bruno@clisp.org>
19614
19615         unictype/scripts: Reduce the size of the 'data' segment.
19616         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19617         '%pic'.
19618         * lib/unictype/scripts_byname.gperf: Regenerated.
19619
19620 2011-02-19  Bruno Haible  <bruno@clisp.org>
19621
19622         stdint: Update documentation.
19623         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19624
19625 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19626
19627         stdint: omit redundant check for wchar.h
19628         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19629         always tests whether wchar.h exists, so remove the now-redundant test.
19630
19631 2011-02-18  Bruno Haible  <bruno@clisp.org>
19632
19633         stdint: Cut dependency to module 'wchar'.
19634         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19635         include the necessary prerequisites.
19636         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19637         * modules/stdint (Depends-on): Remove wchar.
19638         (Makefile.am): Substitute HAVE_WCHAR_H.
19639         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19640
19641 2011-02-18  Eric Blake  <eblake@redhat.com>
19642
19643         longlong: skip, rather than fail, on cross-compilation
19644         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19645         when cross-compiling; regression from 2011-02-16.
19646
19647 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19648
19649         * NEWS: Mention 2011-02-08 change to stdlib.
19650
19651 2011-02-17  Bruno Haible  <bruno@clisp.org>
19652
19653         getloadavg: Add comments about platforms.
19654         * m4/getloadavg.m4: Add comment.
19655         * lib/getloadavg.c: Likewise.
19656
19657 2011-02-17  Bruno Haible  <bruno@clisp.org>
19658
19659         getloadavg: Fix link error on Solaris 2.6.
19660         * modules/getloadavg (Link): New section.
19661         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19662         linking test-getloadavg.
19663         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19664         getloadavg.
19665
19666 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19667
19668         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19669         It was 'int', but this doesn't match the IRIX 6.5 manual.
19670         Suggested by Bruno Haible in
19671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19672
19673 2011-02-17  Bruno Haible  <bruno@clisp.org>
19674
19675         havelib: Fix comments.
19676         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19677         change.
19678
19679 2011-02-17  Bruno Haible  <bruno@clisp.org>
19680
19681         havelib: Update config.rpath.
19682         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19683
19684 2011-02-17  Bruno Haible  <bruno@clisp.org>
19685
19686         getloadavg test: Add some plausibility checks.
19687         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19688         is improbable.
19689
19690 2011-02-16  Eric Blake  <eblake@redhat.com>
19691
19692         maintainer-makefile: make syntax-check a no-op from tarballs
19693         * top/maint.mk (no-vc-detected): New rule.
19694         (local-checks-available): Use it to avoid hanging if someone tries
19695         'make syntax-check' from a tarball.  Also append to any non-syntax
19696         checks already defined in cfg.mk.
19697
19698 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19699
19700         longlong: tune, particularly for common case of c99
19701
19702         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19703         or running anything if c99, or if unsigned long long int does not
19704         work.  In either case, we know the answer without further tests.
19705         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19706         it at most once, and use its results for both long long int and
19707         unsigned long long int.  This is more likely to be efficient in
19708         the common case where the program wants to check for both long
19709         long int and unsigned long long int.
19710         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19711         since the answer is already known.
19712
19713 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19714
19715         getloadavg: set errno
19716         * lib/getloadavg.c: Set errno when returning -1.  If no other
19717         error number looks appropriate, set it to ENOSYS if the getloadavg
19718         looks like it can't possibly ever work, ENOTSUP otherwise.
19719         Suggested by Bruno Haible in
19720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19721
19722         getloadavg: trim unused parts and speed up 'configure'
19723         * NEWS: Document this.
19724         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19725         always compiled if getloadavg is absent.
19726         Move test code to ...
19727         * tests/test-getloadavg.c: New file, containing previous
19728         contents of test from lib/getloadavg.c.  It also contains
19729         suggestions by Bruno Haible in
19730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19731         * modules/getloadavg-tests: New file.
19732         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19733         Do tests in the same order as they're needed for getloadavg.c.
19734         Omit setgid-related tests that generate symbols KMEM_GROUP,
19735         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19736         Do only the tests that are needed to see whether the system has
19737         getloadavg, moving the other tests into ...
19738         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19739         NLIST_NAME_UNION; nobody should be using it.  Do not define
19740         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19741         relevant, as the user of this module shouldn't care how getloadavg
19742         is implemented.
19743
19744         getloadavg: omit unused var
19745         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19746
19747 2011-02-15  Jim Meyering  <meyering@redhat.com>
19748
19749         doc: update users.txt
19750         * users.txt: Update iwhd's URL.
19751
19752 2011-02-13  Bruno Haible  <bruno@clisp.org>
19753
19754         Consistent macro naming for macros that use GCC __attribute__.
19755         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19756         _ATTRIBUTE_NONNULL_.
19757         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19758         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19759         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19760         ATTRIBUTE_DEPRECATED.
19761         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19762         ATTRIBUTE_NORETURN.
19763         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19764         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19765         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19766         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19767         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19768         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19769         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19770         ATTRIBUTE_SENTINEL.
19771         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19772         ATTRIBUTE_RETURN_CHECK.
19773         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19774         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19775         ATTRIBUTE_NORETURN.
19776         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19777         Reported by Paul Eggert.
19778
19779 2011-02-13  Bruno Haible  <bruno@clisp.org>
19780
19781         Don't interfere with a program's definition of __attribute__.
19782         * lib/argp.h (__attribute__): Remove definition.
19783         (_GL_ATTRIBUTE_FORMAT): New macro.
19784         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19785         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19786         (_GL_ATTRIBUTE_FORMAT): New macro.
19787         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19788         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19789         GCC 3 or newer.
19790         * lib/error.h (__attribute__): Remove definition.
19791         (_GL_ATTRIBUTE_FORMAT): New macro.
19792         (error, error_at_line): Use it.
19793         * lib/hash.h (__attribute__): Remove definition.
19794         (ATTRIBUTE_WUR): Update definition. Define always.
19795         * lib/openat.h (__attribute__): Remove definition.
19796         (ATTRIBUTE_NORETURN): Update definition. Define always.
19797         * lib/sigpipe-die.h (__attribute__): Remove definition.
19798         (ATTRIBUTE_NORETURN): Update definition. Define always.
19799         * lib/vasnprintf.h (__attribute__): Remove definition.
19800         (_GL_ATTRIBUTE_FORMAT): New macro.
19801         (asnprintf, vasnprintf): Use it.
19802         * lib/xalloc.h (__attribute__): Remove definition.
19803         (ATTRIBUTE_NORETURN): Update definition. Define always.
19804         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19805         * lib/xmemdup0.h (__attribute__): Remove definition.
19806         (ATTRIBUTE_NORETURN): Update definition. Define always.
19807         * lib/xprintf.h (__attribute__): Remove definition.
19808         (_GL_ATTRIBUTE_FORMAT): New macro.
19809         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19810         * lib/xstrtol.h (__attribute__): Remove definition.
19811         (ATTRIBUTE_NORETURN): Update definition. Define always.
19812         * lib/xvasprintf.h (__attribute__): Remove definition.
19813         (_GL_ATTRIBUTE_FORMAT): New macro.
19814         (xasprintf, xvasprintf): Use it.
19815         * tests/test-argmatch.c (__attribute__): Remove definition.
19816         (ATTRIBUTE_NORETURN): Update definition. Define always.
19817         * tests/test-exclude.c (__attribute__): Remove definition.
19818         (ATTRIBUTE_NORETURN): Update definition. Define always.
19819         Reported by Paul Eggert.
19820
19821 2011-02-13  Bruno Haible  <bruno@clisp.org>
19822
19823         mbrtowc: Add more tests for native Windows platforms.
19824         * tests/test-mbrtowc-w32-1.sh: New file.
19825         * tests/test-mbrtowc-w32-2.sh: New file.
19826         * tests/test-mbrtowc-w32-3.sh: New file.
19827         * tests/test-mbrtowc-w32-4.sh: New file.
19828         * tests/test-mbrtowc-w32-5.sh: New file.
19829         * tests/test-mbrtowc-w32.c: New file.
19830         * modules/mbrtowc-tests (Files): Add them.
19831         (Makefile.am): Arrange to run these tests.
19832         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19833         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19834
19835 2011-02-13  Bruno Haible  <bruno@clisp.org>
19836
19837         mbrtowc: Work around native Windows bug.
19838         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19839         guess when no suitable locale for testing was found.
19840         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19841
19842 2011-02-13  Bruno Haible  <bruno@clisp.org>
19843
19844         mbsinit: Work around mingw bug.
19845         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19846         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19847         Windows.
19848         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19849
19850 2011-02-13  Bruno Haible  <bruno@clisp.org>
19851
19852         mbsinit: Don't crash for a NULL argument.
19853         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19854         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19855
19856 2011-02-13  Bruno Haible  <bruno@clisp.org>
19857
19858         Don't interfere with a program's definition of __attribute__.
19859         * lib/stdio.in.h (__attribute__): Remove definition.
19860         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19861         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19862         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19863         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19864         * lib/string.in.h (__attribute__): Remove definition.
19865         Reported by Paul Eggert.
19866
19867 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19868
19869         stdlib: don't get in the way of non-GCC __attribute__
19870         See thread starting at
19871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19872         Revert previous stdlib change, installing the following instead:
19873         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19874         to get in the way of a non-GCC compiler that supports __attribute__.
19875         (_GL_ATTRIBUTE_RETURN): New macro.
19876         (_Exit): Use it instead of __attribute__.
19877
19878 2011-02-12  Bruno Haible  <bruno@clisp.org>
19879
19880         quotearg test: Avoid test failure on mingw.
19881         * tests/test-quotearg.sh: Convert the locale identifier from native
19882         Windows syntax to Unix syntax.
19883
19884 2011-02-12  Bruno Haible  <bruno@clisp.org>
19885
19886         setlocale: Prefer gnulib's override over libintl's override.
19887         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19888         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19889         GNULIB_defined_setlocale is set.
19890
19891 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19892
19893         stdlib: support non-GCC __attribute__
19894
19895         Fix a serious and tricky problem encountered when attempting to
19896         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19897         5.5, but it crashed due to memory corruption on Solaris 10 with
19898         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19899         bits that are otherwise zero.  This tagging is optional inside
19900         Emacs but is preferred and is used when __attribute__ ((__aligned
19901         (8))) works, as it does with both recent-enough GCC and with Sun C
19902         5.11.  However, Sun C 5.11 is not GCC and does not #define
19903         __GNUC__ and __GNUC_MINOR__.
19904
19905         When I added the getloadavg module to Emacs, it brought in
19906         stdlib.in.h, which contained this fragment:
19907
19908            #ifndef __attribute__
19909            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19910            #  define __attribute__(Spec)   /* empty */
19911            # endif
19912            #endif
19913
19914         When files that include <stdlib.h> were compiled with Sun C 5.11,
19915         the above code disabled __attribute__ ((__aligned (8))), which
19916         caused variables to not be properly aligned, which eventually led
19917         to the pointer corruption mentioned above.  (This was a bit hard
19918         to diagnose, unfortunately.)
19919
19920         Several "#define __attribute__(X) /* empty */" code snippets need
19921         to be eradicated from Gnulib to work with non-GCC compilers that
19922         support __attribute__.  The Autoconf way to do this is to test for
19923         each kind of attribute that we want support for, and selectively
19924         enable that in source code.
19925
19926         Fix this problem just for stdlib.h, by adding a test for the
19927         __noreturn__ attribute, and change stdlib.in.h to use that test
19928         when needed.  This technique can be easily generalized to the
19929         other *.in.h files and attributes, and a similar technique can be
19930         used for *.h and *.c files.  This patch is enough to solve the
19931         problem for Emacs + getloadavg, and I thought I'd publish it for
19932         feedback before undertaking further, similar fixes in other
19933         modules.
19934
19935         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19936         because it's not needed for stdlib.h.  It merely substitutes the
19937         value directly into stdlib.h.  We may well need to #define it, or
19938         similar symbols, for other modules, but it's nice to also have an
19939         option to not #define it for applications like Emacs that do not
19940         need it.
19941
19942         * lib/stdlib.in.h (__attribute__): Do not #define.
19943         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19944         be defined only if the _Exit module is also used.
19945         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19947         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19948         platforms.
19949         * modules/_Exit (Files): Add m4/attribute.m4.
19950         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19951         * m4/attribute.m4: New file.
19952
19953 2011-02-12  Bruno Haible  <bruno@clisp.org>
19954
19955         wcsrtombs: Work around bug on native Windows.
19956         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19957         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19958         instead of len.
19959         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19960
19961 2011-02-12  Bruno Haible  <bruno@clisp.org>
19962
19963         mbsrtowcs: Work around bug on native Windows.
19964         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19965         against mingw bug.
19966         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19967
19968 2011-02-12  Bruno Haible  <bruno@clisp.org>
19969
19970         Avoid setlocale bugs in tests.
19971         * modules/btowc (Dependencies): Add setlocale.
19972         * modules/c-strcase (Dependencies): Likewise.
19973         * modules/mbmemcasecmp (Dependencies): Likewise.
19974         * modules/mbmemcasecoll (Dependencies): Likewise.
19975         * modules/mbrtowc (Dependencies): Likewise.
19976         * modules/mbscasecmp (Dependencies): Likewise.
19977         * modules/mbscasestr (Dependencies): Likewise.
19978         * modules/mbschr (Dependencies): Likewise.
19979         * modules/mbscspn (Dependencies): Likewise.
19980         * modules/mbsinit (Dependencies): Likewise.
19981         * modules/mbsncasecmp (Dependencies): Likewise.
19982         * modules/mbsnrtowcs (Dependencies): Likewise.
19983         * modules/mbspbrk (Dependencies): Likewise.
19984         * modules/mbspcasecmp (Dependencies): Likewise.
19985         * modules/mbsrchr (Dependencies): Likewise.
19986         * modules/mbsrtowcs (Dependencies): Likewise.
19987         * modules/mbsspn (Dependencies): Likewise.
19988         * modules/mbsstr (Dependencies): Likewise.
19989         * modules/nl_langinfo (Dependencies): Likewise.
19990         * modules/quotearg (Dependencies): Likewise.
19991         * modules/unicase/locale-language (Dependencies): Likewise.
19992         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19993         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19994         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19995         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19996         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19997         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19998         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19999         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20000         * modules/vasnprintf-posix (Dependencies): Likewise.
20001         * modules/wcrtomb (Dependencies): Likewise.
20002         * modules/wcsnrtombs (Dependencies): Likewise.
20003         * modules/wcsrtombs (Dependencies): Likewise.
20004
20005 2011-02-12  Bruno Haible  <bruno@clisp.org>
20006
20007         setlocale: Workaround native Windows bug.
20008         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20009         succeeds but sets LC_CTYPE to "C", report a failure.
20010         * tests/test-setlocale2.sh: New file.
20011         * tests/test-setlocale2.c: New file.
20012         * modules/setlocale-tests (Files): Add the new files.
20013         (Makefile.am): Enable test-setlocale2.sh test.
20014         * doc/posix-functions/setlocale.texi: Mention workaround.
20015
20016 2011-02-11  Bruno Haible  <bruno@clisp.org>
20017
20018         Tests for module 'setlocale'.
20019         * modules/setlocale-tests: New file.
20020         * tests/test-setlocale1.sh: New file.
20021         * tests/test-setlocale1.c: New file.
20022
20023         New module 'setlocale'.
20024         * lib/locale.in.h (setlocale): New declaration.
20025         * lib/setlocale.c: New file, based on
20026         gettext/gettext-runtime/intl/setlocale.c.
20027         * m4/setlocale.m4: New file.
20028         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20029         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20030         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20031         REPLACE_SETLOCALE.
20032         * modules/setlocale: New file.
20033         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20034         * doc/posix-functions/setlocale.texi: Mention the new module.
20035
20036 2011-02-11  Bruno Haible  <bruno@clisp.org>
20037
20038         Prepare for locale dependent tests on mingw.
20039         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20040         because it has the wrong locale encoding.
20041         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20042         French_France.1252 instead of "fr".
20043         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20044         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20045         because it has the wrong locale encoding.
20046         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20047         native Windows, try Turkish_Turkey.65001.
20048         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20049         Chinese_China.54936.
20050
20051         Prepare for locale dependent tests on mingw.
20052         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20053         differently.
20054         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20055         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20056         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20057         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20058
20059 2011-02-11  Eric Blake  <eblake@redhat.com>
20060
20061         strptime: avoid compiler warnings
20062         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20063         compiler warnings about dead code.
20064         Reported by Daniel P. Berrange.
20065
20066 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20067
20068         doc: update users.txt
20069         * users.txt: Add rcs.
20070
20071 2011-02-10  John W. Eaton  <jwe@gnu.org>
20072
20073         doc: update users.txt
20074         * users.txt: Add octave.
20075
20076 2011-02-10  Jim Meyering  <meyering@redhat.com>
20077
20078         doc: update users.txt
20079         * users.txt: Add iwhd.
20080
20081 2011-02-09  Bruno Haible  <bruno@clisp.org>
20082
20083         gnulib-tool: Make copyright notice adjustment more robust.
20084         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20085         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20086         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20087         License".
20088         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20089
20090 2011-02-06  Bruno Haible  <bruno@clisp.org>
20091
20092         New module 'towctrans'.
20093         * modules/towctrans: New file.
20094         * lib/wctype.in.h (towctrans): New declaration.
20095         * lib/towctrans.c: New file.
20096         * lib/towctrans-impl.h: New file.
20097         * m4/towctrans.m4: New file.
20098         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20099         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20100         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20101         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20102         * doc/posix-functions/towctrans.texi: Mention the new module.
20103
20104 2011-02-06  Bruno Haible  <bruno@clisp.org>
20105
20106         New module 'wctrans'.
20107         * modules/wctrans: New file.
20108         * lib/wctype.in.h (wctrans): New declaration.
20109         * lib/wctrans.c: New file.
20110         * lib/wctrans-impl.h: New file.
20111         * m4/wctrans.m4: New file.
20112         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20113         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20114         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20115         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20116         * doc/posix-functions/wctrans.texi: Mention the new module.
20117
20118 2011-02-06  Bruno Haible  <bruno@clisp.org>
20119
20120         New module 'iswctype'.
20121         * modules/iswctype: New file.
20122         * lib/wctype.in.h (iswctype): New declaration.
20123         * lib/iswctype.c: New file.
20124         * lib/iswctype-impl.h: New file.
20125         * m4/iswctype.m4: New file.
20126         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20127         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20128         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20129         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20130         * doc/posix-functions/iswctype.texi: Mention the new module and the
20131         HP-UX 11.00 problem.
20132
20133 2011-02-06  Bruno Haible  <bruno@clisp.org>
20134
20135         New module 'wctype'.
20136         * modules/wctype: Change to represent the wctype() substitute.
20137         * lib/wctype.in.h (wctype): New declaration.
20138         * lib/wctype.c: New file.
20139         * lib/wctype-impl.h: New file.
20140         * m4/wctype.m4: New file.
20141         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20142         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20143         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20144         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20145         * doc/posix-functions/wctype.texi: Mention the new module and the
20146         HP-UX 11.00 problem.
20147
20148 2011-02-06  Bruno Haible  <bruno@clisp.org>
20149
20150         wctype-h: Ensure wctype_t and wctrans_t are defined.
20151         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20152         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20153         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20154         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20155         HAVE_WCTRANS_T.
20156         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20157
20158 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20159
20160         flock: fix license typo
20161
20162         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20163         omitted.
20164
20165 2011-02-08  Bruno Haible  <bruno@clisp.org>
20166
20167         Split large sed scripts, for HP-UX sed.
20168         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20169         to avoid HP-UX limit of 99 commands, in the near future.
20170         * modules/stdlib (Makefile.am): Likewise.
20171         * modules/unistd (Makefile.am): Likewise.
20172         * modules/wchar (Makefile.am): Likewise.
20173         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20174         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20175         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20176
20177 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20178             Bruno Haible  <bruno@clisp.org>
20179
20180         stdlib: improve random_r modularization
20181         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20182         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20183         you also need the random_r module to get this material right.
20184         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20185         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20186         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20187
20188 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20189
20190         stdlib: don't depend on stdint
20191         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20192         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20193         be independent of whether stdint.h is needed.
20194         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20195         here, instead of ...
20196         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20197         struct random_data should be using the random_r module, not just
20198         the stdlib module (which wouldn't make sense: what package needs
20199         just struct random_data without also needing random_r?).
20200         * modules/stdlib (Depends-on): Remove stdint.
20201
20202         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20203         See the thread rooted at
20204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20205         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20206         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20207         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20208         __VMS)); previously it was always included (via fcntl--.h).
20209         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20210         hand; this is good enough for load averages.  Also, do not use
20211         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20212         flags directly if available and don't bother otherwise.  (Packages
20213         that need the extra reliability should use the modules that define
20214         these flags on older platforms that lack them.)
20215         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20216         fcntl-safer.
20217
20218 2011-02-08  Jim Meyering  <meyering@redhat.com>
20219
20220         di-set.h, ino-map.h: add multiple-inclusion guard
20221         Technically, the guard is required only for ino-map.h, due to its
20222         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20223         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20224         * lib/ino-map.h: Likewise.
20225
20226 2011-02-06  Bruno Haible  <bruno@clisp.org>
20227
20228         iswblank: Ensure declaration on glibc systems.
20229         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20230         * modules/iswblank (Dependencies): Add 'extensions'.
20231         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20232
20233 2011-02-06  Bruno Haible  <bruno@clisp.org>
20234
20235         New module 'iswblank'.
20236         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20237         * modules/iswblank: New file.
20238         * modules/wctype-h (Files): Remove lib/iswblank.c.
20239         (Makefile.am): Substitute GNULIB_ISWBLANK.
20240         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20241         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20242         (gl_WCTYPE_H_DEFAULTS): New macro.
20243         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20244         * modules/iswblank-tests: New file.
20245         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20246         * tests/test-wctype-h.c (main): Remove iswblank tests.
20247         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20248         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20249         of 'wctype-h'.
20250         * NEWS: Mention the change.
20251         * modules/mbchar (Depends-on): Add iswblank.
20252
20253 2011-02-08  Bruno Haible  <bruno@clisp.org>
20254
20255         di-set tests: Refactor.
20256         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20257         unnecessary includes.
20258         (ASSERT): Remove macro.
20259         (main): Make C90 compliant by avoiding variable declaration after
20260         statement.
20261         * modules/di-set-tests (Files): Add tests/macros.h.
20262
20263 2011-02-08  Bruno Haible  <bruno@clisp.org>
20264
20265         ino-map tests: Refactor.
20266         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20267         unnecessary includes.
20268         (ASSERT): Remove macro.
20269         (main): Make C90 compliant by avoiding variable declaration after
20270         statement.
20271         * modules/ino-map-tests (Files): Add tests/macros.h.
20272
20273 2011-02-08  Jim Meyering  <meyering@redhat.com>
20274
20275         di-set: add "const" to a cast
20276         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20277         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20278
20279 2011-02-06  Bruno Haible  <bruno@clisp.org>
20280
20281         Rename module 'wctype' to 'wctype-h'.
20282         * modules/wctype-h: Renamed from modules/wctype.
20283         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20284         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20285         (Files, Depends-on, Makefile.am): Update.
20286         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20287         (Files, Makefile.am): Update.
20288         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20289         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20290         * doc/posix-headers/wctype.texi: Update.
20291         * doc/posix-functions/iswalnum.texi: Update.
20292         * doc/posix-functions/iswalpha.texi: Update.
20293         * doc/posix-functions/iswblank.texi: Update.
20294         * doc/posix-functions/iswcntrl.texi: Update.
20295         * doc/posix-functions/iswdigit.texi: Update.
20296         * doc/posix-functions/iswgraph.texi: Update.
20297         * doc/posix-functions/iswlower.texi: Update.
20298         * doc/posix-functions/iswprint.texi: Update.
20299         * doc/posix-functions/iswpunct.texi: Update.
20300         * doc/posix-functions/iswspace.texi: Update.
20301         * doc/posix-functions/iswupper.texi: Update.
20302         * doc/posix-functions/iswxdigit.texi: Update.
20303         * doc/posix-functions/towlower.texi: Update.
20304         * doc/posix-functions/towupper.texi: Update.
20305         * NEWS: Mention the change.
20306         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20307         * modules/mbchar (Dependencies): Likewise.
20308         * modules/mbswidth (Dependencies): Likewise.
20309         * modules/quotearg (Dependencies): Likewise.
20310         * modules/regex (Dependencies): Likewise.
20311         * modules/wcscasecmp (Dependencies): Likewise.
20312         * modules/wcsncasecmp (Dependencies): Likewise.
20313         * modules/wcwidth (Dependencies): Likewise.
20314
20315 2011-02-06  Bruno Haible  <bruno@clisp.org>
20316
20317         New module 'wcswidth'.
20318         * modules/wcswidth: New file.
20319         * lib/wchar.in.h (wcswidth): New declaration.
20320         * lib/wcswidth.c: New file.
20321         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20322         * m4/wcswidth.m4: New file.
20323         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20324         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20325         REPLACE_WCSWIDTH.
20326         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20327         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20328         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20329         * doc/posix-functions/wcswidth.texi: Mention the new module.
20330
20331 2011-02-06  Bruno Haible  <bruno@clisp.org>
20332
20333         New module 'wcstok'.
20334         * modules/wcstok: New file.
20335         * lib/wchar.in.h (wcstok): New declaration.
20336         * lib/wcstok.c: New file.
20337         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20338         * m4/wcstok.m4: New file.
20339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20342         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20343         * doc/posix-functions/wcstok.texi: Mention the new module.
20344
20345 2011-02-06  Bruno Haible  <bruno@clisp.org>
20346
20347         New module 'wcsstr'.
20348         * modules/wcsstr: New file.
20349         * lib/wchar.in.h (wcsstr): New declaration.
20350         * lib/wcsstr.c: New file.
20351         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20352         * m4/wcsstr.m4: New file.
20353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20355         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20356         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20357         * doc/posix-functions/wcsstr.texi: Mention the new module.
20358
20359 2011-02-06  Bruno Haible  <bruno@clisp.org>
20360
20361         New module 'wcspbrk'.
20362         * modules/wcspbrk: New file.
20363         * lib/wchar.in.h (wcspbrk): New declaration.
20364         * lib/wcspbrk.c: New file.
20365         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20366         * m4/wcspbrk.m4: New file.
20367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20370         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20371         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20372
20373 2011-02-06  Bruno Haible  <bruno@clisp.org>
20374
20375         New module 'wcsspn'.
20376         * modules/wcsspn: New file.
20377         * lib/wchar.in.h (wcsspn): New declaration.
20378         * lib/wcsspn.c: New file.
20379         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20380         * m4/wcsspn.m4: New file.
20381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20384         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20385         * doc/posix-functions/wcsspn.texi: Mention the new module.
20386
20387 2011-02-06  Bruno Haible  <bruno@clisp.org>
20388
20389         New module 'wcscspn'.
20390         * modules/wcscspn: New file.
20391         * lib/wchar.in.h (wcscspn): New declaration.
20392         * lib/wcscspn.c: New file.
20393         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20394         * m4/wcscspn.m4: New file.
20395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20398         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20399         * doc/posix-functions/wcscspn.texi: Mention the new module.
20400
20401 2011-02-06  Bruno Haible  <bruno@clisp.org>
20402
20403         New module 'wcsrchr'.
20404         * modules/wcsrchr: New file.
20405         * lib/wchar.in.h (wcsrchr): New declaration.
20406         * lib/wcsrchr.c: New file.
20407         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20408         * m4/wcsrchr.m4: New file.
20409         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20410         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20412         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20413         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20414
20415 2011-02-06  Bruno Haible  <bruno@clisp.org>
20416
20417         New module 'wcschr'.
20418         * modules/wcschr: New file.
20419         * lib/wchar.in.h (wcschr): New declaration.
20420         * lib/wcschr.c: New file.
20421         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20422         * m4/wcschr.m4: New file.
20423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20426         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20427         * doc/posix-functions/wcschr.texi: Mention the new module.
20428
20429 2011-02-06  Bruno Haible  <bruno@clisp.org>
20430
20431         New module 'wcsdup'.
20432         * modules/wcsdup: New file.
20433         * lib/wchar.in.h (wcsdup): New declaration.
20434         * lib/wcsdup.c: New file.
20435         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20436         * m4/wcsdup.m4: New file.
20437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20439         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20440         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20441         * doc/posix-functions/wcsdup.texi: Mention the new module.
20442
20443 2011-02-06  Bruno Haible  <bruno@clisp.org>
20444
20445         New module 'wcsxfrm'.
20446         * modules/wcsxfrm: New file.
20447         * lib/wchar.in.h (wcsxfrm): New declaration.
20448         * lib/wcsxfrm.c: New file.
20449         * lib/wcsxfrm-impl.h: New file.
20450         * m4/wcsxfrm.m4: New file.
20451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20453         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20454         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20455         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20456
20457 2011-02-06  Bruno Haible  <bruno@clisp.org>
20458
20459         New module 'wcscoll'.
20460         * modules/wcscoll: New file.
20461         * lib/wchar.in.h (wcscoll): New declaration.
20462         * lib/wcscoll.c: New file.
20463         * lib/wcscoll-impl.h: New file.
20464         * m4/wcscoll.m4: New file.
20465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20468         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20469         * doc/posix-functions/wcscoll.texi: Mention the new module.
20470
20471 2011-02-06  Bruno Haible  <bruno@clisp.org>
20472
20473         New module 'wcsncasecmp'.
20474         * modules/wcsncasecmp: New file.
20475         * lib/wchar.in.h (wcsncasecmp): New declaration.
20476         * lib/wcsncasecmp.c: New file.
20477         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20478         * m4/wcsncasecmp.m4: New file.
20479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20482         HAVE_WCSNCASECMP.
20483         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20484         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20485
20486 2011-02-06  Bruno Haible  <bruno@clisp.org>
20487
20488         New module 'wcscasecmp'.
20489         * modules/wcscasecmp: New file.
20490         * lib/wchar.in.h (wcscasecmp): New declaration.
20491         * lib/wcscasecmp.c: New file.
20492         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20493         * m4/wcscasecmp.m4: New file.
20494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20497         HAVE_WCSCASECMP.
20498         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20499         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20500
20501 2011-02-05  Bruno Haible  <bruno@clisp.org>
20502
20503         New module 'wcsncmp'.
20504         * modules/wcsncmp: New file.
20505         * lib/wchar.in.h (wcsncmp): New declaration.
20506         * lib/wcsncmp.c: New file.
20507         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20508         * m4/wcsncmp.m4: New file.
20509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20511         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20512         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20513         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20514
20515 2011-02-05  Bruno Haible  <bruno@clisp.org>
20516
20517         New module 'wcscmp'.
20518         * modules/wcscmp: New file.
20519         * lib/wchar.in.h (wcscmp): New declaration.
20520         * lib/wcscmp.c: New file.
20521         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20522         * m4/wcscmp.m4: New file.
20523         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20524         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20525         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20526         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20527         * doc/posix-functions/wcscmp.texi: Mention the new module.
20528
20529 2011-02-05  Bruno Haible  <bruno@clisp.org>
20530
20531         New module 'wcsncat'.
20532         * modules/wcsncat: New file.
20533         * lib/wchar.in.h (wcsncat): New declaration.
20534         * lib/wcsncat.c: New file.
20535         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20536         * m4/wcsncat.m4: New file.
20537         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20538         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20539         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20540         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20541         * doc/posix-functions/wcsncat.texi: Mention the new module.
20542
20543 2011-02-05  Bruno Haible  <bruno@clisp.org>
20544
20545         New module 'wcscat'.
20546         * modules/wcscat: New file.
20547         * lib/wchar.in.h (wcscat): New declaration.
20548         * lib/wcscat.c: New file.
20549         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20550         * m4/wcscat.m4: New file.
20551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20554         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20555         * doc/posix-functions/wcscat.texi: Mention the new module.
20556
20557 2011-02-05  Bruno Haible  <bruno@clisp.org>
20558
20559         New module 'wcpncpy'.
20560         * modules/wcpncpy: New file.
20561         * lib/wchar.in.h (wcpncpy): New declaration.
20562         * lib/wcpncpy.c: New file.
20563         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20564         * m4/wcpncpy.m4: New file.
20565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20567         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20568         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20569         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20570
20571 2011-02-05  Bruno Haible  <bruno@clisp.org>
20572
20573         New module 'wcsncpy'.
20574         * modules/wcsncpy: New file.
20575         * lib/wchar.in.h (wcsncpy): New declaration.
20576         * lib/wcsncpy.c: New file.
20577         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20578         * m4/wcsncpy.m4: New file.
20579         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20580         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20581         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20582         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20583         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20584
20585 2011-02-05  Bruno Haible  <bruno@clisp.org>
20586
20587         New module 'wcpcpy'.
20588         * modules/wcpcpy: New file.
20589         * lib/wchar.in.h (wcpcpy): New declaration.
20590         * lib/wcpcpy.c: New file.
20591         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20592         * m4/wcpcpy.m4: New file.
20593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20595         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20596         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20597         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20598
20599 2011-02-05  Bruno Haible  <bruno@clisp.org>
20600
20601         New module 'wcscpy'.
20602         * modules/wcscpy: New file.
20603         * lib/wchar.in.h (wcscpy): New declaration.
20604         * lib/wcscpy.c: New file.
20605         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20606         * m4/wcscpy.m4: New file.
20607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20610         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20611         * doc/posix-functions/wcscpy.texi: Mention the new module.
20612
20613 2011-02-05  Bruno Haible  <bruno@clisp.org>
20614
20615         New module 'wcsnlen'.
20616         * modules/wcsnlen: New file.
20617         * lib/wchar.in.h (wcsnlen): New declaration.
20618         * lib/wcsnlen.c: New file.
20619         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20620         * m4/wcsnlen.m4: New file.
20621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20624         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20625         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20626
20627 2011-02-05  Bruno Haible  <bruno@clisp.org>
20628
20629         New module 'wcslen'.
20630         * modules/wcslen: New file.
20631         * lib/wchar.in.h (wcslen): New declaration.
20632         * lib/wcslen.c: New file.
20633         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20634         * m4/wcslen.m4: New file.
20635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20637         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20638         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20639         * doc/posix-functions/wcslen.texi: Mention the new module.
20640
20641 2011-02-05  Bruno Haible  <bruno@clisp.org>
20642
20643         New module 'wmemset'.
20644         * modules/wmemset: New file.
20645         * lib/wchar.in.h (wmemset): New declaration.
20646         * lib/wmemset.c: New file.
20647         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20648         * m4/wmemset.m4: New file.
20649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20651         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20652         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20653         * doc/posix-functions/wmemset.texi: Mention the new module.
20654
20655 2011-02-05  Bruno Haible  <bruno@clisp.org>
20656
20657         New module 'wmemmove'.
20658         * modules/wmemmove: New file.
20659         * lib/wchar.in.h (wmemmove): New declaration.
20660         * lib/wmemmove.c: New file.
20661         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20662         * m4/wmemmove.m4: New file.
20663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20665         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20666         HAVE_WMEMMOVE.
20667         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20668         * doc/posix-functions/wmemmove.texi: Mention the new module.
20669
20670 2011-02-05  Bruno Haible  <bruno@clisp.org>
20671
20672         New module 'wmemcpy'.
20673         * modules/wmemcpy: New file.
20674         * lib/wchar.in.h (wmemcpy): New declaration.
20675         * lib/wmemcpy.c: New file.
20676         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20677         * m4/wmemcpy.m4: New file.
20678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20680         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20681         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20682         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20683
20684 2011-02-05  Bruno Haible  <bruno@clisp.org>
20685
20686         New module 'wmemcmp'.
20687         * modules/wmemcmp: New file.
20688         * lib/wchar.in.h (wmemcmp): New declaration.
20689         * lib/wmemcmp.c: New file.
20690         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20691         * m4/wmemcmp.m4: New file.
20692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20694         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20695         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20696         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20697
20698 2011-02-07  Jim Meyering  <meyering@redhat.com>
20699
20700         di-set, ino-map: new modules, from coreutils
20701         * lib/di-set.c: New file.
20702         * lib/di-set.h: Likewise.
20703         * lib/ino-map.c: Likewise.
20704         * lib/ino-map.h: Likewise.
20705         * modules/di-set: Likewise.
20706         * modules/di-set-tests: Likewise.
20707         * modules/ino-map: Likewise.
20708         * modules/ino-map-tests: Likewise.
20709         * tests/test-di-set.c: Likewise.
20710         * tests/test-ino-map.c: Likewise.
20711
20712 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20713
20714         getloadavg: merge minor changes from Emacs
20715
20716         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20717         (getloadavg): Use memset, not bzero.
20718
20719         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20720         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20721         clash (bug#86).
20722
20723 2010-11-14  Bruno Haible  <bruno@clisp.org>
20724
20725         Allow multiple gnulib generated replacements to coexist.
20726         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20727         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20728         * lib/langinfo.in.h (nl_item): Likewise.
20729         * lib/math.in.h (_NaN, NAN): Likewise.
20730         * lib/netdb.in.h (struct addrinfo): Likewise.
20731         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20732         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20733         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20734         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20735         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20736         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20737         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20738         pthread_mutexattr_init, pthread_mutexattr_settype,
20739         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20740         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20741         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20742         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20743         * lib/sched.in.h (struct sched_param): Likewise.
20744         * lib/se-selinux.in.h (security_class_t, security_context_t,
20745         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20746         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20747         lsetfilecon, fsetfilecon, security_check_context,
20748         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20749         Likewise.
20750         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20751         Likewise.
20752         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20753         _gl_function_taking_int_returning_void_t, union sigval,
20754         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20755         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20756         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20757         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20758         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20759         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20760         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20761         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20762         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20763         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20764         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20765         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20766         socklen_t, rpl_fd_isset): Likewise.
20767         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20768         * lib/sys_time.in.h (struct timeval): Likewise.
20769         * lib/sys_times.in.h (struct tms): Likewise.
20770         * lib/sys_utsname.in.h (struct utsname):
20771         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20772         * lib/unistd.in.h (getpagesize): Likewise.
20773         * lib/wchar.in.h (mbstate_t): Likewise.
20774         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20775         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20776         towlower, towupper): Likewise.
20777         Reported by Sam Steingold <sds@gnu.org>.
20778
20779 2011-02-05  Eric Blake  <eblake@redhat.com>
20780
20781         unsetenv: work around Haiku issues
20782         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20783         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20784
20785 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20786
20787         libposix: avoid calling error() within libposix
20788         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20789         is defined.
20790
20791 2011-02-05  Eric Blake  <eblake@redhat.com>
20792
20793         strerror_r-posix: port to cygwin
20794         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20795         implementation.
20796         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20797         * tests/test-strerror_r.c (main): Fix test.
20798         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20799         issue.
20800
20801 2011-02-05  Bruno Haible  <bruno@clisp.org>
20802
20803         New module 'wmemchr'.
20804         * modules/wmemchr: New file.
20805         * lib/wchar.in.h (wmemchr): New declaration.
20806         * lib/wmemchr.c: New file.
20807         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20808         * m4/wmemchr.m4: New file.
20809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20811         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20812         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20813         * doc/posix-functions/wmemchr.texi: Mention the new module.
20814
20815 2011-02-04  Eric Blake  <eblake@redhat.com>
20816
20817         fdopendir: detect FreeBSD bug
20818         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20819         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20820
20821 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20822
20823         stdbool: do not define HAVE_STDBOOL_H
20824         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20825         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20826         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20827         imported from the latest Autoconf git.  It was motivated by Emacs,
20828         which uses gnulib but does not need HAVE_STDBOOL_H.
20829
20830 2011-02-04  Bruno Haible  <bruno@clisp.org>
20831
20832         wcsnrtombs: Prepare for new module wwcsnrtombs.
20833         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20834         * lib/wcsnrtombs.c: Include it.
20835         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20836
20837         wcsrtombs: Prepare for new module wwcsrtombs.
20838         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20839         * lib/wcsrtombs.c: Include it.
20840         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20841
20842         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20843         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20844         * lib/mbsnrtowcs.c: Include it.
20845         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20846
20847         mbsrtowcs: Prepare for new module mbsrtowwcs.
20848         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20849         * lib/mbsrtowcs.c: Include it.
20850         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20851
20852 2011-02-04  Bruno Haible  <bruno@clisp.org>
20853
20854         vasnprintf: Reduce use of malloc for small format strings.
20855         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20856         (arguments): Add room for the first 7 arguments.
20857         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20858         (char_directives, u8_directives, u16_directives, u32_directives): Add
20859         room for the first 7 directives.
20860         * lib/printf-parse.c: Include <string.h>.
20861         (PRINTF_PARSE): Change memory handling code so that it uses the first
20862         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20863         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20864         Reported by Pádraig Brady <P@draigbrady.com>.
20865
20866 2011-01-31  Eric Blake  <eblake@redhat.com>
20867
20868         dup2: work around Haiku bug
20869         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20870         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20871         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20872         * tests/test-dup2.c (main): Enhance test.
20873
20874 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20875
20876         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20877         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20878         declared by eglibc 2.11.2.
20879         * lib/stdio.in.h: Likewise.
20880
20881 2011-01-31  Eric Blake  <eblake@redhat.com>
20882
20883         ignore-value: add missing test dependency
20884         * tests/test-ignore-value.c: Revert previous change; stdio.h
20885         provides off_t.
20886         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20887
20888 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20889
20890         mktime: clarify long_int width checking
20891         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20892         the top level, to make it clearer that the assumption about
20893         long_int width is being checked.  See
20894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20895
20896 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20897
20898         ignore-value: Fix self-test.
20899         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20900
20901 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20902
20903         TYPE_MAXIMUM: avoid theoretically undefined behavior
20904         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20905         negative number, which the C Standard says has undefined behavior.
20906         In practice this is not a problem, but might as well do it by the book.
20907         Reported by Rich Felker and Eric Blake; see
20908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20909         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20910         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20912         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20913         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20914         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20915
20916         mktime: #undef mktime before #defining it
20917         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20918
20919         mktime: systematically normalize tm_isdst comparisons
20920         * lib/mktime.c (isdst_differ): New function.
20921         (__mktime_internal): Use it systematically for all isdst comparisons.
20922         This completes the fix for libc BZ #6723, and removes the need for
20923         normalizing tm_isdst.  See
20924         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20925         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20926
20927         mktime: fix some integer overflow issues and sidestep the rest
20928
20929         This was prompted by a bug report by Benjamin Lindner for MinGW
20930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20931         His bug is due to signed integer overflow (0 - INT_MIN), and I
20932         I scanned through mktime.c looking for other integer overflow
20933         problems, fixing all the bugs I found.
20934
20935         Although the C Standard says the resulting code is still not safe
20936         in the presence of integer overflow, in practice it should be good
20937         enough for all real-world two's-complement implementations, except
20938         for debugging environments that deliberately trap on integer
20939         overflow (e.g., gcc -ftrapv).
20940
20941         * lib/mktime.c (WRAPV): New macro.
20942         (SHR): Also check that long_int and time_t shift right in the
20943         usual way, before using the fast-but-unportable method.
20944         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20945         used.  The code already assumed two's complement, so there's
20946         no need to test for alternatives.  All uses removed.
20947         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20948         the C standard.  Problem reported by Rich Felker in
20949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20950         (twos_complement_arithmetic): Also check long_int and time_t.
20951         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20952         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20953         (__mktime_internal): Avoid integer overflow with unary subtraction
20954         in two instances where -1 - X is an adequate replacement for -X,
20955         since the calculations are approximate.
20956
20957 2011-01-29  Eric Blake  <eblake@redhat.com>
20958
20959         mktime: avoid infinite loop
20960         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20961         type; behavior is still undefined but portable to all known targets.
20962         Reported by Rich Felker.
20963
20964 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20965
20966         rename, unlink, same-inode: Relicense.
20967         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20968         * modules/unlink (License): Likewise.
20969         * modules/same-inode (License): Likewise.
20970
20971 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20972
20973         mktime: avoid problems on NetBSD 5 / i386
20974         * lib/mktime.c (long_int): New type.  This works around a problem
20975         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20976         but time_t is 64 bits, and where I expect the existing code is
20977         wrong in some cases.
20978         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20979         (ydhms_diff): Bring back the compile-time check for wide-enough
20980         year and yday.
20981
20982         mktime: fix misspelling in comment
20983         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20984         This merges all recent glibc changes of importance.
20985
20986 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20987
20988         move-if-change: cope with concurrent mv of identical file.
20989         * build-aux/move-if-change (CMPPROG): Accept environment
20990         variable as an override for `cmp'.
20991         (usage): Document CMPPROG.
20992         Adjust comparison to drop stdout.  Cope with failure of mv if
20993         the target file exists and is identical to the source, for
20994         parallel builds.
20995         Report from H.J. Lu against binutils in PR binutils/12283.
20996
20997 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20998
20999         * users.txt: Mention sharutils.
21000
21001 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21002
21003         * users.txt: Mention OATH Toolkit.
21004
21005 2011-01-27  Bruno Haible  <bruno@clisp.org>
21006
21007         Prepare for supporting FreeBSD 10.
21008         * build-aux/config.libpath: Remove handling of freebsd1*.
21009
21010 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21011
21012         Prepare for supporting FreeBSD 10.
21013         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21014         match FreeBSD 10.0.
21015
21016 2011-01-27  Bruno Haible  <bruno@clisp.org>
21017
21018         vma-iter, get-rusage-as: Add OpenBSD support.
21019         * modules/vma-iter (configure.ac): Test for mquery.
21020         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21021         * lib/vma-iter.c: Include <sys/mman.h>.
21022         (vma_iterate): Add an implementation based on mquery().
21023         * lib/resource-ext.h (get_rusage_as): Update comments.
21024         * lib/get-rusage-as.c: Likewise.
21025         * lib/get-rusage-data.c: Likewise.
21026
21027 2011-01-26  Karl Berry  <karl@gnu.org>
21028
21029         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21030         variables to make it easier to override the makeinfo program used.
21031
21032 2011-01-26  Eric Blake  <eblake@redhat.com>
21033
21034         fcntl: work around Haiku F_DUPFD bugs
21035         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21036         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21037         cloexec bit on duplication.
21038         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21039
21040 2011-01-26  Bruno Haible  <bruno@clisp.org>
21041
21042         Enable memory leak tests on AIX.
21043         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21044         * tests/test-fprintf-posix3.c (main): Likewise.
21045
21046 2011-01-26  Bruno Haible  <bruno@clisp.org>
21047
21048         Tests for module 'get-rusage-data'.
21049         * modules/get-rusage-data-tests: New file.
21050         * tests/test-get-rusage-data.c: New file.
21051
21052         New module 'get-rusage-data'.
21053         * lib/resource-ext.h (get_rusage_data): New declaration.
21054         * lib/get-rusage-data.c: New file.
21055         * modules/get-rusage-data: New file.
21056
21057 2011-01-25  Bruno Haible  <bruno@clisp.org>
21058
21059         get-rusage-as: Allow for easier testing.
21060         * lib/resource-ext.h (get_rusage_as): Add comment.
21061         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21062         (main): New function for interactive testing.
21063
21064 2011-01-25  Bruno Haible  <bruno@clisp.org>
21065
21066         vma-iter: Treat Haiku like BeOS.
21067         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21068         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21069
21070 2011-01-25  Eric Blake  <eblake@redhat.com>
21071
21072         c-stack: fix regression on cygwin when libsigsegv is present
21073         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21074
21075 2011-01-24  Bruno Haible  <bruno@clisp.org>
21076
21077         vma-iter: Avoid empty intervals.
21078         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21079         on an empty interval.
21080
21081 2011-01-24  Jim Meyering  <meyering@redhat.com>
21082
21083         u64: remove unnecessary #include
21084         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21085
21086 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21087
21088         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21089         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21090
21091 2011-01-23  Bruno Haible  <bruno@clisp.org>
21092
21093         New module 'vma-iter'.
21094         * lib/vma-iter.h: New file.
21095         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21096         * modules/vma-iter: New file.
21097         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21098         for get_rusage_as_via_iterator.
21099         (vma_iterate_callback): New function.
21100         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21101         * modules/get-rusage-as (Depends-on): Add vma-iter.
21102
21103 2011-01-23  Bruno Haible  <bruno@clisp.org>
21104
21105         uninorm: Tweak includes.
21106         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21107         Reported by Jim Meyering.
21108
21109 2011-01-23  Bruno Haible  <bruno@clisp.org>
21110
21111         get-rusage-as: Improve on NetBSD.
21112         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21113         /proc, like on FreeBSD.
21114
21115 2011-01-23  Jim Meyering  <meyering@redhat.com>
21116
21117         xreadlink.h: remove unnecessary #include
21118         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21119
21120         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21121         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21122
21123 2011-01-23  Bruno Haible  <bruno@clisp.org>
21124
21125         get-rusage-as: Fix bug.
21126         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21127         original limit when aborting the first loop.
21128
21129 2011-01-23  Bruno Haible  <bruno@clisp.org>
21130
21131         wctype: Ensure valid C syntax.
21132         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21133         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21134
21135 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21136
21137         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21138         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21139         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21140         as they are needed only for configure's test case.
21141         This removes two unnecessary symbols from config.h.
21142
21143         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21144         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21146         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21147         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21148         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21149         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21150         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21151         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21152         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21153         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21154         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21155         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21156         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21157         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21158         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21159         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21160         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21161
21162 2011-01-21  Eric Blake  <eblake@redhat.com>
21163
21164         maintainer-makefile: work with older git for submodule check
21165         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21166         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21167         Reported by Matthias Bolte.
21168
21169         bootstrap: minor portability fixes
21170         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21171         (usage): Omit leading capital and trailing . on help phrases, per
21172         GNU Coding Standards.
21173         (check_versions, top level): Prefix messages with script name.
21174
21175 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21176
21177         bootstrap: support --no-git option
21178         * build-aux/bootstrap: Add --no-git option, to be used when
21179         --gnulib-srcdir points to the exact desired checkout.
21180
21181 2011-01-21  Eric Blake  <eblake@redhat.com>
21182
21183         strerror_r-posix: work with glibc 2.13
21184         * lib/strerror_r.c (strerror_r): Fix return type.
21185
21186 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21187             Bruno Haible  <bruno@clisp.org>
21188
21189         uN_strstr: New unit tests.
21190         * modules/unistr/u8-strstr-tests: New file.
21191         * modules/unistr/u16-strstr-tests: New file.
21192         * modules/unistr/u32-strstr-tests: New file.
21193         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21194         * tests/unistr/test-u8-strstr.c: New file.
21195         * tests/unistr/test-u16-strstr.c: New file.
21196         * tests/unistr/test-u32-strstr.c: New file.
21197
21198 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21199             Bruno Haible  <bruno@clisp.org>
21200
21201         Make uN_strstr functions O(n) worst-case.
21202         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21203         16-bit and 32-bit unit cases, use the unibyte algorithm from
21204         lib/mbsstr.c.
21205         * lib/unistr/u8-strstr.c: Include <string.h>.
21206         (UNIT_IS_UINT8_T): New macro.
21207         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21208         (U_STRLEN, U_STRNLEN): New macros.
21209         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21210         (U_STRLEN, U_STRNLEN): New macros.
21211         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21212         (configure.ac): Update required libunistring version.
21213         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21214         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21215         malloca.
21216         (configure.ac): Update required libunistring version.
21217         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21218         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21219         malloca.
21220         (configure.ac): Update required libunistring version.
21221
21222 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21223             Bruno Haible  <bruno@clisp.org>
21224
21225         Prepare for faster uN_strstr functions.
21226         * lib/str-kmp.h: Support definable UNITs.
21227         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21228         needle_len argument.
21229         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21230         * lib/mbscasestr.c (mbscasestr): Likewise.
21231
21232 2011-01-21  Pádraig Brady <P@draigBrady.com>
21233
21234         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21235         * tests/test-malloca.c (main): Unset the environment variable
21236         to greatly speed up the test.
21237         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21238         * modules/malloca-tests: Depend on unsetenv.
21239
21240 2011-01-21  Pádraig Brady <P@draigBrady.com>
21241
21242         ignore-value: remove stdint dependency
21243         * lib/ignore-value.h: Remove <stdint.h>
21244         * modules/ignore-value: Remove stdint dependency.
21245
21246 2011-01-21  Jim Meyering  <meyering@redhat.com>
21247
21248         maint.mk: adjust variable name to be consistent with other gl_ vars
21249         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21250         to be lower case.
21251
21252 2011-01-20  Jim Meyering  <meyering@redhat.com>
21253
21254         maint.mk: make "check" depend on public-submodule-commit by default
21255         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21256
21257 2011-01-20  Bruno Haible  <bruno@clisp.org>
21258
21259         mbfile, mbiter: Complete change from 2008-12-21.
21260         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21261         * m4/mbiter.m4 (gl_MBITER): Likewise.
21262
21263 2011-01-20  Jim Meyering  <meyering@redhat.com>
21264
21265         init.sh: insert space between each function name and "()"
21266         * tests/init.sh: Make it a little easier to see that a function's
21267         name is "warn_", and not "warn" when looking at the first part of
21268         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21269
21270 2011-01-20  Jim Meyering  <meyering@redhat.com>
21271
21272         mountlist: clean up code formatting
21273         * lib/mountlist.c (read_file_system_list): Split a long line,
21274         correct bracing style, use NULL in place of "(struct statfs *)0",
21275         don't parenthesize return value, add spaces around "=" and after
21276         ";-in-for-stmt".
21277
21278 2011-01-14  Markus Duft <mduft@gentoo.org>
21279
21280         mountlist: add support for Interix
21281         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21282         Apply statvfs to all entries of /dev/fs.
21283         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21284         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21285
21286 2011-01-20  Jim Meyering  <meyering@redhat.com>
21287
21288         maint.mk: improve the public-submodule-commit rule
21289         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21290         to suppress printing of its commands... unless V=1.
21291         Add git submodule's --quiet option to suppress printing of e.g.,
21292         "Entering gnulib" output.
21293         "cd" into $(srcdir) before running git submodule.
21294
21295 2011-01-20  Bruno Haible  <bruno@clisp.org>
21296
21297         include_next: Fix bug introduced on 2011-01-18.
21298         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21299         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21300         ac_cv_header_... variable if the second argument is not 'check'.
21301         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21302         gl_NEXT_HEADERS_INTERNAL.
21303
21304 2011-01-20  Bruno Haible  <bruno@clisp.org>
21305
21306         Allow the user to avoid the GNULIB_TEST_* macros.
21307         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21308         Suggested by Paul Eggert.
21309
21310 2011-01-14  Jim Meyering  <meyering@redhat.com>
21311
21312         bootstrap: avoid failure when there is no .gitmodules file
21313         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21314         has been assigned to, even when its value is the empty string.
21315         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21316         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21317         Reported by John W. Eaton <jwe@gnu.org>.
21318
21319 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21320
21321         assume <ctype.h>, ..., <time.h> exist
21322         For years gnulib has been assuming the existence of the headers
21323         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21324         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21325         them, since they don't appear to be needed.
21326         * README (Portability guidelines): Document this.
21327         * lib/flock.c: Assume <fcntl.h> exists.
21328         * lib/regex_internal.h: Assume <locale.h> exists.
21329         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21330         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21331         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21332         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21333         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21334         * m4/regex.m4 (gl_REGEX): Likewise.
21335         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21336         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21337         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21338         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21339         * tests/test-argp.c: Likewise.
21340         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21341
21342         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21343         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21344         AA_APPLE_UNIVERSAL_BUILD.  See
21345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21346         * NEWS: Document this.
21347
21348 2011-01-19  Eric Blake  <eblake@redhat.com>
21349
21350         c-stack: assume stack overflow if SA_SIGINFO unsupported
21351         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21352         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21353         sigaction will work.
21354         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21355         behavior match Linux.
21356         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21357
21358         stdbool-tests: accomodate Haiku
21359         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21360
21361         binary-io: fix O_TEXT on Haiku
21362         * modules/binary-io (Depends-on): Add fcntl-h.
21363         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21364         than blindly undefining O_TEXT.
21365         Reported by Scott McCreary.
21366
21367 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21368
21369         include_next: do not check for standard headers like stddef.h
21370
21371         I found this problem when modifying Emacs to use gnulib.
21372         I noticed that it added HAVE_STDDEF_H to config.h, even though
21373         gnulib always assumes <stddef.h> exists as per README and this
21374         symbol is unnecessary.
21375         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21376         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21377         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21378         faster for headers like stddef.h that are known to exist.
21379         (gl_CHECK_NEXT_HEADERS): Use it.
21380         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21381         rather than gl_CHECK_NEXT_HEADERS.
21382         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21383         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21384
21385 2011-01-18  Eric Blake  <eblake@redhat.com>
21386
21387         ansi-c++-opt: skip C++ dependency style if C++ is unused
21388         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21389         tests when we know C++ compilation is not desired.
21390         Reported by Scott McCreary.
21391
21392 2011-01-18  Bruno Haible  <bruno@clisp.org>
21393
21394         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21395         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21396         (main): Perform test also when getrlimit and setrlimit don't exist or
21397         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21398         limiting the address space size using setrlimit, compare the address
21399         space size before and after the the test.
21400         * tests/test-dprintf-posix2.c: Likewise.
21401         * tests/test-fprintf-posix3.sh: Update skip messages.
21402         * tests/test-dprintf-posix2.sh: Likewise.
21403         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21404         * modules/dprintf-posix-tests (Depends-on): Likewise.
21405         Reported by Bruce Korb <bkorb@gnu.org> and
21406         Gary V. Vaughan <gary@gnu.org>.
21407
21408 2011-01-18  Bruno Haible  <bruno@clisp.org>
21409
21410         get-rusage-as: Improvement for Cygwin.
21411         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21412         areas that are merely reserved.
21413
21414 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21415
21416         strftime: remove dependencies on multibyte modules
21417
21418         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21419         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21420         only if __osf__ is defined, and I suspect OSF doesn't need these
21421         other modules.  If my guess is wrong, we'll need to come up with a
21422         variant of strftime that doesn't need the multibyte modules.
21423
21424         I discovered this problem when attempting modify Emacs to use the
21425         strftime module.  With the previous gnulib, this caused Emacs to
21426         need 31 new files, ranging from lib/config.charset to
21427         m4/wint_t.m4.  This was overkill and I expect would be offputting
21428         to the Emacs maintainers.  After this change, only 6 new files are
21429         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21430         stdbool.m4, and tm_gmtoff.m4.
21431
21432         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21433         Suggested by Bruno Haible in
21434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21435         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21436         and do not check for wchar.h.
21437         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21438         (Depends-on): Remove mbrlen, mbsinit, wchar.
21439
21440 2011-01-18  Bruno Haible  <bruno@clisp.org>
21441
21442         Tests for module 'get-rusage-as'.
21443         * modules/get-rusage-as-tests: New file.
21444         * tests/test-get-rusage-as.c: New file.
21445
21446         New module 'get-rusage-as'.
21447         * modules/get-rusage-as: New file.
21448         * lib/resource-ext.h: New file.
21449         * lib/get-rusage-as.c: New file.
21450
21451 2011-01-17  Eric Blake  <eblake@redhat.com>
21452
21453         sigaction: relax license from LGPLv3+ to LGPLv2+
21454         * modules/sigaction (License): Relax to LGPLv2+.
21455
21456 2011-01-14  Bruno Haible  <bruno@clisp.org>
21457
21458         filemode: Make function declarations usable in C++ mode.
21459         * lib/filemode.h: Enclose function declarations in extern "C" block.
21460         Reported by John W. Eaton <jwe@gnu.org>.
21461
21462 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21463
21464         save-cwd: no longer include "xgetcwd.h"
21465         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21466         This avoids a compilation failure in projects that use save-cwd
21467         without also using the xgetcwd module.
21468
21469 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21470
21471         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21472         This is so that a program like Emacs, which needs only dtoastr,
21473         does not have to bother with distributing and compiling ftoastr
21474         and ldtoastr.
21475         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21476         * modules/dtoastr, modules/ldtoastr: New files.
21477         * modules/ftoastr: Now works just for 'float'.
21478         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21479         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21480         dtoastr.c, ldtoastr.c.
21481
21482 2011-01-11  Jim Meyering  <meyering@redhat.com>
21483
21484         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21485         There is no need to work around the lack of the fchdir function,
21486         since gnulib can now provide a replacement when required.
21487         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21488         * modules/save-cwd (Depends-on): Add fchdir.
21489
21490 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21491
21492         openat, save-cwd: avoid xmalloc
21493
21494         This removes a direct (but undocumented) dependency of openat on
21495         xalloc, along with an indirect dependency via save-cwd.  It also
21496         removes a dependency of save-cwd on xgetcwd, and thereby
21497         indirectly on xalloc.  This change causes the openat substitute
21498         to fall back on save_cwd when memory is tight, and for save_cwd to
21499         fail instead of dying when memory is tight, but that's good enough.
21500         Problem and initial idea for fix reported by Bastien Roucaries in
21501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21502
21503         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21504         xalloc.h (for xmalloc).
21505         (openat_proc_name): Use malloc, not xmalloc.
21506         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21507         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21508
21509         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21510         This avoids heap allocation for file names whose lengths are in
21511         the range 512..1023, with the upper bound increasing to at most
21512         4031 depending on the platform's PATH_MAX.  (We do not want
21513         pathmax.h here as it might supply a non-constant PATH_MAX.)
21514         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21515         Perhaps they should be moved to malloca.h?
21516         (OPENAT_BUFFER_SIZE): Use them.
21517
21518 2011-01-10  Bruno Haible  <bruno@clisp.org>
21519
21520         doc: Update users.txt.
21521         * users.txt: Add recutils.
21522
21523 2011-01-09  Karl Berry  <karl@gnu.org>
21524
21525         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21526
21527         * doc/configmake.texi: New file.
21528         * doc/gnulib.texi: Include it.
21529         * modules/configmake: Move documentation from here.
21530
21531 2011-01-09  Bruno Haible  <bruno@clisp.org>
21532
21533         Update to Unicode 6.0.0.
21534         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21535         (get_lbp): Update for Unicode 6.0.0.
21536         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21537         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21538         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21539         U+11001, U+11038..U+11046. Remove U+06DE.
21540         (uc_width): Fix bounds of planes.
21541         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21542         lib/uniwidth/width.c.
21543         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21544         trailing whitespace removed.
21545         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21546         without comments, but with the original copyright notice.
21547         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21548         * lib/unicase/ignorable.h: Likewise.
21549         * lib/unicase/tocasefold.h: Likewise.
21550         * lib/unicase/tolower.h: Likewise.
21551         * lib/unicase/totitle.h: Likewise.
21552         * lib/unicase/toupper.h: Likewise.
21553         * lib/unictype/bidi_of.h: Likewise.
21554         * lib/unictype/blocks.h: Likewise.
21555         * lib/unictype/categ_C.h: Likewise.
21556         * lib/unictype/categ_Cn.h: Likewise.
21557         * lib/unictype/categ_L.h: Likewise.
21558         * lib/unictype/categ_Ll.h: Likewise.
21559         * lib/unictype/categ_Lm.h: Likewise.
21560         * lib/unictype/categ_Lo.h: Likewise.
21561         * lib/unictype/categ_Lu.h: Likewise.
21562         * lib/unictype/categ_M.h: Likewise.
21563         * lib/unictype/categ_Mc.h: Likewise.
21564         * lib/unictype/categ_Me.h: Likewise.
21565         * lib/unictype/categ_Mn.h: Likewise.
21566         * lib/unictype/categ_N.h: Likewise.
21567         * lib/unictype/categ_Nd.h: Likewise.
21568         * lib/unictype/categ_No.h: Likewise.
21569         * lib/unictype/categ_P.h: Likewise.
21570         * lib/unictype/categ_Po.h: Likewise.
21571         * lib/unictype/categ_S.h: Likewise.
21572         * lib/unictype/categ_Sc.h: Likewise.
21573         * lib/unictype/categ_Sk.h: Likewise.
21574         * lib/unictype/categ_Sm.h: Likewise.
21575         * lib/unictype/categ_So.h: Likewise.
21576         * lib/unictype/categ_of.h: Likewise.
21577         * lib/unictype/combining.h: Likewise.
21578         * lib/unictype/ctype_alnum.h: Likewise.
21579         * lib/unictype/ctype_alpha.h: Likewise.
21580         * lib/unictype/ctype_graph.h: Likewise.
21581         * lib/unictype/ctype_lower.h: Likewise.
21582         * lib/unictype/ctype_print.h: Likewise.
21583         * lib/unictype/ctype_punct.h: Likewise.
21584         * lib/unictype/ctype_upper.h: Likewise.
21585         * lib/unictype/decdigit.h: Likewise.
21586         * lib/unictype/digit.h: Likewise.
21587         * lib/unictype/numeric.h: Likewise.
21588         * lib/unictype/pr_alphabetic.h: Likewise.
21589         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21590         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21591         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21592         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21593         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21594         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21595         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21596         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21597         * lib/unictype/pr_case_ignorable.h: Likewise.
21598         * lib/unictype/pr_cased.h: Likewise.
21599         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21600         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21601         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21602         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21603         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21604         * lib/unictype/pr_combining.h: Likewise.
21605         * lib/unictype/pr_composite.h: Likewise.
21606         * lib/unictype/pr_currency_symbol.h: Likewise.
21607         * lib/unictype/pr_decimal_digit.h: Likewise.
21608         * lib/unictype/pr_deprecated.h: Likewise.
21609         * lib/unictype/pr_format_control.h: Likewise.
21610         * lib/unictype/pr_grapheme_base.h: Likewise.
21611         * lib/unictype/pr_grapheme_extend.h: Likewise.
21612         * lib/unictype/pr_grapheme_link.h: Likewise.
21613         * lib/unictype/pr_id_continue.h: Likewise.
21614         * lib/unictype/pr_id_start.h: Likewise.
21615         * lib/unictype/pr_ideographic.h: Likewise.
21616         * lib/unictype/pr_lowercase.h: Likewise.
21617         * lib/unictype/pr_math.h: Likewise.
21618         * lib/unictype/pr_numeric.h: Likewise.
21619         * lib/unictype/pr_other_alphabetic.h: Likewise.
21620         * lib/unictype/pr_other_id_continue.h: Likewise.
21621         * lib/unictype/pr_other_math.h: Likewise.
21622         * lib/unictype/pr_punctuation.h: Likewise.
21623         * lib/unictype/pr_sentence_terminal.h: Likewise.
21624         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21625         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21626         * lib/unictype/pr_unified_ideograph.h: Likewise.
21627         * lib/unictype/pr_uppercase.h: Likewise.
21628         * lib/unictype/pr_xid_continue.h: Likewise.
21629         * lib/unictype/pr_xid_start.h: Likewise.
21630         * lib/unictype/scripts.h: Likewise.
21631         * lib/unictype/scripts_byname.gperf: Likewise.
21632         * lib/unictype/sy_java_ident.h: Likewise.
21633         * lib/unigbrk/gbrkprop.h: Likewise.
21634         * lib/unilbrk/lbrkprop1.h: Likewise.
21635         * lib/unilbrk/lbrkprop2.h: Likewise.
21636         * lib/uninorm/decomposition-table2.h: Likewise.
21637         * lib/uniwbrk/wbrkprop.h: Likewise.
21638         * tests/unicase/test-cased.c: Likewise.
21639         * tests/unicase/test-ignorable.c: Likewise.
21640         * tests/unicase/test-uc_tolower.c: Likewise.
21641         * tests/unicase/test-uc_totitle.c: Likewise.
21642         * tests/unicase/test-uc_toupper.c: Likewise.
21643         * tests/unictype/test-categ_C.c: Likewise.
21644         * tests/unictype/test-categ_Cn.c: Likewise.
21645         * tests/unictype/test-categ_L.c: Likewise.
21646         * tests/unictype/test-categ_Ll.c: Likewise.
21647         * tests/unictype/test-categ_Lm.c: Likewise.
21648         * tests/unictype/test-categ_Lo.c: Likewise.
21649         * tests/unictype/test-categ_Lu.c: Likewise.
21650         * tests/unictype/test-categ_M.c: Likewise.
21651         * tests/unictype/test-categ_Mc.c: Likewise.
21652         * tests/unictype/test-categ_Me.c: Likewise.
21653         * tests/unictype/test-categ_Mn.c: Likewise.
21654         * tests/unictype/test-categ_N.c: Likewise.
21655         * tests/unictype/test-categ_Nd.c: Likewise.
21656         * tests/unictype/test-categ_No.c: Likewise.
21657         * tests/unictype/test-categ_P.c: Likewise.
21658         * tests/unictype/test-categ_Po.c: Likewise.
21659         * tests/unictype/test-categ_S.c: Likewise.
21660         * tests/unictype/test-categ_Sc.c: Likewise.
21661         * tests/unictype/test-categ_Sk.c: Likewise.
21662         * tests/unictype/test-categ_Sm.c: Likewise.
21663         * tests/unictype/test-categ_So.c: Likewise.
21664         * tests/unictype/test-ctype_alnum.c: Likewise.
21665         * tests/unictype/test-ctype_alpha.c: Likewise.
21666         * tests/unictype/test-ctype_graph.c: Likewise.
21667         * tests/unictype/test-ctype_lower.c: Likewise.
21668         * tests/unictype/test-ctype_print.c: Likewise.
21669         * tests/unictype/test-ctype_punct.c: Likewise.
21670         * tests/unictype/test-ctype_upper.c: Likewise.
21671         * tests/unictype/test-decdigit.h: Likewise.
21672         * tests/unictype/test-digit.h: Likewise.
21673         * tests/unictype/test-numeric.h: Likewise.
21674         * tests/unictype/test-pr_alphabetic.c: Likewise.
21675         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21676         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21677         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21678         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21679         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21680         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21681         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21682         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21683         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21684         * tests/unictype/test-pr_cased.c: Likewise.
21685         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21686         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21687         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21688         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21689         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21690         * tests/unictype/test-pr_combining.c: Likewise.
21691         * tests/unictype/test-pr_composite.c: Likewise.
21692         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21693         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21694         * tests/unictype/test-pr_deprecated.c: Likewise.
21695         * tests/unictype/test-pr_format_control.c: Likewise.
21696         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21697         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21698         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21699         * tests/unictype/test-pr_id_continue.c: Likewise.
21700         * tests/unictype/test-pr_id_start.c: Likewise.
21701         * tests/unictype/test-pr_ideographic.c: Likewise.
21702         * tests/unictype/test-pr_lowercase.c: Likewise.
21703         * tests/unictype/test-pr_math.c: Likewise.
21704         * tests/unictype/test-pr_numeric.c: Likewise.
21705         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21706         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21707         * tests/unictype/test-pr_other_math.c: Likewise.
21708         * tests/unictype/test-pr_punctuation.c: Likewise.
21709         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21710         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21711         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21712         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21713         * tests/unictype/test-pr_uppercase.c: Likewise.
21714         * tests/unictype/test-pr_xid_continue.c: Likewise.
21715         * tests/unictype/test-pr_xid_start.c: Likewise.
21716         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21717         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21718         changes.
21719         * lib/unictype/categ_Cc.h: Likewise.
21720         * lib/unictype/categ_Cf.h: Likewise.
21721         * lib/unictype/categ_Co.h: Likewise.
21722         * lib/unictype/categ_Cs.h: Likewise.
21723         * lib/unictype/categ_Lt.h: Likewise.
21724         * lib/unictype/categ_Nl.h: Likewise.
21725         * lib/unictype/categ_Pc.h: Likewise.
21726         * lib/unictype/categ_Pd.h: Likewise.
21727         * lib/unictype/categ_Pe.h: Likewise.
21728         * lib/unictype/categ_Pf.h: Likewise.
21729         * lib/unictype/categ_Pi.h: Likewise.
21730         * lib/unictype/categ_Ps.h: Likewise.
21731         * lib/unictype/categ_Z.h: Likewise.
21732         * lib/unictype/categ_Zl.h: Likewise.
21733         * lib/unictype/categ_Zp.h: Likewise.
21734         * lib/unictype/categ_Zs.h: Likewise.
21735         * lib/unictype/ctype_blank.h: Likewise.
21736         * lib/unictype/ctype_cntrl.h: Likewise.
21737         * lib/unictype/ctype_digit.h: Likewise.
21738         * lib/unictype/ctype_space.h: Likewise.
21739         * lib/unictype/ctype_xdigit.h: Likewise.
21740         * lib/unictype/mirror.h: Likewise.
21741         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21742         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21743         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21744         * lib/unictype/pr_bidi_control.h: Likewise.
21745         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21746         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21747         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21748         * lib/unictype/pr_bidi_pdf.h: Likewise.
21749         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21750         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21751         * lib/unictype/pr_dash.h: Likewise.
21752         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21753         * lib/unictype/pr_diacritic.h: Likewise.
21754         * lib/unictype/pr_extender.h: Likewise.
21755         * lib/unictype/pr_hex_digit.h: Likewise.
21756         * lib/unictype/pr_hyphen.h: Likewise.
21757         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21758         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21759         * lib/unictype/pr_ignorable_control.h: Likewise.
21760         * lib/unictype/pr_iso_control.h: Likewise.
21761         * lib/unictype/pr_join_control.h: Likewise.
21762         * lib/unictype/pr_left_of_pair.h: Likewise.
21763         * lib/unictype/pr_line_separator.h: Likewise.
21764         * lib/unictype/pr_logical_order_exception.h: Likewise.
21765         * lib/unictype/pr_non_break.h: Likewise.
21766         * lib/unictype/pr_not_a_character.h: Likewise.
21767         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21768         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21769         * lib/unictype/pr_other_id_start.h: Likewise.
21770         * lib/unictype/pr_other_lowercase.h: Likewise.
21771         * lib/unictype/pr_other_uppercase.h: Likewise.
21772         * lib/unictype/pr_paired_punctuation.h: Likewise.
21773         * lib/unictype/pr_paragraph_separator.h: Likewise.
21774         * lib/unictype/pr_pattern_syntax.h: Likewise.
21775         * lib/unictype/pr_pattern_white_space.h: Likewise.
21776         * lib/unictype/pr_private_use.h: Likewise.
21777         * lib/unictype/pr_quotation_mark.h: Likewise.
21778         * lib/unictype/pr_radical.h: Likewise.
21779         * lib/unictype/pr_soft_dotted.h: Likewise.
21780         * lib/unictype/pr_space.h: Likewise.
21781         * lib/unictype/pr_titlecase.h: Likewise.
21782         * lib/unictype/pr_variation_selector.h: Likewise.
21783         * lib/unictype/pr_white_space.h: Likewise.
21784         * lib/unictype/pr_zero_width.h: Likewise.
21785         * lib/unictype/sy_c_ident.h: Likewise.
21786         * lib/unictype/sy_c_whitespace.h: Likewise.
21787         * lib/unictype/sy_java_whitespace.h: Likewise.
21788         * lib/uninorm/composition-table.gperf: Likewise.
21789         * lib/uninorm/decomposition-table1.h: Likewise.
21790         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21791         LB8.
21792         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21793         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21794         * modules/unictype/*: Bump version number of expected libunistring
21795         version.
21796
21797 2011-01-09  Bruno Haible  <bruno@clisp.org>
21798
21799         Update to Unicode 5.2.0.
21800         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21801         trailing whitespace removed.
21802
21803 2011-01-09  Bruno Haible  <bruno@clisp.org>
21804
21805         New Unicode character properties, from Unicode 5.2.0.
21806         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21807         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21808         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21809         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21810         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21811         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21812         uc_is_property_cased, uc_is_property_case_ignorable,
21813         uc_is_property_changes_when_lowercased,
21814         uc_is_property_changes_when_uppercased,
21815         uc_is_property_changes_when_titlecased,
21816         uc_is_property_changes_when_casefolded,
21817         uc_is_property_changes_when_casemapped): New declarations.
21818         * lib/unictype/pr_byname.gperf: Add the new properties.
21819         * modules/unictype/property-byname (Depends-on): Depend on the new
21820         properties modules.
21821         * modules/unictype/property-all (Depends-on): Likewise.
21822         * MODULES.html.sh (Unicode string functions): Add
21823         unictype/property-case-ignorable, unictype/property-cased,
21824         unictype/property-changes-when-casefolded,
21825         unictype/property-changes-when-casemapped,
21826         unictype/property-changes-when-lowercased,
21827         unictype/property-changes-when-titlecased,
21828         unictype/property-changes-when-uppercased.
21829
21830         New module 'unictype/property-changes-when-casemapped'.
21831         * modules/unictype/property-changes-when-casemapped: New file.
21832         * lib/unictype/pr_changes_when_casemapped.c: New file.
21833         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21834         generated by gen-uni-tables.
21835         * modules/unictype/property-changes-when-casemapped-tests: New file.
21836         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21837         automatically generated by gen-uni-tables.
21838
21839         New module 'unictype/property-changes-when-casefolded'.
21840         * modules/unictype/property-changes-when-casefolded: New file.
21841         * lib/unictype/pr_changes_when_casefolded.c: New file.
21842         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21843         generated by gen-uni-tables.
21844         * modules/unictype/property-changes-when-casefolded-tests: New file.
21845         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21846         automatically generated by gen-uni-tables.
21847
21848         New module 'unictype/property-changes-when-titlecased'.
21849         * modules/unictype/property-changes-when-titlecased: New file.
21850         * lib/unictype/pr_changes_when_titlecased.c: New file.
21851         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21852         generated by gen-uni-tables.
21853         * modules/unictype/property-changes-when-titlecased-tests: New file.
21854         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21855         automatically generated by gen-uni-tables.
21856
21857         New module 'unictype/property-changes-when-uppercased'.
21858         * modules/unictype/property-changes-when-uppercased: New file.
21859         * lib/unictype/pr_changes_when_uppercased.c: New file.
21860         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21861         generated by gen-uni-tables.
21862         * modules/unictype/property-changes-when-uppercased-tests: New file.
21863         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21864         automatically generated by gen-uni-tables.
21865
21866         New module 'unictype/property-changes-when-lowercased'.
21867         * modules/unictype/property-changes-when-lowercased: New file.
21868         * lib/unictype/pr_changes_when_lowercased.c: New file.
21869         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21870         generated by gen-uni-tables.
21871         * modules/unictype/property-changes-when-lowercased-tests: New file.
21872         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21873         automatically generated by gen-uni-tables.
21874
21875         New module 'unictype/property-case-ignorable'.
21876         * modules/unictype/property-case-ignorable: New file.
21877         * lib/unictype/pr_case_ignorable.c: New file.
21878         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21879         by gen-uni-tables.
21880         * modules/unictype/property-case-ignorable-tests: New file.
21881         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21882         generated by gen-uni-tables.
21883
21884         New module 'unictype/property-cased'.
21885         * modules/unictype/property-cased: New file.
21886         * lib/unictype/pr_cased.c: New file.
21887         * lib/unictype/pr_cased.h: New file, automatically generated by
21888         gen-uni-tables.
21889         * modules/unictype/property-cased-tests: New file.
21890         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21891         gen-uni-tables.
21892
21893 2011-01-09  Bruno Haible  <bruno@clisp.org>
21894
21895         Update to Unicode 5.2.0.
21896         * lib/gen-uni-tables.c (output_predicate, output_category,
21897         output_combclass, output_bidi_category, output_decimal_digit_test,
21898         output_decimal_digit, output_digit_test, output_digit,
21899         output_numeric_test, output_numeric, output_mirror, output_scripts,
21900         output_scripts_byname, output_blocks, output_ident_category): Fix
21901         comment header.
21902         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21903         get_wbp.
21904         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21905         items.
21906         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21907         Changes_When_Lowercased, Changes_When_Uppercased,
21908         Changes_When_Titlecased, Changes_When_Casefolded,
21909         Changes_When_Casemapped.
21910         (is_property_alphabetic, is_property_default_ignorable_code_point):
21911         Update for Unicode 5.2.0.
21912         (is_property_cased, is_property_case_ignorable,
21913         is_property_changes_when_lowercased,
21914         is_property_changes_when_uppercased,
21915         is_property_changes_when_titlecased,
21916         is_property_changes_when_casefolded,
21917         is_property_changes_when_casemapped): New functions.
21918         (output_properties): Output also the properties cased, case_ignorable,
21919         changes_when_lowercased, changes_when_uppercased,
21920         changes_when_titlecased, changes_when_casefolded,
21921         changes_when_casemapped.
21922         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21923         Unicode TR#11 revision 17 -> 19.
21924         (LBP_CP): New enumeration value.
21925         (LBP_*): Adjust values accordingly.
21926         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21927         TR#14 revision 22 -> 24.
21928         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21929         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21930         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21931         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21932         is_WBP_MIDLETTER.
21933         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21934         the code1 and code2 of each composition rule.
21935         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21936         * lib/unicase/ignorable.h: Likewise.
21937         * lib/unicase/tocasefold.h: Likewise.
21938         * lib/unicase/tolower.h: Likewise.
21939         * lib/unicase/totitle.h: Likewise.
21940         * lib/unicase/toupper.h: Likewise.
21941         * lib/unictype/bidi_of.h: Likewise.
21942         * lib/unictype/blocks.h: Likewise.
21943         * lib/unictype/categ_C.h: Likewise.
21944         * lib/unictype/categ_Cf.h: Likewise.
21945         * lib/unictype/categ_Cn.h: Likewise.
21946         * lib/unictype/categ_L.h: Likewise.
21947         * lib/unictype/categ_Ll.h: Likewise.
21948         * lib/unictype/categ_Lm.h: Likewise.
21949         * lib/unictype/categ_Lo.h: Likewise.
21950         * lib/unictype/categ_Lu.h: Likewise.
21951         * lib/unictype/categ_M.h: Likewise.
21952         * lib/unictype/categ_Mc.h: Likewise.
21953         * lib/unictype/categ_Mn.h: Likewise.
21954         * lib/unictype/categ_N.h: Likewise.
21955         * lib/unictype/categ_Nd.h: Likewise.
21956         * lib/unictype/categ_Nl.h: Likewise.
21957         * lib/unictype/categ_No.h: Likewise.
21958         * lib/unictype/categ_P.h: Likewise.
21959         * lib/unictype/categ_Pd.h: Likewise.
21960         * lib/unictype/categ_Po.h: Likewise.
21961         * lib/unictype/categ_S.h: Likewise.
21962         * lib/unictype/categ_Sc.h: Likewise.
21963         * lib/unictype/categ_So.h: Likewise.
21964         * lib/unictype/categ_of.h: Likewise.
21965         * lib/unictype/combining.h: Likewise.
21966         * lib/unictype/ctype_alnum.h: Likewise.
21967         * lib/unictype/ctype_alpha.h: Likewise.
21968         * lib/unictype/ctype_graph.h: Likewise.
21969         * lib/unictype/ctype_lower.h: Likewise.
21970         * lib/unictype/ctype_print.h: Likewise.
21971         * lib/unictype/ctype_punct.h: Likewise.
21972         * lib/unictype/ctype_upper.h: Likewise.
21973         * lib/unictype/decdigit.h: Likewise.
21974         * lib/unictype/digit.h: Likewise.
21975         * lib/unictype/numeric.h: Likewise.
21976         * lib/unictype/pr_alphabetic.h: Likewise.
21977         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21978         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21979         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21980         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21981         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21982         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21983         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21984         * lib/unictype/pr_combining.h: Likewise.
21985         * lib/unictype/pr_composite.h: Likewise.
21986         * lib/unictype/pr_currency_symbol.h: Likewise.
21987         * lib/unictype/pr_dash.h: Likewise.
21988         * lib/unictype/pr_decimal_digit.h: Likewise.
21989         * lib/unictype/pr_deprecated.h: Likewise.
21990         * lib/unictype/pr_diacritic.h: Likewise.
21991         * lib/unictype/pr_extender.h: Likewise.
21992         * lib/unictype/pr_grapheme_base.h: Likewise.
21993         * lib/unictype/pr_grapheme_extend.h: Likewise.
21994         * lib/unictype/pr_grapheme_link.h: Likewise.
21995         * lib/unictype/pr_id_continue.h: Likewise.
21996         * lib/unictype/pr_id_start.h: Likewise.
21997         * lib/unictype/pr_ideographic.h: Likewise.
21998         * lib/unictype/pr_ignorable_control.h: Likewise.
21999         * lib/unictype/pr_logical_order_exception.h: Likewise.
22000         * lib/unictype/pr_lowercase.h: Likewise.
22001         * lib/unictype/pr_numeric.h: Likewise.
22002         * lib/unictype/pr_other_alphabetic.h: Likewise.
22003         * lib/unictype/pr_punctuation.h: Likewise.
22004         * lib/unictype/pr_sentence_terminal.h: Likewise.
22005         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22006         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22007         * lib/unictype/pr_unified_ideograph.h: Likewise.
22008         * lib/unictype/pr_uppercase.h: Likewise.
22009         * lib/unictype/pr_xid_continue.h: Likewise.
22010         * lib/unictype/pr_xid_start.h: Likewise.
22011         * lib/unictype/pr_zero_width.h: Likewise.
22012         * lib/unictype/scripts.h: Likewise.
22013         * lib/unictype/scripts_byname.gperf: Likewise.
22014         * lib/unictype/sy_java_ident.h: Likewise.
22015         * lib/unigbrk/gbrkprop.h: Likewise.
22016         * lib/unilbrk/lbrkprop1.h: Likewise.
22017         * lib/unilbrk/lbrkprop2.h: Likewise.
22018         * lib/unilbrk/lbrktables.h: Likewise.
22019         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22020         LBP_CP. Implement rule LB30.
22021         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22022         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22023         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22024         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22025         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22026         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22027         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22028         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22029         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22030         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22031         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22032         bits instead of 16 bits in the code1 and code2 of each composition
22033         rule.
22034         (uc_composition): Update for Unicode 5.2.0.
22035         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22036         * lib/uninorm/decomposition-table2.h: Likewise.
22037         * lib/uniwbrk/wbrkprop.h: Likewise.
22038         * tests/unicase/test-cased.c: Likewise.
22039         * tests/unicase/test-ignorable.c: Likewise.
22040         * tests/unicase/test-uc_tolower.c: Likewise.
22041         * tests/unicase/test-uc_totitle.c: Likewise.
22042         * tests/unicase/test-uc_toupper.c: Likewise.
22043         * tests/unictype/test-categ_C.c: Likewise.
22044         * tests/unictype/test-categ_Cf.c: Likewise.
22045         * tests/unictype/test-categ_Cn.c: Likewise.
22046         * tests/unictype/test-categ_L.c: Likewise.
22047         * tests/unictype/test-categ_Ll.c: Likewise.
22048         * tests/unictype/test-categ_Lm.c: Likewise.
22049         * tests/unictype/test-categ_Lo.c: Likewise.
22050         * tests/unictype/test-categ_Lu.c: Likewise.
22051         * tests/unictype/test-categ_M.c: Likewise.
22052         * tests/unictype/test-categ_Mc.c: Likewise.
22053         * tests/unictype/test-categ_Mn.c: Likewise.
22054         * tests/unictype/test-categ_N.c: Likewise.
22055         * tests/unictype/test-categ_Nd.c: Likewise.
22056         * tests/unictype/test-categ_Nl.c: Likewise.
22057         * tests/unictype/test-categ_No.c: Likewise.
22058         * tests/unictype/test-categ_P.c: Likewise.
22059         * tests/unictype/test-categ_Pd.c: Likewise.
22060         * tests/unictype/test-categ_Po.c: Likewise.
22061         * tests/unictype/test-categ_S.c: Likewise.
22062         * tests/unictype/test-categ_Sc.c: Likewise.
22063         * tests/unictype/test-categ_So.c: Likewise.
22064         * tests/unictype/test-ctype_alnum.c: Likewise.
22065         * tests/unictype/test-ctype_alpha.c: Likewise.
22066         * tests/unictype/test-ctype_graph.c: Likewise.
22067         * tests/unictype/test-ctype_lower.c: Likewise.
22068         * tests/unictype/test-ctype_print.c: Likewise.
22069         * tests/unictype/test-ctype_punct.c: Likewise.
22070         * tests/unictype/test-ctype_upper.c: Likewise.
22071         * tests/unictype/test-decdigit.h: Likewise.
22072         * tests/unictype/test-digit.h: Likewise.
22073         * tests/unictype/test-numeric.h: Likewise.
22074         * tests/unictype/test-pr_alphabetic.c: Likewise.
22075         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22076         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22077         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22078         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22079         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22080         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22081         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22082         * tests/unictype/test-pr_combining.c: Likewise.
22083         * tests/unictype/test-pr_composite.c: Likewise.
22084         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22085         * tests/unictype/test-pr_dash.c: Likewise.
22086         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22087         * tests/unictype/test-pr_deprecated.c: Likewise.
22088         * tests/unictype/test-pr_diacritic.c: Likewise.
22089         * tests/unictype/test-pr_extender.c: Likewise.
22090         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22091         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22092         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22093         * tests/unictype/test-pr_id_continue.c: Likewise.
22094         * tests/unictype/test-pr_id_start.c: Likewise.
22095         * tests/unictype/test-pr_ideographic.c: Likewise.
22096         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22097         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22098         * tests/unictype/test-pr_lowercase.c: Likewise.
22099         * tests/unictype/test-pr_numeric.c: Likewise.
22100         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22101         * tests/unictype/test-pr_punctuation.c: Likewise.
22102         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22103         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22104         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22105         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22106         * tests/unictype/test-pr_uppercase.c: Likewise.
22107         * tests/unictype/test-pr_xid_continue.c: Likewise.
22108         * tests/unictype/test-pr_xid_start.c: Likewise.
22109         * tests/unictype/test-pr_zero_width.c: Likewise.
22110         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22111         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22112         changed behaviour: line breaking is now disallowed between a letter
22113         or '=' and '('.
22114         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22115         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22116         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22117         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22118         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22119         lib/uniwidth/width.c.
22120         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22121         without comments, but with the original copyright notice.
22122         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22123         changes.
22124         * lib/unictype/categ_Cc.h: Likewise.
22125         * lib/unictype/categ_Co.h: Likewise.
22126         * lib/unictype/categ_Cs.h: Likewise.
22127         * lib/unictype/categ_Lt.h: Likewise.
22128         * lib/unictype/categ_Me.h: Likewise.
22129         * lib/unictype/categ_Pc.h: Likewise.
22130         * lib/unictype/categ_Pe.h: Likewise.
22131         * lib/unictype/categ_Pf.h: Likewise.
22132         * lib/unictype/categ_Pi.h: Likewise.
22133         * lib/unictype/categ_Ps.h: Likewise.
22134         * lib/unictype/categ_Sk.h: Likewise.
22135         * lib/unictype/categ_Sm.h: Likewise.
22136         * lib/unictype/categ_Z.h: Likewise.
22137         * lib/unictype/categ_Zl.h: Likewise.
22138         * lib/unictype/categ_Zp.h: Likewise.
22139         * lib/unictype/categ_Zs.h: Likewise.
22140         * lib/unictype/ctype_blank.h: Likewise.
22141         * lib/unictype/ctype_cntrl.h: Likewise.
22142         * lib/unictype/ctype_digit.h: Likewise.
22143         * lib/unictype/ctype_space.h: Likewise.
22144         * lib/unictype/ctype_xdigit.h: Likewise.
22145         * lib/unictype/mirror.h: Likewise.
22146         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22147         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22148         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22149         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22150         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22151         * lib/unictype/pr_bidi_control.h: Likewise.
22152         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22153         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22154         * lib/unictype/pr_bidi_pdf.h: Likewise.
22155         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22156         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22157         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22158         * lib/unictype/pr_format_control.h: Likewise.
22159         * lib/unictype/pr_hex_digit.h: Likewise.
22160         * lib/unictype/pr_hyphen.h: Likewise.
22161         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22162         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22163         * lib/unictype/pr_iso_control.h: Likewise.
22164         * lib/unictype/pr_join_control.h: Likewise.
22165         * lib/unictype/pr_left_of_pair.h: Likewise.
22166         * lib/unictype/pr_line_separator.h: Likewise.
22167         * lib/unictype/pr_math.h: Likewise.
22168         * lib/unictype/pr_non_break.h: Likewise.
22169         * lib/unictype/pr_not_a_character.h: Likewise.
22170         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22171         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22172         * lib/unictype/pr_other_id_continue.h: Likewise.
22173         * lib/unictype/pr_other_id_start.h: Likewise.
22174         * lib/unictype/pr_other_lowercase.h: Likewise.
22175         * lib/unictype/pr_other_math.h: Likewise.
22176         * lib/unictype/pr_other_uppercase.h: Likewise.
22177         * lib/unictype/pr_paired_punctuation.h: Likewise.
22178         * lib/unictype/pr_paragraph_separator.h: Likewise.
22179         * lib/unictype/pr_pattern_syntax.h: Likewise.
22180         * lib/unictype/pr_pattern_white_space.h: Likewise.
22181         * lib/unictype/pr_private_use.h: Likewise.
22182         * lib/unictype/pr_quotation_mark.h: Likewise.
22183         * lib/unictype/pr_radical.h: Likewise.
22184         * lib/unictype/pr_soft_dotted.h: Likewise.
22185         * lib/unictype/pr_space.h: Likewise.
22186         * lib/unictype/pr_titlecase.h: Likewise.
22187         * lib/unictype/pr_variation_selector.h: Likewise.
22188         * lib/unictype/pr_white_space.h: Likewise.
22189         * lib/unictype/sy_c_ident.h: Likewise.
22190         * lib/unictype/sy_c_whitespace.h: Likewise.
22191         * lib/unictype/sy_java_whitespace.h: Likewise.
22192         * modules/uni*/*: Bump version number of expected libunistring version.
22193         Reported by Simon Josefsson.
22194
22195 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22196
22197         useless-if-before-free: fix typo in --help and make the internal,
22198         automatic version date update process work once again.
22199         --help output contained a NUL character instead of the
22200         backslash-zero that was intended.  Also, the "must lie within
22201         the first 8 lines" line is on line 9, and hence not getting
22202         automatically updated.
22203         * build-aux/useless-if-before-free: Fix the former by adding a
22204         backslash, and the latter by condensing the three lines of what-it-does
22205         to a single line, leaving one line of slack for the future.
22206
22207 2011-01-09  Bruno Haible  <bruno@clisp.org>
22208
22209         uniwidth/width: Fix width of U+1D173..U+1D17A.
22210         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22211         symbolic_width, output_width_property_test): New functions.
22212         (main): Invoke output_nonspacing_property, output_width_property_test.
22213         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22214         U+1D173..U+1D17A.
22215         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22216         1.
22217         * modules/uniwidth/*: Bump version number of expected libunistring
22218         version.
22219         * modules/unilbrk/*: Likewise.
22220
22221 2011-01-08  Bruno Haible  <bruno@clisp.org>
22222
22223         uninorm tests: Preserve copyright of Unicode data file.
22224         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22225         Mention modifications.
22226
22227 2011-01-08  Bruno Haible  <bruno@clisp.org>
22228
22229         gen-uni-tables: Prepare for Unicode 5.2.0.
22230         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22231         (debug_output_lbp, output_lbp): Update.
22232
22233 2011-01-08  Bruno Haible  <bruno@clisp.org>
22234
22235         unilbrk: Clarify gen-uni-tables.c code.
22236         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22237         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22238         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22239
22240 2011-01-07  Bruno Haible  <bruno@clisp.org>
22241
22242         strtod: Restore errno when successfully parsing Infinity or NaN.
22243         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22244         restore the original errno.
22245
22246 2011-01-07  Bruno Haible  <bruno@clisp.org>
22247
22248         remove test: Avoid failure on HP-UX 11.
22249         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22250
22251 2011-01-07  Bruno Haible  <bruno@clisp.org>
22252
22253         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22254         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22255         error code.
22256
22257 2011-01-07  Pádraig Brady <P@draigBrady.com>
22258
22259         ignore-value: fixup comments, and add Eric Blake
22260         as an author since he rewrote the macros.
22261         * lib/ignore-value.h (ignore_value):  State that
22262         we now support aggregates.  Also specify exactly
22263         when the GCC warn_unused_result feature was added.
22264
22265 2011-01-06  Eric Blake  <eblake@redhat.com>
22266
22267         ignore-value: support aggregate types
22268         * lib/ignore-value.h (ignore_value): Provide separate gcc
22269         definition.
22270         * modules/ignore-value-tests: New test module.
22271         * tests/test-ignore-value.c: New test.
22272
22273         maint.mk: improve sc_prohibit_strcmp regex
22274         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22275         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22276         definition of STRNEQ.
22277
22278         signal: work around Haiku issue with SIGBUS
22279         * lib/siglist.h: Add comment.
22280         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22281         strsignal's favoring of SIGSEGV.
22282         * tests/test-signal.c (main): Avoid test failure.
22283         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22284         Reported by Scott McCreary.
22285
22286         maint.mk: add pre-release check to ensure submodule commits are public
22287         * top/maint.mk (public-submodule-commit): New rule.
22288         (submodule-checks): New variable.
22289         (alpha beta stable): Depend on the variable.
22290
22291 2011-01-05  Pádraig Brady <P@draigBrady.com>
22292         and Jim Meyering  <meyering@redhat.com>
22293
22294         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22295         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22296         (ATTRIBUTE_DEPRECATED): Define.
22297         (_ignore_case): New function.
22298         (ignore_value): New macro, to replace the old function.
22299         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22300         * modules/ignore-value (Depends-on): Add stdint.
22301
22302 2011-01-04  Eric Blake  <eblake@redhat.com>
22303
22304         doc: regenerate INSTALL
22305         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22306         @firstparagraphindent support, now that autoconf dropped it.
22307         (INSTALL_PRELUDE): Reinstate old macro.
22308         * doc/install.texi: Resync from autoconf.
22309         * doc/INSTALL: Reflect recent autoconf update.
22310         * doc/INSTALL.ISO: Likewise.
22311         * doc/INSTALL.UTF-8: Likewise.
22312         Reported by Karl Berry.
22313
22314 2011-01-04  Bruce Korb  <address@hidden>
22315
22316         git-version-gen: avoid a sub-shell
22317         * build-aux/git-version-gen: Redirect stderr in `...` via
22318         "exec 2>...", rather than via an added sub-shell.
22319
22320 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22321
22322         git-version-gen: use (...) rather than sh -c '...'
22323         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22324         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22325
22326 2011-01-03  Jim Meyering  <meyering@redhat.com>
22327
22328         git-version-gen: convert leading TABs to spaces
22329         * build-aux/git-version-gen: Expand leading TABs.
22330
22331         git-version-gen: handle failed "git rev-list"
22332         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22333         from git and proceeding as if it had succeeded but printed no SHA1
22334         checksums, suppress the diagnostic and handle the failure.
22335         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22336
22337         git-version-gen: include command name in one more diagnostic
22338         * build-aux/git-version-gen: When the required .tarball-version file
22339         was missing or unreadable, you might see the diagnostic from "cat",
22340         but no trace of the name of the invoking script.  Now, you still see
22341         the diagnostic from cat, but also get one from "git-version-gen: ".
22342         Inspired by a patch from Bruce Korb.
22343
22344         update-copyright: adjust test to match changed code
22345         * tests/test-update-copyright.sh: Change test's expected output
22346         to match new actual output.
22347
22348 2011-01-02  Bruno Haible  <bruno@clisp.org>
22349
22350         getlogin_r: Avoid test failure on HP-UX 11.
22351         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22352         ERANGE when the second argument is zero.
22353         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22354         portability problem.
22355
22356 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22357
22358         * build-aux/update-copyright: doc Simon's changes
22359
22360 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22361
22362         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22363         environment variable.
22364
22365 2011-01-02  Bruno Haible  <bruno@clisp.org>
22366
22367         unigbrk: Avoid gcc warnings.
22368         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22369         unused variable.
22370         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22371         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22372         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22373         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22374         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22375         Change type of first argument to 'const char *'.
22376         (main): Remove unused variable.
22377         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22378         type of first argument to 'const char *'.
22379         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22380         Likewise.
22381         (main): Change type of variable 's'.
22382         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22383         to 'int'.
22384
22385 2011-01-02  Bruno Haible  <bruno@clisp.org>
22386
22387         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22388         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22389         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22390         bug.
22391         * lib/pwrite.c: Undo 2010-12-31 patch.
22392         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22393
22394 2011-01-02  Bruno Haible  <bruno@clisp.org>
22395
22396         pread: Fix test whether it works.
22397         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22398
22399 2011-01-02  Bruno Haible  <bruno@clisp.org>
22400
22401         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22402         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22403         ends in "6". Don't require a specific month name. Try also the locale
22404         names found on HP-UX 11 and Solaris 7.
22405
22406 2011-01-02  Bruno Haible  <bruno@clisp.org>
22407
22408         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22409         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22410         C linkage.
22411         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22412
22413 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22414
22415         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22416         for consistency, since the "cluster" term is not used elsewhere.
22417         * lib/unigbrk.in.h: Update name.
22418         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22419         * lib/unigbrk/u16-grapheme-next.c: Update name.
22420         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22421         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22422         * lib/unigbrk/u32-grapheme-next.c: Update name.
22423         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22424         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22425         * lib/unigbrk/u8-grapheme-next.c: Update name.
22426         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22427         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22428         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22429         Suggested by Bruno Haible.
22430
22431 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22432
22433         Remove module 'u8-grapheme-len' as too redundant with
22434         'u8-grapheme-next'.
22435         * modules/unigbrk/u8-grapheme-len: Delete file.
22436         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22437         * lib/unigbrk.in.h: Remove prototype for deleted function.
22438         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22439         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22440
22441         Remove module 'u16-grapheme-len' as too redundant with
22442         'u16-grapheme-next'.
22443         * modules/unigbrk/u16-grapheme-len: Delete file.
22444         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22445         * lib/unigbrk.in.h: Remove prototype for deleted function.
22446         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22447         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22448
22449         Remove module 'u32-grapheme-len' as too redundant with
22450         'u32-grapheme-next'.
22451         * modules/unigbrk/u32-grapheme-len: Delete file.
22452         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22453         * lib/unigbrk.in.h: Remove prototype for deleted function.
22454         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22455         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22456
22457         Suggested by Bruno Haible.
22458
22459 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22460
22461         * unigbrk.in.h: Fix typo: "ben" => "been".
22462         Reported by Bruno Haible.
22463
22464 2011-01-01  Jim Meyering  <meyering@redhat.com>
22465
22466         maint: update almost all copyright ranges to include 2011
22467         Run the new "make update-copyright" rule.
22468
22469 2011-01-01  Jim Meyering  <meyering@redhat.com>
22470
22471         maint: update-copyright: exempt doc/INSTALL*
22472         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22473         since they are generated.  Suggested by Bruno Haible.
22474
22475 2011-01-01  Jim Meyering  <meyering@redhat.com>
22476
22477         maint: refine the update-copyright rule
22478         * Makefile (update-copyright): Also exclude any file that includes
22479         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22480         code that merely generates the comment.
22481
22482 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22483
22484         New module 'u8-grapheme-len'.
22485         * modules/unigbrk/u8-grapheme-len: New file.
22486         * modules/unigbrk/u8-grapheme-len-tests: New file.
22487         * lib/unigbrk.in.h: Add prototype for new function.
22488         * lib/unigbrk/u8-grapheme-len.c: New file.
22489         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22490
22491         New module 'u16-grapheme-len'.
22492         * modules/unigbrk/u16-grapheme-len: New file.
22493         * modules/unigbrk/u16-grapheme-len-tests: New file.
22494         * lib/unigbrk.in.h: Add prototype for new function.
22495         * lib/unigbrk/u16-grapheme-len.c: New file.
22496         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22497
22498         New module 'u32-grapheme-len'.
22499         * modules/unigbrk/u32-grapheme-len: New file.
22500         * modules/unigbrk/u32-grapheme-len-tests: New file.
22501         * lib/unigbrk.in.h: Add prototype for new function.
22502         * lib/unigbrk/u32-grapheme-len.c: New file.
22503         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22504
22505         New module 'u8-grapheme-next'.
22506         * modules/unigbrk/u8-grapheme-next: New file.
22507         * modules/unigbrk/u8-grapheme-next-tests: New file.
22508         * lib/unigbrk.in.h: Add prototype for new function.
22509         * lib/unigbrk/u8-grapheme-next.c: New file.
22510         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22511
22512         New module 'u16-grapheme-next'.
22513         * modules/unigbrk/u16-grapheme-next: New file.
22514         * modules/unigbrk/u16-grapheme-next-tests: New file.
22515         * lib/unigbrk.in.h: Add prototype for new function.
22516         * lib/unigbrk/u16-grapheme-next.c: New file.
22517         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22518
22519         New module 'u32-grapheme-next'.
22520         * modules/unigbrk/u32-grapheme-next: New file.
22521         * modules/unigbrk/u32-grapheme-next-tests: New file.
22522         * lib/unigbrk.in.h: Add prototype for new function.
22523         * lib/unigbrk/u32-grapheme-next.c: New file.
22524         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22525
22526         New module 'u8-grapheme-prev'.
22527         * modules/unigbrk/u8-grapheme-prev: New file.
22528         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22529         * lib/unigbrk.in.h: Add prototype for new function.
22530         * lib/unigbrk/u8-grapheme-prev.c: New file.
22531         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22532
22533         New module 'u16-grapheme-prev'.
22534         * modules/unigbrk/u16-grapheme-prev: New file.
22535         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22536         * lib/unigbrk.in.h: Add prototype for new function.
22537         * lib/unigbrk/u16-grapheme-prev.c: New file.
22538         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22539
22540         New module 'u32-grapheme-prev'.
22541         * modules/unigbrk/u32-grapheme-prev: New file.
22542         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22543         * lib/unigbrk.in.h: Add prototype for new function.
22544         * lib/unigbrk/u32-grapheme-prev.c: New file.
22545         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22546
22547         New module 'u8-grapheme-breaks'.
22548         * modules/unigbrk/u8-grapheme-breaks: New file.
22549         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22550         * lib/unigbrk.in.h: Add prototype for new function.
22551         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22552         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22553
22554         New module 'u16-grapheme-breaks'.
22555         * modules/unigbrk/u16-grapheme-breaks: New file.
22556         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22557         * lib/unigbrk.in.h: Add prototype for new function.
22558         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22559         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22560
22561         New module 'u32-grapheme-breaks'.
22562         * modules/unigbrk/u32-grapheme-breaks: New file.
22563         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22564         * lib/unigbrk.in.h: Add prototype for new function.
22565         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22566         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22567
22568         New module 'ulc-grapheme-breaks'.
22569         * modules/unigbrk/ulc-grapheme-breaks: New file.
22570         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22571         * m4/locale-ar.m4: New file.
22572         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22573         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22574         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22575
22576 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22577
22578         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22579         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22580         modified how this file was generated before I initially submitted
22581         the module, but failed to regenerate it.  This meant that several
22582         of the level2 entries were wrong.
22583         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22584         Remove the division-by-2 that is folded into the table now that
22585         gbrkprop.h has been regenerated properly.  Now -1 entries are
22586         handled correctly.
22587
22588         New module 'unigbrk/uc-gbrk-prop-tests'.
22589         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22590         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22591         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22592         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22593
22594 2011-01-01  Bruno Haible  <bruno@clisp.org>
22595
22596         Avoid use of hexadecimal escapes.
22597         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22598         instead of hexadecimal escapes.
22599
22600 2011-01-01  Jim Meyering  <meyering@redhat.com>
22601
22602         maint: new rule to update copyright year ranges
22603         * Makefile (update-copyright): New rule.
22604
22605         maint: indent with TABs in Makefile
22606         * Makefile: Expand leading sequences of spaces to TABs
22607
22608         version-etc: update the copyright year it reports
22609         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22610
22611 2010-12-31  Bruno Haible  <bruno@clisp.org>
22612
22613         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22614         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22615         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22616         zero.
22617
22618 2010-12-31  Bruno Haible  <bruno@clisp.org>
22619
22620         pwrite: Work around HP-UX 11.11 bug.
22621         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22622         works and set REPLACE_PWRITE if not.
22623         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22624         function.
22625         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22626
22627 2010-12-31  Bruno Haible  <bruno@clisp.org>
22628
22629         pread: Work around HP-UX 11 bugs.
22630         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22631         and set REPLACE_PREAD if not.
22632         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22633
22634 2010-12-31  Eric Blake  <eblake@redhat.com>
22635
22636         nl_langinfo: fix YESEXPR on Irix 6.5
22637         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22638         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22639         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22640         it.
22641
22642 2010-12-31  Bruno Haible  <bruno@clisp.org>
22643
22644         iconv: Document HP-UX 11 bug.
22645         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22646
22647 2010-12-31  Bruno Haible  <bruno@clisp.org>
22648
22649         ldexpl: Fix link error on HP-UX 11.
22650         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22651         LDEXPL_LIBM, using $ISNANL_LIBM.
22652
22653 2010-12-31  Eric Blake  <eblake@redhat.com>
22654
22655         ftello: avoid compilation failure with SunStudio c89
22656         * lib/ftello.c (ftello): Use lseek, not llseek.
22657
22658         tests: avoid failing coreutils tests on cygwin
22659         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22660         (create_exe_shims_): Return 0 when skipping.
22661
22662 2010-12-31  Bruno Haible  <bruno@clisp.org>
22663
22664         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22665         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22666
22667 2010-12-31  Bruno Haible  <bruno@clisp.org>
22668
22669         waitpid: Fix link error in C++ mode.
22670         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22671
22672 2010-12-31  Bruno Haible  <bruno@clisp.org>
22673
22674         isnan: Use GCC built-ins when possible.
22675         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22676         __builtin_isnan.
22677         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22678         (isnan): Define using GCC built-ins for GCC >= 4.0.
22679
22680 2010-12-31  Bruno Haible  <bruno@clisp.org>
22681
22682         isnand: Fix mistake.
22683         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22684         __builtin_isnand.
22685
22686 2010-12-31  Bruno Haible  <bruno@clisp.org>
22687
22688         open: Avoid C++ error on HP-UX 11.
22689         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22690
22691 2010-12-31  Bruno Haible  <bruno@clisp.org>
22692
22693         time_r: Add missing declarations on HP-UX 11.
22694         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22695         instead of HAVE_LOCALTIME_R.
22696         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22697         HAVE_LOCALTIME_R always.
22698         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22699         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22700         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22701         HAVE_LOCALTIME_R.
22702         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22703         * doc/posix-functions/localtime_r.texi: Likewise.
22704
22705 2010-12-29  Eric Blake  <eblake@redhat.com>
22706
22707         mountlist: tweak previous commit
22708         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22709         Reported by Paul Eggert.
22710
22711         mountlist: fix local drive detection on cygwin
22712         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22713         that works for cygwin.
22714
22715 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22716
22717         ftoastr, snprintf: ftoastr + snprintf module
22718         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22719         since the snprintf module now should be good enough here.
22720         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22721         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22722         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22723         GNULIB_SNPRINTF only for the test directory, and the latter
22724         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22725         seems to suffice by itself.
22726
22727 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22728
22729         alloca: one step towards thread-safety
22730         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22731         need for a static variable.  All callers changed.  This does not
22732         make the alloca replacement thread-safe, but it's one step.
22733
22734         tests: minor indenting change
22735         * tests/init.sh: Sync from coreutils housekeeping patch
22736         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22737         to keep lines within 80 columns.
22738
22739 2010-12-28  Jim Meyering  <meyering@redhat.com>
22740
22741         regex: don't infloop on persistent failing calloc
22742         * lib/regexec.c (build_trtable): Return failure indication upon
22743         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22744         In glibc, this was fixed for version 2.13:
22745         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22746
22747 2010-12-28  Bruno Haible  <bruno@clisp.org>
22748             Paul Eggert <eggert@cs.ucla.edu>
22749
22750         linkat: Make implementation robust against system behaviour variations.
22751         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22752         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22753         way, and to -2 if it needs a generic runtime test.
22754         * lib/linkat.c (solaris_optimized_link_immediate,
22755         solaris_optimized_link_follow): New functions.
22756         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22757         (check_same_link): Use it.
22758
22759 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22760
22761         New module 'unigbrk/base'.
22762         * modules/unigbrk/base: New file.
22763         * lib/unigbrk.in.h: New file.
22764
22765         New module 'unigbrk/uc-gbrk-prop'.
22766         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22767         * modules/unigbrk/uc-gbrk-prop: New file.
22768         * lib/unigbrk/gbrkprop.h: New file.
22769         * lib/unigbrk/uc-gbrk-prop.c: New file.
22770
22771         New module 'unigbrk/uc-is-grapheme-break'.
22772         * modules/unigbrk/uc-is-grapheme-break: New file.
22773         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22774         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22775         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22776         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22777         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22778
22779         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22780
22781 2010-12-27  Bruno Haible  <bruno@clisp.org>
22782
22783         linkat test: Avoid failure on Solaris 11 2010-11.
22784         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22785
22786 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22787
22788         utimens: work around glibc rounding bug on more platforms
22789         * lib/utimens.c (fdutimens): Work around rounding bug even if
22790         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22791         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22792
22793 2010-12-27  Bruno Haible  <bruno@clisp.org>
22794
22795         select tests: Improve comments.
22796         * tests/test-select.c (do_select): Add comments.
22797
22798 2010-12-27  Bruno Haible  <bruno@clisp.org>
22799
22800         select tests: Safer way of handling timeout.
22801         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22802         at every invocation.
22803
22804 2010-12-27  Bruno Haible  <bruno@clisp.org>
22805
22806         select tests: Use 'bool' where appropriate.
22807         * tests/test-select.c (connect_to_socket): Change argument type to
22808         'bool'.
22809
22810 2010-12-27  Bruno Haible  <bruno@clisp.org>
22811
22812         select tests: Use existing modules.
22813         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22814         (configure.ac): Don't test for unistd.h.
22815         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22816         declared in <unistd.h>.
22817
22818 2010-12-27  Bruno Haible  <bruno@clisp.org>
22819
22820         mbrtowc: Work around a Solaris 7 bug.
22821         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22822         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22823         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22824         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22825         MBRTOWC_NULL_ARG1_BUG.
22826         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22827         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22828         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22829         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22830
22831 2010-12-27  Jim Meyering  <meyering@redhat.com>
22832
22833         read-file.c: tweak syntax
22834         * lib/read-file.c (fread_file): Remove space after "*" in function
22835         definitions.
22836
22837 2010-12-27  Bruno Haible  <bruno@clisp.org>
22838
22839         times test: Avoid gcc warnings on OSF/1.
22840         * tests/test-times.c (main): Cast printf arguments from clock_t to
22841         'long int'.
22842
22843 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22844
22845         utimens: work around glibc rounding bug on older Linux kernels
22846         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22847         on Linux with a glibc whose utimes might not work, then work
22848         around a longstanding glibc bug involving rounding rather than
22849         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22850         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22851
22852 2010-12-26  Bruno Haible  <bruno@clisp.org>
22853
22854         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22855         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22856         _GL_CXXALIAS_SYS.
22857         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22858
22859 2010-12-26  Bruno Haible  <bruno@clisp.org>
22860
22861         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22862         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22863         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22864         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22865         looking for the declaration.
22866         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22867         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22868         problem.
22869         * doc/posix-functions/inet_pton.texi: Likewise.
22870
22871 2010-12-26  Bruno Haible  <bruno@clisp.org>
22872
22873         arpa_inet: Use the common idioms with C++ support.
22874         * lib/arpa_inet.in.h: Include c++defs.h.
22875         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22876         support.
22877         * modules/arpa_inet (Depends-on): Add c++defs.
22878         (Makefile.am): Substitute the contents of c++defs.h.
22879         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22880         * modules/arpa_inet-c++-tests: New file.
22881         * tests/test-arpa_inet-c++.cc: New file.
22882
22883 2010-12-25  Bruno Haible  <bruno@clisp.org>
22884
22885         Fix more C++ link errors on Solaris 8.
22886         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22887         $(LIB_EACCESS).
22888         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22889         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22890         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22891         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22892         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22893
22894 2010-12-25  Bruno Haible  <bruno@clisp.org>
22895
22896         printf-posix: Fix link error when a non-GCC compiler is used.
22897         * lib/stdio.in.h (printf): When not using GCC, override printf
22898         correctly.
22899         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22900
22901 2010-12-25  Bruno Haible  <bruno@clisp.org>
22902
22903         strerror_r-posix: Update doc.
22904         * doc/posix-functions/strerror_r.texi: Update doc about the return
22905         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22906
22907 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22908
22909         utimens: simplify the logic of the previous change
22910         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22911         This should not affect whether the test succeeds or fails.
22912
22913         utimens: configure better on hosts with NFS clock skew
22914         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22915         uses the clock of the local host.  It might use the clock of the
22916         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22917         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22918
22919 2010-12-25  Bruno Haible  <bruno@clisp.org>
22920
22921         ptsname test: Avoid failure on Solaris.
22922         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22923         open a pseudo-terminal; don't use BSD-style ptys.
22924         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22925
22926 2010-12-25  Bruno Haible  <bruno@clisp.org>
22927
22928         ptsname: Avoid ERANGE failure on some systems.
22929         * lib/ptsname.c (buffer): Increase size.
22930
22931 2010-12-25  Bruno Haible  <bruno@clisp.org>
22932
22933         rename, renameat: Avoid test failures at NFS mounted locations.
22934         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22935         so that subsequent mkdir calls succeed.
22936
22937 2010-12-25  Bruno Haible  <bruno@clisp.org>
22938
22939         iswblank: Fix C++ link error on Solaris 8.
22940         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22941         _GL_FUNCDECL_SYS.
22942
22943 2010-12-25  Bruno Haible  <bruno@clisp.org>
22944
22945         unistd: Fix C++ link error on Solaris 8.
22946         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22947
22948 2010-12-25  Bruno Haible  <bruno@clisp.org>
22949
22950         readlink doc: Mention an old glibc bug.
22951         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22952
22953 2010-12-25  Bruno Haible  <bruno@clisp.org>
22954
22955         fcntl-h: Fix for use of C++ on glibc systems.
22956         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22957         also on glibc systems in C++ mode.
22958         Reported by Gary V. Vaughan <gary@gnu.org>.
22959
22960 2010-12-25  Bruno Haible  <bruno@clisp.org>
22961
22962         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22963         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22964
22965 2010-12-25  Bruno Haible  <bruno@clisp.org>
22966
22967         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22968         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22969         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22970         test whether truncl works according to ISO C 99 with IEC 60559.
22971         * m4/truncl-ieee.m4: New file.
22972         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22973         m4/signbit.m4.
22974         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22975
22976 2010-12-25  Bruno Haible  <bruno@clisp.org>
22977
22978         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22979         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22980         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22981         test whether ceill works according to ISO C 99 with IEC 60559.
22982         * m4/ceill-ieee.m4: New file.
22983         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22984         m4/signbit.m4.
22985         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22986
22987 2010-12-25  Bruno Haible  <bruno@clisp.org>
22988
22989         Ensure all prerequisites of <wchar.h> are included.
22990         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22991         before <wchar.h>.
22992         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22993         gl_MBRLEN_NUL_RETVAL): Likewise.
22994         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22995         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22996         AC_FUNC_MBRTOWC): Likewise.
22997         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22998         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22999         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23000         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23001         Likewise.
23002         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23003         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23004         (gl_WCHAR_H): Improve comments.
23005         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23006
23007 2010-12-25  Bruno Haible  <bruno@clisp.org>
23008
23009         strtok_r: Fix C syntax error in autoconf macro.
23010         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23011         characters in test program.
23012
23013 2010-12-24  Bruno Haible  <bruno@clisp.org>
23014
23015         ceil, trunc, round: Fix gcc warnings.
23016         * lib/ceil.c (MIN): Undefine before redefining.
23017         * lib/trunc.c (MIN): Likewise.
23018         * lib/round.c (MIN): Likewise.
23019         Include <math.h> first.
23020
23021 2010-12-24  Bruno Haible  <bruno@clisp.org>
23022
23023         select tests: Avoid failures on OSF/1 5.1.
23024         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23025         failure of closing the last socket; it may fail with ECONNRESET.
23026
23027 2010-12-24  Eric Blake  <eblake@redhat.com>
23028
23029         stdint: avoid HP-UX 10.20 preprocessor bug
23030         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23031         than #if.
23032         * tests/test-floor2.c (main): Likewise.
23033         Reported by Peter O'Gorman.
23034
23035         pipe: make obsoletion transition easier
23036         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23037         * modules/pipe (Files): Include revived file.
23038         (Include): Drop reference, to mirror getdate's behavior.
23039
23040 2010-12-24  Bruno Haible  <bruno@clisp.org>
23041
23042         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23043         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23044         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23045         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23046
23047 2010-12-24  Bruno Haible  <bruno@clisp.org>
23048
23049         gethostname: Ensure declaration on NonStop Kernel.
23050         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23051         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23052
23053 2010-12-24  Bruno Haible  <bruno@clisp.org>
23054
23055         sys_select: Ensure all necessary types on NonStop Kernel.
23056         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23057         include <sys/time.h>.
23058         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23059         NonStop Kernel.
23060         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23061
23062 2010-12-24  Bruno Haible  <bruno@clisp.org>
23063
23064         sys_select: Remove unneeded include.
23065         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23066         have <sys/select.h>.
23067
23068 2010-12-24  Bruno Haible  <bruno@clisp.org>
23069
23070         gethostname: Provide a fallback for HOST_NAME_MAX.
23071         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23072         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23073         instead.
23074         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23075
23076 2010-12-24  Bruno Haible  <bruno@clisp.org>
23077
23078         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23079         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23080         (SA_RESTART): Likewise.
23081         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23082
23083 2010-12-24  Bruno Haible  <bruno@clisp.org>
23084
23085         signal: Define NSIG.
23086         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23087         * tests/test-signal.c (nsig): New variable.
23088         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23089
23090 2010-12-24  Bruno Haible  <bruno@clisp.org>
23091
23092         rename, renameat: Avoid test failures on OSF/1 5.1.
23093         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23094         alternative error codes.
23095         * tests/test-renameat.c (main): Likewise.
23096
23097 2010-12-24  Bruno Haible  <bruno@clisp.org>
23098
23099         *printf: Detect large precisions bug on Solaris 10/SPARC.
23100         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23101         by Paul Eggert.
23102         * tests/test-snprintf-posix.h (test_function): Add this test code here
23103         too.
23104         * tests/test-sprintf-posix.h (test_function): Likewise.
23105         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23106         * tests/test-vasprintf-posix.c (test_function): Likewise.
23107         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23108         around by gnulib.
23109         * doc/posix-functions/printf.texi: Likewise.
23110         * doc/posix-functions/snprintf.texi: Likewise.
23111         * doc/posix-functions/sprintf.texi: Likewise.
23112         * doc/posix-functions/vfprintf.texi: Likewise.
23113         * doc/posix-functions/vprintf.texi: Likewise.
23114         * doc/posix-functions/vsnprintf.texi: Likewise.
23115         * doc/posix-functions/vsprintf.texi: Likewise.
23116         * doc/posix-functions/dprintf.texi: Undo last commit.
23117         * doc/posix-functions/vdprintf.texi: Likewise.
23118
23119 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23120
23121         tests: port test-fdutimensat.c to Solaris 8
23122         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23123         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23124         On Solaris 8, it fails with errno == ENOSYS, because there is no
23125         futimens (so it can't use the fd), and there is no lutimens (so it
23126         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23127
23128         vsnprintf: make more consistent with snprintf; doc fixes
23129
23130         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23131         the byte count return problem was promoted from the snprintf-posix
23132         to the snprintf module.
23133         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23134         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23135         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23136         * tests/test-snprintf.c (main): Check the byte count returned.
23137         * tests/test-vsnprintf.c (main): Likewise.
23138
23139 2010-12-23  Eric Blake  <eblake@redhat.com>
23140
23141         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23142         * modules/sigpipe (License): Relax license.
23143
23144 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23145
23146         doc: document Solaris printf bug with large float precisions
23147         * doc/posix-functions/dprintf.texi (dprintf):
23148         * doc/posix-functions/fprintf.texi (fprintf):
23149         * doc/posix-functions/printf.texi (printf):
23150         * doc/posix-functions/snprintf.texi (snprintf):
23151         * doc/posix-functions/sprintf.texi (sprintf):
23152         * doc/posix-functions/vdprintf.texi (vdprintf):
23153         * doc/posix-functions/vfprintf.texi (vfprintf):
23154         * doc/posix-functions/vprintf.texi (vprintf):
23155         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23156         * doc/posix-functions/vsprintf.texi (vsprintf):
23157         Mention that these functions mishandle large floating point
23158         precisions on Solaris 10.  The same bug is also present in Solaris
23159         8, and I assume earlier.  This causes "cd gnulib-tests; make
23160         check" to fail on Solaris 8 (and I assume, later) when building
23161         the latest coreutils, in test-vasprintf-posix's call to
23162         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23163         the wide flavors (e.g., wprintf) so this patch just updates the
23164         documentation for the narrow ones.
23165
23166         test-posixtm.c: add two tests
23167         * tests/test-posixtm.c: Add two tests, to highlight the
23168         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23169         around this bug; this is merely to document it.
23170
23171 2010-12-22  Bruno Haible  <bruno@clisp.org>
23172
23173         getlogin_r: Work around portability problem on OSF/1.
23174         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23175         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23176         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23177         test for a truncated result.
23178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23179         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23180         * modules/getlogin_r (Depends-on): Add memchr.
23181         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23182
23183 2010-12-22  Bruno Haible  <bruno@clisp.org>
23184
23185         ptsname: Avoid test failure on OSF/1 5.1.
23186         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23187         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23188         (same_slave): New function.
23189         (main): Use it to compare ptsname's result with the expected file name.
23190
23191 2010-12-22  Bruno Haible  <bruno@clisp.org>
23192
23193         Port extended stdio modules to HP NonStop Kernel.
23194         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23195         macros.
23196         * lib/fbufmode.c: Update comments.
23197         * lib/fflush.c: Likewise.
23198         * lib/fpurge.c: Likewise.
23199         * lib/freadable.c: Likewise.
23200         * lib/freadahead.c: Likewise.
23201         * lib/freading.c: Likewise.
23202         * lib/freadptr.c: Likewise.
23203         * lib/freadseek.c: Likewise.
23204         * lib/fseeko.c: Likewise.
23205         * lib/fseterr.c: Likewise.
23206         * lib/fwritable.c: Likewise.
23207         * lib/fwriting.c: Likewise.
23208         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23209
23210 2010-12-22  Bruno Haible  <bruno@clisp.org>
23211
23212         ttyname_r: Work around bug on OSF/1 5.1.
23213         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23214         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23215         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23216         present.
23217         * lib/ttyname_r.c (ttyname_r): Update comments.
23218
23219 2010-12-22  Bruno Haible  <bruno@clisp.org>
23220
23221         round: Implement result sign according to IEEE 754.
23222         * lib/round.c (MIN, MINUS_ZERO): New macros.
23223         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23224         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23225         * tests/test-round-ieee.c (main): Likewise.
23226         * tests/test-roundl-ieee.c (main): Likewise.
23227
23228         trunc: Implement result sign according to IEEE 754.
23229         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23230         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23231         * tests/test-trunc2.c: Include minus-zero.h.
23232         (MINUS_ZERO): New macro.
23233         (trunc_reference): Keep in sync with lib/trunc.c.
23234         * tests/test-truncf2.c: Include minus-zero.h.
23235         (MINUS_ZERO): New macro.
23236         (truncf_reference): Keep in sync with lib/trunc.c.
23237         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23238         * tests/test-trunc-ieee.c (main): Likewise.
23239         * tests/test-truncl-ieee.c (main): Likewise.
23240
23241         ceil: Implement result sign according to IEEE 754.
23242         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23243         (FUNC): Return -0.0 for -1 < x < 0.
23244         * tests/test-ceil2.c: Include minus-zero.h.
23245         (MINUS_ZERO): New macro.
23246         (ceil_reference): Keep in sync with lib/ceil.c.
23247         * tests/test-ceilf2.c: Include minus-zero.h.
23248         (MINUS_ZERO): New macro.
23249         (ceilf_reference): Keep in sync with lib/ceil.c.
23250         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23251         * tests/test-ceil-ieee.c (main): Likewise.
23252         * tests/test-ceill-ieee.c (main): Likewise.
23253
23254         floor: Implement result sign according to IEEE 754.
23255         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23256         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23257         * tests/test-floorf2.c (floorf_reference): Likewise.
23258         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23259         * tests/test-floor-ieee.c (main): Likewise.
23260         * tests/test-floorl-ieee.c (main): Likewise.
23261
23262 2010-12-22  Bruno Haible  <bruno@clisp.org>
23263
23264         getaddrinfo: Update doc.
23265         * doc/posix-functions/gai_strerror.texi: Return type is also different
23266         on AIX and HP-UX.
23267
23268 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23269
23270         getaddrinfo, inet_ntop: Update doc for Solaris.
23271         * doc/posix-functions/gai_strerror.texi: Return type is also an
23272         issue on Solaris 9 and earlier.
23273         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23274         on Solaris 10 and earlier.
23275
23276 2010-12-21  Bruno Haible  <bruno@clisp.org>
23277
23278         New module 'roundl-ieee'.
23279         * modules/roundl-ieee: New file.
23280         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23281         test whether roundl works according to ISO C 99 with IEC 60559.
23282         * m4/roundl-ieee.m4: New file.
23283         * modules/roundl-ieee-tests: New file.
23284         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23285         * tests/test-roundl.c (main): Remove signbit tests.
23286         * modules/roundl-tests (Depends-on): Remove signbit.
23287         * doc/posix-functions/roundl.texi: Mention the new module.
23288
23289 2010-12-21  Bruno Haible  <bruno@clisp.org>
23290
23291         New module 'truncl-ieee'.
23292         * modules/truncl-ieee: New file.
23293         * modules/truncl-ieee-tests: New file.
23294         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23295         * tests/test-truncl.c (main): Remove signbit tests.
23296         * modules/truncl-tests (Depends-on): Remove signbit.
23297         * doc/posix-functions/truncl.texi: Mention the new module.
23298
23299 2010-12-21  Bruno Haible  <bruno@clisp.org>
23300
23301         New module 'ceill-ieee'.
23302         * modules/ceill-ieee: New file.
23303         * modules/ceill-ieee-tests: New file.
23304         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23305         * tests/test-ceill.c (main): Remove signbit tests.
23306         * modules/ceill-tests (Depends-on): Remove signbit.
23307         * doc/posix-functions/ceill.texi: Mention the new module.
23308
23309 2010-12-21  Bruno Haible  <bruno@clisp.org>
23310
23311         New module 'floorl-ieee'.
23312         * modules/floorl-ieee: New file.
23313         * modules/floorl-ieee-tests: New file.
23314         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23315         * tests/test-floorl.c (main): Remove signbit tests.
23316         * modules/floorl-tests (Depends-on): Remove signbit.
23317         * doc/posix-functions/floorl.texi: Mention the new module.
23318
23319 2010-12-21  Bruno Haible  <bruno@clisp.org>
23320
23321         New module 'round-ieee'.
23322         * modules/round-ieee: New file.
23323         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23324         whether round works according to ISO C 99 with IEC 60559.
23325         * m4/round-ieee.m4: New file.
23326         * modules/round-ieee-tests: New file.
23327         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23328         * tests/test-round1.c (main): Remove signbit tests.
23329         * modules/round-tests (Depends-on): Remove 'signbit'.
23330         * doc/posix-functions/round.texi: Mention the new module.
23331
23332 2010-12-21  Bruno Haible  <bruno@clisp.org>
23333
23334         New module 'trunc-ieee'.
23335         * modules/trunc-ieee: New file.
23336         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23337         whether trunc works according to ISO C 99 with IEC 60559.
23338         * m4/trunc-ieee.m4: New file.
23339         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23341         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23342         * modules/trunc-ieee-tests: New file.
23343         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23344         * tests/test-trunc1.c (main): Remove signbit tests.
23345         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23346         * doc/posix-functions/trunc.texi: Mention the new module.
23347
23348 2010-12-21  Bruno Haible  <bruno@clisp.org>
23349
23350         New module 'ceil-ieee'.
23351         * modules/ceil-ieee: New file.
23352         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23353         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23354         ISO C 99 with IEC 60559.
23355         * m4/ceil-ieee.m4: New file.
23356         * modules/ceil (Files): Add lib/ceil.c.
23357         (Depends-on): Add 'float'.
23358         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23359         * lib/math.in.h (ceil): New declaration.
23360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23361         REPLACE_CEIL.
23362         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23363         * modules/ceil-ieee-tests: New file.
23364         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23365         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23366         * doc/posix-functions/ceil.texi: Mention the new module.
23367
23368 2010-12-21  Bruno Haible  <bruno@clisp.org>
23369
23370         New module 'floor-ieee'.
23371         * modules/floor-ieee: New file.
23372         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23373         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23374         ISO C 99 with IEC 60559.
23375         * m4/floor-ieee.m4: New file.
23376         * modules/floor (Files): Add lib/floor.c.
23377         (Depends-on): Add 'float'.
23378         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23379         * lib/math.in.h (floor): New declaration.
23380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23381         REPLACE_FLOOR.
23382         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23383         * modules/floor-ieee-tests: New file.
23384         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23385         * tests/test-math-c++.cc: Check the signature of 'floor'.
23386         * doc/posix-functions/floor.texi: Mention the new module.
23387
23388 2010-12-21  Bruno Haible  <bruno@clisp.org>
23389
23390         New module 'roundf-ieee'.
23391         * modules/roundf-ieee: New file.
23392         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23393         test whether roundf works according to ISO C 99 with IEC 60559.
23394         * m4/roundf-ieee.m4: New file.
23395         * modules/roundf-ieee-tests: New file.
23396         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23397         * tests/test-roundf1.c (main): Remove signbit tests.
23398         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23399         * doc/posix-functions/roundf.texi: Mention the new module.
23400
23401 2010-12-21  Bruno Haible  <bruno@clisp.org>
23402
23403         New module 'truncf-ieee'.
23404         * modules/truncf-ieee: New file.
23405         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23406         test whether truncf works according to ISO C 99 with IEC 60559.
23407         * m4/truncf-ieee.m4: New file.
23408         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23410         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23411         * modules/truncf-ieee-tests: New file.
23412         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23413         * tests/test-truncf1.c (main): Remove signbit tests.
23414         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23415         * doc/posix-functions/truncf.texi: Mention the new module.
23416
23417 2010-12-21  Bruno Haible  <bruno@clisp.org>
23418
23419         New module 'ceilf-ieee'.
23420         * modules/ceilf-ieee: New file.
23421         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23422         test whether ceilf works according to ISO C 99 with IEC 60559.
23423         * m4/ceilf-ieee.m4: New file.
23424         * modules/ceilf-ieee-tests: New file.
23425         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23426         * tests/test-ceilf1.c (main): Remove signbit tests.
23427         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23428         * doc/posix-functions/ceilf.texi: Mention the new module.
23429
23430 2010-12-21  Bruno Haible  <bruno@clisp.org>
23431
23432         New module 'floorf-ieee'.
23433         * modules/floorf-ieee: New file.
23434         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23435         test whether floorf works according to ISO C 99 with IEC 60559.
23436         * m4/floorf-ieee.m4: New file.
23437         * modules/floorf-ieee-tests: New file.
23438         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23439         * tests/test-floorf1.c (main): Remove signbit tests.
23440         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23441         * doc/posix-functions/floorf.texi: Mention the new module.
23442
23443 2010-12-21  Bruno Haible  <bruno@clisp.org>
23444
23445         Support for minus zero in autoconf macros.
23446         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23447         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23448         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23449         * tests/minus-zero.h: Update comments.
23450
23451 2010-12-21  Bruno Haible  <bruno@clisp.org>
23452
23453         Tests for module 'ceil'.
23454         * modules/ceil-tests: New file.
23455         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23456         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23457
23458 2010-12-21  Bruno Haible  <bruno@clisp.org>
23459
23460         Tests for module 'floor'.
23461         * modules/floor-tests: New file.
23462         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23463         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23464
23465 2010-12-21  Bruno Haible  <bruno@clisp.org>
23466
23467         math: Fix indentation.
23468         * lib/math.in.h (floorf): Fix indentation.
23469
23470 2010-12-21  Bruno Haible  <bruno@clisp.org>
23471
23472         Fix cross-compilation guesses on Solaris.
23473         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23474         not match "solaris2.10".
23475         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23476         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23477         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23478
23479 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23480
23481         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23482         This fixes a problem observed with the latest coreutils snapshot
23483         that caused a test to fail on Solaris 8.  src/csplit.c's call
23484         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23485         earlier, instead of returning the number of bytes that would have
23486         been generated; this causes csplit to incorrectly report memory
23487         exhaustion.
23488         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23489         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23490         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23491         comments to match.
23492         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23493         Fix typo in matching older versions of Solaris: "solaris2.10"
23494         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23495         only for guessing while cross-compiling.
23496         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23497
23498 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23499
23500         ftoastr: fix comment again
23501         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23502         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23503         Also, simplify example a bit by using flags = 0.
23504
23505 2010-12-20  Bruno Haible  <bruno@clisp.org>
23506
23507         round*, trunc*: Update documentation regarding glibc.
23508         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23509         * doc/posix-functions/round.texi: Likewise.
23510         * doc/posix-functions/roundl.texi: Likewise.
23511         * doc/posix-functions/truncf.texi: Likewise.
23512         * doc/posix-functions/trunc.texi: Likewise.
23513         * doc/posix-functions/truncl.texi: Likewise.
23514
23515 2010-12-20  Bruno Haible  <bruno@clisp.org>
23516
23517         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23518         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23519         * doc/posix-functions/round.texi: Likewise.
23520         * doc/posix-functions/roundl.texi: Likewise.
23521
23522 2010-12-20  Bruno Haible  <bruno@clisp.org>
23523
23524         ttyname_r: Add missing declaration on HP-UX 11.
23525         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23526         HAVE_TTYNAME_R.
23527         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23528         declared. Set HAVE_TTYNAME_R always.
23529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23530         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23531         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23532         HAVE_TTYNAME_R.
23533         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23534
23535 2010-12-20  Bruno Haible  <bruno@clisp.org>
23536
23537         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23538         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23539         * doc/posix-functions/getlogin_r.texi: Likewise.
23540         * tests/test-getlogin.c: Include <errno.h>.
23541         (main): Avoid test failure on HP-UX 11.11.
23542         * tests/test-getlogin_r.c (main): Likewise.
23543
23544 2010-12-20  Bruno Haible  <bruno@clisp.org>
23545
23546         getlogin_r: Add missing declaration on HP-UX 11.
23547         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23548         declared also when it exists as a function.
23549         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23550
23551 2010-12-20  Bruno Haible  <bruno@clisp.org>
23552
23553         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23554         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23555         through wcrtomb.
23556
23557 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23558
23559         ftoastr: fix comment
23560         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23561         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23562
23563 2010-12-19  Bruno Haible  <bruno@clisp.org>
23564
23565         isnan: Ensure it is a macro.
23566         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23567         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23568         Solaris.
23569
23570 2010-12-19  Bruno Haible  <bruno@clisp.org>
23571
23572         ldexpl test: Fix link error on OSF/1 5.1.
23573         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23574
23575 2010-12-19  Bruno Haible  <bruno@clisp.org>
23576
23577         wctype: Make it work in C++ mode on OSF/1 5.1.
23578         * lib/wctype.in.h (iswblank): Declare but not define here.
23579         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23580         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23581         * modules/wctype (Files): Add lib/iswblank.c.
23582
23583 2010-12-19  Bruno Haible  <bruno@clisp.org>
23584
23585         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23586         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23587         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23588
23589 2010-12-19  Bruno Haible  <bruno@clisp.org>
23590
23591         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23592         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23593         _POSIX_PII_SOCKET.
23594         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23595         * doc/posix-functions/recvfrom.texi: Likewise.
23596         * doc/posix-functions/send.texi: Likewise.
23597         * doc/posix-functions/sendto.texi: Likewise.
23598
23599 2010-12-19  Bruno Haible  <bruno@clisp.org>
23600
23601         tcgetsid: Add missing declaration on OSF/1 5.1.
23602         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23603         HAVE_TCGETSID.
23604         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23605         Don't set HAVE_TCGETSID.
23606         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23607         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23608         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23609         HAVE_TCGETSID.
23610         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23611
23612 2010-12-19  Bruno Haible  <bruno@clisp.org>
23613
23614         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23615         * lib/stdio.in.h: During the include_next statement, let recursive
23616         includes of this file include only the system header file.
23617
23618 2010-12-19  Bruno Haible  <bruno@clisp.org>
23619
23620         iconv_open: Fix regression from 2010-12-04.
23621         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23622         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23623
23624 2010-12-19  Bruno Haible  <bruno@clisp.org>
23625
23626         stdbool test: Avoid a gcc warning.
23627         * tests/test-stdbool.c (main): Fail if e1 is false.
23628         Reported by Jim Meyering.
23629
23630 2010-12-19  Jim Meyering  <meyering@redhat.com>
23631
23632         setenv: restore to working order
23633         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23634         mistakenly removed.
23635         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23636         HAVE_SETENV.
23637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23638         HAVE_SETENV.
23639
23640 2010-12-19  Bruno Haible  <bruno@clisp.org>
23641
23642         Document some different function declarations on OSF/1 5.1.
23643         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23644         * doc/posix-functions/inet_ntop.texi: Likewise.
23645         * doc/posix-functions/gethostname.texi: Likewise.
23646         * lib/unistd.in.h (gethostname): Update comment.
23647
23648 2010-12-19  Bruno Haible  <bruno@clisp.org>
23649
23650         doc: Mention vasprintf-posix module.
23651         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23652         the 'vasprintf-posix' module.
23653         * doc/glibc-functions/vasprintf.texi: Likewise.
23654
23655 2010-12-19  Bruno Haible  <bruno@clisp.org>
23656
23657         unsetenv: Add missing declaration on OSF/1 5.1.
23658         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23659         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23660         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23662         not HAVE_UNSETENV.
23663         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23664         HAVE_UNSETENV.
23665         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23666
23667 2010-12-19  Bruno Haible  <bruno@clisp.org>
23668
23669         setenv: Add missing declaration on OSF/1 5.1.
23670         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23671         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23672         declared. Don't set HAVE_SETENV.
23673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23674         not HAVE_SETENV.
23675         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23676         HAVE_SETENV.
23677         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23678
23679 2010-12-19  Bruno Haible  <bruno@clisp.org>
23680
23681         nl_langinfo tests: Avoid gcc warning.
23682         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23683
23684 2010-12-19  Bruno Haible  <bruno@clisp.org>
23685
23686         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23687         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23688         _GL_CXXALIAS_SYS.
23689
23690 2010-12-19  Bruno Haible  <bruno@clisp.org>
23691
23692         stdbool: Relax test.
23693         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23694         address to 'bool' work in static initializer, for compilers other than
23695         GCC.
23696
23697 2010-12-19  Bruno Haible  <bruno@clisp.org>
23698
23699         ftello: Add missing declaration on OSF/1 5.1.
23700         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23701         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23703         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23704         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23705
23706 2010-12-19  Bruno Haible  <bruno@clisp.org>
23707
23708         fseeko: Add missing declaration on OSF/1 5.1.
23709         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23710         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23712         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23713         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23714
23715 2010-12-19  Bruno Haible  <bruno@clisp.org>
23716
23717         fchdir: Add missing declaration on OSF/1 5.1.
23718         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23721         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23722         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23723
23724 2010-12-19  Bruno Haible  <bruno@clisp.org>
23725
23726         relocatable-prog-wrapper: Separate from relocatable-prog.
23727         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23728         uninstall-relocwrapper rule here.
23729         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23730         Reported by Ian Beckwith <ianb@erislabs.net>.
23731
23732 2010-12-19  Bruno Haible  <bruno@clisp.org>
23733
23734         unistr/u8-mbsnlen: Add missing dependency.
23735         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23736         Reported by Ian Beckwith <ianb@erislabs.net>.
23737
23738 2010-12-19  Bruno Haible  <bruno@clisp.org>
23739
23740         iconv: Make it possible again to use this module without 'iconv-h'.
23741         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23742         if it is not defined.
23743         Reported by Ian Beckwith <ianb@erislabs.net>.
23744
23745 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23746
23747         acl: port to Solaris 8 when copying from tmpfs to ufs
23748         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23749         error number.  Problem observed on Solaris 8 with latest
23750         coreutils, with "mv A B", where A is on a tmpfs file system and B
23751         is on a ufs file system.  This caused coreutils' mv/part-symlink
23752         test to fail.
23753
23754         tests: set fail=0 at start
23755         * tests/init.sh (setup_): Move fail=0 initialization here ...
23756         (mktempd_): ... from here, so that tests can rely on fail being
23757         set to 0 initially.  This fixes a problem in coreutils; see:
23758         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23759
23760 2010-12-18  Bruno Haible  <bruno@clisp.org>
23761
23762         memmem-simple: Stylistic changes.
23763         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23764         Fix preprocessor directive indentation.
23765
23766 2010-12-15  Pádraig Brady <P@draigBrady.com>
23767
23768         memmem, memmem-simple: reorganize and expand empty needle check
23769         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23770         functional checks to memmem-simple so that one has a fully functional
23771         memmem by using just this module.
23772         Restrict the performance only check to the memmem module.
23773         Also expand the empty needle check to ensure the correct
23774         pointer is returned, not just a non NULL pointer.
23775         * doc/glibc-functions/memmem.texi: Rearrange the portability
23776         documentation to correlate with the rearranged checks.
23777         Clarify exactly how the memmem and memmem-simple modules
23778         relate to each other.
23779
23780 2010-12-15  Pádraig Brady <P@draigBrady.com>
23781             Bruno Haible  <bruno@clisp.org>
23782
23783         Improve cross-compilation guesses for uClibc.
23784         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23785         that uClibc does not have the glibc bug.
23786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23787         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23788
23789 2010-12-14  Eric Blake  <eblake@redhat.com>
23790
23791         configmake: provide fallbacks for oldest supported autotools
23792         * m4/configmake.m4: New file.
23793         * modules/configmake (Files): Ship it.
23794         (configure.ac): Use it to guarantee fallbacks.
23795
23796 2010-12-13  Pádraig Brady <P@draigBrady.com>
23797
23798         read-file: Improve handling of large files
23799         * lib/read-file.c (fread_file): Minimize realloc()s
23800         for regular files, and better manage sizes around SIZE_MAX.
23801
23802 2010-12-13  Eric Blake  <eblake@redhat.com>
23803
23804         cloexec, fcntl: relax license
23805         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23806         consent from all contributors.
23807         * modules/fcntl (License): Likewise.
23808
23809 2010-12-10  Bruno Haible  <bruno@clisp.org>
23810
23811         Tests for module 'pipe-posix'.
23812         * modules/pipe-posix-tests: New file.
23813         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23814
23815 2010-12-10  Bruno Haible  <bruno@clisp.org>
23816
23817         pipe-posix: Make it work in C++ mode.
23818         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23819         (pipe): Use common idiom, not a macro definition.
23820         * lib/pipe.c: New file.
23821         * m4/pipe.m4: New file.
23822         * modules/pipe-posix (Description): Enhance.
23823         (Files): Add lib/pipe.c, m4/pipe.m4.
23824         (configure.ac): Invoke gl_FUNC_PIPE.
23825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23826         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23827         * tests/test-unistd-c++.cc: Check the signature of pipe.
23828
23829 2010-12-10  Bruno Haible  <bruno@clisp.org>
23830
23831         Rename module 'pipe' to 'spawn-pipe'.
23832         * modules/spawn-pipe: New file, renamed from modules/pipe.
23833         (Files, configure.ac, Makefile.am): Update.
23834         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23835         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23836         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23837         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23838         "spawn-pipe.h" instead of "pipe.h".
23839         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23840         to gl_SPAWN_PIPE.
23841         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23842         (Files, Makefile.am): Update.
23843         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23844         Update.
23845         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23846         Include "spawn-pipe.h" instead of "pipe.h".
23847         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23848         * lib/javacomp.c: Likewise.
23849         * lib/javaversion.c: Likewise.
23850         * lib/pipe-filter-gi.c: Likewise.
23851         * lib/pipe-filter-ii.c: Likewise.
23852         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23853         * modules/javacomp (Depends-on): Likewise.
23854         * modules/javaversion (Depends-on): Likewise.
23855         * modules/pipe-filter-gi (Depends-on): Likewise.
23856         * modules/pipe-filter-ii (Depends-on): Likewise.
23857         * MODULES.html.sh (Executing programs): Update.
23858         * NEWS: Mention the change.
23859
23860 2010-12-10  Eric Blake  <eblake@redhat.com>
23861
23862         pipe-posix: new module
23863         * modules/pipe-posix: New file.
23864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23865         (gl_UNISTD_H): Check for declaration.
23866         * modules/unistd (Makefile.am): Substitute it.
23867         * lib/unistd.in.h (pipe): Provide it for mingw.
23868         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23869         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23870
23871 2010-12-07  Bruno Haible  <bruno@clisp.org>
23872
23873         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23874         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23875         u8_strcmp_gnu.
23876         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23877
23878 2010-12-06  Bruno Haible  <bruno@clisp.org>
23879
23880         Update internal documentation.
23881         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23882
23883 2010-12-04  Bruno Haible  <bruno@clisp.org>
23884
23885         Put more information about failed tests into the test return codes.
23886         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23887         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23888         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23889         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23890         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23891         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23892         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23893         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23894         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23896         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23897         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23898         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23899         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23900         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23901         returns a bit mask.
23902         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23903         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23904         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23905         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23906         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23907         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23910         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23911         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23912         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23913         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23914         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23915         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23916         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23917         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23918         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23919         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23920         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23921         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23922         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23923         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23924         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23925         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23926         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23927         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23928         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23929         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23930         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23931         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23932         gl_PRINTF_PRECISION): Likewise.
23933         * m4/regex.m4 (gl_REGEX): Likewise.
23934         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23935         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23936         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23937         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23938         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23939         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23940         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23941         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23942         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23943         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23944         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23945         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23946         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23947         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23948         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23949         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23950         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23951         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23953         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23954         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23955         enumerated value.
23956         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23957
23958 2010-12-04  Bruno Haible  <bruno@clisp.org>
23959
23960         Update for Solaris 11 2010-11.
23961         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23962         Express, released in November 2010.
23963
23964 2010-12-04  Bruno Haible  <bruno@clisp.org>
23965
23966         nproc: Relax license.
23967         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23968         and Paul Eggert.
23969         Requested by Ludovic Courtès <ludo@gnu.org>.
23970
23971 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23972
23973         utimecmp: fine-grained src to nearby coarse-grained dest
23974
23975         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23976         and the source is on a file system with higher-resolution time
23977         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23978         not work, and the time stamps are close together, the algorithm to
23979         determine the exact resolution from the read-back mtime was buggy:
23980         it had a "!=" where it should have had an "==".  This bug has been
23981         in the code ever since it was introduced to gnulib.
23982         Problem reported by Dan Jacobson in
23983         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23984
23985 2010-11-30  Bruno Haible  <bruno@clisp.org>
23986
23987         strerror_r-posix: Fix autoconf test.
23988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23989
23990 2010-11-28  Bruno Haible  <bruno@clisp.org>
23991             Paul Eggert  <eggert@cs.ucla.edu>
23992
23993         Tests for module 'getdomainname'.
23994         * modules/getdomainname-tests: New file.
23995         * tests/test-getdomainname.c: New file, based on
23996         tests/test-gethostname.c.
23997
23998 2010-11-28  Bruno Haible  <bruno@clisp.org>
23999             Paul Eggert  <eggert@cs.ucla.edu>
24000
24001         getdomainname: Use the system function when possible.
24002         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24003         (getdomainname): Replace if needed. Provide the declaration if it is
24004         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24005         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24006         (getdomainname): When the system has getdomainname, call the system
24007         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24008         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24009         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24010         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24011         the function if its second argument is of type 'int' or if it is found
24012         in libnsl.
24013         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24014         <sys/systeminfo.h> and sysinfo().
24015         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24017         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24018         HAVE_GETDOMAINNAME.
24019         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24020         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24021         * doc/glibc-functions/getdomainname.texi: Document the problems with
24022         the getdomainname declaration.
24023
24024 2010-11-28  Bruno Haible  <bruno@clisp.org>
24025
24026         sys_socket: Ensure ss_family field on AIX.
24027         * lib/sys_socket.in.h (ss_family): New macro definition.
24028         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24029         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24030         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24031         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24032         * modules/sys_socket (Makefile.am): Substitute
24033         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24034         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24035
24036 2010-11-27  Bruno Haible  <bruno@clisp.org>
24037
24038         readline: Improve configure output.
24039         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24040         "checking for readline..." result understandable.
24041
24042 2010-11-27  Bruno Haible  <bruno@clisp.org>
24043
24044         *printf-posix: Detect a bug on Solaris 10/x86.
24045         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24046         for floating-point output.
24047         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24048         directive.
24049         * tests/test-snprintf-posix.h (test_function): Likewise.
24050         * tests/test-sprintf-posix.h (test_function): Likewise.
24051         * tests/test-vasprintf-posix.c (test_function): Likewise.
24052         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24053         * doc/posix-functions/printf.texi: Likewise.
24054         * doc/posix-functions/snprintf.texi: Likewise.
24055         * doc/posix-functions/sprintf.texi: Likewise.
24056         * doc/posix-functions/vfprintf.texi: Likewise.
24057         * doc/posix-functions/vprintf.texi: Likewise.
24058         * doc/posix-functions/vsnprintf.texi: Likewise.
24059         * doc/posix-functions/vsprintf.texi: Likewise.
24060         * doc/glibc-functions/obstack_printf.texi: Likewise.
24061         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24062
24063 2010-11-27  Bruno Haible  <bruno@clisp.org>
24064
24065         Fix link error when module libunistring-optional is in use.
24066         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24067         * modules/striconveha-tests (Makefile.am): Likewise.
24068
24069 2010-11-27  Bruno Haible  <bruno@clisp.org>
24070
24071         regex: Mention link dependencies.
24072         * modules/regex (Link): New section.
24073         * modules/rpmatch (Link): Likewise.
24074         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24075
24076 2010-11-27  Bruno Haible  <bruno@clisp.org>
24077
24078         ftoastr: Fix compilation error on Solaris.
24079         * lib/ftoastr.c: Include <config.h>.
24080
24081 2010-11-27  Bruno Haible  <bruno@clisp.org>
24082
24083         getloadavg: Update documentation.
24084         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24085
24086 2010-11-27  Bruno Haible  <bruno@clisp.org>
24087
24088         sys_socket: Fix test whether the functions are declared.
24089         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24090         not <sys/select.h>.
24091
24092 2010-11-27  Bruno Haible  <bruno@clisp.org>
24093
24094         getpass: Make sure to get system declaration on some platforms.
24095         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24096         gl_USE_SYSTEM_EXTENSIONS.
24097         * modules/getpass (Depends-on): Add extensions.
24098
24099 2010-11-26  Bruno Haible  <bruno@clisp.org>
24100
24101         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24102         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24103         'iconv' module is present.
24104         (ICONV_CONST): New macro.
24105         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24106         ICONV_CONST.
24107         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24108         set ICONV_CONST.
24109         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24110         here.
24111         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24112         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24113         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24114         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24115         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24116         present.
24117
24118 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24119
24120         ftoastr: comment fix
24121         * lib/ftoastr.c: "little" -> "little or no" in comment
24122
24123 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24124
24125         stdint: port to GCC 4.3 + OSX + Octave
24126         On this platform, stdint.h is buggy and defines int64_t to long
24127         long int.  The replacement defined it to long int, causing
24128         problems with C++ style name mangling.  Instead, trust the system
24129         definition if INT64_MAX is defined, and likewise for the unsigned
24130         variant.   Problem reported by Jarno Rajahalme in
24131         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24132         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24133         and don't mess with int64_t and INT64_MAX in this case.
24134         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24135
24136 2010-11-24  Bruno Haible  <bruno@clisp.org>
24137
24138         doc: Corrections regarding MacOS X 10.4 and 10.5.
24139         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24140         MacOS X.
24141         Reported by Simon Josefsson.
24142
24143 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24144
24145         Uninstall ".bin" files installed by relocwrapper.
24146         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24147         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24148         unless it is already there.
24149
24150 2010-11-21  Bruno Haible  <bruno@clisp.org>
24151
24152         Update for NetBSD 5.0.
24153         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24154         NetBSD; the test fails on NetBSD 5.0.
24155         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24156         about NetBSD.
24157
24158 2010-11-21  Bruno Haible  <bruno@clisp.org>
24159
24160         Update for HP-UX 11.23 and HP-UX 11.31.
24161         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24162         HP-UX.
24163
24164 2010-11-21  Bruno Haible  <bruno@clisp.org>
24165
24166         Update for MacOS X 10.5.
24167         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24168         MacOS X; the test fails on MacOS X 10.5.8.
24169         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24170         about MacOS X.
24171
24172 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24173
24174         bootstrap: add bootstrap_sync option.
24175         See discussion at
24176         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24177         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24178         * build-aux/bootstrap: Accept --bootstrap-sync to update
24179         bootstrap if it is not identical to the local gnulib's
24180         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24181         enable this by default.  Accept --no-bootstrap-sync to disable
24182         it.
24183
24184 2010-11-20  Bruno Haible  <bruno@clisp.org>
24185
24186         Ensure that <features.h> is included before __GLIBC__ is tested.
24187         * lib/printf-parse.h: Include <features.h>.
24188         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24189         Reported by Mike Frysinger <vapier@gentoo.org>.
24190
24191         Ensure that <features.h> is included before __GLIBC__ is tested.
24192         * lib/wchar.in.h: Include <features.h>.
24193         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24194         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24195         Reported by Mike Frysinger <vapier@gentoo.org>.
24196
24197         Ensure that <features.h> is included before __GLIBC__ is tested.
24198         * lib/arpa_inet.in.h: Include <features.h>.
24199         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24200         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24201         Reported by Mike Frysinger <vapier@gentoo.org>.
24202
24203         Ensure that <features.h> is included before __GLIBC__ is tested.
24204         * build-aux/link-warning.h: Include <features.h>.
24205         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24206         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24207         Reported by Mike Frysinger <vapier@gentoo.org>.
24208
24209         Ensure that <features.h> is included before __GLIBC__ is tested.
24210         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24211         Reported by Mike Frysinger <vapier@gentoo.org>.
24212
24213 2010-11-20  Bruno Haible  <bruno@clisp.org>
24214
24215         memmem: Fix autoconf test.
24216         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24217
24218 2010-11-20  Bruno Haible  <bruno@clisp.org>
24219
24220         Port to uClibc.
24221         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24222         * lib/fcntl.in.h: Likewise.
24223         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24224         * lib/mbrtowc.c (mbrtowc): Likewise.
24225         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24226         * lib/strerror_r.c: Likewise.
24227         * lib/unistr/u8-strnlen.c: Likewise.
24228         * lib/vasnprintf.c (decimal_point_char): Likewise.
24229         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24230         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24232         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24233         * tests/test-sigaction.c (handler, main): Likewise.
24234         * lib/freading.h: Treat uClibc like a non-glibc platform.
24235         * lib/freading.c: Likewise.
24236         * lib/gettext.h: Likewise.
24237         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24238         Likewise.
24239         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24240         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24241         * lib/propername.c (proper_name_utf8): Likewise.
24242         * lib/spawn.in.h: Likewise.
24243         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24244         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24245         mem_cd_iconveh_internal): Likewise.
24246         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24247         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24248         strstr, strcasestr): Likewise.
24249         * lib/unicodeio.c (unicode_to_mb): Likewise.
24250         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24251         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24252         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24253         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24254         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24255         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24256         * lib/unistr/u8-stpncpy.c: Likewise.
24257         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24258         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24259         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24260         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24261         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24262         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24263         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24264         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24266         Likewise.
24267         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24268         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24271         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24272         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24273         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24274         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24275         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24276         * tests/test-striconveha.c (main): Likewise.
24277         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24278         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24279         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24280         * doc/posix-functions/getline.texi: Likewise.
24281         Reported by Mike Frysinger <vapier@gentoo.org>.
24282
24283 2010-11-20  Bruno Haible  <bruno@clisp.org>
24284
24285         nproc: Fix condition.
24286         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24287         HAVE_PTHREAD_AFFINITY_NP.
24288
24289 2010-11-20  Bruno Haible  <bruno@clisp.org>
24290
24291         Fix a comment.
24292         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24293
24294 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24295
24296         ftoastr: don't assume snprintf
24297         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24298         Implement a subset of snprintf here, by using sprintf safely.
24299         * modules/ftoastr (Depends-on): Remove snprintf.
24300
24301 2010-11-19  Jim Meyering  <meyering@redhat.com>
24302
24303         test-rename.h: fix compilation failure
24304         * tests/test-rename.h (test_rename): Add omitted "}".
24305
24306 2010-11-17  Jim Meyering  <meyering@redhat.com>
24307
24308         maint.mk: add a URL discussing the no-@acronym policy
24309         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24310
24311 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24312
24313         ftoastr: depend on snprintf, improve comments
24314         * lib/ftoastr.c: Also mention Loitsch's draft.
24315         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24316         needed in the current implementation, but it might simplify
24317         speeding up the code later.
24318         * modules/ftoastr: Depend on snprintf; this improves portability.
24319         Suggested by Bruno Haible in the same email.
24320
24321         ftoastr: port to hosts lacking strtof and strtold
24322         Problem reported by Bruno Haible in
24323         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24324         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24325         environment and strtold (and presumably strtof) are not available.
24326         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24327         (configure.ac): Require gl_C99_STRTOLD.
24328
24329 2010-11-18  Bruno Haible  <bruno@clisp.org>
24330
24331         c-strtold: Avoid link error on AIX 7.
24332         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24333         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24334         (gl_C_STRTOLD): Test whether strtold_l exists.
24335         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24336
24337 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24338
24339         intprops: new macro INT_BITS_STRLEN_BOUND
24340         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24341         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24342         not exposed.  Also, it uses a slightly tighter bound than before;
24343         though this makes no practical difference, we might as well be as
24344         tight as we easily can.
24345
24346         ftoastr: new module, for lossless conversion of floats to short strings
24347         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24348         * modules/ftoastr: New files.
24349
24350 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24351
24352         bootstrap: port to Solaris sed
24353         * build-aux/bootstrap (get_version): Port to Solaris sed.
24354         See Ralf Wildenhues's note in
24355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24356
24357 2010-11-14  Jim Meyering  <meyering@redhat.com>
24358
24359         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24360         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24361         and move definition closer to sole use.
24362
24363 2010-11-13  Jim Meyering  <meyering@redhat.com>
24364
24365         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24366         Now we require at least autoconf-2.59, which means the work-around
24367         is no longer needed.
24368         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24369         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24370         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24371         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24372         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24373
24374 2010-11-13  Bruno Haible  <bruno@clisp.org>
24375
24376         rename, renameat: Avoid test failures at NFS mounted locations.
24377         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24378         functions.
24379         (test_rename): Use assert_nonexistent.
24380         * tests/test-rename.c: Include <dirent.h>.
24381         * tests/test-renameat.c: Likewise.
24382         Reported by Gary V. Vaughan <gary@gnu.org>.
24383
24384         rename, renameat: Document Linux bug with NFS
24385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24386         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24387         * doc/posix-functions/renameat.texi: Likewise.
24388         Suggested by Eric Blake.
24389
24390 2010-11-13  Bruno Haible  <bruno@clisp.org>
24391
24392         rename test: Add comments.
24393         * tests/test-rename.h (test_rename): Add structure and comments.
24394
24395 2010-11-13  Eric Blake  <eblake@redhat.com>
24396
24397         maintainer-makefile: cover a few more files
24398         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24399         scripts generated within C files, for libvirt.
24400
24401 2010-11-13  Bruno Haible  <bruno@clisp.org>
24402
24403         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24404         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24405         character, return the number of bytes that belong together, not always
24406         1.
24407         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24408         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24409         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24410         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24411         number of bytes of an invalid character.
24412         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24413         (main): Invoke it.
24414         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24415         results.
24416         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24417         malformed byte sequences.
24418         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24419         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24420         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24421         Reported by Ben Pfaff and Paolo Bonzini.
24422
24423 2010-11-13  Bruno Haible  <bruno@clisp.org>
24424
24425         openat: Work around glibc bug with fchownat() and empty file names.
24426         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24427         (gl_FUNC_FCHOWNAT): Invoke it.
24428         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24429         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24430         Reported by Gary V. Vaughan <gary@gnu.org>.
24431
24432 2010-11-13  Bruno Haible  <bruno@clisp.org>
24433
24434         openat: Ensure autoconf macro ordering.
24435         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24436         gl_USE_SYSTEM_EXTENSIONS.
24437         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24438
24439 2010-11-13  Bruno Haible  <bruno@clisp.org>
24440
24441         Update comments.
24442         * lib/unistr/u8-check.c: Update file name in comments.
24443         * lib/unistr/u8-mblen.c: Likewise.
24444         * lib/unistr/u8-prev.c: Likewise.
24445         * lib/unistr/u8-strmblen.c: Likewise.
24446         * lib/unistr/u8-strmbtouc.c: Likewise.
24447
24448 2010-11-13  Jim Meyering  <meyering@redhat.com>
24449
24450         tests: avoid test failure on Solaris 10 due to lack of PATH export
24451         * tests/test-update-copyright.sh: Don't forget to export PATH.
24452
24453         init.sh: ensure that IFS is defined, just in case...
24454         * tests/init.sh (setup_): Ensure that IFS is defined,
24455         so that saving and restoring it works as expected.  This
24456         appears to be useful at least for an old version of dash
24457         from a long time ago (RH 6).  See here for details:
24458         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24459
24460         maint.mk: tighten "test a == b" check
24461         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24462         test to files that contain something like #!/bin/sh.
24463         Without this, coreutils would get two false positives in
24464         the comments of C source files.
24465
24466 2010-11-12  Eric Blake  <eblake@redhat.com>
24467
24468         bootstrap: fix typo in previous attempt
24469         * build-aux/bootstrap (buildreq): Correct the grouping.
24470         Reported by Paul Eggert.
24471
24472         maintainer-makefile: prohibit test x == x
24473         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24474         Based on a report by Matthias Bolte.
24475
24476         bootstrap: allow FreeBSD gzip
24477         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24478         which has no '.' and goes to stderr.
24479         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24480         Reported by Matthias Bolte.
24481
24482         maintainer-makefile: check for i18n setup
24483         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24484         will likely work.
24485
24486 2010-11-12  Bruno Haible  <bruno@clisp.org>
24487
24488         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24489         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24490         * lib/nanosleep.c (nanosleep): Likewise.
24491
24492 2010-11-11  Bruno Haible  <bruno@clisp.org>
24493
24494         fcntl-h: Fix for use of C++ on glibc systems.
24495         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24496         also on glibc systems in C++ mode.
24497         Reported by Gary V. Vaughan <gary@gnu.org>.
24498
24499 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24500
24501         mknod: avoid false failure with dash
24502         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24503
24504 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24505
24506         unlink: Fix "is it should" typo in diagnostic.
24507         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24508         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24509
24510 2010-11-11  Bruno Haible  <bruno@clisp.org>
24511
24512         Tests for module 'strerror_r-posix'.
24513         * modules/strerror_r-posix-tests: New file.
24514         * tests/test-strerror_r.c: New file.
24515         * tests/test-string-c++.cc: Check the signature of strerror_r.
24516
24517         New module 'strerror_r-posix'.
24518         * lib/string.in.h (strerror_r): New declaration.
24519         * lib/strerror_r.c: New file.
24520         * m4/strerror_r.m4: New file.
24521         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24522         of strerror_r.
24523         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24524         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24525         * modules/strerror_r-posix: New file.
24526         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24527         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24528         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24529         portability problems.
24530
24531 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24532
24533         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24534         line is also considered for output. Quoted function name in shell
24535         command, so temporary files for functions like MyClass::operator()
24536         are removed correctly without errors.
24537
24538 2010-11-09  Bruno Haible  <bruno@clisp.org>
24539
24540         * doc/posix-functions/strerror.texi: List more failing platforms.
24541
24542         * doc/posix-functions/strerror.texi: Add a comment.
24543
24544 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24545
24546         fdopendir: fix bug on MacOS X when low on file descriptors
24547
24548         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24549         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24550         All callers changed.
24551         (fdopendir): Invoke save_cwd at the top level, not after using
24552         multiple dup() calls to use up file descriptors.  Then retry
24553         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24554         less than the maximum number of open file descriptors, because
24555         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24556         on Mac OS X 10.6.4 for tar 1.24
24557         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24558         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24559         and for tar 1.25
24560         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24561
24562 2010-11-07  Bruno Haible  <bruno@clisp.org>
24563
24564         vasnprintf: Support I flag on glibc systems.
24565         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24566         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24567         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24568         snprintf function.
24569         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24570         glibc systems.
24571         * tests/test-vasnprintf-posix3.c: New file.
24572         * modules/vasnprintf-posix-tests (Files): Add it.
24573         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24574
24575 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24576
24577         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24578         * MODULES.html.sh: For compiler warnings, use name
24579         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24580
24581 2010-11-05  Eric Blake  <eblake@redhat.com>
24582
24583         ceil, floor: avoid spurious failure with icc
24584         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24585         [denormals-as-zero] when optimizing without -mieee-fp option.
24586         * tests/test-floorf2.c (floorf_reference): Likewise.
24587         * tests/test-ceilf1.c (dummy): New function.
24588         (main): Use it to outsmart icc's optimization.
24589         * tests/test-floorf1.c (dummy, main): Likewise.
24590
24591         tests: require working signbit
24592         * modules/ceilf-tests (Depends-on): Add signbit.
24593         * modules/ceill-tests (Depends-on): Likewise.
24594         * modules/floorf-tests (Depends-on): Likewise.
24595         * modules/floorl-tests (Depends-on): Likewise.
24596         * modules/round-tests (Depends-on): Likewise.
24597         * modules/roundf-tests (Depends-on): Likewise.
24598         * modules/roundl-tests (Depends-on): Likewise.
24599         * modules/trunc-tests (Depends-on): Likewise.
24600         * modules/truncf-tests (Depends-on): Likewise.
24601         * modules/truncl-tests (Depends-on): Likewise.
24602
24603         strtod: work around icc bug
24604         * lib/strtod.c (minus_zero): Define to working value.
24605         (strtod): Use it to avoid icc bug.
24606
24607         copysign: enhance tests
24608         * modules/copysign-tests (Files): Add minus-zero.h.
24609         * tests/test-copysign.c (main): Also test zeros.
24610
24611 2010-11-04  Eric Blake  <eblake@redhat.com>
24612
24613         ceil, floor, round, trunc: enhance tests of -0
24614         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24615         * tests/test-ceill.c (main): Likewise.
24616         * tests/test-floorf1.c (main): Likewise.
24617         * tests/test-floorl.c (main): Likewise.
24618         * tests/test-round1.c (main): Likewise.
24619         * tests/test-roundf1.c (main): Likewise.
24620         * tests/test-roundl.c (main): Likewise.
24621         * tests/test-trunc1.c (main): Likewise.
24622         * tests/test-truncf1.c (main): Likewise.
24623         * tests/test-truncl.c (main): Likewise.
24624
24625 2010-11-04  Eric Blake  <eblake@redhat.com>
24626
24627         frexp, tests: work around ICC bug with -zero
24628         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24629         works with more compilers.
24630         * tests/minus-zero.h: New file.
24631         * modules/ceilf-tests (Files): Include it.
24632         * modules/ceill-tests (Files): Likewise.
24633         * modules/floorf-tests (Files): Likewise.
24634         * modules/floorl-tests (Files): Likewise.
24635         * modules/frexp-nolibm-tests (Files): Likewise.
24636         * modules/frexp-tests (Files): Likewise.
24637         * modules/frexpl-nolibm-tests (Files): Likewise.
24638         * modules/frexpl-tests (Files): Likewise.
24639         * modules/isnan-tests (Files): Likewise.
24640         * modules/isnand-nolibm-tests (Files): Likewise.
24641         * modules/isnand-tests (Files): Likewise.
24642         * modules/isnanf-nolibm-tests (Files): Likewise.
24643         * modules/isnanf-tests (Files): Likewise.
24644         * modules/isnanl-nolibm-tests (Files): Likewise.
24645         * modules/isnanl-tests (Files): Likewise.
24646         * modules/round-tests (Files): Likewise.
24647         * modules/roundf-tests (Files): Likewise.
24648         * modules/roundl-tests (Files): Likewise.
24649         * modules/ldexpl-tests (Files): Likewise.
24650         * modules/signbit-tests (Files): Likewise.
24651         * modules/snprintf-posix-tests (Files): Likewise.
24652         * modules/sprintf-posix-tests (Files): Likewise.
24653         * modules/strtod-tests (Files): Likewise.
24654         * modules/trunc-tests (Files): Likewise.
24655         * modules/truncf-tests (Files): Likewise.
24656         * modules/truncl-tests (Files): Likewise.
24657         * modules/vsnprintf-posix-tests (Files): Likewise.
24658         * modules/vsprintf-posix-tests (Files): Likewise.
24659         * modules/vasnprintf-posix-tests (Files): Likewise.
24660         * modules/vasprintf-posix-tests (Files): Likewise.
24661         * tests/test-ceilf1.c (main): Use it.
24662         * tests/test-ceill.c (main): Likewise.
24663         * tests/test-floorf1.c (main): Likewise.
24664         * tests/test-floorl.c (main): Likewise.
24665         * tests/test-frexp.c (main): Likewise.
24666         * tests/test-frexpl.c (main): Likewise.
24667         * tests/test-isnan.c (main): Likewise.
24668         * tests/test-isnand.h (main): Likewise.
24669         * tests/test-isnanf.h (main): Likewise.
24670         * tests/test-isnanl.h (main): Likewise.
24671         * tests/test-ldexpl.c (main): Likewise.
24672         * tests/test-round.c (main): Likewise.
24673         * tests/test-roundf.c (main): Likewise.
24674         * tests/test-roundl.c (main): Likewise.
24675         * tests/test-signbit.c (test_signbitf, test_signbitd)
24676         (test_signbitl): Likewise.
24677         * tests/test-snprintf-posix.h (test_function): Likewise.
24678         * tests/test-sprintf-posix.h (test_function): Likewise.
24679         * tests/test-strtod.c (main): Likewise.
24680         * tests/test-trunc1.c (main): Likewise.
24681         * tests/test-truncf1.c (main): Likewise.
24682         * tests/test-truncl.c (main): Likewise.
24683
24684         isnanl: work around icc bug
24685         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24686
24687 2010-11-03  Eric Blake  <eblake@redhat.com>
24688
24689         tests: fix compiler warnings
24690         * tests/test-getopt.h (test_getopt): Fix condition.
24691         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24692         * tests/test-pipe2.c (main): Likewise.
24693         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24694
24695         utimens: fix broken m4 test
24696         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24697
24698 2010-10-28  Bruno Haible  <bruno@clisp.org>
24699
24700         posix_spawn*, getdtablesize: Relax license.
24701         * modules/posix_spawn (License): Change to LGPLv2+.
24702         * modules/posix_spawnp (License): Likewise.
24703         * modules/posix_spawn-internal (License): Likewise.
24704         * modules/posix_spawnattr_init (License): Likewise.
24705         * modules/posix_spawnattr_getflags (License): Likewise.
24706         * modules/posix_spawnattr_setflags (License): Likewise.
24707         * modules/posix_spawnattr_getpgroup (License): Likewise.
24708         * modules/posix_spawnattr_setpgroup (License): Likewise.
24709         * modules/posix_spawnattr_getschedparam (License): Likewise.
24710         * modules/posix_spawnattr_setschedparam (License): Likewise.
24711         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24712         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24713         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24714         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24715         * modules/posix_spawnattr_getsigmask (License): Likewise.
24716         * modules/posix_spawnattr_setsigmask (License): Likewise.
24717         * modules/posix_spawnattr_destroy (License): Likewise.
24718         * modules/posix_spawn_file_actions_init (License): Likewise.
24719         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24720         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24721         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24722         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24723         * modules/getdtablesize (License): Likewise.
24724         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24725
24726 2010-10-26  Bruno Haible  <bruno@clisp.org>
24727
24728         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24729         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24730         Cygwin and mingw.
24731         Suggested by Eric Blake.
24732
24733 2010-10-26  Bruno Haible  <bruno@clisp.org>
24734
24735         stdio: Work around compilation error due to renameat() on Solaris 10.
24736         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24737         * lib/renameat.c: Don't include <unistd.h> here.
24738         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24739         Reported by Paul Eggert and Eric Blake.
24740
24741 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24742
24743         renameat: port to Solaris 10, which declares renameat in unistd.h
24744
24745         * lib/renameat.c: Include unistd.h before stdio.h, because
24746         Solaris 10 declares renameat in unistd.h.  Problem encountered
24747         when building GNU tar 1.24 on Solaris 10.
24748
24749 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24750
24751         fdopendir: fix C89 compilation
24752         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24753         compilers.
24754
24755 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24756
24757         inttostr: simplify by removing unnecessary redundancy
24758         * lib/anytostr.c: Don't include verify.h.
24759         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24760         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24761         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24762         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24763         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24764         Likewise.
24765         * modules/inttostr (Depends-on): Remove 'verify'.
24766
24767 2010-10-23  Bruno Haible  <bruno@clisp.org>
24768
24769         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24770         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24771         Reported by Eric Blake.
24772
24773 2010-10-23  Bruno Haible  <bruno@clisp.org>
24774
24775         Tests: Fix LOCALE_JA on MirBSD 10.
24776         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24777         to an UTF-8 locale.
24778         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24779         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24780         Reported by Eric Blake.
24781
24782 2010-10-21  Bruno Haible  <bruno@clisp.org>
24783
24784         nl_langinfo test: Avoid test failure on NetBSD 5.
24785         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24786         Reported by Eric Blake.
24787
24788 2010-10-21  Eric Blake  <eblake@redhat.com>
24789
24790         c-stack: work around libsigsegv 2.8 bug
24791         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24792         overflow on at least PowerPC64.
24793
24794 2010-10-17  Bruno Haible  <bruno@clisp.org>
24795
24796         userspec: Drop redundant file.
24797         * modules/userspec (Files): Remove lib/inttostr.h.
24798
24799 2010-10-17  Bruno Haible  <bruno@clisp.org>
24800
24801         nl_langinfo tests: Silence some warnings.
24802         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24803         Reported by Jim Meyering.
24804
24805 2010-10-17  Bruno Haible  <bruno@clisp.org>
24806
24807         Make use of GCC's attribute __alloc_size__.
24808         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24809         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24810         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24811         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24812         __alloc_size__.
24813         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24814         Suggested by Jim Meyering.
24815
24816 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24817
24818         bootstrap: anchor .gitignore entries.
24819         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24820         with...
24821         (insert_vc_ignore): ... this new function, which prepends `/' to
24822         all .gitignore entries before passing them to
24823         insert_sorted_if_absent.
24824
24825 2010-10-16  Bruno Haible  <bruno@clisp.org>
24826
24827         nextafter: Fix configure check.
24828         * modules/nextafter (configure.ac): Correct expected prototype.
24829
24830 2010-10-16  Bruno Haible  <bruno@clisp.org>
24831
24832         termios: Update documentation.
24833         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24834
24835 2010-10-16  Bruno Haible  <bruno@clisp.org>
24836
24837         tests: Make them compile with TinyCC.
24838         * tests/test-strstr.c (main): Remove parentheses around array
24839         initializer.
24840
24841 2010-10-15  Eric Blake  <eblake@redhat.com>
24842
24843         ignore-value: make header idempotent
24844         * lib/ignore-value.h: Add double-inclusion guards.
24845         Reported by Stefan Berger.
24846
24847 2010-10-15  Jim Meyering  <meyering@redhat.com>
24848
24849         GNUmakefile: handle "stable" target, not "major"
24850         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24851         lists in maint.mk and announce-gen.  Without this, "make stable"
24852         would fail to ensure that $(VERSION) is up to date.
24853
24854 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24855
24856         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24857         & co.
24858
24859 2010-10-14  Bruno Haible  <bruno@clisp.org>
24860
24861         vasnprintf: Don't set errno to 0.
24862         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24863         block that sets it to 0.
24864         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24865
24866 2010-10-14  Bruno Haible  <bruno@clisp.org>
24867
24868         socketlib: Fix.
24869         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24870         gl_PREREQ_SYS_H_WINSOCK2.
24871         Reported by Ian Beckwith <ianb@erislabs.net>.
24872
24873 2010-10-13  Jim Meyering  <meyering@redhat.com>
24874
24875         test-select-stdin.c: avoid warn_unused_result warnings
24876         * tests/test-select-stdin.c: Include "macros.h".
24877         ASSERT that read and fflush succeed.
24878
24879 2010-10-13  Jim Meyering  <meyering@redhat.com>
24880
24881         git-version-gen: do require git-VC'd files in cwd
24882         * build-aux/git-version-gen: Reject a git version string
24883         if there are no commits associated with the current directory.
24884         This avoids an unlikely false-positive (unrelated dir whose parent
24885         repository also contains a tag matching v*), as pointed out
24886         by Giuseppe Scrivano in
24887         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24888
24889 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24890
24891         argv-iter: omit nonconforming declaration
24892         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24893         enum arg_iter_err declaration, which doesn't conform to C99.
24894         Solaris 10 cc warns about this.
24895
24896 2010-10-13  Eric Blake  <eblake@redhat.com>
24897
24898         termios: fix compilation on mingw
24899         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24900         (gl_TERMIOS_H): Adjust it on mingw.
24901         * modules/termios (Makefile.am): Substitute new key.
24902         * lib/termios.in.h (includes): Make include_next conditional.
24903         * doc/posix-headers/termios.texi (termios.h): Update
24904         documentation.
24905         Reported by Daniel P. Berrange.
24906
24907 2010-10-13  Jim Meyering  <meyering@redhat.com>
24908
24909         git-version-gen: don't require that .git/ be in the current dir
24910         * build-aux/git-version-gen: Adjust this script so that it works
24911         when run from any working directory beneath the top-level .git/-
24912         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24913         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24914
24915         test-select: avoid warn_unused_result warnings
24916         * tests/test-select.c: Include "macros.h".
24917         ASSERT that each call to read, write, and pipe succeeds.
24918         While not technically required, also check each "close".
24919         * modules/select-tests (Files): Add tests/macros.h.
24920
24921         test-symlinkat: remove declaration of unused local
24922         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24923
24924         test-inttostr: avoid shadowing warnings
24925         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24926         and use malloc rather than the stack for the same reason as
24927         mentioned in the comment justifying the other allocation.
24928
24929 2010-10-11  Bruno Haible  <bruno@clisp.org>
24930
24931         stdlib: Allow multiple gnulib generated replacements to coexist.
24932         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24933         Reported by Sam Steingold <sds@gnu.org>.
24934
24935 2010-10-11  Jim Meyering  <meyering@redhat.com>
24936
24937         fix a documentation typo
24938         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24939
24940 2010-10-11  Eric Blake  <eblake@redhat.com>
24941
24942         futimens: work around Solaris 11 bug
24943         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24944         * tests/test-futimens.h (test_futimens): Enhance, rather than
24945         weaken test.
24946         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24947
24948 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24949
24950         Indentation.
24951         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24952         higher-level operators more to the left.
24953
24954 2010-10-11  Jim Meyering  <meyering@redhat.com>
24955
24956         test-futimens: avoid unwarranted test failure on Solaris 5.11
24957         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24958         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24959         because it tries to dereference the NULL name argument.
24960
24961 2010-10-11  Bruno Haible  <bruno@clisp.org>
24962
24963         Indentation.
24964         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24965         indentation.
24966
24967 2010-10-11  Jim Meyering  <meyering@redhat.com>
24968
24969         spawn.in.h: make indentation consistent with parentheses
24970         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24971         Make indentation consistent with parentheses.
24972
24973 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24974
24975         Fix mismatched parens in previous commit
24976         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24977         parens.
24978
24979 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24980
24981         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24982
24983         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24984         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24985         * lib/malloca.c: Include "verify.h".
24986         (verify1): Remove, replacing with a verify call.
24987         * lib/relocwrapper.c (verify1): Likewise.
24988         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24989         Likewise.
24990         * modules/malloca (Depends-on): Add 'verify'.
24991         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24992         * modules/vasnprintf (Depends-on): Add 'verify'.
24993         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24994         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24995         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24996         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24997         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24998         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24999         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25000
25001         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25002
25003         Formerly the style was sometimes 2*X - 1, because the C standard
25004         was wrongly thought to disallow ?: in integral constant expressions.
25005         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25006         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25007         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25008         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25009         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25010         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25011         verify that time_t cannot be floating.
25012
25013 2010-10-08  Eric Blake  <eblake@redhat.com>
25014
25015         time: enforce recent POSIX ruling that time_t is integral
25016         * lib/time.in.h (__time_t_must_be_integral): Detect any
25017         problematic systems, allowing the rest of gnulib to assume POSIX.
25018
25019 2010-10-08  Jim Meyering  <meyering@redhat.com>
25020
25021         fdopendir: fix a bug on systems lacking openat and /proc support
25022         OpenBSD 4.7 is one such system.  The most noticeable effect was
25023         failure of any application making nontrivial use of fts: rm, du,
25024         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25025           ./rm: traversal failed: `a': Bad file descriptor
25026         Debugging that, you see that even though FD 6 was closed just
25027         prior to the opendir call in fd_clone_opendir, its resulting
25028         dir->dd_fd was 8, rather than the expected value of 6:
25029
25030         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25031         93                close (fd);
25032         (gdb) n
25033         94                dir = fd_clone_opendir (dupfd);
25034         (gdb) n
25035         95                saved_errno = errno;
25036         (gdb) p dir->dd_fd
25037         $11 = 8
25038
25039         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25040         The problem is that on OpenBSD, fd_clone_opendir has to resort
25041         to using the old-style save/restore CWD mechanism, due to its
25042         lack of openat/proc support, and *that* would steal the FD (6)
25043         that opendir was supposed to use.
25044
25045         The fix is to squirrel away the desired FD so that save_cwd uses a
25046         different one, and then free the dest FD right before calling opendir.
25047         That guarantees opendir will use the required file descriptor.
25048
25049         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25050
25051 2010-10-08  Bruno Haible  <bruno@clisp.org>
25052
25053         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25054         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25055
25056 2010-10-08  Bruno Haible  <bruno@clisp.org>
25057
25058         nanosleep: Make replacement POSIX compliant.
25059         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25060         is out of range.
25061         Reported by Jim Meyering.
25062
25063 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25064
25065         bootstrap: add hook for altering gnulib.mk, for Bison
25066         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25067         the Bison bootstrapping process can rewrite file names and variables
25068         in this file before later parts of 'bootstrap' use the file.
25069         Bison wants to include lib/gnulib.mk from the top-level makefile,
25070         so it needs the file names in this file to be relative to the top
25071         level, not relative to lib; plus it needs variable names to be
25072         rewritten.
25073         (slurp): Use the new function.
25074
25075         bootstrap: reformat for readability
25076         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25077
25078 2010-10-08  Eric Blake  <eblake@redhat.com>
25079
25080         docs: update cygwin progress
25081         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25082         1.7.7.
25083         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25084         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25085         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25086         * doc/posix-functions/carg.texi (carg): Likewise.
25087         * doc/posix-functions/cargf.texi (cargf): Likewise.
25088         * doc/posix-functions/casin.texi (casin): Likewise.
25089         * doc/posix-functions/casinf.texi (casinf): Likewise.
25090         * doc/posix-functions/casinh.texi (casinh): Likewise.
25091         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25092         * doc/posix-functions/catan.texi (catan): Likewise.
25093         * doc/posix-functions/catanf.texi (catanf): Likewise.
25094         * doc/posix-functions/catanh.texi (catanh): Likewise.
25095         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25096         * doc/posix-functions/ccos.texi (ccos): Likewise.
25097         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25098         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25099         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25100         * doc/posix-functions/cexp.texi (cexp): Likewise.
25101         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25102         * doc/posix-functions/cimag.texi (cimag): Likewise.
25103         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25104         * doc/posix-functions/clog.texi (clog): Likewise.
25105         * doc/posix-functions/clogf.texi (clogf): Likewise.
25106         * doc/posix-functions/conj.texi (conj): Likewise.
25107         * doc/posix-functions/conjf.texi (conjf): Likewise.
25108         * doc/posix-functions/cpow.texi (cpow): Likewise.
25109         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25110         * doc/posix-functions/cproj.texi (cproj): Likewise.
25111         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25112         * doc/posix-functions/creal.texi (creal): Likewise.
25113         * doc/posix-functions/crealf.texi (crealf): Likewise.
25114         * doc/posix-functions/csin.texi (csin): Likewise.
25115         * doc/posix-functions/csinf.texi (csinf): Likewise.
25116         * doc/posix-functions/csinh.texi (csinh): Likewise.
25117         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25118         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25119         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25120         * doc/posix-functions/ctan.texi (ctan): Likewise.
25121         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25122         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25123         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25124         * doc/posix-headers/complex.texi (complex.h): Likewise.
25125
25126 2010-10-07  Jim Meyering  <meyering@redhat.com>
25127
25128         parse-datetime: avoid compilation failure on OpenBSD 4.7
25129         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25130         This works around a compilation failure on OpenBSD 4.7:
25131         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25132
25133 2010-10-07  Eric Blake  <eblake@redhat.com>
25134
25135         docs: update cygwin progress
25136         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25137         1.7.6.
25138         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25139         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25140         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25141         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25142         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25143         Likewise.
25144         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25145         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25146         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25147         Likewise.
25148         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25149         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25150         Likewise.
25151         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25152         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25153         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25154         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25155         Likewise.
25156         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25157         Likewise.
25158         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25159
25160         docs: update parse-datetime history
25161         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25162         documentation of this function's history and alternatives.
25163
25164         cygwin: use more robust version check
25165         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25166         exclude an eventual cygwin 1.9.1.
25167         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25168         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25169         (gl_FUNC_STRCASESTR): Likewise.
25170         Reported by Bruno Haible.
25171
25172 2010-10-06  Bruno Haible  <bruno@clisp.org>
25173
25174         string, sys_select: Avoid #including large headers unless necessary.
25175         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25176         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25177         OSF/1, BeOS, Haiku.
25178         Reported by Jim Meyering.
25179
25180 2010-10-05  Eric Blake  <eblake@redhat.com>
25181
25182         memmem, strstr, strcasestr: fix bug with long periodic needle
25183         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25184         periodic needle having false positive.
25185         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25186         and cygwin 1.7.7.
25187         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25189         (gl_FUNC_STRCASESTR): Likewise.
25190         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25191         * tests/test-memmem.c (main): Expose the bug.
25192         * tests/test-strcasestr.c (main): Likewise.
25193         * tests/test-strstr.c (main): Likewise.
25194         * tests/test-c-strcasestr.c (main): Likewise.
25195         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25196         * doc/posix-functions/strstr.texi (strstr): Likewise.
25197         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25198         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25199
25200 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25201
25202         parse-datetime: do some more renaming
25203         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25204         parse_datetime, not get_date.  Mention the renaming.
25205         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25206         in comments.
25207         * m4/bison.m4: Likewise.
25208
25209 2010-10-05  Eric Blake  <eblake@redhat.com>
25210
25211         parse-datetime: better name than get_date
25212         * NEWS: Reword the deprecation notice.
25213         * modules/get_date: Rename to modules/parse-datetime.
25214         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25215         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25216         * lib/get_date.y: Rename to lib/parse-datetime.y.
25217         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25218         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25219         * doc/getdate.texi: Provide fallback wrapper.
25220         * lib/getdate.h: Move guts, and wrap...
25221         * lib/parse-datetime.h: ...new file.
25222         * lib/parse-datetime.y (get_date): Rename...
25223         (parse_datetime): ...to this.
25224         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25225         (gl_PARSE_DATETIME): ...to this.
25226         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25227         documentation.
25228         * modules/getdate (Files): Provide fallback docs and header.
25229         (Notice, Depends-on): Update references.
25230         * tests/test-parse-datetime.c: Likewise.
25231         * DEPENDENCIES: Likewise.
25232         * MODULES.html.sh (Date and time <time.h>): Likewise.
25233         * doc/parse-datetime.texi (Date input formats)
25234         (Authors of parse_datetime): Likewise.
25235         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25236         (Include): Likewise.
25237         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25238         * gnulib-tool: Likewise.
25239         * m4/bison.m4 (gl_BISON): Likewise.
25240         Suggested by Bruno Haible.
25241
25242 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25243
25244         more ports to Solaris tr, which needs [] around ranges
25245         * gnulib-tool: Solaris tr needs [] around ranges.
25246         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25247         * tests/test-pipe-filter-gi1.c (main): Likewise.
25248         * tests/test-pipe-filter-ii1.c (main): Likewise.
25249
25250 2010-10-05  Eric Blake  <eblake@redhat.com>
25251
25252         bootstrap: fix Solaris regression
25253         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25254         around ranges.
25255         Reported by Pádraig Brady.
25256
25257         bootstrap: work with pkg-config
25258         * build-aux/bootstrap (check_versions): Also transliterate - in
25259         prerequisite name.
25260         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25261         prerequisites that were already found, to avoid confusion.
25262         Reported by Justin Clift.
25263
25264         faccessat: remove unused wrappers
25265         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25266         presence of these wrappers dragged in -lgen on Solaris.
25267         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25268
25269 2010-10-05  Jim Meyering  <meyering@redhat.com>
25270
25271         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25272         * Makefile (sc_pragma_columns): New syntax-check rule.
25273
25274 2010-10-04  Bruno Haible  <bruno@clisp.org>
25275
25276         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25277         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25278         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25279         Reported by Bruce Korb and Eric Blake.
25280
25281 2010-10-04  Bruno Haible  <bruno@clisp.org>
25282
25283         threadlib: Make option --with-libpth-prefix work.
25284         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25285         use $LIBPTH, not just -lpth.
25286
25287 2010-10-04  Bruno Haible  <bruno@clisp.org>
25288
25289         Avoid line length limitation from HP NonStop system header files.
25290         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25291         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25292         * lib/ctype.in.h: Likewise.
25293         * lib/dirent.in.h: Likewise.
25294         * lib/errno.in.h: Likewise.
25295         * lib/fcntl.in.h: Likewise.
25296         * lib/float.in.h: Likewise.
25297         * lib/getopt.in.h: Likewise.
25298         * lib/iconv.in.h: Likewise.
25299         * lib/inttypes.in.h: Likewise.
25300         * lib/langinfo.in.h: Likewise.
25301         * lib/locale.in.h: Likewise.
25302         * lib/math.in.h: Likewise.
25303         * lib/netdb.in.h: Likewise.
25304         * lib/netinet_in.in.h: Likewise.
25305         * lib/poll.in.h: Likewise.
25306         * lib/pthread.in.h: Likewise.
25307         * lib/pty.in.h: Likewise.
25308         * lib/sched.in.h: Likewise.
25309         * lib/se-selinux.in.h: Likewise.
25310         * lib/search.in.h: Likewise.
25311         * lib/signal.in.h: Likewise.
25312         * lib/spawn.in.h: Likewise.
25313         * lib/stdarg.in.h: Likewise.
25314         * lib/stddef.in.h: Likewise.
25315         * lib/stdint.in.h: Likewise.
25316         * lib/stdio.in.h: Likewise.
25317         * lib/stdlib.in.h: Likewise.
25318         * lib/string.in.h: Likewise.
25319         * lib/strings.in.h: Likewise.
25320         * lib/sys_file.in.h: Likewise.
25321         * lib/sys_ioctl.in.h: Likewise.
25322         * lib/sys_select.in.h: Likewise.
25323         * lib/sys_socket.in.h: Likewise.
25324         * lib/sys_stat.in.h: Likewise.
25325         * lib/sys_time.in.h: Likewise.
25326         * lib/sys_times.in.h: Likewise.
25327         * lib/sys_utsname.in.h: Likewise.
25328         * lib/sys_wait.in.h: Likewise.
25329         * lib/sysexits.in.h: Likewise.
25330         * lib/termios.in.h: Likewise.
25331         * lib/time.in.h: Likewise.
25332         * lib/unistd.in.h: Likewise.
25333         * lib/wchar.in.h: Likewise.
25334         * lib/wctype.in.h: Likewise.
25335         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25336         * modules/ctype (Makefile.am): Likewise.
25337         * modules/dirent (Makefile.am): Likewise.
25338         * modules/errno (Makefile.am): Likewise.
25339         * modules/fcntl-h (Makefile.am): Likewise.
25340         * modules/float (Makefile.am): Likewise.
25341         * modules/getopt-posix (Makefile.am): Likewise.
25342         * modules/iconv-h (Makefile.am): Likewise.
25343         * modules/inttypes (Makefile.am): Likewise.
25344         * modules/langinfo (Makefile.am): Likewise.
25345         * modules/locale (Makefile.am): Likewise.
25346         * modules/math (Makefile.am): Likewise.
25347         * modules/netdb (Makefile.am): Likewise.
25348         * modules/netinet_in (Makefile.am): Likewise.
25349         * modules/poll-h (Makefile.am): Likewise.
25350         * modules/pthread (Makefile.am): Likewise.
25351         * modules/pty (Makefile.am): Likewise.
25352         * modules/sched (Makefile.am): Likewise.
25353         * modules/search (Makefile.am): Likewise.
25354         * modules/selinux-h (Makefile.am): Likewise.
25355         * modules/signal (Makefile.am): Likewise.
25356         * modules/spawn (Makefile.am): Likewise.
25357         * modules/stdarg (Makefile.am): Likewise.
25358         * modules/stddef (Makefile.am): Likewise.
25359         * modules/stdint (Makefile.am): Likewise.
25360         * modules/stdio (Makefile.am): Likewise.
25361         * modules/stdlib (Makefile.am): Likewise.
25362         * modules/string (Makefile.am): Likewise.
25363         * modules/strings (Makefile.am): Likewise.
25364         * modules/sys_file (Makefile.am): Likewise.
25365         * modules/sys_ioctl (Makefile.am): Likewise.
25366         * modules/sys_select (Makefile.am): Likewise.
25367         * modules/sys_socket (Makefile.am): Likewise.
25368         * modules/sys_stat (Makefile.am): Likewise.
25369         * modules/sys_time (Makefile.am): Likewise.
25370         * modules/sys_times (Makefile.am): Likewise.
25371         * modules/sys_utsname (Makefile.am): Likewise.
25372         * modules/sys_wait (Makefile.am): Likewise.
25373         * modules/sysexits (Makefile.am): Likewise.
25374         * modules/termios (Makefile.am): Likewise.
25375         * modules/time (Makefile.am): Likewise.
25376         * modules/unistd (Makefile.am): Likewise.
25377         * modules/wchar (Makefile.am): Likewise.
25378         * modules/wctype (Makefile.am): Likewise.
25379
25380 2010-10-04  Bruno Haible  <bruno@clisp.org>
25381
25382         read-file tests: Avoid a test failure on NonStop Kernel.
25383         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25384         a regular file.
25385         Reported by Joachim Schmitz <schmitz@hp.com>.
25386
25387 2010-10-03  Bruno Haible  <bruno@clisp.org>
25388
25389         gnulib-tool: Fixes for --create-testdir with --libtool.
25390         * gnulib-tool (func_get_automake_snippet): Don't augment
25391         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25392         an executable.
25393         (func_create_testdir): Handle module 'alloca' like func_import.
25394         Reported by Bruce Korb <bruce.korb@gmail.com>.
25395
25396 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25397
25398         Avoid some lines longer than 80 characters.
25399         * lib/stdint.in.h: Break long comment lines.
25400         * lib/math.in.h: Likewise.
25401         (_GL_NUM_UINT_WORDS): New macro, for readability.
25402         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25403         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25404         * lib/stdlib.in.h: Likewise.
25405         * lib/spawn.in.h: Likewise.
25406         * lib/sys_socket.in.h: Update an URL.
25407         * lib/sys_stat.in.h: Break long line.
25408
25409 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25410
25411         Improve pmccabe2html.
25412         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25413         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25414         when the sources change. Remove the line in the HTML about "Used
25415         ranges" (which implied that there might be other unused ranges),
25416         rename "Resume" to "Summary" (easier to understand for more users).
25417         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25418         styles, and some unnecessary blank lines.
25419
25420 2010-10-03  Bruno Haible  <bruno@clisp.org>
25421             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25422
25423         acl: Add support for ACLs on NonStop Kernel.
25424         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25425         Check whether the function aclsort() exists.
25426         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25427         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25428         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25429         (acl_nontrivial [HAVE_ACLSORT]: New function.
25430         (file_has_acl): Implement for NonStop Kernel.
25431         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25432         (qset_acl): Implement for NonStop Kernel.
25433         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25434         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25435         (main): Implement for NonStop Kernel.
25436         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25437         Kernel. Handle this flavor.
25438         * tests/test-set-mode-acl.sh: Likewise.
25439         * tests/test-copy-acl.sh: Likewise.
25440         * tests/test-copy-file.sh: Likewise.
25441
25442 2010-10-03  Bruno Haible  <bruno@clisp.org>
25443
25444         Info about ACLs on NonStop Kernel.
25445         * doc/acl-resources.txt: Add info about NonStop Kernel.
25446         References by Joachim Schmitz <schmitz@hp.com>.
25447
25448 2010-10-02  Bruno Haible  <bruno@clisp.org>
25449
25450         Define missing EDQUOT on NonStop Kernel.
25451         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25452         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25453         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25454         missing.
25455         * doc/posix-headers/errno.texi: Mention the NSK bug.
25456         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25457         Reported by Joachim Schmitz <schmitz@hp.com>.
25458
25459 2010-10-02  Bruno Haible  <bruno@clisp.org>
25460
25461         Update doc for POSIX:2008.
25462         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25463         Update URL of POSIX specification.
25464
25465 2010-10-02  Bruno Haible  <bruno@clisp.org>
25466
25467         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25468         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25469         from gnulib, not from Automake.
25470
25471 2010-10-02  Bruno Haible  <bruno@clisp.org>
25472
25473         New module 'system-posix'.
25474         * modules/system-posix: New file.
25475         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25476         module is present.
25477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25478         GNULIB_SYSTEM_POSIX.
25479         * modules/stdlib (Depends-on): Remove sys_wait.
25480         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25481         * doc/posix-functions/system.texi: Mention the new module.
25482         * doc/posix-headers/stdlib.texi: Likewise.
25483         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25484         define test_sys_wait_macros to a no-op.
25485         Reported by Sam Steingold <sds@gnu.org>.
25486
25487 2010-09-30  Bruno Haible  <bruno@clisp.org>
25488
25489         More renaming from 'getdate' to 'get_date'.
25490         * doc/get_date.texi: Renamed from doc/getdate.texi.
25491         * modules/get_date (Files): Update.
25492         * MODULES.html.sh (Date and time <time.h>): Update.
25493         * DEPENDENCIES: Update.
25494         * gnulib-tool: Update comment.
25495         * m4/bison.m4 (gl_BISON): Likewise.
25496         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25497
25498 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25499
25500         bootstrap: support ACLOCAL_FLAGS during aclocal
25501         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25502         can add additional -I dir for third-party .m4 files.
25503
25504 2010-09-30  Eric Blake  <eblake@redhat.com>
25505
25506         bootstrap: use glibtoolize on MacOS
25507         * build-aux/bootstrap (check_versions): Convert libtool into
25508         libtoolize.
25509         (tool search): Move libtool check earlier, and look for
25510         glibtoolize for MacOS.
25511         (gnulib_tool_options): Auto-add --libtool when appropriate.
25512         Reported by Justin Clift.
25513
25514         poll: fix typo that broke test on MacOS
25515         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25516         Reported by Justin Clift.
25517
25518         getdate: rename to get_date
25519         Note: getdate.h is not renamed, to minimize client impact.
25520         * modules/getdate: Mark obsolete.  Move old contents...
25521         * modules/get_date: ...to new module name.
25522         * modules/getdate-tests: Move...
25523         * modules/get_date-tests: ...here.
25524         * m4/getdate.m4: Move...
25525         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25526         * lib/getdate.y: Move...
25527         * lib/get_date.y: ...here.
25528         * tests/test-getdate.c: Move...
25529         * tests/test-get_date.c: ...here.
25530         * doc/posix-functions/getdate.texi (getdate): Update name.
25531         * NEWS: Mention the change.
25532
25533 2010-09-29  Bruno Haible  <bruno@clisp.org>
25534
25535         Separate the module 'waitpid' from the module 'sys_wait'.
25536         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25537         present.
25538         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25539         gl_MODULE_INDICATOR_FOR_TESTS.
25540         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25541         * modules/sys_wait (Depends-on): Remove waitpid.
25542         (Makefile.am): Substitute GNULIB_WAITPID.
25543         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25544         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25545         signature only if the 'waitpid' module is present.
25546         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25547         * NEWS: Mention the change.
25548         * modules/grantpt (Depends-on): Add waitpid.
25549         * modules/wait-process (Depends-on): Likewise.
25550
25551 2010-09-29  Bruno Haible  <bruno@clisp.org>
25552
25553         More tests for module 'sys_wait'.
25554         * modules/sys_wait-c++-tests: New file.
25555         * tests/test-sys_wait-c++.cc: New file.
25556         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25557         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25558
25559 2010-09-29  Bruno Haible  <bruno@clisp.org>
25560
25561         New module 'waitpid'.
25562         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25563         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25564         Don't include <process.h>.
25565         (waitpid): Declare only, using modern idiom.
25566         * m4/waitpid.m4: New file.
25567         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25568         * modules/waitpid: New file.
25569         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25570         (Makefile.am): Update.
25571         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25572
25573 2010-09-28  Bruno Haible  <bruno@clisp.org>
25574
25575         poll: Assume ANSI C.
25576         * lib/poll.c (poll): Use an ANSI C declaration.
25577
25578 2010-09-28  Bruno Haible  <bruno@clisp.org>
25579
25580         poll-h: Create poll.h on all platforms.
25581         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25582         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25583         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25584         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25585         (gl_REPLACE_POLL_H): Don't set POLL_H.
25586         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25587         * modules/poll-h (Depends-on): Add include_next.
25588         (Makefile.am): Create poll.h unconditionally. Substitute also
25589         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25590
25591 2010-09-28  Bruno Haible  <bruno@clisp.org>
25592
25593         Tests for module 'poll-h'.
25594         * modules/poll-h-c++-tests: New file.
25595         * tests/test-poll-h-c++.cc: New file.
25596
25597         Tests for module 'poll-h'.
25598         * modules/poll-h-tests: New file.
25599         * tests/test-poll-h.c: New file.
25600
25601 2010-09-28  Bruno Haible  <bruno@clisp.org>
25602
25603         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25604         * modules/poll-h (Depends-on): Add 'extensions'.
25605
25606 2010-09-28  Bruno Haible  <bruno@clisp.org>
25607
25608         New module 'poll-h'.
25609         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25610         (poll): Use modern idiom.
25611         * modules/poll-h: New file.
25612         * modules/poll (Files): Remove lib/poll.in.h.
25613         (Depends-on): Add poll-h.
25614         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25615         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25616         * m4/poll_h.m4: New file.
25617         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25618         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25619         and invoke gl_REPLACE_POLL_H.
25620         * lib/poll.c: Use common idiom.
25621         * tests/test-poll.c: Likewise.
25622         * doc/posix-headers/poll.texi: Mention the poll-h module.
25623         Suggested by Eric Blake.
25624
25625 2010-09-26  Bruno Haible  <bruno@clisp.org>
25626
25627         sys_wait: Implement WSTOPSIG.
25628         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25629         Reported by Simon Josefsson.
25630
25631 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25632
25633         stdlib, sys_wait: Avoid compilation error on mingw.
25634         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25635
25636 2010-09-26  Bruno Haible  <bruno@clisp.org>
25637
25638         stdlib tests: Avoid code duplication.
25639         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25640         * modules/sys_wait-tests (Files): Likewise.
25641         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25642         * tests/test-stdlib.c: Include test-sys_wait.h.
25643         (main): Invoke test_sys_wait_macros.
25644         * tests/test-sys_wait.c: Include test-sys_wait.h.
25645         (main): Invoke test_sys_wait_macros.
25646
25647 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25648
25649         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25650         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25651         sure Windows sockets are working before calling getaddrinfo.
25652         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25653         * doc/gnulib.texi (Windows sockets): Fix typo.
25654
25655 2010-09-25  Bruno Haible  <bruno@clisp.org>
25656
25657         Tests for module 'regex-quote'.
25658         * modules/regex-quote-tests: New file.
25659         * tests/test-regex-quote.c: New file.
25660
25661         New module 'regex-quote'.
25662         * lib/regex-quote.h: New file.
25663         * lib/regex-quote.c: New file.
25664         * modules/regex-quote: New file.
25665         Suggested by Reuben Thomas <rrt@sc3d.org>.
25666
25667 2010-09-24  Bruno Haible  <bruno@clisp.org>
25668
25669         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25670         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25671
25672 2010-09-23  Bruno Haible  <bruno@clisp.org>
25673
25674         setenv: Relax license.
25675         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25676         Blake.
25677         Requested by Eric Blake.
25678
25679 2010-09-22  Bruno Haible  <bruno@clisp.org>
25680
25681         termios: Relax license.
25682         * modules/termios (License): Change to LGPLv2+.
25683         Requested by Eric Blake.
25684
25685 2010-09-22  Bruno Haible  <bruno@clisp.org>
25686
25687         threadlib: Allow the package to change the default to 'no'.
25688         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25689         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25690         Reported by Paul Eggert.
25691
25692 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25693             Bruno Haible  <bruno@clisp.org>
25694
25695         Fix endless loop in mbmemcasecoll.
25696         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25697         byte.
25698         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25699
25700 2010-09-22  Bruno Haible  <bruno@clisp.org>
25701
25702         Tests for module 'memcoll'.
25703         * modules/memcoll-tests: New file.
25704         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25705
25706         memcoll, xmemcoll: Clarify size vs. length.
25707         * modules/memcoll.c (memcoll0): Clarify specification.
25708         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25709         passed to collate_error.
25710
25711 2010-09-22  Bruno Haible  <bruno@clisp.org>
25712
25713         Tests for module 'memcasecmp'.
25714         * modules/memcasecmp-tests: New file.
25715         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25716
25717 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25718
25719         * lib/pthread.in.h: Add split double-inclusion guard, and include
25720         system <pthread.h> if there is one.  Use @@-style as in other
25721         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25722         pthread.h doesn't.
25723         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25724         (pthread_mutexattr_settype, pthread_mutex_trylock):
25725         New static inline functions, if there's no system <pthread.h>.
25726         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25727         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25728         Approximate with mutexes if the system lacks spinlocks, as in
25729         MacOS.
25730         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25731         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25732         @@-style.  Check for spinlocks separately.
25733         (gl_PTHREAD_DEFAULTS): New macro.
25734         * modules/pthread: Redo to use a more typical style for in.h files.
25735
25736 2010-09-21  Eric Blake  <eblake@redhat.com>
25737
25738         net_if: enhance tests
25739         * tests/test-net_if.c (main): Move signature checks earlier.
25740         Print failures to stderr.
25741         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25742         Document the bug that we do not yet fix.
25743
25744 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25745
25746         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25747         about gnulib, not GSS.
25748
25749 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25750
25751         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25752         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25753         for Emacs.
25754         * build-aux/pmccabe2html: Make Makefile.am example code more
25755         cut-and-paste friendly.
25756
25757 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25758
25759         * tests/test-net_if.c: New file.
25760         * modules/net_if-tests: New file.
25761
25762 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25763
25764         pthread: add pthread_spin_destroy
25765         * lib/pthread.in.h (pthread_spin_destroy): New function.
25766
25767 2010-09-19  Bruno Haible  <bruno@clisp.org>
25768
25769         gnulib-tool: Fix --help output.
25770         * gnulib-tool (func_usage): Fix help message.
25771         Reported by Reuben Thomas <rrt@sc3d.org>.
25772
25773 2010-09-18  Jim Meyering  <meyering@redhat.com>
25774
25775         maint.mk: avoid unexpanded \n in two diagnostics
25776         * top/maint.mk (sc_prohibit_always_true_header_tests):
25777         Don't use a literal \n in a halt=... assignment.  It would not be
25778         expanded, and the two \n bytes would appear in the diagnostic output
25779         rather than the desired newline.  Use halt=$$(printf ... instead.
25780         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25781
25782 2010-09-18  Bruno Haible  <bruno@clisp.org>
25783
25784         netinet_in: Doc tweak.
25785         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25786         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25787
25788 2010-09-18  Jim Meyering  <meyering@redhat.com>
25789
25790         init.sh: correct an outdated comment
25791         * tests/init.sh (create_exe_shims_):  s/function/alias/
25792
25793         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25794         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25795         a file named "*.exe" is removed between the glob expansion and the
25796         processing of that oddly named file.
25797
25798 2010-09-17  Eric Blake  <eblake@redhat.com>
25799
25800         mirbsd: add some more support
25801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25802         in BSD family.
25803         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25804         devices as OpenBSD.
25805         * m4/host-os.m4 (mirbsd): Add MirBSD.
25806
25807         tests: fix unportable assumption on sys/wait.h
25808         * tests/test-sys_wait.c (main): Relax test.
25809         * tests/test-stdlib.c (main): Likewise.
25810
25811         init.sh: accomodate directory with no .exes
25812         * tests/init.sh: Accomodate directory containing only scripts.
25813
25814         tests: avoid compiler warning
25815         * tests/test-stdlib.c (main): Use the variable.
25816
25817         fdutimens, fdutimensat: update signature, again
25818         * lib/utimens.h (gl_futimens): Delete, and move signature...
25819         (fdutimens): ...here.
25820         (fdutimensat): Rearrange signature.
25821         (lutimensat): Rename variable for clarity.
25822         * lib/fdutimensat.c (fdutimensat): Update signature.
25823         * lib/utimens.c (fdutimens): Likewise.
25824         (gl_futimens): Delete.
25825         (utimens, lutimens): Update callers.
25826         * lib/futimens.c (futimens): Likewise.
25827         * tests/test-fdutimensat.c: Likewise.
25828         * tests/test-utimens.c: Likewise.
25829         * tests/test-futimens.h: Update comment.
25830         * NEWS: Mention this.
25831         Suggested by Paul Eggert.
25832
25833 2010-09-17  Bruno Haible  <bruno@clisp.org>
25834
25835         Take over the maintenance of some older macros from Autoconf.
25836         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25837         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25838         GNU Autoconf.
25839         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25840         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25841
25842 2010-09-17  Eric Blake  <eblake@redhat.com>
25843
25844         fdutimensat: drop atflag validation
25845         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25846         with valid fd, to close a race scenario where futimens is
25847         unsupported and FILE was replaced by a symlink.
25848         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25849         accordingly.
25850         Suggested by Paul Eggert.
25851
25852 2010-09-16  Bruno Haible  <bruno@clisp.org>
25853
25854         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25855         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25856
25857 2010-09-16  Bruno Haible  <bruno@clisp.org>
25858
25859         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25860         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25861         login_tty exists.
25862         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25863
25864 2010-09-16  Bruno Haible  <bruno@clisp.org>
25865
25866         login_tty: Make the replacement code work on BSD systems.
25867         * lib/login_tty.c: Include <sys/ioctl.h>.
25868         (login_tty): Use ioctl TIOCSCTTY when available.
25869         * modules/login_tty (Depends-on): Add sys_ioctl.
25870         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25871
25872 2010-09-16  Bruno Haible  <bruno@clisp.org>
25873
25874         login_tty: Stricter unit test.
25875         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25876         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25877         and tcgetsid() after login_tty.
25878         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25879
25880 2010-09-16  Bruno Haible  <bruno@clisp.org>
25881
25882         New module 'tcgetsid'.
25883         * lib/tcgetsid.c: New file.
25884         * m4/tcgetsid.m4: New file.
25885         * modules/tcgetsid: New file.
25886         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25887         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25888         GNULIB_TCGETSID, HAVE_TCGETSID.
25889         * lib/termios.in.h: Include <sys/types.h>.
25890         (tcgetsid): New declaration.
25891         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25892         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25893         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25894         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25895
25896 2010-09-16  Bruno Haible  <bruno@clisp.org>
25897
25898         Tests for module 'termios'.
25899         * modules/termios-c++-tests: New file.
25900         * modules/termios-tests: New file.
25901         * tests/test-termios-c++.cc: New file.
25902         * tests/test-termios.c: New file.
25903
25904         New module 'termios'.
25905         * modules/termios: New file.
25906         * lib/termios.in.h: New file.
25907         * m4/termios_h.m4: New file.
25908         * doc/posix-headers/termios.texi: Mention the new module.
25909
25910 2010-09-16  Eric Blake  <eblake@redhat.com>
25911
25912         fdutimensat: add an atflag parameter
25913         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25914         * lib/utimens.h (fdutimensat): Update prototype.
25915         * tests/test-fdutimensat.c: Adjust test to match.
25916         * NEWS: Document the change.
25917         Suggested by Paul Eggert.
25918
25919 2010-09-16  Bruno Haible  <bruno@clisp.org>
25920
25921         Fix typos in comments.
25922         * lib/striconveh.h: Fix typo in comment.
25923         * lib/login_tty.c (login_tty): Likewise.
25924
25925 2010-09-15  Bruno Haible  <bruno@clisp.org>
25926
25927         stdlib: clarify MirBSD WEXITSTATUS bug
25928         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25929         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25930
25931 2010-09-15  Eric Blake  <eblake@redhat.com>
25932
25933         stdlib: work around MirBSD WEXITSTATUS bug
25934         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25935         * modules/stdlib (Depends-on): Add sys_wait.
25936         * tests/test-sys_wait.c (main): Enhance test.
25937         * tests/test-stdlib.c (main): Likewise.
25938         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25939
25940         docs: mention MacOS issue with WEXITSTATUS(constant)
25941         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25942         issue.
25943         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25944
25945         strnlen: add tests
25946         * modules/strnlen-tests: New file.
25947         * tests/test-strnlen.c: Likewise.
25948
25949 2010-09-14  Bruno Haible  <bruno@clisp.org>
25950
25951         unistr/base: Avoid link errors when module 'libunistring' is also used.
25952         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25953         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25954         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25955         Declare also when HAVE_LIBUNISTRING is set.
25956         Reported by Pádraig Brady <P@draigbrady.com>.
25957
25958 2010-09-14  Eric Blake  <eblake@redhat.com>
25959
25960         test-rawmemchr: make more robust
25961         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25962         (Depends-on, configure.ac): Add needed prerequisites to use it.
25963         * modules/memchr-tests (Files, Depends-on, configure.ac):
25964         Likewise, to avoid implicit reliance on memchr module prereqs.
25965         * tests/test-memchr.c (main): Ensure proper masking.
25966         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25967         reads.
25968
25969         memchr: detect glibc Alpha bug
25970         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25971         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25972         Alpha.
25973         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25974         * tests/test-memchr.c (main): Enhance test.
25975         Reported by Nelson H. F. Beebe.
25976
25977 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25978
25979         fts, getcwd, glob: audit for dirfd returning -1
25980         * lib/fts.c (opendir): Remove #define; no longer used.
25981         (opendirat): New arg PDIR_FD.  All callers changed.
25982         (fts_build, _opendir2): Use new opendirat to avoid the need for
25983         dirfd, or for checking whether dirfd returns a negative value.
25984         Don't use opendir; always use openat followed by fdopendir.
25985         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25986         it.
25987         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25988         returns -1 here.
25989         * modules/fts (Depends-on): Remove dirfd.
25990         * modules/getcwd (Depends-on): Likewise.
25991
25992 2010-09-13  Eric Blake  <eblake@redhat.com>
25993
25994         float: fix broken MirBSD header
25995         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25996         * doc/posix-headers/float.texi (float.h): Document it.
25997
25998 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25999
26000         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26001         * lib/fts.c (opendirat): New arg extra_flags.
26002         (__opendir2): Use it to avoid following symlinks when opening
26003         a directory, if symlinks are not supposed to be followed.  See
26004         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26005
26006         fdopendir: preserve argument fd before returning
26007         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26008         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26009         (fdopendir): Use them, arranging for FD to be open to the same
26010         directory that it was when it started.  (It might be temporarily
26011         closed while fdopendir is running, so this not thread- or
26012         signal-safe.)  Be careful to do the right thing even when file
26013         descriptors are scarce and dup fails with errno == EMFILE.  See
26014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26015
26016 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26017
26018         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26019         * NEWS: Document change.
26020         * m4/regex.m4: Disable test for regoff_t size.
26021
26022 2010-09-13  Jim Meyering  <meyering@redhat.com>
26023
26024         fts: don't operate on an invalid file descriptor after failed dup
26025         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26026         negative file descriptor.
26027
26028 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26029
26030         savedir: add streamsavedir, deprecate fdsavedir
26031         * NEWS: Mention deprecation of fdsavedir.
26032         * lib/savedir.c (streamsavedir): New extern function, whose name
26033         ends in "savedir" to be consistent with the others.  This differs
26034         from savedirstream in that it doesn't close its argument.  The
26035         next version of GNU tar will use this instead of fdsavedir, to
26036         avoid some race conditions and conserve file descriptors.
26037         (savedirstream): Reimplement as a wrapper around streamsavedir.
26038         (fdsavedir): Add a comment deprecating this function.  As far as
26039         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26040         * lib/savedir.h (streamsavedir): New decl.
26041         (fdsavedir): Add a comment deprecating this.
26042
26043 2010-09-10  Bruno Haible  <bruno@clisp.org>
26044
26045         langinfo: Fix last commit.
26046         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26047         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26048         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26049
26050 2010-09-10  Bruno Haible  <bruno@clisp.org>
26051
26052         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26053         * lib/progreloc.c (O_EXEC): Define fallback.
26054
26055 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26056
26057         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26058         * NEWS: Document recent changes to fcntl-h.
26059         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26060         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26061         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26062         Similarly for O_SEARCH; this last was already true, but not documented.
26063         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26064         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26065         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26066         Likewise.
26067         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26068         is zero, not whether it is defined.
26069         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26070         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26071         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26072
26073 2010-09-10  Bruno Haible  <bruno@clisp.org>
26074
26075         langinfo, nl_langinfo: Fix for IRIX 5.3.
26076         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26077         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26078         HAVE_LANGINFO_YESEXPR.
26079         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26080         HAVE_LANGINFO_YESEXPR.
26081         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26082         HAVE_LANGINFO_T_FMT_AMPM is 0.
26083         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26084         HAVE_LANGINFO_YESEXPR is 0.
26085         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26086         NOEXPR.
26087         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26088         * doc/posix-functions/nl_langinfo.texi: Likewise.
26089         Reported by Eric Blake.
26090
26091 2010-09-10  Bruno Haible  <bruno@clisp.org>
26092
26093         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26094         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26095         on FreeBSD 8.0 and OpenBSD 4.6.
26096         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26097         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26098         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26099         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26100         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26101         ac_includes_default.
26102         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26103
26104 2010-09-09  Eric Blake  <eblake@redhat.com>
26105
26106         strsignal: work around NetBSD bug
26107         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26108         * lib/string.in.h (includes): Likewise.
26109         * doc/posix-functions/strsignal.texi (strsignal): Document the
26110         bug.
26111         Reported by Nelson H. F. Beebe.
26112
26113         gnulib-tool: work with NetBSD /bin/sh
26114         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26115         (func_get_description, func_get_comment, func_get_status)
26116         (func_get_notice, func_get_applicability, func_get_filelist)
26117         (func_get_dependencies, func_get_autoconf_early_snippet)
26118         (func_get_autoconf_snippet, func_get_automake_snippet)
26119         (func_get_include_directive, func_get_link_directive)
26120         (func_get_license, func_get_maintainer, func_import): Avoid
26121         shell syntax errors from parsing syntax extensions.
26122
26123 2010-09-09  Bruno Haible  <bruno@clisp.org>
26124
26125         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26126         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26127         a reliable way to determine whether the 'alias' command works.
26128
26129 2010-09-08  Jim Meyering  <meyering@redhat.com>
26130
26131         init.sh: penalize a set-x-impaired shell; don't disqualify it
26132         * tests/init.sh: Too many shells corrupt application stderr when
26133         you set -x, so we can't afford to disqualify them, since at least
26134         on Irix-6.5, that would disqualify all bourne shells.
26135         Instead, use a two-pass approach.
26136         On the first pass, try to find a shell that meets the stricter
26137         condition that set -x does not corrupt stderr.
26138         If no shell meets the stricter condition, retest each candidate
26139         shell, but without that extra condition.  Finally, when
26140         VERBOSE=yes is requested and set -x might cause trouble, simply
26141         issue a warning and refrain from enabling debug output.
26142
26143 2010-09-08  Eric Blake  <eblake@redhat.com>
26144
26145         unsetenv: fix OpenBSD bug
26146         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26147         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26148         documentation.
26149         Reported by Jim Meyering.
26150
26151         strtod: work around IRIX 6.5 bug
26152         * lib/strtod.c (strtod): Reparse number on shorter string if
26153         exponent parse was invalid.
26154         * tests/test-strtod.c (main): Add check for "0x1p 2".
26155         Reported by Tom G. Christensen.
26156
26157         getopt: optimize previous patch
26158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26159         empty variable.  Speed up awk script.
26160         Reported by Paolo Bonzini.
26161
26162 2010-09-08  Jim Meyering  <meyering@redhat.com>
26163
26164         test.sh: disqualify shells for which set -x corrupts stderr
26165         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26166         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26167         appear in stderr output.  For example, this command:
26168             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26169         prints "P=1" on those two systems:
26170
26171 2010-09-08  Bruno Haible  <bruno@clisp.org>
26172
26173         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26174         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26175         commands, because some shells ignore redirections when there is an
26176         error in the command lookup.
26177         Reported by Eric Blake.
26178
26179 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26180
26181         * lib/regex.h: Fix a mention of `regex_compile' (should be
26182         `re_compile_pattern').
26183         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26184         (re_set_registers): Correct name of parameter in comment.
26185
26186         * doc/regex.texi: Add documentation for missing syntax flags.
26187         Remove commented-out documentation of defunct syntax option
26188         RE_NO_EMPTY_ALTS.
26189         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26190         Add documentation of re_set_registers.
26191         Document trick to re-use a pattern buffer by setting fastmap manually.
26192         Update documentation of struct re_pattern_buffer per public members.
26193         Uncomment documentation of equivalence class operators and
26194         collating symbol operators, since they are now implemented,
26195         Explain leftmost-longest matching in relation to alternatives.
26196         Tidy documentation of substring matching.
26197         Remove POSIX documentation, which is done better in
26198         glibc, and refer the reader there. Keep BSD API documentation, as
26199         that is not readily available elsewhere.
26200
26201 2010-09-07  Eric Blake  <eblake@redhat.com>
26202
26203         getopt: handle POSIXLY_CORRECT set but not exported
26204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26205         export state of POSIXLY_CORRECT, due to bash set -o posix.
26206         Reported by Dustin J. Mitchell.
26207
26208 2010-09-05  Bruno Haible  <bruno@clisp.org>
26209
26210         gnulib-tool: Highlight the changed options.
26211         * gnulib-tool (func_usage): Display the --import, --add-import,
26212         --remove-import explanations in bold font.
26213
26214 2010-09-06  Karl Berry  <karl@gnu.org>
26215
26216         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26217
26218 2010-09-05  Bruno Haible  <bruno@clisp.org>
26219
26220         uniwidth/width: Update comment.
26221         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26222         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26223
26224 2010-09-05  Bruno Haible  <bruno@clisp.org>
26225
26226         isinf, isnan: Relax license.
26227         * modules/isinf (License): Change from GPL to LGPL, with consent from
26228         Ben Pfaff.
26229         * modules/isnan (License): Likewise.
26230         Requested by Ludovic Courtès.
26231
26232 2010-09-04  Bruno Haible  <bruno@clisp.org>
26233
26234         gnulib-tool: Help migration from --import to --add-import or --update.
26235         * gnulib-tool: Emit a verbose error message when --import is used
26236         without any module name.
26237
26238 2010-09-04  Bruno Haible  <bruno@clisp.org>
26239
26240         Update doc about gnulib-tool.
26241         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26242         'gnulib-tool --update' in more detail.
26243         Reported by Eric Blake.
26244
26245 2010-09-04  Bruno Haible  <bruno@clisp.org>
26246
26247         gnulib-tool: Change --import. New options --add/remove-import.
26248         * gnulib-tool: New options --add-import, --remove-import.
26249         (func_usage): Document them.
26250         (have_associative): Define always.
26251         (func_import): In import mode, don't merge the specified settings with
26252         the cached settings. Implement remove-import mode.
26253         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26254         Explain when to use them versus --import.
26255         (Simple update): Use --add-import instead of --import.
26256         * NEWS: Mention the change.
26257
26258 2010-09-04  Bruno Haible  <bruno@clisp.org>
26259
26260         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26261         separate gnulib.mk.
26262
26263 2010-09-04  Bruno Haible  <bruno@clisp.org>
26264
26265         gnulib-tool: Don't talk about CVS any more.
26266         * gnulib-tool (func_usage, func_import): Write "version control"
26267         instead of CVS.
26268
26269 2010-09-04  Jim Meyering  <meyering@redhat.com>
26270
26271         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26272         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26273         false positives (whose names may be ill-chosen) when searching
26274         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26275         would cause a false-positive.
26276
26277         avoid coreutils "make distcheck" failure
26278         Coreutils tests with an absolute build directory name that contains
26279         a space.  Not quoting this directory name caused a failure.
26280         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26281         * tests/test-vc-list-files-cvs.sh: Likewise.
26282
26283 2010-09-04  Bruno Haible  <bruno@clisp.org>
26284
26285         gnulib-tool: Avoid error when run in a package without Makefile.am.
26286         * gnulib-tool: When collecting the m4dirs in a package that does not
26287         have a Makefile.am, eliminate those directories that contain no
26288         gnulib-cache.m4. Fix expression that counts these directories.
26289
26290 2010-09-04  Bruno Haible  <bruno@clisp.org>
26291
26292         update-copyright test: Improve output when perl is missing or too old.
26293         * tests/test-update-copyright.sh: Move test of Perl version down after
26294         the test whether Perl exists. Provide an explanation relating Perl's
26295         error message to Automake's SKIP: message.
26296
26297 2010-09-04  Bruno Haible  <bruno@clisp.org>
26298
26299         Don't augment PATH in TESTS_ENVIRONMENT.
26300         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26301         set abs_aux_dir instead of augmenting PATH.
26302         * modules/vc-list-files-tests (Makefile.am): Likewise.
26303         * tests/test-update-copyright.sh: Augment PATH here.
26304         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26305         path_prepend_.
26306         * tests/test-vc-list-files-git.sh: Likewise.
26307
26308 2010-09-04  Jim Meyering  <meyering@redhat.com>
26309
26310         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26311         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26312
26313 2010-09-04  Bruno Haible  <bruno@clisp.org>
26314
26315         strdup: Fix compilation error in C++ mode.
26316         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26317         the macro.
26318
26319 2010-09-04  Bruno Haible  <bruno@clisp.org>
26320
26321         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26322         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26323         macro into a function.
26324         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26325
26326 2010-09-04  Bruno Haible  <bruno@clisp.org>
26327
26328         Set PATH_SEPARATOR the same way autoconf does.
26329         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26330         the value of PATH_SEPARATOR the same way autoconf-generated configure
26331         scripts do.
26332         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26333         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26334
26335 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26336
26337         Set PATH_SEPARATOR the same way autoconf does.
26338         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26339         the same way autoconf-generated configure scripts do.
26340         * posix-modules: Likewise.
26341
26342 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26343
26344         hash: fix safe_hasher const typo
26345         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26346         const; otherwise, there is a type error later.
26347
26348 2010-09-02  Jim Meyering  <meyering@redhat.com>
26349
26350         test-update-copyright.sh: require perl 5.8.0
26351         * tests/test-update-copyright.sh: Require 5.8.0,
26352         which Tom G. Christensen has confirmed is adequate,
26353         while 5.6.1 is not.
26354
26355 2010-09-02  Eric Blake  <eblake@redhat.com>
26356
26357         tests: init.sh improvements for re-exec'ing with zsh
26358         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26359         -vx through shell re-exec.
26360         Reported by Tom G. Christensen.
26361
26362         wctype: fix typo in previous commit
26363         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26364         Reported by Ludovic Courtès.
26365
26366 2010-09-02  Jim Meyering  <meyering@redhat.com>
26367
26368         test-update-copyright.sh: skip test if Perl is too old
26369         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26370         Reported by Tom G. Christensen.
26371
26372 2010-09-02  Bruno Haible  <bruno@clisp.org>
26373
26374         wctype: Avoid compilation error on IRIX 6.5.30.
26375         * lib/wctype.in.h (iswblank): Declare with a replacement if
26376         REPLACE_ISWBLANK is set.
26377         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26378         declared. Set REPLACE_ISWBLANK.
26379         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26380         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26381         * doc/posix-headers/wctype.texi: Likewise.
26382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26383
26384 2010-09-01  Bruno Haible  <bruno@clisp.org>
26385
26386         New module 'socketlib'.
26387         * modules/socketlib: New file.
26388         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26389         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26390         * modules/sockets (Depends-on): Add socketlib.
26391         Suggested by Sam Steingold <sds@gnu.org>.
26392
26393 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26394
26395         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26396
26397         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26398         when one needs search access to a directory but not read access.
26399         On systems where it is available, it works in some cases where
26400         O_RDONLY does not, namely on directories that are searchable but
26401         not readable, and which need only to be searchable.  If O_SEARCH
26402         is not available, fall back to the traditional method of using
26403         O_RDONLY.
26404
26405         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26406         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26407         when opening a directory that needs only to be searchable.
26408         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26409         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26410         * lib/openat-proc.c (openat_proc_name): Likewise.
26411         * lib/openat.c (openat_needs_fchdir): Likewise.
26412         * lib/save-cwd.c (save_cwd): Likewise.
26413         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26414
26415 2010-08-28  Bruno Haible  <bruno@clisp.org>
26416
26417         New module 'host-cpu-c-abi'.
26418         * modules/host-cpu-c-abi: New file.
26419         * m4/host-cpu-c-abi.m4: New file, based on part of
26420         clisp/src/m4/general.m4.
26421         Requested by Sam Steingold <sds@gnu.org>.
26422
26423 2010-08-31  Eric Blake  <eblake@redhat.com>
26424         and Jim Meyering  <meyering@redhat.com>
26425
26426         hash: factor, and guard against misbehaving hasher function
26427         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26428         of table->hasher's return value.  Also protect against a hash value
26429         so large that adding it to table->bucket results in a NULL pointer.
26430         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26431         Use it in place of open-coded check-and-abort.
26432
26433 2010-08-30  Bruno Haible  <bruno@clisp.org>
26434
26435         hash: silence spurious clang warning
26436         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26437         Reported by Eric Blake.
26438
26439 2010-08-30  Eric Blake  <eblake@redhat.com>
26440
26441         strstr, memmem, strcasestr: avoid leaked shell message
26442         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26443         FreeBSD.
26444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26445         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26446
26447         tests: silence clang warning
26448         * tests/test-malloca.c (do_allocation): Avoid dead store.
26449
26450 2010-08-29  Bruno Haible  <bruno@clisp.org>
26451
26452         gettext: Fix recent mistake.
26453         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26454
26455 2010-08-29  Bruno Haible  <bruno@clisp.org>
26456
26457         selinux-h: Offer a --without-selinux option.
26458         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26459         --without-selinux was specified, skip all tests and define
26460         HAVE_SELINUX_SELINUX_H to 0.
26461         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26462         set LIB_SELINUX to empty.
26463         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26464         gl_LIBSELINUX. If --without-selinux was specified, replace
26465         selinux/context.h.
26466         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26467
26468 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26469             Bruno Haible  <bruno@clisp.org>
26470
26471         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26472         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26473         of HAVE_REALLOC.
26474         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26475         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26476         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26477         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26478
26479 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26480             Bruno Haible  <bruno@clisp.org>
26481
26482         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26483         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26484         HAVE_CALLOC.
26485         * lib/xmalloc.c: Update accordingly.
26486         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26487         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26488         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26489
26490 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26491             Bruno Haible  <bruno@clisp.org>
26492
26493         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26494         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26495         HAVE_MALLOC.
26496         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26497         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26498         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26499
26500 2010-08-29  Bruno Haible  <bruno@clisp.org>
26501
26502         Update modules list.
26503         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26504         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26505         (String handling <string.h>): Add astrxfrm.
26506         (File system functions): Add readlinkat.
26507
26508 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26509
26510         Tests for module 'realloc-gnu'.
26511         * modules/realloc-gnu-tests: New file.
26512         * tests/test-realloc-gnu.c: New file.
26513
26514         Tests for module 'calloc-gnu'.
26515         * modules/calloc-gnu-tests: New file.
26516         * tests/test-calloc-gnu.c: New file.
26517
26518         Tests for module 'malloc-gnu'.
26519         * modules/malloc-gnu-tests: New file.
26520         * tests/test-malloc-gnu.c: New file.
26521
26522 2010-08-28  Bruno Haible  <bruno@clisp.org>
26523
26524         Rename module 'realloc' -> 'realloc-gnu'.
26525         * modules/realloc-gnu: New file, copied from modules/realloc.
26526         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26527         obsolete.
26528         * modules/mgetgroups (Depends-on): Update.
26529         * doc/posix-functions/realloc.texi: Update.
26530         * NEWS: Mention the change.
26531
26532         Rename module 'calloc' -> 'calloc-gnu'.
26533         * modules/calloc-gnu: New file, copied from modules/calloc.
26534         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26535         obsolete.
26536         * doc/posix-functions/calloc.texi: Update.
26537         * NEWS: Mention the change.
26538
26539         Rename module 'malloc' -> 'malloc-gnu'.
26540         * modules/malloc-gnu: New file, copied from modules/malloc.
26541         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26542         obsolete.
26543         * modules/argp (Depends-on): Update.
26544         * modules/regex (Depends-on): Update.
26545         * doc/posix-functions/malloc.texi: Update.
26546         * NEWS: Mention the change.
26547
26548 2010-08-28  Eric Blake  <eblake@redhat.com>
26549
26550         pread, pwrite: add missing dependency
26551         * modules/pread (Depends-on): Add extensions.
26552         * modules/pwrite (Depends-on): Likewise.
26553
26554 2010-08-28  Bruno Haible  <bruno@clisp.org>
26555
26556         unistr/u*-strchr: Fix tests dependencies.
26557         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26558         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26559         Reported by Ian Beckwith <ianb@erislabs.net>.
26560
26561 2010-08-28  Bruno Haible  <bruno@clisp.org>
26562
26563         read-file: Don't occupy too much unused memory.
26564         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26565
26566 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26567             Eric Blake  <eblake@redhat.com>
26568             Bruno Haible  <bruno@clisp.org>
26569
26570         read-file: Avoid memory reallocations with regular files.
26571         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26572         (fread_file): With regular files, use the remaining length as the
26573         initial buffer size.  Check against overflow.
26574         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26575         sys_stat.
26576
26577 2010-08-28  Bruno Haible  <bruno@clisp.org>
26578
26579         ftello: Relax license.
26580         * modules/ftello (License): Relax to LGPLv2+.
26581         Reported by Eric Blake.
26582
26583 2010-08-28  Bruno Haible  <bruno@clisp.org>
26584
26585         Avoid relocwrapper link errors due to gnulib replacement functions.
26586         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26587         function.
26588         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26589
26590 2010-08-28  Bruno Haible  <bruno@clisp.org>
26591
26592         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26593         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26594         defined.
26595         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26596         Suggested by Eric Blake.
26597
26598 2010-08-28  Bruno Haible  <bruno@clisp.org>
26599
26600         sys_socket, netdb: Ensure socklen_t gets defined.
26601         * modules/sys_socket (Depends-on): Add socklen.
26602         * modules/netdb (Depends-on): Likewise.
26603         * modules/getaddrinfo (Depends-on): Remove socklen.
26604         * modules/getsockopt (Depends-on): Likewise.
26605         * modules/setsockopt (Depends-on): Likewise.
26606         * tests/test-sys_socket.c: Check that socklen_t is defined.
26607         * tests/test-netdb.c: Likewise.
26608         * m4/socklen.m4: Update comments.
26609         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26610
26611 2010-08-27  Eric Blake  <eblake@redhat.com>
26612
26613         login_tty: add missing dependency
26614         * modules/login_tty (Depends-on): Add pty.
26615
26616 2010-08-26  Eric Blake  <eblake@redhat.com>
26617
26618         lib-symbol-versions: fix m4 quoting
26619         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26620         format for AC_LINK_IFELSE.
26621
26622         glob: fix compile test
26623         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26624
26625         btowc: fix missing file
26626         * modules/btowc (Files): Also ship locale-fr.m4.
26627
26628         lseek: fix link test
26629         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26630         AC_LINK_IFELSE.
26631
26632         include_next: silence autoconf 2.68 warning
26633         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26634         AC_COMPILE_IFELSE as special.
26635         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26636         autoconf < 2.68.
26637
26638         acl: fix compilation test
26639         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26640         AC_COMPILE_IFELSE.
26641
26642 2010-08-26  Bruno Haible  <bruno@clisp.org>
26643
26644         Modernize AC_TRY_RUN invocations.
26645         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26646         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26647         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26648         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26649         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26650         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26651         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26652         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26653         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26654         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26655         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26656         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26657         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26658         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26659         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26660         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26661         gl_MBRLEN_NUL_RETVAL): Likewise.
26662         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26663         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26664         Likewise.
26665         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26666         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26667         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26668         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26669         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26670         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26671         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26672         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26673         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26674         Likewise.
26675         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26676         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26678         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26679         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26680         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26681         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26682         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26683         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26685
26686 2010-08-26  Bruno Haible  <bruno@clisp.org>
26687
26688         Modernize AC_TRY_LINK invocations.
26689         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26690         AC_TRY_LINK.
26691         * m4/argp.m4 (gl_ARGP): Likewise.
26692         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26693         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26694         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26695         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26696         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26697         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26698         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26699         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26700         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26701         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26702         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26703         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26704         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26705         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26706         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26707         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26708         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26709         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26710         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26711         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26712         Likewise.
26713         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26714         Likewise.
26715         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26716         Likewise.
26717         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26718         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26719         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26720         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26721         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26722         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26723         * m4/servent.m4 (gl_SERVENT): Likewise.
26724         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26725         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26726         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26727         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26728         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26729         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26730         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26731         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26732         * modules/tsearch-tests (configure.ac): Likewise.
26733
26734 2010-08-26  Bruno Haible  <bruno@clisp.org>
26735
26736         Modernize AC_TRY_COMPILE invocations.
26737         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26738         AC_TRY_COMPILE.
26739         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26740         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26741         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26742         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26743         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26744         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26745         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26746         * m4/lock.m4 (gl_LOCK): Likewise.
26747         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26748         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26749         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26750         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26751         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26752         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26753         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26754         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26755         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26756         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26757         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26758         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26759         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26760         extraneous semicolon.
26761
26762 2010-08-26  Jim Meyering  <meyering@redhat.com>
26763
26764         stat-time: relax license LGPL
26765         * modules/stat-time (License): Change from GPL to LGPL,
26766         with consent from all contributors, for use in libguile.
26767         Requested by Ludovic Courtès.
26768
26769 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26770
26771         poll: return immediately on POLLHUP.
26772         * lib/poll.c (poll): Always set timeout before wait_timeout is
26773         computed.
26774
26775 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26776
26777         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26778         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26779         rmdir ("dir/.//"), unlinkat.
26780
26781 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26782
26783         stdbool: avoid spurious failure with modern xlc
26784         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26785
26786 2010-08-24  Bruno Haible  <bruno@clisp.org>
26787
26788         getloadavg: simplify code
26789         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26790         gl_have_func. Update comments.
26791
26792 2010-08-24  Eric Blake  <eblake@redhat.com>
26793
26794         getloadavg: don't define SVR4 on cygwin
26795         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26796         only define SVR4 when -lkvm is required.
26797         Reported by Yaakov Selkowitz.
26798
26799 2010-08-24  Bruno Haible  <bruno@clisp.org>
26800
26801         priv-set: fix comment
26802         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26803
26804 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26805
26806         priv-set: fix comments
26807         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26808         to match code, as suggested by David Bartley in:
26809         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26810
26811 2010-08-23  Eric Blake  <eblake@redhat.com>
26812
26813         stdbool: avoid rejecting clang
26814         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26815         * tests/test-stdbool.c: Enable more tests if using the system
26816         <stdbool.h> instead of the gnulib replacement.
26817         (main): Move xlc bug test to a runtime test for all compilers.
26818         Reported by Anders Kaseorg.
26819
26820         argz: fix shell quoting issue
26821         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26822         Reported by Charles Wilson.
26823
26824 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26825             Erik Faye-Lund <kusmabite@gmail.com>
26826
26827         poll, select: handle ERROR_BROKEN_PIPE.
26828         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26829         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26830         * lib/select.c (win32_compute_revents): Do not mark a pipe
26831         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26832
26833 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26834
26835         fts: allow compilation with C++
26836         * lib/fts_.h: Specify extern "C" linkage with C++.
26837
26838 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26839
26840         Fix gnulib-tool sed script de-commentation for AIX sed.
26841         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26842         sed.
26843
26844 2010-08-17  Eric Blake  <eblake@redhat.com>
26845
26846         test-stddef: test for (some) offsetof bugs
26847         * tests/test-stddef.c: Enhance test to ensure correct type of
26848         offsetof.
26849         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26850         that we are not fixing at this time.
26851
26852 2010-08-15  Bruno Haible  <bruno@clisp.org>
26853
26854         stpncpy: Allow stpncpy to be defined as a macro.
26855         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26856         if it's already correctly declared.
26857         * lib/string.in.h (stpncpy): Undefine before redefining.
26858         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26859
26860 2010-08-14  Bruno Haible  <bruno@clisp.org>
26861
26862         Rename module 'memxfrm' to 'amemxfrm'.
26863         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26864         (amemxfrm): Renamed from memxfrm.
26865         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26866         (amemxfrm): Renamed from memxfrm.
26867         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26868         * NEWS: Mention the change.
26869         * MODULES.html.sh (String handling <string.h>): Update.
26870         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26871         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26872         * lib/unicase/u16-casexfrm.c: Likewise.
26873         * lib/unicase/u32-casexfrm.c: Likewise.
26874         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26875         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26876         * lib/uninorm/u16-normxfrm.c: Likewise.
26877         * lib/uninorm/u32-normxfrm.c: Likewise.
26878         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26879         memxfrm.
26880         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26881         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26882         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26883         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26884         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26885         Suggested by Paul Eggert.
26886
26887 2010-08-14  Bruno Haible  <bruno@clisp.org>
26888
26889         Tests for module 'astrxfrm'.
26890         * modules/astrxfrm-tests: New file.
26891         * tests/test-astrxfrm.c: New file.
26892
26893         New module 'astrxfrm'.
26894         * lib/astrxfrm.h: New file.
26895         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26896         * modules/astrxfrm: New file.
26897
26898 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26899
26900         regex: Tweak doc.
26901         * doc/regex.texi (Overview): Don't mention regex.c.
26902         (GNU Regular Expression Compiling): Likewise.
26903         (Match-end-of-line Operator): Mention 'not_eol'.
26904
26905 2010-08-14  Brian Gough  <bjg@gnu.org>
26906             Bruno Haible  <bruno@clisp.org>
26907
26908         git-merge-changelog: add doc relating to use with bzr and hg.
26909         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26910
26911 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26912
26913         pthread: fix pthread.h creation for srcdir != builddir
26914         * modules/pthread (Makefile.am): Fix the rule to work also in a
26915         non-srcdir build.
26916
26917 2010-08-13  Karl Berry  <karl@gnu.org>
26918
26919         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26920         * doc/posix-*/*: force line break before @url of POSIX
26921         specifications.
26922         Suggested by Werner Lemberg.
26923
26924 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26925
26926         strtod: fix const diagnostic
26927         * lib/strtod.c (strtod): Don't assign const char * to char *,
26928         as this elicits a warning from GCC when warnings are enabled.
26929
26930 2010-08-10  Pádraig Brady <P@draigbrady.com>
26931         and Eric Blake  <eblake@redhat.com>
26932
26933         copy-acl: ignore ENOTSUP on HP-UX
26934         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26935         so that it is available for HP-UX.
26936         * lib/copy-acl.c (qcopy_acl): Use it.
26937         Reported by Patrick M. Callahan.
26938
26939 2010-08-10  Eric Blake  <eblake@redhat.com>
26940
26941         open, chown: relax license
26942         * modules/open (License): Change to LGPLv2+, with consent by all
26943         authors, for use in augeas.
26944         * modules/chown (License): Likewise.
26945         * modules/lchown (Likewise): Likewise.
26946         Requested by Adam Stokes.
26947
26948 2010-08-09  Karl Berry  <karl@gnu.org>
26949
26950         * build-aux/ar-lib: new file, import from Automake.
26951         * config/srclist.txt: autocheck for updates.
26952
26953 2010-08-09  Eric Blake  <eblake@redhat.com>
26954
26955         readlinkat: adjust client modules
26956         * modules/areadlinkat (Depends-on): Use readlinkat, not
26957         symlinkat.
26958         * modules/areadlinkat-with-size (Depends-on): Likewise.
26959
26960         mknod: be more vocal about danger of running tests as root
26961         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26962         root, since that is just asking for problems.
26963         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26964
26965         readlinkat: split into its own module
26966         * modules/symlinkat: Split readlinkat...
26967         * modules/readlinkat: ...into separate module.
26968         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26969         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26970         * lib/symlinkat.c (readlinkat): Move...
26971         * lib/readlinkat.c: ...into new file.
26972         * modules/symlinkat-tests: Split readlinkat test...
26973         * modules/readlinkat-tests: ...into separate module.
26974         * tests/test-symlinkat.c: Split...
26975         * tests/test-readlinkat.c: ...into new file.
26976         * NEWS: Document the split.
26977         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26978         * lib/unistd.in.h (readlinkat): Likewise.
26979         Suggested by Bruno Haible.
26980
26981 2010-08-08  Bruno Haible  <bruno@clisp.org>
26982
26983         memxfrm: Speed up.
26984         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26985         that usually only one call to strxfrm is necessary for each string
26986         part.
26987         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26988
26989 2010-08-07  Karl Berry  <karl@gnu.org>
26990
26991         * doc/posix-headers/limits.texi,
26992         * doc/posix-functions/malloc.texi,
26993         * doc/posix-functions/strsignal.texi: missing @item.
26994         * doc/ld-version-script.texi: spurious leading i.
26995         * doc/regex.texi (Interval Operators): no commas inside @var.
26996
26997 2010-08-01  Bruno Haible  <bruno@clisp.org>
26998
26999         Integrate the regex documentation.
27000         * doc/gnulib.texi: Define 'cn' index.
27001         (Regular expressions): New a chapter that includes regex.texi and
27002         regexprops-generic.texi.
27003         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27004         syntax.
27005
27006         Whitespace cleanup.
27007         * doc/regex.texi: Remove trailing spaces.
27008
27009         Add regex documentation.
27010         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27011         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27012         Written by Kathy A. Hargreaves and Karl Berry.
27013
27014 2010-08-01  Bruno Haible  <bruno@clisp.org>
27015
27016         link: Update documentation.
27017         * doc/posix-functions/link.texi: Update regarding Solaris.
27018
27019 2010-07-31  Bruno Haible  <bruno@clisp.org>
27020
27021         Update modules list.
27022         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27023         (String handling <string.h>): Add memcmp2, memxfrm.
27024         (Container data structures): Add xlist, xsublist, xoset.
27025         (Core language properties): Add alignof, unused-parameter.
27026         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27027         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27028         (Unibyte characters <ctype.h>): New section.
27029         (String handling <string.h>): New section.
27030         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27031         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27032         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27033         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27034         tan, tanh, tanl, y0, y1, yn.
27035         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27036         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27037         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27038         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27039         unlockpt, vdprintf, vdprintf-posix.
27040         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27041         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27042         xconcat-filename.
27043         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27044         getdtablesize, pipe2, pipe2-safer.
27045         (Security): New section.
27046         (Networking functions): Add accept4.
27047         (Signal handling): Add sigpipe.
27048         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27049         mbmemcasecoll.
27050         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27051         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27052         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27053         pipe-filter-ii.
27054         (Misc): Add argp-version-etc, login_tty, parse-duration.
27055
27056 2010-07-31  Bruno Haible  <bruno@clisp.org>
27057
27058         Improve doc in MODULES.html.
27059         * modules/linkat (Description): Add the word "function".
27060         * modules/mkfifo (Description): Likewise.
27061         * modules/mknod (Description): Likewise.
27062         * modules/remove (Description): Likewise.
27063         * modules/renameat (Description): Likewise.
27064         * modules/stat (Description): Likewise.
27065         * modules/symlink (Description): Likewise.
27066         * modules/unlink (Description): Likewise.
27067
27068 2010-07-31  Bruno Haible  <bruno@clisp.org>
27069
27070         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27071         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27072         option --enable/disable-c++ instead of --enable/disable-cxx.
27073         * NEWS: Mention the change.
27074
27075 2010-07-31  Bruno Haible  <bruno@clisp.org>
27076
27077         readlink, areadlink: Relax test a bit.
27078         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27079         alternative to ENOTDIR.
27080         * tests/test-areadlink.h (test_areadlink): Likewise.
27081         Reported by Rainer Tammer.
27082
27083 2010-07-31  Bruno Haible  <bruno@clisp.org>
27084
27085         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27086         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27087         character, perform the search using U_STRCHR.
27088         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27089         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27090         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27091         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27092         Suggested by Paolo Bonzini.
27093
27094 2010-07-31  Bruno Haible  <bruno@clisp.org>
27095
27096         unistr/u*-strstr: Fix dependencies.
27097         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27098         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27099         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27100
27101 2010-07-31  Bruno Haible  <bruno@clisp.org>
27102
27103         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27104         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27105         the beginning of the loop.
27106         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27107         cases in 'switch' statement.
27108
27109         unistr/u8-strchr: Fix several bugs.
27110         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27111         the string. When not found, return NULL, not a pointer near the end.
27112
27113         More tests for unistr/u8-strchr.
27114         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27115         that the function does not read past the first occurrence of the byte
27116         being searched.
27117         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27118         * tests/unistr/test-u16-strchr.c (main): New function.
27119         * tests/unistr/test-u32-strchr.c (main): New function.
27120
27121 2010-07-31  Bruno Haible  <bruno@clisp.org>
27122
27123         posix-modules: Ignore backup files of documentation files.
27124         * posix-modules: grep only through files named *.texi.
27125
27126 2010-07-31  Bruno Haible  <bruno@clisp.org>
27127
27128         symlinkat: Fix documentation.
27129         * doc/posix-functions/readlinkat.texi: Fix module name.
27130
27131 2010-07-31  Bruno Haible  <bruno@clisp.org>
27132
27133         fchownat: Replace also when chown has the trailing slash bug.
27134         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27135         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27136         introduced on 2010-04-10.
27137         Reported by Rainer Tammer.
27138
27139 2010-07-31  Bruno Haible  <bruno@clisp.org>
27140
27141         linkat: Work around AIX 7.1 bug.
27142         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27143         whether linkat handles trailing slash correctly. If not, replace linkat
27144         and define LINKAT_TRAILING_SLASH_BUG.
27145         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27146         check whether (fd1,file1) points to a directory if file1 or file2 ends
27147         in a slash. Code taken from lib/link.c.
27148         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27149         Reported by Rainer Tammer.
27150
27151 2010-07-31  Bruno Haible  <bruno@clisp.org>
27152
27153         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27154         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27155         This disables an xlc optimization that was causing wrong test results.
27156         Reported by Rainer Tammer.
27157
27158 2010-07-31  Bruno Haible  <bruno@clisp.org>
27159
27160         iconv: Work around AIX 6.1..7.1 bug.
27161         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27162         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27163         cross-compiling, guess no on all versions of AIX.
27164         Reported by Rainer Tammer.
27165
27166 2010-07-31  Bruno Haible  <bruno@clisp.org>
27167
27168         readlink: Relax test a bit.
27169         * tests/test-readlink.h (test_readlink): Allow different errno value
27170         when readlink is called with a file name that ends in / and refers to
27171         a file.
27172         Suggested by Eric Blake.
27173         Reported by Rainer Tammer.
27174
27175 2010-07-31  Bruno Haible  <bruno@clisp.org>
27176
27177         copysign: Does not require -lm on glibc systems.
27178         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27179         gl_COMMON_DOUBLE_MATHFUNC.
27180         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27181
27182 2010-07-31  Bruno Haible  <bruno@clisp.org>
27183
27184         duplocale: Work around AIX 7.1 bug.
27185         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27186         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27187         * lib/duplocale.c (rpl_duplocale): Update comment.
27188         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27189         Reported by Rainer Tammer.
27190
27191 2010-07-30  Bruno Haible  <bruno@clisp.org>
27192
27193         dirfd: Avoid link error on AIX 7.1.
27194         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27195         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27196         exist, set REPLACE_DIRFD.
27197         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27198         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27199         * doc/posix-functions/dirfd.texi: Update.
27200         Reported by Rainer Tammer.
27201
27202 2010-07-30  Eric Blake  <eblake@redhat.com>
27203
27204         strtod: next round of AIX fixes
27205         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27206         exponent.
27207         * tests/test-strtod.c (main): Enhance tests.
27208         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27209         Reported by Rainer Tammer.
27210
27211         futimens: fix configure check
27212         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27213         Reported by Bruno Haible.
27214
27215 2010-07-30  Bruno Haible  <bruno@clisp.org>
27216
27217         getline: Update regarding AIX.
27218         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27219         Reported by Rainer Tammer.
27220
27221 2010-07-30  Bruno Haible  <bruno@clisp.org>
27222
27223         wcwidth: Drop replacement on AIX 7.
27224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27225         AIX 7.
27226         Reported by Rainer Tammer.
27227
27228 2010-07-30  Bruno Haible  <bruno@clisp.org>
27229
27230         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27231         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27232         a 'char *'.
27233         Reported by Rainer Tammer.
27234
27235 2010-07-30  Bruno Haible  <bruno@clisp.org>
27236
27237         unlink: Update regarding AIX.
27238         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27239         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27240         Reported by Rainer Tammer.
27241
27242 2010-07-30  Bruno Haible  <bruno@clisp.org>
27243
27244         symlink: Update regarding AIX.
27245         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27246         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27247         Reported by Rainer Tammer.
27248
27249 2010-07-30  Bruno Haible  <bruno@clisp.org>
27250
27251         strndup: Update regarding AIX.
27252         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27253         AIX 7.
27254         Reported by Rainer Tammer.
27255
27256 2010-07-30  Bruno Haible  <bruno@clisp.org>
27257
27258         stat: Update regarding AIX.
27259         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27260         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27261         Reported by Rainer Tammer.
27262
27263 2010-07-30  Bruno Haible  <bruno@clisp.org>
27264
27265         truncl: Fix autoconf test.
27266         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27267         whether truncl works.
27268         Reported by Rainer Tammer.
27269
27270 2010-07-30  Bruno Haible  <bruno@clisp.org>
27271
27272         round: Update regarding AIX.
27273         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27274         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27275         Reported by Rainer Tammer.
27276
27277 2010-07-30  Bruno Haible  <bruno@clisp.org>
27278
27279         rename: Update regarding AIX.
27280         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27281         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27282         Reported by Rainer Tammer.
27283
27284 2010-07-30  Bruno Haible  <bruno@clisp.org>
27285
27286         printf.m4: Update regarding AIX.
27287         * m4/printf.m4: Update comments regarding AIX.
27288         Reported by Rainer Tammer.
27289
27290 2010-07-30  Bruno Haible  <bruno@clisp.org>
27291
27292         iconv: Update regarding AIX.
27293         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27294         AIX 7.
27295         Reported by Rainer Tammer.
27296
27297 2010-07-30  Bruno Haible  <bruno@clisp.org>
27298
27299         getopt: Update regarding AIX.
27300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27301         no on AIX.
27302         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27303         Reported by Rainer Tammer.
27304
27305 2010-07-30  Bruno Haible  <bruno@clisp.org>
27306
27307         ldexpl; Update regarding AIX.
27308         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27309         on AIX 7.
27310         Reported by Rainer Tammer.
27311
27312 2010-07-30  Bruno Haible  <bruno@clisp.org>
27313
27314         frexpl: Update regarding AIX.
27315         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27316         on AIX 7.
27317         Reported by Rainer Tammer.
27318
27319 2010-07-30  Bruno Haible  <bruno@clisp.org>
27320
27321         open, fopen: Update regarding AIX.
27322         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27323         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27324         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27325         * doc/posix-functions/fopen.texi: Likewise.
27326         Reported by Rainer Tammer.
27327
27328 2010-07-30  Bruno Haible  <bruno@clisp.org>
27329
27330         chown: Update doc regarding AIX.
27331         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27332         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27333         Reported by Rainer Tammer.
27334
27335 2010-07-30  Eric Blake  <eblake@redhat.com>
27336
27337         strtod: fix bug in replacement function on AIX
27338         * lib/strtod.c (strtod): Special case broken "0x" parse in
27339         underlying strtod.
27340         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27341         * doc/posix-functions/strtod.texi (strtod): Likewise.
27342         Reported by Rainer Tammer.
27343
27344 2010-07-30  Bruno Haible  <bruno@clisp.org>
27345
27346         mbrlen: Fix cross-compilation guess for AIX.
27347         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27348         guess. Leftover from 2008-12-22.
27349
27350 2010-07-30  Bruno Haible  <bruno@clisp.org>
27351
27352         mbrtowc: Fix cross-compilation guess for AIX.
27353         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27354         guess. Leftover from 2008-12-21.
27355
27356 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27357
27358         init.sh: work around trap limitation of some shells
27359         * tests/init.sh (setup_): Move exit trap outside of shell function.
27360
27361 2010-07-29  Eric Blake  <eblake@redhat.com>
27362
27363         strtod: aid debugging
27364         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27365         understanding why strtod is rejected.
27366
27367 2010-07-28  Bruno Haible  <bruno@clisp.org>
27368
27369         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27370         * lib/unistr/u8-chr.c: Include <string.h>.
27371         * tests/unistr/test-u8-chr.c: Likewise.
27372         * tests/unistr/test-u16-chr.c: Likewise.
27373         * tests/unistr/test-u32-chr.c: Likewise.
27374         * tests/unistr/test-u8-strchr.c: Likewise.
27375         * tests/unistr/test-u16-strchr.c: Likewise.
27376         * tests/unistr/test-u32-strchr.c: Likewise.
27377         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27378         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27379         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27380         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27381
27382 2010-07-28  Bruno Haible  <bruno@clisp.org>
27383
27384         Use spaces for indentation, not tabs.
27385         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27386
27387 2010-07-27  Bruno Haible  <bruno@clisp.org>
27388
27389         mbspcasecmp: Fix function specification.
27390         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27391         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27392         Reported by Eric Blake <eblake@redhat.com>.
27393
27394 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27395
27396         timespec: use cast and not conditional, as truncation isn't possible
27397         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27398         instead of a conditional.  Comment about the situation in more detail.
27399         This undoes most of the 2009-10-29 patch.
27400
27401 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27402
27403         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27404         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27405         * lib/unistr/u8-strchr.c: Likewise.
27406         * modules/unistr/u8-chr: Depend on memchr.
27407
27408         unistr/u*-strchr: add tests
27409         * modules/unistr/u8-strchr-tests: New file.
27410         * modules/unistr/u16-strchr-tests: New file.
27411         * modules/unistr/u32-strchr-tests: New file.
27412         * tests/unistr/test-strchr.h: New file.
27413         * tests/unistr/test-u8-strchr.c: New file.
27414         * tests/unistr/test-u16-strchr.c: New file.
27415         * tests/unistr/test-u32-strchr.c: New file.
27416
27417         unistr/u*-chr: test multibyte sequences more
27418         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27419         test vector.
27420         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27421         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27422         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27423
27424         unistr/u*-chr: test multibyte sequences
27425         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27426
27427         unistr/u*-chr: prepare for multibyte tests
27428         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27429         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27430         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27431         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27432         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27433         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27434
27435 2010-07-18  Bruno Haible  <bruno@clisp.org>
27436
27437         unistr/u8-strchr: Optimize non-ASCII argument case.
27438         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27439         because the first byte often matches anyway.
27440         Reported by Pádraig Brady <P@draigbrady.com>.
27441
27442 2010-07-15  Karl Berry  <karl@gnu.org>
27443
27444         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27445
27446 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27447
27448         getcwd: on Solaris, work better if ancestors are inaccessible
27449         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27450         buffer and size, try again with a large buffer.  This works better
27451         on Solaris, since its getcwd succeeds even if the path to the root
27452         is inaccessible, and this is helpful in common cases such as .zfs
27453         hidden directories.  Problem reported by J Chapman Flack in
27454         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27455         Use system getcwd if it's declared, not merely if it's partly
27456         working; use the partly-working test only to avoid needless effort
27457         if the system getcwd fails.
27458         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27459         comment that was already obsolete and is now even more obsolete.
27460         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27461         now might call strdup.
27462
27463 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27464
27465         pthread: Add enough so that coreutils/src/sort.c compiles.
27466         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27467         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27468         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27469         Include <sys/types.h>, in case it defines pthread_t.
27470         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27471         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27472         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27473         (pthread_rwlockattr_t, pthread_spinlock_t):
27474         New typedefs, if HAVE_PTHREAD_T is not defined.
27475         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27476         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27477         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27478         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27479         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27480         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27481         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27482         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27483         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27484         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27485         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27486         New macros.
27487         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27488         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27489         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27490         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27491         (pthread_spin_unlock): New dummy functions.
27492         (pthread_create): Return EAGAIN; don't set errno.
27493         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27494         require AC_C_INLINE.
27495         * modules/pthread (Depends-on): Add sched, time.
27496         (pthread.h): Use AM_V_GEN.
27497
27498 2010-07-13  Bruno Haible  <bruno@clisp.org>
27499
27500         striconveh: Don't malloc memory if the result buffer is sufficient.
27501         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27502         buffer if its size is sufficient.
27503         Reported by Ludovic Courtès <ludo@gnu.org>.
27504
27505 2010-07-13  Bruno Haible  <bruno@clisp.org>
27506
27507         strtod: Add safety check.
27508         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27509
27510 2010-07-12  Bruno Haible  <bruno@clisp.org>
27511
27512         Unify tests that set gl_cv_func_ldexpl_no_libm.
27513         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27514         gl_FUNC_LDEXPL.
27515         (gl_FUNC_LDEXPL): Invoke it.
27516         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27517
27518 2010-07-12  Bruno Haible  <bruno@clisp.org>
27519
27520         Unify tests that set gl_cv_func_ldexp_no_libm.
27521         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27522         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27523         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27524         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27525         * modules/strtod (Files): Add m4/ldexp.m4.
27526
27527 2010-07-12  Bruno Haible  <bruno@clisp.org>
27528
27529         Unify tests that set gl_cv_func_frexpl_no_libm.
27530         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27531         gl_FUNC_FREXPL_NO_LIBM.
27532         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27533         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27534
27535 2010-07-12  Bruno Haible  <bruno@clisp.org>
27536
27537         Unify tests that set gl_cv_func_frexp_no_libm.
27538         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27539         gl_FUNC_FREXP_NO_LIBM.
27540         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27541         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27542
27543 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27544
27545         memcoll: clarify sizes versus lengths, document better, and tweak perf
27546         * lib/memcoll.c (strcoll_loop, memcoll0):
27547         Improve quality of descriptive comments.  Name variables
27548         consistently as to whether they are lengths (which do not include
27549         terminating null) versus sizes (which do).
27550         * lib/xmemcoll.c (xmemcoll0): Likewise.
27551         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27552         returned when s1size == 0; this is easier to compile and saves
27553         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27554
27555 2010-07-12  Bruno Haible  <bruno@clisp.org>
27556
27557         Tests for module '_Exit'.
27558         * modules/_Exit-tests: New file.
27559         * tests/test-_Exit.sh: New file.
27560         * tests/test-_Exit.c: New file.
27561
27562         New module '_Exit'.
27563         * lib/stdlib.in.h (__attribute__): New macro.
27564         (_Exit): New declaration.
27565         * lib/_Exit.c: New file.
27566         * m4/_Exit.m4: New file.
27567         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27568         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27569         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27570         * modules/_Exit: New file.
27571         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27572         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27573
27574 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27575
27576         strtod: make it more-accurate typically, and don't require libm
27577         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27578         Include limits.h.  Don't include string.h.
27579         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27580         (locale_isspace): New function, so that no casts are needed to
27581         check whether *s is a space.
27582         (ldexp): Provide an unused dummy if not available.
27583         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27584         (strtod): Use them.  This implementation prefers to use the
27585         underlying strtod if available, falling back on our own code
27586         only to fix known bugs.  This is more likely to produce an
27587         accurate result.  Also, it avoids the use of libm functions.
27588         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27589         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27590         was absent, but it caused a test failure with coreutils.
27591         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27592         with libm.
27593         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27594         * modules/strtod-tests (Makefile.am): Likewise.
27595
27596 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27597             Bruno Haible  <bruno@clisp.org>
27598
27599         unistr/u8-strchr: Optimize ASCII argument case.
27600         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27601
27602 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27603
27604         (x)memcoll: minor tweaks
27605         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27606         is after the type that it qualifies.
27607         (memcoll0): Likewise.
27608         * lib/memcoll.h (memcoll0): Likewise.
27609         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27610         * lib/xmemcoll.h (xmemcoll0): Likewise.
27611         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27612         differs from memcoll in that the NUL byte is part of the argument.
27613         Omit the abort-checks, as performance is a real issue here.  Plus,
27614         the checks were wrong anyway (an off-by-one error).  Omit local
27615         variable 'diff', as it's a bit clearer that way.
27616         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27617         no longer needed.
27618
27619 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27620
27621         (x)memcoll: speedup when input is known to be NUL delimited
27622         * lib/memcoll.c: Include stdlib.
27623         (memcoll0): New function.
27624         (strcoll_loop): New function, refactored for use in both memcoll
27625         and memcoll0.
27626         * lib/memcoll.h (memcoll0): Add prototype.
27627         * lib/xmemcoll.c (xmemcoll0): New function.
27628         (collate_error): New function, refactored for use in both xmemcoll
27629         and xmemcoll0.
27630         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27631         * m4/memcoll.m4: add inline invocation.
27632
27633 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27634
27635         * build-aux/bootstrap: Remove any local translations
27636         from the translation project synchronization directory,
27637         so that local only translations are not distributed.
27638
27639 2010-07-04  Bruno Haible  <bruno@clisp.org>
27640
27641         fsusage: Clarify which code applies to which platforms.
27642         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27643         platform.
27644         * lib/fsusage.c (get_fs_usage): Likewise.
27645
27646 2010-07-04  Bruno Haible  <bruno@clisp.org>
27647
27648         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27649         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27650         Reported by Martin Lambers <marlam@marlam.de>.
27651
27652 2010-07-04  Jim Meyering  <meyering@redhat.com>
27653
27654         hash: once again explicitly disallow insertion of NULL
27655         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27656         inserting a NULL pointer cannot work with these functions.
27657         Add a comment with details.
27658         This reverts part of the 2010-07-01 commit, 5bef1a35
27659         "hash: extend module to deal with non-pointer keys".
27660
27661 2010-07-01  Bruno Haible  <bruno@clisp.org>
27662
27663         stdbool: Update doc.
27664         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27665         Info from Christian Weisgerber <naddy@mips.inka.de>.
27666
27667 2010-07-01  Jim Meyering  <meyering@redhat.com>
27668
27669         hash: extend module to deal with non-pointer keys
27670         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27671         but that allows insertion of non-pointer entries.
27672         Do not disallow an ENTRY value of NULL.
27673         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27674         * lib/hash.h (hash_insert0): Declare.
27675
27676 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27677
27678         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27679         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27680         not present (i.e. with autoconf 2.59 and when using gettextize, not
27681         gnulib), require AC_GNU_SOURCE instead.
27682
27683 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27684
27685         idpriv-drop: Fix tests.
27686         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27687         not to the test-idpriv-droptemp program.
27688
27689 2010-06-29  Bruno Haible  <bruno@clisp.org>
27690
27691         string: Fix syntax error with g++ 2.96.
27692         * lib/string.in.h (__pure__): Remove definition.
27693         (_GL_ATTRIBUTE_PURE): New macro.
27694         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27695         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27696         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27697
27698 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27699
27700         unitypes: Fix bug introduced on 2010-05-18.
27701         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27702
27703 2010-06-22  Eric Blake  <eblake@redhat.com>
27704
27705         memmem: slight optimization
27706         * lib/str-two-way.h (critical_factorization): Update comments.
27707         Reduce work during factorization phase.
27708         Reported by Carlos Bueno <carlos@bueno.org>.
27709
27710 2010-06-21  Bruno Haible  <bruno@clisp.org>
27711
27712         Fix HAVE_CALLOC_POSIX misnomer.
27713         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27714         !HAVE_CALLOC_POSIX.
27715         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27716         HAVE_CALLOC_POSIX.
27717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27718         instead of HAVE_CALLOC_POSIX.
27719         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27720         HAVE_CALLOC_POSIX.
27721
27722         Use modern idiom for calloc() replacement.
27723         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27724         AC_FUNC_CALLOC.
27725         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27726         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27727         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27728         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27729         (gl_REPLACE_CALLOC): New macro.
27730
27731 2010-06-21  Bruno Haible  <bruno@clisp.org>
27732
27733         Fix HAVE_REALLOC_POSIX misnomer.
27734         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27735         !HAVE_REALLOC_POSIX.
27736         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27737         HAVE_REALLOC_POSIX.
27738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27739         instead of HAVE_REALLOC_POSIX.
27740         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27741         HAVE_REALLOC_POSIX.
27742
27743         Use modern idiom for realloc() replacement.
27744         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27745         AC_FUNC_REALLOC.
27746         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27747         Autoconf's AC_FUNC_REALLOC.
27748         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27749         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27750         (gl_REPLACE_REALLOC): New macro.
27751         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27752
27753 2010-06-21  Bruno Haible  <bruno@clisp.org>
27754
27755         Fix HAVE_MALLOC_POSIX misnomer.
27756         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27757         !HAVE_MALLOC_POSIX.
27758         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27759         HAVE_MALLOC_POSIX.
27760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27761         instead of HAVE_MALLOC_POSIX.
27762         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27763         HAVE_MALLOC_POSIX.
27764
27765         Use modern idiom for malloc() replacement.
27766         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27767         AC_FUNC_MALLOC.
27768         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27769         Autoconf's AC_FUNC_MALLOC.
27770         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27771         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27772         (gl_REPLACE_MALLOC): New macro.
27773         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27774
27775 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27776
27777         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27778         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27779         This macro takes 3 arguments, not 4.
27780
27781 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27782
27783         ipv6: fix detection under mingw
27784         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27785         in6_addr.
27786
27787 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27788
27789         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27790         that strtod() works when cross-compiling to a glibc version known
27791         to work.
27792
27793 2010-06-15  Bruno Haible  <bruno@clisp.org>
27794
27795         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27796
27797 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27798
27799         select: Correct timeout.
27800         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27801
27802 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27803
27804         git-version-gen: init shell var to avoid env var influence
27805         * build-aux/git-version-gen (v): Init shell var to empty.
27806
27807 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27808
27809         priv-set: Don't assume that priv.h exists merely because getppriv does.
27810         See Jan Andersen's bug report about AIX 5L in
27811         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27812         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27813         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27814         * lib/priv-set.h: Likewise.
27815         * tests/test-priv-set.c: Likewise.
27816
27817 2010-06-13  Bruno Haible  <bruno@clisp.org>
27818
27819         relocatable: Make it easier to test whether to install wrappers.
27820         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27821         RELOCATABLE_VIA_WRAPPER.
27822
27823 2010-06-13  Bruno Haible  <bruno@clisp.org>
27824
27825         gnulib-tool: Display specified modules and dependencies differently.
27826         * gnulib-tool (func_show_module_list): New function.
27827         (func_import, func_create_testdir): Invoke it.
27828         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27829
27830 2010-06-13  Bruno Haible  <bruno@clisp.org>
27831
27832         gnulib-tool: Align code of func_import and func_create_testdir.
27833         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27834         specified_modules.
27835
27836 2010-06-12  Jim Meyering  <meyering@redhat.com>
27837
27838         test-inttostr: avoid spurious failure on Solaris 9
27839         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27840         to accept "%ju".  Reported by Bruno Haible.
27841
27842 2010-06-11  Jim Meyering  <meyering@redhat.com>
27843
27844         test-sys_socket: mark variables as used more readably
27845         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27846         as "used" explicitly via (void) statement casts.  This is more
27847         readable than using them in an artificial return expression.
27848         Suggestion from Bruno Haible.
27849
27850 2010-06-11  Bruno Haible  <bruno@clisp.org>
27851
27852         Avoid some more warnings from "gcc -Wwrite-strings".
27853         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27854         to 'const char *'.
27855         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27856         * tests/test-c-strcasestr.c (main): Likewise.
27857         * tests/test-mbscasestr1.c (main): Likewise.
27858         * tests/test-mbscasestr2.c (main): Likewise.
27859         * tests/test-memmem.c (main): Likewise.
27860         * tests/test-strstr.c (main): Likewise.
27861         * tests/test-strcasestr.c (main): Likewise.
27862
27863 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27864
27865         init.sh: change framework_failure_ to fail with status 99, not 1
27866         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27867         automake's parallel-tests rule that this is an unexpected failure,
27868         even if the test is listed in XFAIL_TESTS.
27869
27870 2010-06-11  Jim Meyering  <meyering@redhat.com>
27871
27872         test-inttostr: avoid warnings about 4-6KB literal strings
27873         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27874         Include "macros.h", for its definition of ASSERT.
27875         (CK): s/assert/ASSERT/
27876         * modules/inttostr-tests (Files): Add macros.h.
27877
27878         init.sh: don't use $ME_ or skip_ before they are defined
27879         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27880         their first uses.  Also hoist their companions: warn_, fail_,
27881         framework_failure_, $stderr_fileno.  Prompted by a patch from
27882         Stefano Lattarini.
27883
27884         test-sys_socket: avoid set-but-not-used warnings from gcc
27885         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27886         avoid warning about set-but-not-used variables.
27887
27888         test-xvasprintf: avoid 'const' discard warnings
27889         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27890         "const" when assigning from literal strings.
27891         (test_xasprintf): Add "void" in function argument list to placate
27892         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27893
27894         tests: avoid compilation warnings in argmatch and exclude tests...
27895         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27896         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27897         Since it always exits, declare with the "noreturn" attribute.
27898         * tests/test-argmatch.c: Likewise.
27899
27900         tests: avoid 'const' discard warnings in mbsstr tests
27901         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27902         * tests/test-mbsstr2.c (main): Likewise.
27903
27904         test-verify: avoid warning from gcc's -Wmissing-declarations
27905         * tests/test-verify.c (function): Declare to be static.
27906
27907         test-inttostr.c: include <string.h> for use of strcmp
27908         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27909
27910         test-linkat: avoid failed assertion on "other" architectures
27911         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27912         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27913         sparc: https://bugs.launchpad.net/bugs/591968
27914
27915 2010-06-11  Jim Meyering  <meyering@redhat.com>
27916
27917         printf.m4: avoid autoconf's "Expanded Before Required" warning
27918         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27919         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27920         autoconf warning.
27921
27922 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27923
27924         Replacement header templates are now named with ".in", not "_".
27925         * doc/gnulib-intro.texi: Correct.
27926
27927 2010-06-10  Jim Meyering  <meyering@redhat.com>
27928
27929         inttostr-tests: depend on snprintf, not snprintf-posix
27930         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27931         snprintf-posix, to avoid this aclocal failure:
27932           missing file gnulib-tests/vasnprintf.c
27933           configure.ac:45: error: expected source file, required through \
27934           AC_LIBSOURCES, not found
27935
27936 2010-06-10  Jim Meyering  <meyering@redhat.com>
27937
27938         inttostr: add a new function, inttostr, and tests
27939         The namesake function was not available.  The existence of the
27940         template file, inttostr.c makes its addition nontrivial.
27941         * lib/anytostr.c: Rename from inttostr.c.
27942         (anytostr): Rename from inttostr.
27943         * lib/inttostr.c: New file.
27944         * modules/inttostr (Files): Add anytostr.c.
27945         (Makefile.am): Set lib_SOURCES instead of ...
27946         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27947         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27948         * lib/offtostr.c: Likewise.
27949         * lib/uinttostr.c: Likewise.
27950         * lib/umaxtostr.c: Likewise.
27951         * modules/inttostr-tests: New file.
27952         * tests/test-inttostr.c: New file.  Test these functions.
27953
27954 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27955             Bruno Haible  <bruno@clisp.org>
27956
27957         Add "Extending Gnulib" chapter to manual.
27958         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27959         chapter.
27960         (Extending Gnulib): New chapter.
27961         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27962         chapter.
27963
27964 2010-06-09  Bruno Haible  <bruno@clisp.org>
27965
27966         Avoid relocwrapper link errors due to gnulib replacement functions.
27967         * lib/areadlink.c: Use the system's malloc, realloc functions.
27968         (areadlink): Set errno to ENOMEM explicitly.
27969         * modules/areadlink (Depends-on): Remove malloc-posix.
27970         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27971
27972 2010-06-09  Bruno Haible  <bruno@clisp.org>
27973
27974         Avoid relocwrapper link errors due to gnulib replacement functions.
27975         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27976         * lib/malloca.c: Likewise.
27977         * lib/relocatable.c: Likewise.
27978         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27979         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27980         * lib/setenv.c: Use the system's malloc, realloc functions.
27981         * lib/strerror.c: Use the system's sprintf function.
27982         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27983
27984 2010-06-04  Bruno Haible  <bruno@clisp.org>
27985
27986         Prefer documented low-level autoconf macro names.
27987         * m4/lib-link.m4: Use m4_translit instead of translit.
27988         * m4/environ.m4: Likewise.
27989         * m4/mathfunc.m4: Likewise.
27990         * m4/onceonly.m4: Likewise.
27991         * m4/stdint.m4: Likewise.
27992         Suggested by Eric Blake.
27993
27994 2010-06-04  Martin Lambers  <marlam@marlam.de>
27995             Bruno Haible  <bruno@clisp.org>
27996
27997         havelib: Allow library names with '+' characters.
27998         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27999         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28000
28001 2010-06-09  Bruno Haible  <bruno@clisp.org>
28002
28003         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28004         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28005         realloc failed.
28006
28007 2010-06-08  Peter Simons  <simons@cryp.to>
28008
28009         maint.mk: make the news-check rule more configurable
28010         * top/maint.mk (news-check-lines-spec): New variable.
28011         (news-check): Use "sed -n 1,10p" in place of "head".
28012
28013 2010-06-07  Jim Meyering  <meyering@redhat.com>
28014
28015         do-release-commit-and-tag: fix typo in --help
28016         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28017
28018         regex: avoid new dead-code warning with gcc-4.6.0
28019         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28020         if-block containing a while-loop.  It's been unused for at least
28021         5 years.
28022
28023 2010-06-05  Bruno Haible  <bruno@clisp.org>
28024
28025         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28026         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28027
28028 2010-06-04  Bruno Haible  <bruno@clisp.org>
28029
28030         Update to GNU gettext 0.18.1.
28031         * modules/gettext (configure.ac): Require gettext infrastructure from
28032         version 0.18.1.
28033
28034 2010-06-03  Bruno Haible  <bruno@clisp.org>
28035
28036         Don't use AC_LIBOBJ with file names in subdirectories.
28037         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28038         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28039         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28040         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28041         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28042         gl_LIBUNISTRING_LIBSOURCE.
28043         (Makefile.am): Augment lib_SOURCES here, conditionally.
28044         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28045
28046 2010-06-03  Bruno Haible  <bruno@clisp.org>
28047
28048         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28049         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28050         expansion does not end with a newline.
28051         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28052         unnecessary newline.
28053
28054 2010-06-03  Bruno Haible  <bruno@clisp.org>
28055
28056         Reduce dependencies.
28057         * tests/test-quotearg.h: New file, extracted from
28058         tests/test-quotearg.c.
28059         * tests/test-quotearg-simple.c: New file, extracted from
28060         tests/test-quotearg.c.
28061         * tests/test-quotearg.c: Don't include <ctype.h>.
28062         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28063         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28064         use_quote_double_quotes, use_quotearg_colon): Moved to
28065         tests/test-quotearg.h.
28066         (results_g, flag_results, custom_quotes, custom_results): Moved
28067         to tests/test-quotearg-simple.c.
28068         (main): Moved the part that does not depend on gettext to
28069         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28070         performed.
28071         * modules/quotearg-simple: New file.
28072         * modules/quotearg-simple-tests: New file.
28073         * modules/quotearg (Depends-on): Add quotearg-simple.
28074         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28075         (Files): Add tests/test-quotearg.h.
28076         Reported by Paolo Bonzini.
28077
28078 2010-06-03  Bruno Haible  <bruno@clisp.org>
28079
28080         Reduce dependencies.
28081         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28082
28083 2010-06-03  Bruno Haible  <bruno@clisp.org>
28084
28085         time: Undefine more broken macros.
28086         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28087         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28088         Reported by Eric Blake.
28089
28090 2010-06-03  Bruno Haible  <bruno@clisp.org>
28091
28092         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28093         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28094         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28095         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28096         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28097         Reported by Ludovic Courtès <ludo@gnu.org>.
28098
28099 2010-06-02  Eric Blake  <eblake@redhat.com>
28100
28101         time: work with mingw + pthreads-win32 library
28102         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28103         if timespec is defined only in pthread.h.
28104         * modules/time (Makefile.am): Substitute it.
28105         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28106         <pthread.h>, when needed.
28107         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28108         from the library.
28109
28110 2010-05-31  Bruno Haible  <bruno@clisp.org>
28111
28112         Avoid expanding two macros in the wrong order.
28113         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28114         gl_LIBUNISTRING if it is defined.
28115         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28116         autoconf >= 2.64.
28117         Reported by Ludovic Courtès <ludo@gnu.org>.
28118
28119 2010-05-27  Jim Meyering  <meyering@redhat.com>
28120
28121         maint.mk: also prohibit "#undef" of always-defined symbols
28122         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28123         Allow more than one space before the symbol name.
28124         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28125         the regexp uses alternation.
28126
28127 2010-05-26  Eric Blake  <eblake@redhat.com>
28128
28129         maint.mk: avoid echo -e
28130         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28131         Convert all uses of echo -* to printf.
28132         Reported by Matthias Bolte.
28133
28134 2010-05-25  Bruno Haible  <bruno@clisp.org>
28135
28136         Update to GNU gettext 0.18, part 2.
28137         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28138         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28139
28140 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28141
28142         Add missing include in test-pwrite.c.
28143         * tests/test-pwrite.c: Include string.h, for strcmp.
28144
28145 2010-05-24  Bruno Haible  <bruno@clisp.org>
28146
28147         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28148
28149 2010-05-24  Bruno Haible  <bruno@clisp.org>
28150
28151         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28152         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28153         iconveh_error argument.
28154         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28155         U_STRCONV_TO_LOCALE.
28156         * lib/unistr/u16-strcoll.c: Likewise.
28157         * lib/unistr/u32-strcoll.c: Likewise.
28158         * modules/unistr/u8-strcoll (Depends-on): Add
28159         uniconv/u8-strconv-to-enc, localcharset. Remove
28160         uniconv/u8-strconv-to-locale.
28161         (configure.ac): Bump version number.
28162         * modules/unistr/u16-strcoll (Depends-on): Add
28163         uniconv/u16-strconv-to-enc, localcharset. Remove
28164         uniconv/u16-strconv-to-locale.
28165         (configure.ac): Bump version number.
28166         * modules/unistr/u32-strcoll (Depends-on): Add
28167         uniconv/u32-strconv-to-enc, localcharset. Remove
28168         uniconv/u32-strconv-to-locale.
28169         (configure.ac): Bump version number.
28170
28171 2010-05-24  Bruno Haible  <bruno@clisp.org>
28172
28173         Avoid a test failure on NetBSD 5.0.
28174         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28175         an iconv() bug.
28176
28177 2010-05-24  Bruno Haible  <bruno@clisp.org>
28178
28179         Adjust #include directive style.
28180         * modules/regex (Includes): Recommend to write <regex.h>.
28181
28182 2010-05-24  Bruno Haible  <bruno@clisp.org>
28183
28184         regex: Don't require alloca.
28185         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28186         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28187         only inside if (0).
28188
28189 2010-05-23  Jim Meyering  <meyering@redhat.com>
28190
28191         test-renameat.c: include <sys/stat.h>
28192         * tests/test-renameat.c: Include <sys/stat.h>; required for
28193         definition of S_IS* macros.
28194
28195 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28196
28197         Update maintainer documentation for 'relocatable-prog' module.
28198         * doc/relocatable-maint.texi: Update.
28199         Comments by Bruno Haible.
28200
28201 2010-05-23  Bruno Haible  <bruno@clisp.org>
28202
28203         git-merge-changelog: Enable --split-merged-entry by default.
28204         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28205         (usage): Don't mention this option any more.
28206         Reported by Ralf Wildenhues.
28207
28208 2010-05-23  Jim Meyering  <meyering@redhat.com>
28209
28210         test-pwrite: do not leave behind a test file named "out"
28211         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28212         The trivial-looking use of init.sh is really necessary.
28213         It ensures that the temporary file, "out", is created in
28214         a temporary directory, and removed upon termination.
28215         * tests/test-pwrite.sh: Re-add file.
28216         * modules/pwrite-tests: Reference it.
28217
28218 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28219
28220         Fix output redirection buglet in init.sh.
28221         * tests/init.sh: Fix redirection of stderr.
28222
28223 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28224
28225         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28226
28227 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28228
28229         * modules/valgrind-tests: New file.
28230         * m4/valgrind-tests.m4: New file.
28231         * doc/valgrind-tests.texi: New file.
28232         * doc/gnulib.texi (Running self-tests under valgrind): New
28233         section.
28234
28235 2010-05-19  Bruno Haible  <bruno@clisp.org>
28236
28237         Clean up dead code in recent commit.
28238         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28239         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28240         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28241         Suggested by Paolo Bonzini.
28242
28243 2010-05-19  Bruno Haible  <bruno@clisp.org>
28244
28245         Avoid valgrind error reports from libunistring.
28246         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28247         * modules/libunistring (Files): Add it.
28248         * modules/libunistring-optional (Files): Likewise.
28249
28250 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28251             Bruno Haible  <bruno@clisp.org>
28252
28253         New module 'libunistring-optional'.
28254         * modules/libunistring-optional: New file.
28255         * m4/libunistring-base.m4: New file.
28256         * m4/libunistring-optional.m4: New file.
28257         * lib/unicase.in.h: Renamed from lib/unicase.h.
28258         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28259         * lib/unictype.in.h: Renamed from lib/unictype.h.
28260         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28261         * lib/uniname.in.h: Renamed from lib/uniname.h.
28262         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28263         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28264         * lib/unistr.in.h: Renamed from lib/unistr.h.
28265         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28266         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28267         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28268         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28269         gl_LIBUNISTRING. If the library was found, determine the installed
28270         version and set LIBUNISTRING_VERSION.
28271         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28272         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28273         handle a configuration option --with-included-libunistring.
28274         * modules/libunistring (Files): Add m4/absolute-header.m4.
28275         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28276         Add m4/libunistring-base.m4.
28277         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28278         (Makefile.am): Build unicase.h from unicase.in.h.
28279         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28280         Add m4/libunistring-base.m4.
28281         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28282         (Makefile.am): Build uniconv.h from uniconv.in.h.
28283         * modules/unictype/base (Files): Use unictype.in.h instead of
28284         unictype.h. Add m4/libunistring-base.m4.
28285         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28286         (Makefile.am): Build unictype.h from unictype.in.h.
28287         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28288         Add m4/libunistring-base.m4.
28289         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28290         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28291         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28292         Add m4/libunistring-base.m4.
28293         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28294         (Makefile.am): Build uniname.h from uniname.in.h.
28295         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28296         Add m4/libunistring-base.m4.
28297         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28298         (Makefile.am): Build uninorm.h from uninorm.in.h.
28299         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28300         unistdio.h. Add m4/libunistring-base.m4.
28301         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28302         (Makefile.am): Build unistdio.h from unistdio.in.h.
28303         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28304         Add m4/libunistring-base.m4.
28305         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28306         (Makefile.am): Build unistr.h from unistr.in.h.
28307         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28308         Add m4/libunistring-base.m4.
28309         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28310         (Makefile.am): Build unitypes.h from unitypes.in.h.
28311         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28312         Add m4/libunistring-base.m4.
28313         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28314         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28315         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28316         uniwidth.h. Add m4/libunistring-base.m4.
28317         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28318         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28319         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28320         instead of augmenting lib_SOURCES.
28321         * modules/unicase/empty-suffix-context: Likewise.
28322         * modules/unicase/locale-language: Likewise.
28323         * modules/unicase/tolower: Likewise.
28324         * modules/unicase/totitle: Likewise.
28325         * modules/unicase/toupper: Likewise.
28326         * modules/unicase/u8-casecmp: Likewise.
28327         * modules/unicase/u8-casecoll: Likewise.
28328         * modules/unicase/u8-casefold: Likewise.
28329         * modules/unicase/u8-casexfrm: Likewise.
28330         * modules/unicase/u8-ct-casefold: Likewise.
28331         * modules/unicase/u8-ct-tolower: Likewise.
28332         * modules/unicase/u8-ct-totitle: Likewise.
28333         * modules/unicase/u8-ct-toupper: Likewise.
28334         * modules/unicase/u8-is-cased: Likewise.
28335         * modules/unicase/u8-is-casefolded: Likewise.
28336         * modules/unicase/u8-is-lowercase: Likewise.
28337         * modules/unicase/u8-is-titlecase: Likewise.
28338         * modules/unicase/u8-is-uppercase: Likewise.
28339         * modules/unicase/u8-prefix-context: Likewise.
28340         * modules/unicase/u8-suffix-context: Likewise.
28341         * modules/unicase/u8-tolower: Likewise.
28342         * modules/unicase/u8-totitle: Likewise.
28343         * modules/unicase/u8-toupper: Likewise.
28344         * modules/unicase/u16-casecmp: Likewise.
28345         * modules/unicase/u16-casecoll: Likewise.
28346         * modules/unicase/u16-casefold: Likewise.
28347         * modules/unicase/u16-casexfrm: Likewise.
28348         * modules/unicase/u16-ct-casefold: Likewise.
28349         * modules/unicase/u16-ct-tolower: Likewise.
28350         * modules/unicase/u16-ct-totitle: Likewise.
28351         * modules/unicase/u16-ct-toupper: Likewise.
28352         * modules/unicase/u16-is-cased: Likewise.
28353         * modules/unicase/u16-is-casefolded: Likewise.
28354         * modules/unicase/u16-is-lowercase: Likewise.
28355         * modules/unicase/u16-is-titlecase: Likewise.
28356         * modules/unicase/u16-is-uppercase: Likewise.
28357         * modules/unicase/u16-prefix-context: Likewise.
28358         * modules/unicase/u16-suffix-context: Likewise.
28359         * modules/unicase/u16-tolower: Likewise.
28360         * modules/unicase/u16-totitle: Likewise.
28361         * modules/unicase/u16-toupper: Likewise.
28362         * modules/unicase/u32-casecmp: Likewise.
28363         * modules/unicase/u32-casecoll: Likewise.
28364         * modules/unicase/u32-casefold: Likewise.
28365         * modules/unicase/u32-casexfrm: Likewise.
28366         * modules/unicase/u32-ct-casefold: Likewise.
28367         * modules/unicase/u32-ct-tolower: Likewise.
28368         * modules/unicase/u32-ct-totitle: Likewise.
28369         * modules/unicase/u32-ct-toupper: Likewise.
28370         * modules/unicase/u32-is-cased: Likewise.
28371         * modules/unicase/u32-is-casefolded: Likewise.
28372         * modules/unicase/u32-is-lowercase: Likewise.
28373         * modules/unicase/u32-is-titlecase: Likewise.
28374         * modules/unicase/u32-is-uppercase: Likewise.
28375         * modules/unicase/u32-prefix-context: Likewise.
28376         * modules/unicase/u32-suffix-context: Likewise.
28377         * modules/unicase/u32-tolower: Likewise.
28378         * modules/unicase/u32-totitle: Likewise.
28379         * modules/unicase/u32-toupper: Likewise.
28380         * modules/unicase/ulc-casecmp: Likewise.
28381         * modules/unicase/ulc-casecoll: Likewise.
28382         * modules/unicase/ulc-casexfrm: Likewise.
28383         * modules/uniconv/u8-conv-from-enc: Likewise.
28384         * modules/uniconv/u8-conv-to-enc: Likewise.
28385         * modules/uniconv/u8-strconv-from-enc: Likewise.
28386         * modules/uniconv/u8-strconv-from-locale: Likewise.
28387         * modules/uniconv/u8-strconv-to-enc: Likewise.
28388         * modules/uniconv/u8-strconv-to-locale: Likewise.
28389         * modules/uniconv/u16-conv-from-enc: Likewise.
28390         * modules/uniconv/u16-conv-to-enc: Likewise.
28391         * modules/uniconv/u16-strconv-from-enc: Likewise.
28392         * modules/uniconv/u16-strconv-from-locale: Likewise.
28393         * modules/uniconv/u16-strconv-to-enc: Likewise.
28394         * modules/uniconv/u16-strconv-to-locale: Likewise.
28395         * modules/uniconv/u32-conv-from-enc: Likewise.
28396         * modules/uniconv/u32-conv-to-enc: Likewise.
28397         * modules/uniconv/u32-strconv-from-enc: Likewise.
28398         * modules/uniconv/u32-strconv-from-locale: Likewise.
28399         * modules/uniconv/u32-strconv-to-enc: Likewise.
28400         * modules/uniconv/u32-strconv-to-locale: Likewise.
28401         * modules/unictype/bidicategory-byname: Likewise.
28402         * modules/unictype/bidicategory-name: Likewise.
28403         * modules/unictype/bidicategory-of: Likewise.
28404         * modules/unictype/bidicategory-test: Likewise.
28405         * modules/unictype/block-list: Likewise.
28406         * modules/unictype/block-test: Likewise.
28407         * modules/unictype/category-C: Likewise.
28408         * modules/unictype/category-Cc: Likewise.
28409         * modules/unictype/category-Cf: Likewise.
28410         * modules/unictype/category-Cn: Likewise.
28411         * modules/unictype/category-Co: Likewise.
28412         * modules/unictype/category-Cs: Likewise.
28413         * modules/unictype/category-L: Likewise.
28414         * modules/unictype/category-Ll: Likewise.
28415         * modules/unictype/category-Lm: Likewise.
28416         * modules/unictype/category-Lo: Likewise.
28417         * modules/unictype/category-Lt: Likewise.
28418         * modules/unictype/category-Lu: Likewise.
28419         * modules/unictype/category-M: Likewise.
28420         * modules/unictype/category-Mc: Likewise.
28421         * modules/unictype/category-Me: Likewise.
28422         * modules/unictype/category-Mn: Likewise.
28423         * modules/unictype/category-N: Likewise.
28424         * modules/unictype/category-Nd: Likewise.
28425         * modules/unictype/category-Nl: Likewise.
28426         * modules/unictype/category-No: Likewise.
28427         * modules/unictype/category-P: Likewise.
28428         * modules/unictype/category-Pc: Likewise.
28429         * modules/unictype/category-Pd: Likewise.
28430         * modules/unictype/category-Pe: Likewise.
28431         * modules/unictype/category-Pf: Likewise.
28432         * modules/unictype/category-Pi: Likewise.
28433         * modules/unictype/category-Po: Likewise.
28434         * modules/unictype/category-Ps: Likewise.
28435         * modules/unictype/category-S: Likewise.
28436         * modules/unictype/category-Sc: Likewise.
28437         * modules/unictype/category-Sk: Likewise.
28438         * modules/unictype/category-Sm: Likewise.
28439         * modules/unictype/category-So: Likewise.
28440         * modules/unictype/category-Z: Likewise.
28441         * modules/unictype/category-Zl: Likewise.
28442         * modules/unictype/category-Zp: Likewise.
28443         * modules/unictype/category-Zs: Likewise.
28444         * modules/unictype/category-and: Likewise.
28445         * modules/unictype/category-and-not: Likewise.
28446         * modules/unictype/category-byname: Likewise.
28447         * modules/unictype/category-name: Likewise.
28448         * modules/unictype/category-none: Likewise.
28449         * modules/unictype/category-of: Likewise.
28450         * modules/unictype/category-or: Likewise.
28451         * modules/unictype/category-test: Likewise.
28452         * modules/unictype/combining-class: Likewise.
28453         * modules/unictype/ctype-alnum: Likewise.
28454         * modules/unictype/ctype-alpha: Likewise.
28455         * modules/unictype/ctype-blank: Likewise.
28456         * modules/unictype/ctype-cntrl: Likewise.
28457         * modules/unictype/ctype-digit: Likewise.
28458         * modules/unictype/ctype-graph: Likewise.
28459         * modules/unictype/ctype-lower: Likewise.
28460         * modules/unictype/ctype-print: Likewise.
28461         * modules/unictype/ctype-punct: Likewise.
28462         * modules/unictype/ctype-space: Likewise.
28463         * modules/unictype/ctype-upper: Likewise.
28464         * modules/unictype/ctype-xdigit: Likewise.
28465         * modules/unictype/decimal-digit: Likewise.
28466         * modules/unictype/digit: Likewise.
28467         * modules/unictype/mirror: Likewise.
28468         * modules/unictype/numeric: Likewise.
28469         * modules/unictype/property-alphabetic: Likewise.
28470         * modules/unictype/property-ascii-hex-digit: Likewise.
28471         * modules/unictype/property-bidi-arabic-digit: Likewise.
28472         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28473         * modules/unictype/property-bidi-block-separator: Likewise.
28474         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28475         * modules/unictype/property-bidi-common-separator: Likewise.
28476         * modules/unictype/property-bidi-control: Likewise.
28477         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28478         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28479         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28480         * modules/unictype/property-bidi-european-digit: Likewise.
28481         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28482         * modules/unictype/property-bidi-left-to-right: Likewise.
28483         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28484         * modules/unictype/property-bidi-other-neutral: Likewise.
28485         * modules/unictype/property-bidi-pdf: Likewise.
28486         * modules/unictype/property-bidi-segment-separator: Likewise.
28487         * modules/unictype/property-bidi-whitespace: Likewise.
28488         * modules/unictype/property-byname: Likewise.
28489         * modules/unictype/property-combining: Likewise.
28490         * modules/unictype/property-composite: Likewise.
28491         * modules/unictype/property-currency-symbol: Likewise.
28492         * modules/unictype/property-dash: Likewise.
28493         * modules/unictype/property-decimal-digit: Likewise.
28494         * modules/unictype/property-default-ignorable-code-point: Likewise.
28495         * modules/unictype/property-deprecated: Likewise.
28496         * modules/unictype/property-diacritic: Likewise.
28497         * modules/unictype/property-extender: Likewise.
28498         * modules/unictype/property-format-control: Likewise.
28499         * modules/unictype/property-grapheme-base: Likewise.
28500         * modules/unictype/property-grapheme-extend: Likewise.
28501         * modules/unictype/property-grapheme-link: Likewise.
28502         * modules/unictype/property-hex-digit: Likewise.
28503         * modules/unictype/property-hyphen: Likewise.
28504         * modules/unictype/property-id-continue: Likewise.
28505         * modules/unictype/property-id-start: Likewise.
28506         * modules/unictype/property-ideographic: Likewise.
28507         * modules/unictype/property-ids-binary-operator: Likewise.
28508         * modules/unictype/property-ids-trinary-operator: Likewise.
28509         * modules/unictype/property-ignorable-control: Likewise.
28510         * modules/unictype/property-iso-control: Likewise.
28511         * modules/unictype/property-join-control: Likewise.
28512         * modules/unictype/property-left-of-pair: Likewise.
28513         * modules/unictype/property-line-separator: Likewise.
28514         * modules/unictype/property-logical-order-exception: Likewise.
28515         * modules/unictype/property-lowercase: Likewise.
28516         * modules/unictype/property-math: Likewise.
28517         * modules/unictype/property-non-break: Likewise.
28518         * modules/unictype/property-not-a-character: Likewise.
28519         * modules/unictype/property-numeric: Likewise.
28520         * modules/unictype/property-other-alphabetic: Likewise.
28521         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28522         * modules/unictype/property-other-grapheme-extend: Likewise.
28523         * modules/unictype/property-other-id-continue: Likewise.
28524         * modules/unictype/property-other-id-start: Likewise.
28525         * modules/unictype/property-other-lowercase: Likewise.
28526         * modules/unictype/property-other-math: Likewise.
28527         * modules/unictype/property-other-uppercase: Likewise.
28528         * modules/unictype/property-paired-punctuation: Likewise.
28529         * modules/unictype/property-paragraph-separator: Likewise.
28530         * modules/unictype/property-pattern-syntax: Likewise.
28531         * modules/unictype/property-pattern-white-space: Likewise.
28532         * modules/unictype/property-private-use: Likewise.
28533         * modules/unictype/property-punctuation: Likewise.
28534         * modules/unictype/property-quotation-mark: Likewise.
28535         * modules/unictype/property-radical: Likewise.
28536         * modules/unictype/property-sentence-terminal: Likewise.
28537         * modules/unictype/property-soft-dotted: Likewise.
28538         * modules/unictype/property-space: Likewise.
28539         * modules/unictype/property-terminal-punctuation: Likewise.
28540         * modules/unictype/property-test: Likewise.
28541         * modules/unictype/property-titlecase: Likewise.
28542         * modules/unictype/property-unassigned-code-value: Likewise.
28543         * modules/unictype/property-unified-ideograph: Likewise.
28544         * modules/unictype/property-uppercase: Likewise.
28545         * modules/unictype/property-variation-selector: Likewise.
28546         * modules/unictype/property-white-space: Likewise.
28547         * modules/unictype/property-xid-continue: Likewise.
28548         * modules/unictype/property-xid-start: Likewise.
28549         * modules/unictype/property-zero-width: Likewise.
28550         * modules/unictype/scripts: Likewise.
28551         * modules/unictype/syntax-c-ident: Likewise.
28552         * modules/unictype/syntax-c-whitespace: Likewise.
28553         * modules/unictype/syntax-java-ident: Likewise.
28554         * modules/unictype/syntax-java-whitespace: Likewise.
28555         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28556         * modules/unilbrk/u8-width-linebreaks: Likewise.
28557         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28558         * modules/unilbrk/u16-width-linebreaks: Likewise.
28559         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28560         * modules/unilbrk/u32-width-linebreaks: Likewise.
28561         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28562         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28563         * modules/uniname/uniname: Likewise.
28564         * modules/uninorm/canonical-decomposition: Likewise.
28565         * modules/uninorm/composition: Likewise.
28566         * modules/uninorm/decomposing-form: Likewise.
28567         * modules/uninorm/decomposition: Likewise.
28568         * modules/uninorm/filter: Likewise.
28569         * modules/uninorm/nfc: Likewise.
28570         * modules/uninorm/nfd: Likewise.
28571         * modules/uninorm/nfkc: Likewise.
28572         * modules/uninorm/nfkd: Likewise.
28573         * modules/uninorm/u8-normalize: Likewise.
28574         * modules/uninorm/u8-normcmp: Likewise.
28575         * modules/uninorm/u8-normcoll: Likewise.
28576         * modules/uninorm/u8-normxfrm: Likewise.
28577         * modules/uninorm/u16-normalize: Likewise.
28578         * modules/uninorm/u16-normcmp: Likewise.
28579         * modules/uninorm/u16-normcoll: Likewise.
28580         * modules/uninorm/u16-normxfrm: Likewise.
28581         * modules/uninorm/u32-normalize: Likewise.
28582         * modules/uninorm/u32-normcmp: Likewise.
28583         * modules/uninorm/u32-normcoll: Likewise.
28584         * modules/uninorm/u32-normxfrm: Likewise.
28585         * modules/unistdio/u8-asnprintf: Likewise.
28586         * modules/unistdio/u8-asprintf: Likewise.
28587         * modules/unistdio/u8-snprintf: Likewise.
28588         * modules/unistdio/u8-sprintf: Likewise.
28589         * modules/unistdio/u8-u8-asnprintf: Likewise.
28590         * modules/unistdio/u8-u8-asprintf: Likewise.
28591         * modules/unistdio/u8-u8-snprintf: Likewise.
28592         * modules/unistdio/u8-u8-sprintf: Likewise.
28593         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28594         * modules/unistdio/u8-u8-vasprintf: Likewise.
28595         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28596         * modules/unistdio/u8-u8-vsprintf: Likewise.
28597         * modules/unistdio/u8-vasnprintf: Likewise.
28598         * modules/unistdio/u8-vasprintf: Likewise.
28599         * modules/unistdio/u8-vsnprintf: Likewise.
28600         * modules/unistdio/u8-vsprintf: Likewise.
28601         * modules/unistdio/u16-asnprintf: Likewise.
28602         * modules/unistdio/u16-asprintf: Likewise.
28603         * modules/unistdio/u16-snprintf: Likewise.
28604         * modules/unistdio/u16-sprintf: Likewise.
28605         * modules/unistdio/u16-u16-asnprintf: Likewise.
28606         * modules/unistdio/u16-u16-asprintf: Likewise.
28607         * modules/unistdio/u16-u16-snprintf: Likewise.
28608         * modules/unistdio/u16-u16-sprintf: Likewise.
28609         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28610         * modules/unistdio/u16-u16-vasprintf: Likewise.
28611         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28612         * modules/unistdio/u16-u16-vsprintf: Likewise.
28613         * modules/unistdio/u16-vasnprintf: Likewise.
28614         * modules/unistdio/u16-vasprintf: Likewise.
28615         * modules/unistdio/u16-vsnprintf: Likewise.
28616         * modules/unistdio/u16-vsprintf: Likewise.
28617         * modules/unistdio/u32-asnprintf: Likewise.
28618         * modules/unistdio/u32-asprintf: Likewise.
28619         * modules/unistdio/u32-snprintf: Likewise.
28620         * modules/unistdio/u32-sprintf: Likewise.
28621         * modules/unistdio/u32-u32-asnprintf: Likewise.
28622         * modules/unistdio/u32-u32-asprintf: Likewise.
28623         * modules/unistdio/u32-u32-snprintf: Likewise.
28624         * modules/unistdio/u32-u32-sprintf: Likewise.
28625         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28626         * modules/unistdio/u32-u32-vasprintf: Likewise.
28627         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28628         * modules/unistdio/u32-u32-vsprintf: Likewise.
28629         * modules/unistdio/u32-vasnprintf: Likewise.
28630         * modules/unistdio/u32-vasprintf: Likewise.
28631         * modules/unistdio/u32-vsnprintf: Likewise.
28632         * modules/unistdio/u32-vsprintf: Likewise.
28633         * modules/unistdio/ulc-asnprintf: Likewise.
28634         * modules/unistdio/ulc-asprintf: Likewise.
28635         * modules/unistdio/ulc-fprintf: Likewise.
28636         * modules/unistdio/ulc-snprintf: Likewise.
28637         * modules/unistdio/ulc-sprintf: Likewise.
28638         * modules/unistdio/ulc-vasnprintf: Likewise.
28639         * modules/unistdio/ulc-vasprintf: Likewise.
28640         * modules/unistdio/ulc-vfprintf: Likewise.
28641         * modules/unistdio/ulc-vsnprintf: Likewise.
28642         * modules/unistdio/ulc-vsprintf: Likewise.
28643         * modules/unistr/u8-check: Likewise.
28644         * modules/unistr/u8-chr: Likewise.
28645         * modules/unistr/u8-cmp: Likewise.
28646         * modules/unistr/u8-cmp2: Likewise.
28647         * modules/unistr/u8-cpy: Likewise.
28648         * modules/unistr/u8-cpy-alloc: Likewise.
28649         * modules/unistr/u8-endswith: Likewise.
28650         * modules/unistr/u8-mblen: Likewise.
28651         * modules/unistr/u8-mbsnlen: Likewise.
28652         * modules/unistr/u8-mbtouc: Likewise.
28653         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28654         * modules/unistr/u8-mbtoucr: Likewise.
28655         * modules/unistr/u8-move: Likewise.
28656         * modules/unistr/u8-next: Likewise.
28657         * modules/unistr/u8-prev: Likewise.
28658         * modules/unistr/u8-set: Likewise.
28659         * modules/unistr/u8-startswith: Likewise.
28660         * modules/unistr/u8-stpcpy: Likewise.
28661         * modules/unistr/u8-stpncpy: Likewise.
28662         * modules/unistr/u8-strcat: Likewise.
28663         * modules/unistr/u8-strchr: Likewise.
28664         * modules/unistr/u8-strcmp: Likewise.
28665         * modules/unistr/u8-strcoll: Likewise.
28666         * modules/unistr/u8-strcpy: Likewise.
28667         * modules/unistr/u8-strcspn: Likewise.
28668         * modules/unistr/u8-strdup: Likewise.
28669         * modules/unistr/u8-strlen: Likewise.
28670         * modules/unistr/u8-strmblen: Likewise.
28671         * modules/unistr/u8-strmbtouc: Likewise.
28672         * modules/unistr/u8-strncat: Likewise.
28673         * modules/unistr/u8-strncmp: Likewise.
28674         * modules/unistr/u8-strncpy: Likewise.
28675         * modules/unistr/u8-strnlen: Likewise.
28676         * modules/unistr/u8-strpbrk: Likewise.
28677         * modules/unistr/u8-strrchr: Likewise.
28678         * modules/unistr/u8-strspn: Likewise.
28679         * modules/unistr/u8-strstr: Likewise.
28680         * modules/unistr/u8-strtok: Likewise.
28681         * modules/unistr/u8-to-u16: Likewise.
28682         * modules/unistr/u8-to-u32: Likewise.
28683         * modules/unistr/u8-uctomb: Likewise.
28684         * modules/unistr/u16-check: Likewise.
28685         * modules/unistr/u16-chr: Likewise.
28686         * modules/unistr/u16-cmp: Likewise.
28687         * modules/unistr/u16-cmp2: Likewise.
28688         * modules/unistr/u16-cpy: Likewise.
28689         * modules/unistr/u16-cpy-alloc: Likewise.
28690         * modules/unistr/u16-endswith: Likewise.
28691         * modules/unistr/u16-mblen: Likewise.
28692         * modules/unistr/u16-mbsnlen: Likewise.
28693         * modules/unistr/u16-mbtouc: Likewise.
28694         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28695         * modules/unistr/u16-mbtoucr: Likewise.
28696         * modules/unistr/u16-move: Likewise.
28697         * modules/unistr/u16-next: Likewise.
28698         * modules/unistr/u16-prev: Likewise.
28699         * modules/unistr/u16-set: Likewise.
28700         * modules/unistr/u16-startswith: Likewise.
28701         * modules/unistr/u16-stpcpy: Likewise.
28702         * modules/unistr/u16-stpncpy: Likewise.
28703         * modules/unistr/u16-strcat: Likewise.
28704         * modules/unistr/u16-strchr: Likewise.
28705         * modules/unistr/u16-strcmp: Likewise.
28706         * modules/unistr/u16-strcoll: Likewise.
28707         * modules/unistr/u16-strcpy: Likewise.
28708         * modules/unistr/u16-strcspn: Likewise.
28709         * modules/unistr/u16-strdup: Likewise.
28710         * modules/unistr/u16-strlen: Likewise.
28711         * modules/unistr/u16-strmblen: Likewise.
28712         * modules/unistr/u16-strmbtouc: Likewise.
28713         * modules/unistr/u16-strncat: Likewise.
28714         * modules/unistr/u16-strncmp: Likewise.
28715         * modules/unistr/u16-strncpy: Likewise.
28716         * modules/unistr/u16-strnlen: Likewise.
28717         * modules/unistr/u16-strpbrk: Likewise.
28718         * modules/unistr/u16-strrchr: Likewise.
28719         * modules/unistr/u16-strspn: Likewise.
28720         * modules/unistr/u16-strstr: Likewise.
28721         * modules/unistr/u16-strtok: Likewise.
28722         * modules/unistr/u16-to-u32: Likewise.
28723         * modules/unistr/u16-to-u8: Likewise.
28724         * modules/unistr/u16-uctomb: Likewise.
28725         * modules/unistr/u32-check: Likewise.
28726         * modules/unistr/u32-chr: Likewise.
28727         * modules/unistr/u32-cmp: Likewise.
28728         * modules/unistr/u32-cmp2: Likewise.
28729         * modules/unistr/u32-cpy: Likewise.
28730         * modules/unistr/u32-cpy-alloc: Likewise.
28731         * modules/unistr/u32-endswith: Likewise.
28732         * modules/unistr/u32-mblen: Likewise.
28733         * modules/unistr/u32-mbsnlen: Likewise.
28734         * modules/unistr/u32-mbtouc: Likewise.
28735         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28736         * modules/unistr/u32-mbtoucr: Likewise.
28737         * modules/unistr/u32-move: Likewise.
28738         * modules/unistr/u32-next: Likewise.
28739         * modules/unistr/u32-prev: Likewise.
28740         * modules/unistr/u32-set: Likewise.
28741         * modules/unistr/u32-startswith: Likewise.
28742         * modules/unistr/u32-stpcpy: Likewise.
28743         * modules/unistr/u32-stpncpy: Likewise.
28744         * modules/unistr/u32-strcat: Likewise.
28745         * modules/unistr/u32-strchr: Likewise.
28746         * modules/unistr/u32-strcmp: Likewise.
28747         * modules/unistr/u32-strcoll: Likewise.
28748         * modules/unistr/u32-strcpy: Likewise.
28749         * modules/unistr/u32-strcspn: Likewise.
28750         * modules/unistr/u32-strdup: Likewise.
28751         * modules/unistr/u32-strlen: Likewise.
28752         * modules/unistr/u32-strmblen: Likewise.
28753         * modules/unistr/u32-strmbtouc: Likewise.
28754         * modules/unistr/u32-strncat: Likewise.
28755         * modules/unistr/u32-strncmp: Likewise.
28756         * modules/unistr/u32-strncpy: Likewise.
28757         * modules/unistr/u32-strnlen: Likewise.
28758         * modules/unistr/u32-strpbrk: Likewise.
28759         * modules/unistr/u32-strrchr: Likewise.
28760         * modules/unistr/u32-strspn: Likewise.
28761         * modules/unistr/u32-strstr: Likewise.
28762         * modules/unistr/u32-strtok: Likewise.
28763         * modules/unistr/u32-to-u16: Likewise.
28764         * modules/unistr/u32-to-u8: Likewise.
28765         * modules/unistr/u32-uctomb: Likewise.
28766         * modules/uniwbrk/u8-wordbreaks: Likewise.
28767         * modules/uniwbrk/u16-wordbreaks: Likewise.
28768         * modules/uniwbrk/u32-wordbreaks: Likewise.
28769         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28770         * modules/uniwbrk/wordbreak-property: Likewise.
28771         * modules/uniwidth/u8-strwidth: Likewise.
28772         * modules/uniwidth/u8-width: Likewise.
28773         * modules/uniwidth/u16-strwidth: Likewise.
28774         * modules/uniwidth/u16-width: Likewise.
28775         * modules/uniwidth/u32-strwidth: Likewise.
28776         * modules/uniwidth/u32-width: Likewise.
28777         * modules/uniwidth/width: Likewise.
28778         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28779         with $(LIBUNISTRING).
28780         * modules/unicase/ignorable-tests: Likewise.
28781         * modules/unicase/locale-language-tests: Likewise.
28782         * modules/unicase/tolower-tests: Likewise.
28783         * modules/unicase/totitle-tests: Likewise.
28784         * modules/unicase/toupper-tests: Likewise.
28785         * modules/unicase/u8-casecmp-tests: Likewise.
28786         * modules/unicase/u8-casecoll-tests: Likewise.
28787         * modules/unicase/u8-casefold-tests: Likewise.
28788         * modules/unicase/u8-is-cased-tests: Likewise.
28789         * modules/unicase/u8-is-casefolded-tests: Likewise.
28790         * modules/unicase/u8-is-lowercase-tests: Likewise.
28791         * modules/unicase/u8-is-titlecase-tests: Likewise.
28792         * modules/unicase/u8-is-uppercase-tests: Likewise.
28793         * modules/unicase/u8-tolower-tests: Likewise.
28794         * modules/unicase/u8-totitle-tests: Likewise.
28795         * modules/unicase/u8-toupper-tests: Likewise.
28796         * modules/unicase/u16-casecmp-tests: Likewise.
28797         * modules/unicase/u16-casecoll-tests: Likewise.
28798         * modules/unicase/u16-casefold-tests: Likewise.
28799         * modules/unicase/u16-is-cased-tests: Likewise.
28800         * modules/unicase/u16-is-casefolded-tests: Likewise.
28801         * modules/unicase/u16-is-lowercase-tests: Likewise.
28802         * modules/unicase/u16-is-titlecase-tests: Likewise.
28803         * modules/unicase/u16-is-uppercase-tests: Likewise.
28804         * modules/unicase/u16-tolower-tests: Likewise.
28805         * modules/unicase/u16-totitle-tests: Likewise.
28806         * modules/unicase/u16-toupper-tests: Likewise.
28807         * modules/unicase/u32-casecmp-tests: Likewise.
28808         * modules/unicase/u32-casecoll-tests: Likewise.
28809         * modules/unicase/u32-casefold-tests: Likewise.
28810         * modules/unicase/u32-is-cased-tests: Likewise.
28811         * modules/unicase/u32-is-casefolded-tests: Likewise.
28812         * modules/unicase/u32-is-lowercase-tests: Likewise.
28813         * modules/unicase/u32-is-titlecase-tests: Likewise.
28814         * modules/unicase/u32-is-uppercase-tests: Likewise.
28815         * modules/unicase/u32-tolower-tests: Likewise.
28816         * modules/unicase/u32-totitle-tests: Likewise.
28817         * modules/unicase/u32-toupper-tests: Likewise.
28818         * modules/unicase/ulc-casecmp-tests: Likewise.
28819         * modules/unicase/ulc-casecoll-tests: Likewise.
28820         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28821         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28822         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28823         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28824         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28825         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28826         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28827         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28828         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28829         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28830         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28831         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28832         * modules/unictype/bidicategory-byname-tests: Likewise.
28833         * modules/unictype/bidicategory-name-tests: Likewise.
28834         * modules/unictype/bidicategory-of-tests: Likewise.
28835         * modules/unictype/bidicategory-test-tests: Likewise.
28836         * modules/unictype/block-list-tests: Likewise.
28837         * modules/unictype/block-of-tests: Likewise.
28838         * modules/unictype/block-test-tests: Likewise.
28839         * modules/unictype/category-C-tests: Likewise.
28840         * modules/unictype/category-Cc-tests: Likewise.
28841         * modules/unictype/category-Cf-tests: Likewise.
28842         * modules/unictype/category-Cn-tests: Likewise.
28843         * modules/unictype/category-Co-tests: Likewise.
28844         * modules/unictype/category-Cs-tests: Likewise.
28845         * modules/unictype/category-L-tests: Likewise.
28846         * modules/unictype/category-Ll-tests: Likewise.
28847         * modules/unictype/category-Lm-tests: Likewise.
28848         * modules/unictype/category-Lo-tests: Likewise.
28849         * modules/unictype/category-Lt-tests: Likewise.
28850         * modules/unictype/category-Lu-tests: Likewise.
28851         * modules/unictype/category-M-tests: Likewise.
28852         * modules/unictype/category-Mc-tests: Likewise.
28853         * modules/unictype/category-Me-tests: Likewise.
28854         * modules/unictype/category-Mn-tests: Likewise.
28855         * modules/unictype/category-N-tests: Likewise.
28856         * modules/unictype/category-Nd-tests: Likewise.
28857         * modules/unictype/category-Nl-tests: Likewise.
28858         * modules/unictype/category-No-tests: Likewise.
28859         * modules/unictype/category-P-tests: Likewise.
28860         * modules/unictype/category-Pc-tests: Likewise.
28861         * modules/unictype/category-Pd-tests: Likewise.
28862         * modules/unictype/category-Pe-tests: Likewise.
28863         * modules/unictype/category-Pf-tests: Likewise.
28864         * modules/unictype/category-Pi-tests: Likewise.
28865         * modules/unictype/category-Po-tests: Likewise.
28866         * modules/unictype/category-Ps-tests: Likewise.
28867         * modules/unictype/category-S-tests: Likewise.
28868         * modules/unictype/category-Sc-tests: Likewise.
28869         * modules/unictype/category-Sk-tests: Likewise.
28870         * modules/unictype/category-Sm-tests: Likewise.
28871         * modules/unictype/category-So-tests: Likewise.
28872         * modules/unictype/category-Z-tests: Likewise.
28873         * modules/unictype/category-Zl-tests: Likewise.
28874         * modules/unictype/category-Zp-tests: Likewise.
28875         * modules/unictype/category-Zs-tests: Likewise.
28876         * modules/unictype/category-and-not-tests: Likewise.
28877         * modules/unictype/category-and-tests: Likewise.
28878         * modules/unictype/category-byname-tests: Likewise.
28879         * modules/unictype/category-name-tests: Likewise.
28880         * modules/unictype/category-none-tests: Likewise.
28881         * modules/unictype/category-of-tests: Likewise.
28882         * modules/unictype/category-or-tests: Likewise.
28883         * modules/unictype/category-test-withtable-tests: Likewise.
28884         * modules/unictype/combining-class-tests: Likewise.
28885         * modules/unictype/ctype-alnum-tests: Likewise.
28886         * modules/unictype/ctype-alpha-tests: Likewise.
28887         * modules/unictype/ctype-blank-tests: Likewise.
28888         * modules/unictype/ctype-cntrl-tests: Likewise.
28889         * modules/unictype/ctype-digit-tests: Likewise.
28890         * modules/unictype/ctype-graph-tests: Likewise.
28891         * modules/unictype/ctype-lower-tests: Likewise.
28892         * modules/unictype/ctype-print-tests: Likewise.
28893         * modules/unictype/ctype-punct-tests: Likewise.
28894         * modules/unictype/ctype-space-tests: Likewise.
28895         * modules/unictype/ctype-upper-tests: Likewise.
28896         * modules/unictype/ctype-xdigit-tests: Likewise.
28897         * modules/unictype/decimal-digit-tests: Likewise.
28898         * modules/unictype/digit-tests: Likewise.
28899         * modules/unictype/mirror-tests: Likewise.
28900         * modules/unictype/numeric-tests: Likewise.
28901         * modules/unictype/property-alphabetic-tests: Likewise.
28902         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28903         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28904         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28905         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28906         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28907         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28908         * modules/unictype/property-bidi-control-tests: Likewise.
28909         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28910         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28911         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28912         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28913         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28914         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28915         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28916         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28917         * modules/unictype/property-bidi-pdf-tests: Likewise.
28918         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28919         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28920         * modules/unictype/property-byname-tests: Likewise.
28921         * modules/unictype/property-combining-tests: Likewise.
28922         * modules/unictype/property-composite-tests: Likewise.
28923         * modules/unictype/property-currency-symbol-tests: Likewise.
28924         * modules/unictype/property-dash-tests: Likewise.
28925         * modules/unictype/property-decimal-digit-tests: Likewise.
28926         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28927         * modules/unictype/property-deprecated-tests: Likewise.
28928         * modules/unictype/property-diacritic-tests: Likewise.
28929         * modules/unictype/property-extender-tests: Likewise.
28930         * modules/unictype/property-format-control-tests: Likewise.
28931         * modules/unictype/property-grapheme-base-tests: Likewise.
28932         * modules/unictype/property-grapheme-extend-tests: Likewise.
28933         * modules/unictype/property-grapheme-link-tests: Likewise.
28934         * modules/unictype/property-hex-digit-tests: Likewise.
28935         * modules/unictype/property-hyphen-tests: Likewise.
28936         * modules/unictype/property-id-continue-tests: Likewise.
28937         * modules/unictype/property-id-start-tests: Likewise.
28938         * modules/unictype/property-ideographic-tests: Likewise.
28939         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28940         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28941         * modules/unictype/property-ignorable-control-tests: Likewise.
28942         * modules/unictype/property-iso-control-tests: Likewise.
28943         * modules/unictype/property-join-control-tests: Likewise.
28944         * modules/unictype/property-left-of-pair-tests: Likewise.
28945         * modules/unictype/property-line-separator-tests: Likewise.
28946         * modules/unictype/property-logical-order-exception-tests: Likewise.
28947         * modules/unictype/property-lowercase-tests: Likewise.
28948         * modules/unictype/property-math-tests: Likewise.
28949         * modules/unictype/property-non-break-tests: Likewise.
28950         * modules/unictype/property-not-a-character-tests: Likewise.
28951         * modules/unictype/property-numeric-tests: Likewise.
28952         * modules/unictype/property-other-alphabetic-tests: Likewise.
28953         * modules/unictype/property-other-default-ignorable-code-point-tests:
28954         Likewise.
28955         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28956         * modules/unictype/property-other-id-continue-tests: Likewise.
28957         * modules/unictype/property-other-id-start-tests: Likewise.
28958         * modules/unictype/property-other-lowercase-tests: Likewise.
28959         * modules/unictype/property-other-math-tests: Likewise.
28960         * modules/unictype/property-other-uppercase-tests: Likewise.
28961         * modules/unictype/property-paired-punctuation-tests: Likewise.
28962         * modules/unictype/property-paragraph-separator-tests: Likewise.
28963         * modules/unictype/property-pattern-syntax-tests: Likewise.
28964         * modules/unictype/property-pattern-white-space-tests: Likewise.
28965         * modules/unictype/property-private-use-tests: Likewise.
28966         * modules/unictype/property-punctuation-tests: Likewise.
28967         * modules/unictype/property-quotation-mark-tests: Likewise.
28968         * modules/unictype/property-radical-tests: Likewise.
28969         * modules/unictype/property-sentence-terminal-tests: Likewise.
28970         * modules/unictype/property-soft-dotted-tests: Likewise.
28971         * modules/unictype/property-space-tests: Likewise.
28972         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28973         * modules/unictype/property-test-tests: Likewise.
28974         * modules/unictype/property-titlecase-tests: Likewise.
28975         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28976         * modules/unictype/property-unified-ideograph-tests: Likewise.
28977         * modules/unictype/property-uppercase-tests: Likewise.
28978         * modules/unictype/property-variation-selector-tests: Likewise.
28979         * modules/unictype/property-white-space-tests: Likewise.
28980         * modules/unictype/property-xid-continue-tests: Likewise.
28981         * modules/unictype/property-xid-start-tests: Likewise.
28982         * modules/unictype/property-zero-width-tests: Likewise.
28983         * modules/unictype/scripts-tests: Likewise.
28984         * modules/unictype/syntax-c-ident-tests: Likewise.
28985         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28986         * modules/unictype/syntax-java-ident-tests: Likewise.
28987         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28988         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28989         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28990         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28991         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28992         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28993         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28994         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28995         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28996         * modules/uniname/uniname-tests: Likewise.
28997         * modules/uninorm/canonical-decomposition-tests: Likewise.
28998         * modules/uninorm/compat-decomposition-tests: Likewise.
28999         * modules/uninorm/composition-tests: Likewise.
29000         * modules/uninorm/decomposing-form-tests: Likewise.
29001         * modules/uninorm/decomposition-tests: Likewise.
29002         * modules/uninorm/filter-tests: Likewise.
29003         * modules/uninorm/nfc-tests: Likewise.
29004         * modules/uninorm/nfd-tests: Likewise.
29005         * modules/uninorm/nfkc-tests: Likewise.
29006         * modules/uninorm/nfkd-tests: Likewise.
29007         * modules/uninorm/u8-normcmp-tests: Likewise.
29008         * modules/uninorm/u8-normcoll-tests: Likewise.
29009         * modules/uninorm/u16-normcmp-tests: Likewise.
29010         * modules/uninorm/u16-normcoll-tests: Likewise.
29011         * modules/uninorm/u32-normcmp-tests: Likewise.
29012         * modules/uninorm/u32-normcoll-tests: Likewise.
29013         * modules/unistdio/u8-asnprintf-tests: Likewise.
29014         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29015         * modules/unistdio/u8-vasprintf-tests: Likewise.
29016         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29017         * modules/unistdio/u8-vsprintf-tests: Likewise.
29018         * modules/unistdio/u16-asnprintf-tests: Likewise.
29019         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29020         * modules/unistdio/u16-vasprintf-tests: Likewise.
29021         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29022         * modules/unistdio/u16-vsprintf-tests: Likewise.
29023         * modules/unistdio/u32-asnprintf-tests: Likewise.
29024         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29025         * modules/unistdio/u32-vasprintf-tests: Likewise.
29026         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29027         * modules/unistdio/u32-vsprintf-tests: Likewise.
29028         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29029         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29030         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29031         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29032         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29033         * modules/unistr/u8-check-tests: Likewise.
29034         * modules/unistr/u8-chr-tests: Likewise.
29035         * modules/unistr/u8-cmp-tests: Likewise.
29036         * modules/unistr/u8-cmp2-tests: Likewise.
29037         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29038         * modules/unistr/u8-cpy-tests: Likewise.
29039         * modules/unistr/u8-mblen-tests: Likewise.
29040         * modules/unistr/u8-mbsnlen-tests: Likewise.
29041         * modules/unistr/u8-mbtouc-tests: Likewise.
29042         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29043         * modules/unistr/u8-mbtoucr-tests: Likewise.
29044         * modules/unistr/u8-move-tests: Likewise.
29045         * modules/unistr/u8-next-tests: Likewise.
29046         * modules/unistr/u8-prev-tests: Likewise.
29047         * modules/unistr/u8-set-tests: Likewise.
29048         * modules/unistr/u8-stpcpy-tests: Likewise.
29049         * modules/unistr/u8-stpncpy-tests: Likewise.
29050         * modules/unistr/u8-strcat-tests: Likewise.
29051         * modules/unistr/u8-strcmp-tests: Likewise.
29052         * modules/unistr/u8-strcoll-tests: Likewise.
29053         * modules/unistr/u8-strcpy-tests: Likewise.
29054         * modules/unistr/u8-strdup-tests: Likewise.
29055         * modules/unistr/u8-strlen-tests: Likewise.
29056         * modules/unistr/u8-strmblen-tests: Likewise.
29057         * modules/unistr/u8-strmbtouc-tests: Likewise.
29058         * modules/unistr/u8-strncat-tests: Likewise.
29059         * modules/unistr/u8-strncmp-tests: Likewise.
29060         * modules/unistr/u8-strncpy-tests: Likewise.
29061         * modules/unistr/u8-strnlen-tests: Likewise.
29062         * modules/unistr/u8-to-u16-tests: Likewise.
29063         * modules/unistr/u8-to-u32-tests: Likewise.
29064         * modules/unistr/u8-uctomb-tests: Likewise.
29065         * modules/unistr/u16-check-tests: Likewise.
29066         * modules/unistr/u16-chr-tests: Likewise.
29067         * modules/unistr/u16-cmp-tests: Likewise.
29068         * modules/unistr/u16-cmp2-tests: Likewise.
29069         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29070         * modules/unistr/u16-cpy-tests: Likewise.
29071         * modules/unistr/u16-mblen-tests: Likewise.
29072         * modules/unistr/u16-mbsnlen-tests: Likewise.
29073         * modules/unistr/u16-mbtouc-tests: Likewise.
29074         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29075         * modules/unistr/u16-mbtoucr-tests: Likewise.
29076         * modules/unistr/u16-move-tests: Likewise.
29077         * modules/unistr/u16-next-tests: Likewise.
29078         * modules/unistr/u16-prev-tests: Likewise.
29079         * modules/unistr/u16-set-tests: Likewise.
29080         * modules/unistr/u16-stpcpy-tests: Likewise.
29081         * modules/unistr/u16-stpncpy-tests: Likewise.
29082         * modules/unistr/u16-strcat-tests: Likewise.
29083         * modules/unistr/u16-strcmp-tests: Likewise.
29084         * modules/unistr/u16-strcoll-tests: Likewise.
29085         * modules/unistr/u16-strcpy-tests: Likewise.
29086         * modules/unistr/u16-strdup-tests: Likewise.
29087         * modules/unistr/u16-strlen-tests: Likewise.
29088         * modules/unistr/u16-strmblen-tests: Likewise.
29089         * modules/unistr/u16-strmbtouc-tests: Likewise.
29090         * modules/unistr/u16-strncat-tests: Likewise.
29091         * modules/unistr/u16-strncmp-tests: Likewise.
29092         * modules/unistr/u16-strncpy-tests: Likewise.
29093         * modules/unistr/u16-strnlen-tests: Likewise.
29094         * modules/unistr/u16-to-u32-tests: Likewise.
29095         * modules/unistr/u16-to-u8-tests: Likewise.
29096         * modules/unistr/u16-uctomb-tests: Likewise.
29097         * modules/unistr/u32-check-tests: Likewise.
29098         * modules/unistr/u32-chr-tests: Likewise.
29099         * modules/unistr/u32-cmp-tests: Likewise.
29100         * modules/unistr/u32-cmp2-tests: Likewise.
29101         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29102         * modules/unistr/u32-cpy-tests: Likewise.
29103         * modules/unistr/u32-mblen-tests: Likewise.
29104         * modules/unistr/u32-mbsnlen-tests: Likewise.
29105         * modules/unistr/u32-mbtouc-tests: Likewise.
29106         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29107         * modules/unistr/u32-mbtoucr-tests: Likewise.
29108         * modules/unistr/u32-move-tests: Likewise.
29109         * modules/unistr/u32-next-tests: Likewise.
29110         * modules/unistr/u32-prev-tests: Likewise.
29111         * modules/unistr/u32-set-tests: Likewise.
29112         * modules/unistr/u32-stpcpy-tests: Likewise.
29113         * modules/unistr/u32-stpncpy-tests: Likewise.
29114         * modules/unistr/u32-strcat-tests: Likewise.
29115         * modules/unistr/u32-strcmp-tests: Likewise.
29116         * modules/unistr/u32-strcoll-tests: Likewise.
29117         * modules/unistr/u32-strcpy-tests: Likewise.
29118         * modules/unistr/u32-strdup-tests: Likewise.
29119         * modules/unistr/u32-strlen-tests: Likewise.
29120         * modules/unistr/u32-strmblen-tests: Likewise.
29121         * modules/unistr/u32-strmbtouc-tests: Likewise.
29122         * modules/unistr/u32-strncat-tests: Likewise.
29123         * modules/unistr/u32-strncmp-tests: Likewise.
29124         * modules/unistr/u32-strncpy-tests: Likewise.
29125         * modules/unistr/u32-strnlen-tests: Likewise.
29126         * modules/unistr/u32-to-u16-tests: Likewise.
29127         * modules/unistr/u32-to-u8-tests: Likewise.
29128         * modules/unistr/u32-uctomb-tests: Likewise.
29129         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29130         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29131         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29132         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29133         * modules/uniwidth/u8-strwidth-tests: Likewise.
29134         * modules/uniwidth/u8-width-tests: Likewise.
29135         * modules/uniwidth/u16-strwidth-tests: Likewise.
29136         * modules/uniwidth/u16-width-tests: Likewise.
29137         * modules/uniwidth/u32-strwidth-tests: Likewise.
29138         * modules/uniwidth/u32-width-tests: Likewise.
29139         * modules/uniwidth/width-tests: Likewise.
29140
29141 2010-05-18  Richard Jones  <rjones@redhat.com>
29142
29143         doc: users.txt: list hivex
29144         * users.txt: Add hivex.
29145
29146 2010-05-18  Richard Jones  <rjones@redhat.com>
29147
29148         doc: users.txt: list febootstrap
29149         * users.txt: Add febootstrap.
29150
29151 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29152
29153         bootstrap: fix an error when gnulib is not used as a git submodule
29154         * build-aux/bootstrap (gnulib_path): If its length is zero then
29155         assign "gnulib" to it.
29156         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29157
29158 2010-05-16  Bruno Haible  <bruno@clisp.org>
29159
29160         Avoid autoconf warnings about AM_ICONV.
29161         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29162         2.64.
29163
29164 2010-05-16  Bruno Haible  <bruno@clisp.org>
29165
29166         absolute-header: Make the macro usable in more situations.
29167         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29168         from gl_ABSOLUTE_HEADER.
29169         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29170
29171 2010-05-16  James Youngman  <jay@gnu.org>
29172
29173         doc: update users.txt
29174         * users.txt: Add CSSC.
29175
29176 2010-05-16  Jim Meyering  <meyering@redhat.com>
29177
29178         init.sh: fix an error in the previous change; add more comments
29179         * tests/init.sh: Compare exit code in loop against 9, not 2.
29180         Patch by Bruno Haible.
29181         Make the two tests more similar by adding an empty "then" clause.
29182         Add comments.
29183
29184         init.sh: avoid unnecessary shell re-exec
29185         * tests/init.sh: Improve the re-exec-required check to first test the
29186         current shell.  If it passes the test, do not search for a shell that
29187         does pass, and do not re-exec.  This test is particularly contorted to
29188         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29189         of $(...) evokes a syntax error and causes immediate shell exit with
29190         status 2.  Bruno Haible reported that the re-exec made it impossible
29191         to single-step through any init.sh-using script.
29192
29193 2010-05-16  Bruno Haible  <bruno@clisp.org>
29194
29195         Fix collision between gnulib's and libintl's printf replacements.
29196         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29197         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29198         (printf): When using GNU C, map the __printf__ function to rpl_printf
29199         via __asm__. When not using GNU C, define rpl_printf instead of
29200         __printf__.
29201         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29202         commit.
29203         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29204         commit.
29205         * m4/asm-underscore.m4: New file.
29206         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29207         * modules/stdio (Files): Add m4/asm-underscore.m4.
29208         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29209         Reported by Ben Pfaff.
29210
29211 2010-05-16  Bruno Haible  <bruno@clisp.org>
29212
29213         verify: Avoid skipping the test on openSUSE 11.0.
29214         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29215
29216 2010-05-13  Bruno Haible  <bruno@clisp.org>
29217
29218         Avoid useless warnings from G++.
29219         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29220         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29221         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29222
29223 2010-05-11  Jim Meyering  <meyering@redhat.com>
29224
29225         maint.mk: tweak preceding change
29226         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29227         regexps tighter by anchoring at EOL, and make the new group "shy"
29228         for slightly decreased overhead.
29229
29230 2010-05-11  Eric Blake  <eblake@redhat.com>
29231
29232         maint.mk: gnulib doesn't guarantee NSIG
29233         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29234
29235 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29236
29237         test-pwrite.c: Remove unused variable declaration.
29238         * tests/test-pwrite.c (main): Remove read_buf declaration.
29239
29240         Remove useless test-pwrite.sh file.
29241         * tests/test-pwrite.sh: Delete file.
29242         * modules/pwrite-tests: Remove references.
29243         Reported by Bruno Haible.
29244
29245 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29246
29247         init.sh: fix a typo
29248         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29249
29250 2010-05-10  Jim Meyering  <meyering@redhat.com>
29251
29252         maint.mk: avoid using a temporary file in the always-defined-macros check
29253         * top/maint.mk (.re-defmac): Remove rule.
29254         (gl_trap_): Remove definition.
29255         (sc_prohibit_always-defined_macros): Rewrite not to create and
29256         depend on a temporary file.  Instead, depend on GNU grep's ability
29257         to read a list of regular expressions from stdin when given "-f -".
29258
29259 2010-05-09  Bruno Haible  <bruno@clisp.org>
29260
29261         Update to GNU gettext 0.18, part 1.
29262         * m4/gettext.m4: Update to GNU gettext 0.18.
29263         * m4/intl.m4: Likewise.
29264         * m4/po.m4: Likewise.
29265         * modules/gettext (Files): Add m4/fcntl-o.m4.
29266         (configure.ac): Require gettext infrastructure from version 0.18.
29267
29268 2010-05-09  Jim Meyering  <meyering@redhat.com>
29269
29270         init.sh: enable MALLOC_PERTURB_
29271         * tests/init.sh: Enable glibc's malloc-perturbing option.
29272
29273         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29274         With my recent change in init.sh from the two-line form:
29275             -#   : ${srcdir=.}
29276             -#   . "$srcdir/init.sh"; path_prepend_ .
29277             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29278         I noticed that using the one-line form would cause this test
29279         to fail with a false-positive, or to stop working altogether,
29280         depending on whether help-version changed or all the tests did.
29281         * top/maint.mk (_hv_regex): Remove this definition.
29282         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29283         (_hv_regex_strong): Use a stronger regex to check for conformance.
29284         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29285         Give a separate diagnostic for lack of conforming use.
29286
29287         maint.mk: prohibit definition of symbols defined by gnulib
29288         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29289         definition of symbols defined by gnulib.
29290
29291 2010-05-09  Bruno Haible  <bruno@clisp.org>
29292
29293         acl: Avoid test failure on Cygwin-hosted mingw.
29294         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29295
29296 2010-05-09  Bruno Haible  <bruno@clisp.org>
29297
29298         error: Use system's fcntl function.
29299         * lib/error.c (fcntl): Undefine.
29300
29301 2010-05-09  Jim Meyering  <meyering@redhat.com>
29302
29303         verify: adjust formatting to be more consistent
29304         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29305         argument-list '('s, and after one comma.
29306
29307 2010-05-09  Bruno Haible  <bruno@clisp.org>
29308
29309         error: More reliable output on mingw.
29310         * lib/error.c: Include <windows.h>.
29311         (is_open): New function.
29312         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29313         defined.
29314
29315 2010-05-09  Bruno Haible  <bruno@clisp.org>
29316
29317         vasnprintf: Fix syntax errors in libintl build on mingw.
29318         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29319         pad_ourselves and prec_ourselves after use.
29320
29321 2010-05-08  Bruno Haible  <bruno@clisp.org>
29322
29323         * lib/config.charset: Update comments for Cygwin 1.7.
29324         * lib/localcharset.c: Likewise.
29325
29326 2010-05-07  Jim Meyering  <meyering@redhat.com>
29327
29328         init.sh: improve comments
29329         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29330         . "${srcdir=.}/init.sh"; path_prepend_ .
29331         Add a note about path_prepend_ and the alternative of using
29332         TESTS_ENVIRONMENT.
29333
29334 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29335
29336         exclude: Unescape hashed patterns in wildcard mode.
29337         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29338         to the hash list.
29339         * tests/test-exclude8.sh: New test case.
29340         * modules/exclude-tests: Add new test.
29341
29342 2010-05-05  Eric Blake  <eblake@redhat.com>
29343
29344         verify: automate tests
29345         * modules/verify-tests: New module.
29346         * tests/test-verify.sh: New file.
29347         * tests/test-verify.c: Guard each negative test with a unique id.
29348         Also avoid warning about unused left hand of comma expressions.
29349
29350 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29351
29352         Further improvements to verify.h, suggested by Eric Blake.
29353         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29354         the GL_* versions, to avoid collision with OpenGL.
29355         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29356         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29357         than testing merely whether it's defined.
29358
29359         Modify verify.h to pacify gcc -Wredundant_decls.
29360         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29361         These use the prefix "GL_" since they're likely to be useful elsewhere.
29362         We may need to break them out into a different .h file.
29363         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29364         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29365         of verify_function__.
29366
29367 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29368
29369         Tests for module pwrite.
29370         * modules/pwrite-tests: New file.
29371         * tests/test-pwrite.sh: New file.
29372         * tests/test-pwrite.c: New file.
29373
29374         New module pwrite.
29375         * lib/unistd.in.h (pwrite): New declaration.
29376         * lib/pwrite.c: New file, from glibc with modifications.
29377         * m4/pwrite.m4: New file.
29378         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29379         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29380         REPLACE_PWRITE.
29381         * modules/pwrite: New file.
29382         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29383         REPLACE_PWRITE.
29384         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29385         * doc/posix-functions/pwrite.texi: Mention the new module.
29386
29387 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29388
29389         pread: Update documentation.
29390         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29391
29392 2010-05-04  Eric Blake  <eblake@redhat.com>
29393
29394         docs: update cygwin progress
29395         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29396         this bug.
29397         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29398         Added in cygwin 1.7.2.
29399         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29400         Likewise.
29401         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29402         Likewise.
29403         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29404         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29405         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29406         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29407         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29408         Mention nproc module.
29409         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29410         bug in cygwin 1.7.5 addition.
29411         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29412         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29413         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29414         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29415         1.7.5.
29416         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29417         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29418         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29419         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29420         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29421         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29422         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29423         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29424         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29425         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29426         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29427         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29428         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29429         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29430         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29431         Likewise.
29432         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29433         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29434         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29435         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29436         Likewise.
29437         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29438         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29439         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29440         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29441         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29442         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29443         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29444         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29445         Likewise.
29446         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29447         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29448         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29449         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29450         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29451         Likewise.
29452         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29453         Likewise.
29454         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29455         Likewise.
29456         * doc/glibc-functions/xdrrec_endofrecord.texi
29457         (xdrrec_endofrecord): Likewise.
29458         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29459         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29460         Likewise.
29461         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29462         Likewise.
29463
29464 2010-05-04  Jim Meyering  <meyering@redhat.com>
29465
29466         gendocs.sh: make its "-s FILE" option more useful
29467         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29468         $PACKAGE to reflect the probably-different basename of "FILE".
29469
29470 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29471
29472         bootstrap: don't ignore download_po_files failure
29473         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29474         failure.
29475
29476 2010-05-03  Jim Meyering  <meyering@redhat.com>
29477
29478         maint.mk: allow to pass options to gendocs.sh
29479         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29480         (gendocs_options_): New overridable variable.
29481
29482         gnu-web-doc-update: don't ignore configure or build failure
29483         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29484
29485         announce-gen: backslash-escape '@'s in --help output
29486         * build-aux/announce-gen: Fix syntax errors.
29487
29488         maint.mk, announce-gen: allow project-specific announcement mail headers
29489         * top/maint.mk (translation_project_): Define default.
29490         (announcement_Cc_, announcement_mail_headers_): Likewise.
29491         (announcement): Invoke announce-gen with new --mail-headers option.
29492         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29493
29494         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29495         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29496         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29497         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29498         line in the "err2" output file when running "make check" in verbose
29499         mode (i.e., with set -x enabled).
29500
29501 2010-05-03  Bruno Haible  <bruno@clisp.org>
29502
29503         wctob: Fix for weird platforms.
29504         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29505         argument value.
29506
29507 2010-05-03  Jim Meyering  <meyering@redhat.com>
29508
29509         maint.mk: prohibit unwarranted use of <strings.h>
29510         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29511         strings.h in a file that does not also use strcasecmp, strncasecmp,
29512         ffs or ffsll.
29513
29514         maint.mk: remove obsolete comments
29515         * top/maint.mk: Remove stale, commented-out rules.
29516
29517 2010-05-02  Bruno Haible  <bruno@clisp.org>
29518
29519         wcwidth: Declare also when it's aliased.
29520         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29521         macro.
29522
29523 2010-05-02  Bruno Haible  <bruno@clisp.org>
29524
29525         Fix regression from 2010-04-25.
29526         * gnulib-tool (func_modules_transitive_closure): Check the status of
29527         all modules, not only of the tests that are of the form foo-tests where
29528         foo is a module.
29529
29530 2010-05-02  Bruno Haible  <bruno@clisp.org>
29531
29532         wctob: Work around nasty Cygwin 1.7.2 bug.
29533         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29534         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29535
29536 2010-05-01  Bruno Haible  <bruno@clisp.org>
29537
29538         fpurge: Sharper test.
29539         * tests/test-fpurge.c (main): Add one more ftell check.
29540         * modules/fpurge-tests (Depends-on): Add ftell.
29541         Suggested by Eric Blake.
29542
29543 2010-05-01  Bruno Haible  <bruno@clisp.org>
29544
29545         ftello: Another test.
29546         * tests/test-ftello3.c: New file.
29547         * modules/ftello-tests (Files): Add it.
29548         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29549         MOSTLYCLEANFILES.
29550
29551         ftell: Another test.
29552         * tests/test-ftell3.c: New file.
29553         * modules/ftell-tests (Files): Add it.
29554         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29555         MOSTLYCLEANFILES.
29556
29557 2010-05-01  Bruno Haible  <bruno@clisp.org>
29558
29559         ftell, ftello: Work around Solaris bug.
29560         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29561         * lib/ftello.c: Include stdio-impl.h.
29562         (ftello): On Solaris, when _IOWRT is set, compute the result without
29563         looking at _IOREAD.
29564         * modules/ftello (Files): Add lib/stdio-impl.h.
29565         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29566         * doc/posix-functions/ftello.texi: Likewise.
29567         Reported by Eric Blake.
29568
29569 2010-05-01  Bruno Haible  <bruno@clisp.org>
29570
29571         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29572         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29573         the _IOWRT flag is also set.
29574
29575 2010-05-01  Bruno Haible  <bruno@clisp.org>
29576
29577         Fix doc about a HP-UX stdio bug.
29578         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29579         * doc/posix-functions/ftello.texi: Likewise.
29580
29581 2010-05-01  Bruno Haible  <bruno@clisp.org>
29582
29583         lseek test: Fix failure on Solaris.
29584         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29585         output.
29586
29587 2010-04-30  Jim Meyering  <meyering@redhat.com>
29588
29589         bootstrap: don't ignore failure to generate po*/Makevars
29590         * build-aux/bootstrap (with_gettext): Don't ignore failure
29591         to create po/Makevars or runtime-po/Makevars.
29592
29593 2010-04-29  Eric Blake  <eblake@redhat.com>
29594
29595         headers: relax license to LGPLv2+
29596         * modules/fcntl-h (License): Relax license.
29597         * modules/getopt-posix (License): Likewise.
29598         * modules/locale (License): Likewise.
29599         * modules/math (License): Likewise.
29600         * modules/pty (License): Likewise.
29601         * modules/sched (License): Likewise.
29602         * modules/search (License): Likewise.
29603         * modules/spawn (License): Likewise.
29604         * modules/stdarg (License): Likewise.
29605         * modules/sysexits (License): Likewise.
29606
29607 2010-04-29  Jim Meyering  <meyering@redhat.com>
29608
29609         inttypes: relax license to LGPLv2+
29610         * modules/inttypes (License): Relax license.
29611
29612 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29613
29614         * top/maint.mk (indent): Run twice to produce idempotent results.
29615
29616 2010-04-28  Bruno Haible  <bruno@clisp.org>
29617
29618         getdate: Generate getdate.c in the source directory.
29619         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29620         MOSTLYCLEANFILES.
29621         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29622
29623 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29624
29625         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29626         is not declared as a const *; avoid warnings in that case.
29627
29628 2010-04-28  Eric Blake  <eblake@redhat.com>
29629
29630         canonicalize-lgpl: avoid compiler warning
29631         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29632         declaration' / 'extraneous semicolon' warning with some compilers.
29633         Reported by Andreas Gruenbacher.
29634
29635 2010-04-28  Jim Meyering  <meyering@redhat.com>
29636
29637         init.sh: ensure a more reliable exit status when exiting via trap
29638         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29639         Inspired by patches from Dmitry V. Levin.
29640         Also trap on signal 3 (SIGQUIT).
29641
29642 2010-04-27  Bruno Haible  <bruno@clisp.org>
29643
29644         Update doc about utimes().
29645         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29646         'utimens' module.
29647         Reported by Andreas Gruenbacher <agruen@suse.de>.
29648
29649 2010-04-27  Eric Blake  <eblake@redhat.com>
29650
29651         full-read, full-write: relax license
29652         * modules/full-read (License): Drop to LGPLv2+.
29653         * modules/full-write (License): Likewise.
29654         * modules/safe-read (License): Likewise.
29655         * modules/safe-write (License): Likewise.
29656
29657         pthread: mention library for linking
29658         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29659
29660 2010-04-27  Jim Meyering  <meyering@redhat.com>
29661
29662         maint.mk: fix a bug introduced in last change
29663         * top/maint.mk (gl_assured_headers_): Now that all names are on
29664         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29665         is not anchored to end of word, it should be adequate.
29666
29667         maint.mk: avoid side-effect in latest syntax-check
29668         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29669         to run commands via $(shell...), and hence to incur cost only when
29670         the new rule is actually run.
29671
29672         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29673         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29674         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29675         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29676         (gl_assured_headers_, az_, AZ_): Define.
29677         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29678
29679 2010-04-26  Jim Meyering  <jim@meyering.net>
29680             Bruno Haible  <bruno@clisp.org>
29681
29682         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29683         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29684         Prompted by an exchange with Gilles Espinasse.
29685
29686 2010-04-26  Jim Meyering  <meyering@redhat.com>
29687
29688         git-version-gen: aesthetic tweak
29689         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29690         so that the command remains on a single line.
29691
29692 2010-04-26  Eric Blake  <eblake@redhat.com>
29693
29694         git-version-gen: allow use on EBCDIC hosts
29695         * build-aux/git-version-gen (dirty): Use literal rather than tying
29696         ourselves to ascii.
29697         Reported by Steve Goetze.
29698
29699 2010-04-25  Bruno Haible  <bruno@clisp.org>
29700
29701         netdb: Add support for GNULIB_POSIXCHECK.
29702         * lib/netdb.in.h: Include warn-on-use.h.
29703         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29704         functions are used when GNULIB_POSIXCHECK is defined and the
29705         getaddrinfo module is not in use.
29706         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29707         freeaddrinfo, gai_strerror, getnameinfo are declared.
29708         * modules/netdb (Depends-on): Add warn-on-use.
29709         (Makefile.am): Include warn-on-use.h in netdb.h.
29710
29711 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29712
29713         build: avoid "make check" failure without .git/ directory
29714         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29715         there is no .git/ directory.
29716
29717 2010-04-25  Bruno Haible  <bruno@clisp.org>
29718
29719         ptsname: Fix misuse of ttyname_r.
29720         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29721         of errno.
29722
29723 2010-04-25  Bruno Haible  <bruno@clisp.org>
29724
29725         ttyname_r: Make it work on Solaris 10.
29726         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29727         if the system function has the POSIX declaration. Test whether the
29728         function fails if the buffer is less than 128 bytes large.
29729         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29730         system's ttyname_r function. Provide a reasonably large buffer.
29731         * modules/ttyname_r (Depends-on): Add extensions.
29732         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29733
29734 2010-04-25  Bruno Haible  <bruno@clisp.org>
29735
29736         Use the 'extensions' module for some more functions on Solaris.
29737         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29738         module.
29739         * doc/posix-functions/ctime_r.texi: Likewise.
29740         * doc/posix-functions/getgrgid_r.texi: Likewise.
29741         * doc/posix-functions/getgrnam_r.texi: Likewise.
29742         * doc/posix-functions/getpwnam_r.texi: Likewise.
29743         * doc/posix-functions/getpwuid_r.texi: Likewise.
29744         * doc/posix-functions/readdir_r.texi: Likewise.
29745         * doc/posix-functions/sigwait.texi: Likewise.
29746         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29747         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29748
29749 2010-04-25  Bruno Haible  <bruno@clisp.org>
29750
29751         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29752         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29753         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29754         * lib/ttyname_r.c: Include <limits.h>.
29755         (ttyname_r): Define using the system's ttyname_r function, if it exists
29756         and not on Solaris.
29757         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29758         set.
29759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29760         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29761         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29762         Reported by Simon Josefsson.
29763
29764 2010-04-25  Bruno Haible  <bruno@clisp.org>
29765
29766         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29767         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29768         * doc/posix-functions/ctime_r.texi: Likewise.
29769         * doc/posix-functions/getgrgid_r.texi: Likewise.
29770         * doc/posix-functions/getgrnam_r.texi: Likewise.
29771         * doc/posix-functions/getlogin_r.texi: Likewise.
29772         * doc/posix-functions/getpwnam_r.texi: Likewise.
29773         * doc/posix-functions/getpwuid_r.texi: Likewise.
29774         * doc/posix-functions/readdir_r.texi: Likewise.
29775         * doc/posix-functions/sigwait.texi: Likewise.
29776         * doc/posix-functions/ttyname_r.texi: Likewise.
29777         Reported by Simon Josefsson.
29778
29779 2010-04-25  Bruno Haible  <bruno@clisp.org>
29780
29781         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29782         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29783         also to --create-testdir.
29784         (func_acceptable): Don't consider the status of *-tests modules here.
29785         (func_modules_transitive_closure): Consider it here, before including a
29786         test module.
29787         (func_import, func_create_testdir): Set inc_all_direct_tests,
29788         inc_all_indirect_tests.
29789         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29790         --create-testdir and --create-megatestdir.
29791
29792 2010-04-25  Bruno Haible  <bruno@clisp.org>
29793
29794         gnulib-tool: Add --without-*-tests options.
29795         * gnulib-tool (func_usage): Document the --without-*-tests options.
29796         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29797         excl_unportable_tests): New variables.
29798         Fail if they are specified with --import or --update.
29799         (func_acceptable): Respect the excl_*_tests variables.
29800         (func_import): Set the excl_*_tests variables to empty.
29801
29802 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29803             Bruno Haible  <bruno@clisp.org>
29804
29805         Work around a MacOS X 10.4 bug with openpty.
29806         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29807         * tests/test-openpty.c (main): Close the master side explicitly.
29808
29809 2010-04-25  Bruno Haible  <bruno@clisp.org>
29810
29811         strnlen: Fix a C++ test error on MacOS X and Solaris.
29812         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29813         the function is not declared.
29814         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29815         Simon Josefsson.
29816
29817 2010-04-24  Bruno Haible  <bruno@clisp.org>
29818
29819         Avoid a gcc warning.
29820         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29821         of correct type for %08lx directive.
29822         Reported by Eric Blake.
29823
29824 2010-04-24  Bruno Haible  <bruno@clisp.org>
29825
29826         vasnprintf: Correct errno value in case of out-of-memory.
29827         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29828         or sprintf. Use the errno value from SNPRINTF or sprintf.
29829         Reported by Ian Beckwith <ianb@erislabs.net>.
29830
29831 2010-04-24  Bruno Haible  <bruno@clisp.org>
29832
29833         ansi-c++-opt: Find correct compiler when cross-compiling.
29834         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29835         AC_CHECK_PROGS.
29836         Reported by Simon Josefsson.
29837
29838 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29839
29840         vc-list-files: Add support for subversion
29841         * build-aux/vc-list-files: Use "svn list" to generate the list of
29842         files controlled by subversion.
29843
29844 2010-04-23  Jim Meyering  <meyering@redhat.com>
29845
29846         vc-list-files tests: convert to use init.sh
29847         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29848         path_prepend_.
29849         Use Exit, not exit.
29850         Use skip_ rather than open coding it.
29851         Remove trap set-up and compare definitions.
29852         * tests/test-vc-list-files-git.sh: Likewise.
29853         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29854
29855 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29856
29857         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29858         backup files.
29859
29860 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29861
29862         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29863
29864 2010-04-20  Eric Blake  <eblake@redhat.com>
29865
29866         tests: be robust to ignored SIGPIPE
29867         * tests/test-select-in.sh: Consume all output.
29868         * tests/test-lseek.sh: Check correct exit status, while avoiding
29869         EPIPE.
29870
29871 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29872             Bruno Haible  <bruno@clisp.org>
29873
29874         visibility: Don't use -fvisibility if it leads to a warning.
29875         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29876         yes, don't pretend that visibility works if it leads to a warning.
29877         Reported by Mike Gran <spk121@yahoo.com>.
29878
29879 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29880
29881         * build-aux/bootstrap: Use "git -h" for testing for supported options
29882         instead of "git --help".  The short-form option only shows a summary,
29883         and doesn't layout the full man page.  Grep for the full option name
29884         in the summary, too.
29885
29886 2010-04-19  Bruno Haible  <bruno@clisp.org>
29887
29888         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29889         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29890         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29891         mention of RELOCATABLE_STRIP.
29892         Reported by Sylvain Beucler <beuc@beuc.net>.
29893
29894 2010-04-19  Bruno Haible  <bruno@clisp.org>
29895
29896         * lib/diffseq.h: Fix typo in comment.
29897         Reported by Eric Blake.
29898
29899 2010-04-19  Bruno Haible  <bruno@clisp.org>
29900
29901         ioctl: Move autoconf macro to a .m4 file.
29902         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29903         * modules/ioctl (Files): Add it.
29904         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29905         Reported by Ian Beckwith <ianb@erislabs.net>.
29906
29907 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29908             Bruno Haible  <bruno@clisp.org>
29909
29910         diffseq: Accommodate use-case with abstract arrays.
29911         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29912         is not defined.
29913         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29914         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29915
29916 2010-04-18  Bruno Haible  <bruno@clisp.org>
29917
29918         * doc/posix-headers/stdbool.texi: More precise wording.
29919
29920 2010-04-17  Jim Meyering  <meyering@redhat.com>
29921
29922         maint.mk: use gnu-style indentation in an embedded perl script
29923         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29924         Rename variable: s/two/last_two_bytes/
29925
29926 2010-04-16  Eric Blake  <eblake@redhat.com>
29927
29928         test-stdbool: skip test that fails with Solaris CC
29929         * tests/test-stdbool.c (f): Skip test that causes compilation
29930         error under buggy C++ compiler.
29931         * lib/stdbool.in.h: Document the limitation.
29932         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29933
29934         setenv: allow compilation with C++
29935         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29936         register keyword.
29937
29938         stdint: allow test to pass with C++
29939         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29940
29941         getopt: allow compilation with C++
29942         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29943         struct.
29944         * lib/getopt.c (_getopt_internal_r): Use correct type.
29945         Reported by Dagobert Michelson, via Joel E. Denny.
29946
29947 2010-04-16  Bruno Haible  <bruno@clisp.org>
29948
29949         Override netdb.h always.
29950         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29951         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29952         Reported by Ludovic Courtès <ludo@gnu.org>.
29953
29954 2010-04-15  Bruno Haible  <bruno@clisp.org>
29955
29956         openpty: Fix mistake from 2010-03-21.
29957         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29958         Reported by Simon Josefsson.
29959
29960 2010-04-15  Eric Blake  <eblake@redhat.com>
29961
29962         test-forkpty: fix expected signature
29963         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29964         Reported by Simon Josefsson.
29965
29966 2010-04-15  Jim Meyering  <meyering@redhat.com>
29967
29968         maint.mk: texinfo_suffix_re_: correct the default regexp
29969         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29970
29971         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29972         make it configurable via texinfo_suffix_re_.
29973
29974 2010-04-14  Eric Blake  <eblake@redhat.com>
29975
29976         strtok_r: relax license to LGPLv2+
29977         * modules/strtok_r (License): Relax license.
29978         Reported by Matthias Bolte.
29979
29980 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29981
29982         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29983         version 1.4.4 by default instead of requiring the libgcrypt
29984         version used during build.  This makes it possible to use the
29985         application with older but still binary compatible libgcrypt
29986         versions.
29987
29988 2010-04-13  Eric Blake  <eblake@redhat.com>
29989
29990         getopt-gnu: match recent glibc fixes and posix ruling
29991         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29992         '+' handling, when requesting extensions.
29993         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29994         'W;' handling.
29995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29996         * doc/posix-functions/getopt.texi (getopt): Document this.
29997         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29998         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29999         Likewise.
30000
30001         getopt: merge bug fixes from glibc
30002         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30003         diagnostics.  Honor '+:' correctly.  Reject ';'.
30004
30005         getopt-posix: detect MacOS bug
30006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30007         optind when missing a required argument.
30008         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30009         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30010         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30011         Likewise.
30012
30013         getopt-posix: avoid spurious failure on Solaris
30014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30015         an indicator that setting optind=1 is sufficient for reset.
30016
30017         getopt-posix: avoid spurious failure on FreeBSD
30018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30019         in POSIX mode, since the m4 test uses it.
30020
30021         gnulib-tool: silence warning on BSD sh
30022         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30023
30024 2010-04-13  Jim Meyering  <meyering@redhat.com>
30025
30026         doc: users.txt: GNU patch now uses gnulib
30027         * users.txt: Add patch.
30028
30029 2010-04-12  Jim Meyering  <meyering@redhat.com>
30030
30031         maint.mk: generate more concise timing data for syntax-check rules
30032         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30033         " done" from each line that reports a syntax-check test duration.
30034
30035 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30036
30037         git-version-gen: use "git update-index..." rather than "git status"
30038         * build-aux/git-version-gen: Use git update-index --refresh, not
30039         "git status".  With some versions of git, "git status" would fail
30040         to update the index and result in an unwarranted "-dirty" suffix.
30041
30042 2010-04-11  Jim Meyering  <meyering@redhat.com>
30043
30044         openat: correct formatting (no semantic change)
30045         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30046         Suggested by Bruno Haible.
30047
30048 2010-04-11  Bruno Haible  <bruno@clisp.org>
30049
30050         Stricter declaration checking in testdirs.
30051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30052         If for_tests is true, augment AM_CPPFLAGS to define
30053         GNULIB_STRICT_CHECKING.
30054         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30055         GNULIB_STRICT_CHECKING is defined, verify that the function is
30056         declared.
30057
30058 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30059             Bruno Haible  <bruno@clisp.org>
30060
30061         libunistring: Improve configure output.
30062         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30063         Don't say "consider installing GNU libunistring" when checking again
30064         with libiconv.
30065
30066 2010-04-11  Bruno Haible  <bruno@clisp.org>
30067
30068         libunistring: Correct value of $LTLIBUNISTRING.
30069         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30070         correct the value of $LTLIBUNISTRING.
30071
30072 2010-04-11  Bruno Haible  <bruno@clisp.org>
30073
30074         havelib: Add static libraries to LIBS in the right order.
30075         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30076         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30077
30078 2010-04-11  Bruno Haible  <bruno@clisp.org>
30079
30080         libunistring: Detect libunistring also when it depends on libiconv.
30081         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30082         the second AC_LIB_HAVE_LINKFLAGS invocation.
30083
30084 2010-04-11  James Youngman  <jay@gnu.org>
30085
30086         close-stream: declare local scalars to be "const"
30087         * lib/close-stream.c (close_stream): Make boolean variables const
30088         to document the fact that we set but do not change them.
30089
30090 2010-04-11  Bruno Haible  <bruno@clisp.org>
30091
30092         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30093
30094 2010-04-11  Jim Meyering  <meyering@redhat.com>
30095
30096         maint.mk: don't include dist-check.mk
30097         * top/maint.mk: Remove bogus include directive.
30098
30099         maint.mk: improve empty-line-at-EOF check
30100         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30101         solution, rather than tail+Perl-based one.  The latter would read
30102         a few kilobytes from the end of each file, and did not handle empty
30103         files properly.
30104
30105         maint.mk: print the elapsed time for each syntax-check rule
30106         * top/maint.mk (sc_m_rules_): Save start time in a file.
30107         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30108         (local-check): Interpose the .z rules
30109
30110 2010-04-11  Jim Meyering  <meyering@redhat.com>
30111
30112         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30113         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30114         empty file with one that ends in an empty line.
30115
30116 2010-04-10  Bruno Haible  <bruno@clisp.org>
30117
30118         mkdir: Make it work on mingw64.
30119         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30120         * lib/mkdir.c: Update comment.
30121         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30122
30123 2010-04-10  Bruno Haible  <bruno@clisp.org>
30124
30125         Don't override improved macro from newer autoconf.
30126         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30127         autoconf >= 2.62.
30128         Reported by Joel E. Denny <jdenny@clemson.edu>.
30129
30130 2010-04-10  Jim Meyering  <meyering@redhat.com>
30131
30132         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30133         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30134
30135         maint.mk: correct a diagnostic
30136         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30137         in diagnostic; now use $prohibit.
30138
30139 2010-04-10  Bruno Haible  <address@hidden>
30140
30141         fchownat: Fix a C++ test error on Solaris 8.
30142         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30143         the function does not exist.
30144
30145 2010-04-10  Bruno Haible  <bruno@clisp.org>
30146
30147         vasnprintf: Add more tests.
30148         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30149         (test_function): Test converting an invalid wide string.
30150
30151         vasnprintf: Correct handling of unconvertible wide string arguments.
30152         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30153         VASNPRINTF.
30154         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30155         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30156         smaller than the expected maximum need for the directive. Set errno to
30157         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30158         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30160         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30161         * modules/vasnprintf (Files): Add m4/printf.m4.
30162         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30163
30164 2010-04-10  Bruno Haible  <bruno@clisp.org>
30165
30166         vasnprintf: Fix crash in %ls directive.
30167         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30168         string is passed as argument to %ls, with no precision and no width.
30169         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30170
30171 2010-04-10  Bruno Haible  <bruno@clisp.org>
30172
30173         vasnprintf: Fix multiple test failures on mingw.
30174         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30175         _snprintf, or snwprintf, not _snwprintf.
30176
30177 2010-04-10  Bruno Haible  <bruno@clisp.org>
30178
30179         write: Fix a C++ test error on mingw.
30180         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30181
30182 2010-04-10  Bruno Haible  <bruno@clisp.org>
30183
30184         vasnprintf test: Reduce code duplication.
30185         * tests/test-vasnprintf.c (test_function): New function, extracted from
30186         test_vasnprintf.
30187         (test_vasnprintf, test_asnprintf): Invoke it.
30188
30189 2010-04-10  Bruno Haible  <bruno@clisp.org>
30190
30191         strnlen: Fix warning in C++ mode on MacOS X.
30192         * lib/string.in.h (strnlen): Use the modern idiom.
30193         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30194         defining strnlen as a macro already in <config.h>.
30195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30196         REPLACE_STRNLEN.
30197         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30198         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30199
30200 2010-04-08  James Youngman  <jay@gnu.org>
30201
30202         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30203         the example.
30204
30205 2010-04-09  Jim Meyering  <meyering@redhat.com>
30206
30207         maint.mk: print better diagnostic when there is no $(_hv_file)
30208         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30209         announce that when $(_hv_file) (aka help-version) does not exist.
30210
30211         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30212         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30213         not try to interpret its random input bytes.  Jarno Rajahalme reported
30214         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30215         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30216         (mktempd_): Likewise, just in case.
30217
30218         ftruncate: add two years to projected module removal date: 2012
30219         * m4/ftruncate.m4: Adjust comments.
30220
30221         ftruncate: mark module as obsolete; even MinGW provides it, now
30222         * modules/ftruncate (Status): Obsolete.
30223         (Notice): Say that.
30224         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30225         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30226
30227 2010-04-08  Bruno Haible  <bruno@clisp.org>
30228
30229         Fix side effects from tests-related modules.
30230         * modules/dprintf-posix (Comment): New section.
30231         * modules/fprintf-posix (Comment): Likewise.
30232         * modules/obstack-printf-posix (Comment): Likewise.
30233         * modules/printf-posix (Comment): Likewise.
30234         * modules/snprintf-posix (Comment): Likewise.
30235         * modules/sprintf-posix (Comment): Likewise.
30236         * modules/vasnprintf-posix (Comment): Likewise.
30237         * modules/vasprintf-posix (Comment): Likewise.
30238         * modules/vdprintf-posix (Comment): Likewise.
30239         * modules/vfprintf-posix (Comment): Likewise.
30240         * modules/vprintf-posix (Comment): Likewise.
30241         * modules/vsnprintf-posix (Comment): Likewise.
30242         * modules/vsprintf-posix (Comment): Likewise.
30243         * modules/xprintf-posix (Comment): Likewise.
30244         * modules/xvasprintf-posix (Comment): Likewise.
30245         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30246         * modules/floorf-tests (Depends-on): Likewise.
30247         * modules/round-tests (Depends-on): Likewise.
30248         * modules/roundf-tests (Depends-on): Likewise.
30249         * modules/trunc-tests (Depends-on): Likewise.
30250         * modules/truncf-tests (Depends-on): Likewise.
30251         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30252         'fprintf-posix' module is not present.
30253         * tests/test-floorf2.c (check): Likewise.
30254         * tests/test-trunc2.c (check): Likewise.
30255         * tests/test-truncf2.c (check): Likewise.
30256         * tests/test-round2.c (equal): Likewise.
30257         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30258
30259 2010-04-07  Karl Berry  <karl@gnu.org>
30260
30261         * config/srclist.txt,
30262         * config/srclistvars.sh,
30263         * config/srclist-update: doc fixes.
30264
30265 2010-04-07  Jim Meyering  <meyering@redhat.com>
30266
30267         maint.mk: add a PATH crosschecking syntax-check rule
30268         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30269         Useful if you use a test like the one in help-version (coreutils,
30270         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30271         printed by prog --version.
30272
30273 2010-04-06  Bruno Haible  <bruno@clisp.org>
30274
30275         Fix link error on mingw.
30276         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30277         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30278
30279 2010-04-06  Bruno Haible  <bruno@clisp.org>
30280
30281         Assume rmdir exists.
30282         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30283
30284 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30285
30286         doc: update users.txt
30287         * users.txt: Add gcal.
30288
30289 2010-04-06  Jim Meyering  <meyering@redhat.com>
30290
30291         init.sh: simply unset TMPDIR rather than risking env -i
30292         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30293         although it probably works fine on all Unix-based systems, some
30294         systems (Cygwin?) cannot tolerate a totally cleared environment.
30295         Suggestion from Eric Blake.
30296
30297 2010-04-06  Jim Meyering  <meyering@redhat.com>
30298
30299         init.sh: portability fix: use env's POSIX-specified -i option not -u
30300         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30301         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30302
30303 2010-04-05  Bruno Haible  <bruno@clisp.org>
30304
30305         btowc: Work around Cygwin 1.7.2 bug.
30306         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30307         does not map NUL to 0.
30308         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30309
30310 2010-04-05  Bruno Haible  <bruno@clisp.org>
30311
30312         Make the multithread modules work on Cygwin 1.7.2.
30313         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30314         imported symbols can be declared weak, so that it returns "no" on
30315         Cygwin 1.7.2.
30316
30317 2010-04-05  Bruno Haible  <bruno@clisp.org>
30318
30319         Use the module 'strncat'.
30320         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30321
30322         Tests for module 'strncat'.
30323         * modules/strncat-tests: New file.
30324         * tests/test-strncat.c: New file.
30325
30326         New module 'strncat'.
30327         * lib/string.in.h (strncat): New declaration.
30328         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30329         * m4/strncat.m4: New file, based on m4/memchr.m4.
30330         * modules/strncat: New file.
30331         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30332         is declared.
30333         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30334         REPLACE_STRNCAT.
30335         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30336         REPLACE_STRNCAT.
30337         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30338         module.
30339         * tests/test-string-c++.cc: Check signature of strncat.
30340
30341 2010-04-05  Jim Meyering  <meyering@redhat.com>
30342
30343         xstrtoumax-tests: convert to use init.sh
30344         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30345         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30346         Use Exit, not exit.
30347         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30348
30349         xstrtoimax-tests: convert to use init.sh
30350         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30351         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30352         Use Exit, not exit.
30353         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30354
30355 2010-04-05  Bruno Haible  <bruno@clisp.org>
30356
30357         sys_socket: Avoid #define replacements in C++ mode.
30358         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30359         warning to the function if possible, rather than #defining the symbol
30360         to a dysfunctional alias.
30361
30362 2010-04-05  Bruno Haible  <bruno@clisp.org>
30363
30364         fseeko: Fix C++ test error on mingw.
30365         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30366         gl_FUNC_FSEEKO.
30367         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30368         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30369         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30370         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30371
30372 2010-04-05  Bruno Haible  <bruno@clisp.org>
30373
30374         duplocale: Improve test output.
30375         * tests/test-duplocale.c (main): Print reason for skipped test.
30376
30377 2010-04-05  Bruno Haible  <bruno@clisp.org>
30378
30379         Assume rmdir exists.
30380         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30381         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30382
30383 2010-04-05  Bruno Haible  <bruno@clisp.org>
30384
30385         Fix link error on Solaris 8 with cc.
30386         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30387
30388 2010-04-05  Bruno Haible  <bruno@clisp.org>
30389
30390         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30391         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30392
30393 2010-04-05  Bruno Haible  <bruno@clisp.org>
30394
30395         vasprintf: Update documentation.
30396         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30397
30398 2010-04-05  Bruno Haible  <bruno@clisp.org>
30399
30400         ptsname: Improve test.
30401         * tests/test-ptsname.c (main): Also try the various master names of BSD
30402         systems.
30403
30404 2010-04-05  Bruno Haible  <bruno@clisp.org>
30405
30406         memchr: Avoid a possible C++ test error.
30407         * lib/string.in.h (memchr): Provide declaration if function is missing.
30408         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30409         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30411         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30412
30413 2010-04-05  Bruno Haible  <bruno@clisp.org>
30414
30415         strtok_r: Improve idiom.
30416         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30417         AC_LIBOBJ is used.
30418
30419 2010-04-05  Bruno Haible  <bruno@clisp.org>
30420
30421         strdup: Improve idiom.
30422         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30423         AC_LIBOBJ is used.
30424         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30425         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30426         when AC_LIBOBJ is used.
30427
30428 2010-04-05  Bruno Haible  <bruno@clisp.org>
30429
30430         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30431         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30432         don't set REPLACE_MBSINIT to 1.
30433         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30434         don't set REPLACE_MBRTOWC to 1.
30435         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30436         exist, don't set REPLACE_MBSRTOWCS to 1.
30437         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30438         exist, don't set REPLACE_MBSNRTOWCS to 1.
30439         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30440         don't set REPLACE_WCRTOMB to 1.
30441         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30442         exist, don't set REPLACE_WCSRTOMBS to 1.
30443         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30444         exist, don't set REPLACE_WCSNRTOMBS to 1.
30445
30446 2010-04-05  Bruno Haible  <bruno@clisp.org>
30447
30448         ldexpl: Improve idiom.
30449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30450         make sure to set HAVE_DECL_LDEXPL to 0.
30451
30452 2010-04-05  Jim Meyering  <meyering@redhat.com>
30453
30454         xstrtol-tests: convert to use init.sh
30455         * modules/xstrtol-tests (Files): Add tests/init.sh.
30456         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30457         Use Exit, not exit.
30458         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30459
30460         atexit-tests: convert to use init.sh
30461         * modules/atexit-tests (Files): Add tests/init.sh.
30462         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30463         Use Exit, not exit.
30464         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30465
30466         init.sh: fix typo
30467         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30468
30469         init.sh: make it easier for a test script to write to the tty, ...
30470         when using automake's parallel-tests mode.
30471         * tests/init.sh (stderr_fileno_): Define overridable variable.
30472         (warn_): New function, to use it.
30473         (fail_, skip_, framework_failure_): Use warn_.
30474
30475 2010-04-04  Bruno Haible  <bruno@clisp.org>
30476
30477         btowc: Avoid warning.
30478         * lib/btowc.c: Include <stdlib.h>.
30479         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30480
30481 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30482             Bruno Haible  <bruno@clisp.org>
30483
30484         wchar: Port to NetBSD 1.5.
30485         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30486         * lib/wctype.in.h (WEOF): Likewise.
30487
30488 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30489             Bruno Haible  <bruno@clisp.org>
30490
30491         Port extended stdio to NetBSD 1.5.
30492         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30493         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30494         older.
30495
30496 2010-04-04  Bruno Haible  <bruno@clisp.org>
30497
30498         string: Remove unused substitution.
30499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30500         HAVE_DECL_STRERROR.
30501         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30502
30503 2010-04-04  Bruno Haible  <bruno@clisp.org>
30504
30505         strtod: Avoid a possible C++ test error.
30506         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30507         set REPLACE_STRTOD.
30508
30509 2010-04-04  Bruno Haible  <bruno@clisp.org>
30510
30511         strerror: Update documentation.
30512         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30513
30514 2010-04-04  Bruno Haible  <bruno@clisp.org>
30515
30516         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30517         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30518         _GL_CXXALIAS_SYS_CAST.
30519
30520 2010-04-04  Bruno Haible  <bruno@clisp.org>
30521
30522         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30523         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30524         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30525         REPLACE_FREXPL to 1.
30526         * doc/posix-functions/frexpl.texi: Update documentation.
30527
30528 2010-04-04  Bruno Haible  <bruno@clisp.org>
30529
30530         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30531         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30532
30533 2010-04-04  Bruno Haible  <bruno@clisp.org>
30534
30535         Implement nanosleep for native Windows.
30536         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30537
30538 2010-04-04  Bruno Haible  <bruno@clisp.org>
30539
30540         math: Fix some C++ test errors on Solaris 8.
30541         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30542
30543 2010-04-04  Bruno Haible  <bruno@clisp.org>
30544
30545         math: Fix some C++ test errors on Cygwin.
30546         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30547         truncl): Provide declaration if the system does not have it.
30548         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30549         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30550         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30551         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30552         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30553         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30554         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30555         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30556         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30557         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30558         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30559         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30560         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30561         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30562         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30563         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30565         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30566         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30567         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30568         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30569         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30570
30571 2010-04-04  Bruno Haible  <bruno@clisp.org>
30572
30573         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30574         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30575         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30576         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30577         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30578         * m4/isinf.m4 (gl_ISINF): Likewise.
30579         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30580
30581 2010-04-04  Bruno Haible  <bruno@clisp.org>
30582
30583         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30584         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30585
30586 2010-04-04  Bruno Haible  <bruno@clisp.org>
30587
30588         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30589         * modules/tmpfile (configure.ac): Update.
30590
30591         tmpfile: Fix C++ test error on mingw.
30592         * lib/stdio.in.h (tmpfile): New declaration.
30593         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30594         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30595         * modules/tmpfile (Depends-on): Add stdio.
30596         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30597         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30598         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30599         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30600         REPLACE_TMPFILE.
30601         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30602
30603 2010-04-04  Bruno Haible  <bruno@clisp.org>
30604
30605         ioctl: Fix C++ test error on mingw.
30606         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30607         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30608         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30609
30610 2010-04-03  Bruno Haible  <bruno@clisp.org>
30611
30612         wcwidth: Fix C++ test error on mingw.
30613         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30615         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30616
30617 2010-04-03  Bruno Haible  <bruno@clisp.org>
30618
30619         nanosleep: Fix C++ test error on mingw.
30620         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30621         * lib/time.in.h (nanosleep): Use modern idiom.
30622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30623         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30624         REPLACE_NANOSLEEP to 1.
30625         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30626         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30627
30628 2010-04-03  Bruno Haible  <bruno@clisp.org>
30629
30630         strptime: Fix C++ test error on mingw.
30631         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30632         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30633         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30634         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30635         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30636         not REPLACE_STRPTIME.
30637         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30638         REPLACE_STRPTIME.
30639
30640 2010-04-03  Bruno Haible  <bruno@clisp.org>
30641
30642         timegm: Fix C++ test error on mingw.
30643         * lib/time.in.h (timegm): Use modern idiom.
30644         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30645         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30646         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30647         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30648
30649 2010-04-03  Bruno Haible  <bruno@clisp.org>
30650
30651         timegm: Assume declaration if function exists.
30652         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30653         if it exists. Don't clobber ac_cv_func_timegm.
30654
30655 2010-04-03  Bruno Haible  <bruno@clisp.org>
30656
30657         time_r: Fix C++ test error on mingw.
30658         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30659         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30660         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30661         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30662         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30663
30664 2010-04-03  Bruno Haible  <bruno@clisp.org>
30665
30666         time_r: Minor updates.
30667         * modules/time_r (Description): Mention the provided functions.
30668         * lib/time_r.c: Don't include <string.h>.
30669         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30670         * doc/posix-functions/localtime_r.texi: Likewise.
30671
30672 2010-04-03  Bruno Haible  <bruno@clisp.org>
30673
30674         time: Fix regression introduced on 2010-03-08.
30675         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30676         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30677
30678 2010-04-03  Jim Meyering  <meyering@redhat.com>
30679
30680         maint.mk: don't silently disable project-specific syntax-check rules
30681         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30682         that they need to convert their project-specific syntax-check rules
30683         to use the new _sc_search_regexp.
30684
30685 2010-04-03  Bruno Haible  <bruno@clisp.org>
30686
30687         fchdir: Fix regression introduced on 2010-03-08.
30688         * lib/unistd.in.h (fchdir): Fix declaration.
30689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30691         REPLACE_FCHDIR.
30692         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30693         REPLACE_FCHDIR.
30694
30695 2010-04-03  Bruno Haible  <bruno@clisp.org>
30696
30697         getpagesize: Fix C++ test error on mingw.
30698         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30699         system does not declare the function.
30700         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30701         declared.
30702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30703         HAVE_DECL_GETPAGESIZE.
30704         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30705
30706 2010-04-03  Bruno Haible  <bruno@clisp.org>
30707
30708         stdio: Make C++ tests work on mingw.
30709         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30710         does not declare the function.
30711
30712 2010-04-03  Bruno Haible  <bruno@clisp.org>
30713
30714         ftello: Fix C++ test error on mingw.
30715         * lib/stdio.in.h (ftello): Use modern idiom.
30716         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30717         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30718         is missing and that it needs to be replaced.
30719         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30721         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30722
30723 2010-04-03  Bruno Haible  <bruno@clisp.org>
30724
30725         fseeko: Fix C++ test error on mingw.
30726         * lib/stdio.in.h (fseeko): Use modern idiom.
30727         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30728         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30729         is missing and that it needs to be replaced.
30730         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30732         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30733
30734 2010-04-03  Bruno Haible  <bruno@clisp.org>
30735
30736         mkstemp: Fix C++ test error on mingw.
30737         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30738         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30739         function is missing and that it needs to be replaced.
30740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30741         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30742
30743 2010-04-03  Bruno Haible  <bruno@clisp.org>
30744
30745         stpncpy: Fix C++ test error on mingw.
30746         * lib/string.in.h (stpncpy): Use modern idiom.
30747         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30748         function is missing and that it needs to be replaced.
30749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30750         REPLACE_STPNCPY.
30751         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30752
30753 2010-04-03  Bruno Haible  <bruno@clisp.org>
30754
30755         sys_stat: Fix C++ test error on mingw.
30756         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30757         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30758
30759 2010-04-03  Bruno Haible  <bruno@clisp.org>
30760
30761         pty: Update doc.
30762         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30763
30764 2010-04-03  Bruno Haible  <bruno@clisp.org>
30765
30766         unistd: Fix C++ test error on mingw.
30767         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30768
30769 2010-04-03  Bruno Haible  <bruno@clisp.org>
30770
30771         Update doc regarding mingw.
30772         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30773         * doc/glibc-functions/login_tty.texi: Likewise.
30774         * doc/glibc-functions/forkpty.texi: Likewise.
30775
30776 2010-04-03  Bruno Haible  <bruno@clisp.org>
30777
30778         stdlib: Avoid compilation failure of c-strtold on mingw.
30779         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30780
30781 2010-04-03  Bruno Haible  <bruno@clisp.org>
30782
30783         locale: Make C++ tests work on Cygwin and mingw.
30784         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30785         cannot provide the function.
30786         Reported by Simon Josefsson.
30787
30788 2010-04-03  Bruno Haible  <bruno@clisp.org>
30789
30790         localename: Port to MacOS X 10.6.
30791         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30792         memory layout of the locales in MacOS X 10.6 as well.
30793         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30794
30795 2010-04-02  Bruno Haible  <bruno@clisp.org>
30796
30797         gnulib-tool: Ensure that long-running tests are executed last.
30798         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30799         running tests after the one for the other tests.
30800
30801 2010-04-02  Bruno Haible  <bruno@clisp.org>
30802
30803         gnulib-tool: Ensure the tests in the main directory are executed first.
30804         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30805         start with the current directory.
30806
30807 2010-04-02  Bruno Haible  <bruno@clisp.org>
30808
30809         Tests for module 'havelib', moved here from GNU gettext.
30810         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30811         modifications.
30812         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30813         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30814         with modifications.
30815         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30816         modifications.
30817         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30818         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30819         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30820         with modifications.
30821         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30822         with modifications.
30823         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30824         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30825         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30826         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30827         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30828         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30829         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30830         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30831         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30832         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30833         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30834         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30835         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30836         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30837         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30838         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30839         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30840         with modifications.
30841         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30842         with modifications.
30843         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30844         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30845         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30846         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30847         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30848         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30849         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30850         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30851         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30852         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30853         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30854         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30855         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30856         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30857         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30858         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30859         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30860         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30861         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30862         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30863         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30864         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30865         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30866         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30867         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30868         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30869         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30870         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30871         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30872         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30873         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30874         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30875         * tests/havelib/rpathx/rpathx.c: New file, from
30876         gettext/autoconf-lib-link.
30877         * tests/havelib/rpathx/Makefile.am: New file, from
30878         gettext/autoconf-lib-link.
30879         * tests/havelib/rpathx/configure.ac: New file, from
30880         gettext/autoconf-lib-link with modifications.
30881         * tests/havelib/rpathy/rpathy.c: New file, from
30882         gettext/autoconf-lib-link.
30883         * tests/havelib/rpathy/Makefile.am: New file, from
30884         gettext/autoconf-lib-link.
30885         * tests/havelib/rpathy/configure.ac: New file, from
30886         gettext/autoconf-lib-link with modifications.
30887         * tests/havelib/rpathz/rpathz.c: New file, from
30888         gettext/autoconf-lib-link.
30889         * tests/havelib/rpathz/Makefile.am: New file, from
30890         gettext/autoconf-lib-link.
30891         * tests/havelib/rpathz/configure.ac: New file, from
30892         gettext/autoconf-lib-link with modifications.
30893         * tests/havelib/rpathlx/usex.c: New file, from
30894         gettext/autoconf-lib-link.
30895         * tests/havelib/rpathlx/Makefile.am: New file, from
30896         gettext/autoconf-lib-link.
30897         * tests/havelib/rpathlx/configure.ac: New file, from
30898         gettext/autoconf-lib-link with modifications.
30899         * tests/havelib/rpathly/usey.c: New file, from
30900         gettext/autoconf-lib-link.
30901         * tests/havelib/rpathly/Makefile.am: New file, from
30902         gettext/autoconf-lib-link.
30903         * tests/havelib/rpathly/configure.ac: New file, from
30904         gettext/autoconf-lib-link with modifications.
30905         * tests/havelib/rpathlz/usez.c: New file, from
30906         gettext/autoconf-lib-link.
30907         * tests/havelib/rpathlz/Makefile.am: New file, from
30908         gettext/autoconf-lib-link.
30909         * tests/havelib/rpathlz/configure.ac: New file, from
30910         gettext/autoconf-lib-link with modifications.
30911         * tests/havelib/rpathlyx/usey.c: New file, from
30912         gettext/autoconf-lib-link.
30913         * tests/havelib/rpathlyx/Makefile.am: New file, from
30914         gettext/autoconf-lib-link.
30915         * tests/havelib/rpathlyx/configure.ac: New file, from
30916         gettext/autoconf-lib-link with modifications.
30917         * tests/havelib/rpathlzyx/usez.c: New file, from
30918         gettext/autoconf-lib-link.
30919         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30920         gettext/autoconf-lib-link.
30921         * tests/havelib/rpathlzyx/configure.ac: New file, from
30922         gettext/autoconf-lib-link with modifications.
30923         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30924         with modifications.
30925
30926 2010-04-02  Bruno Haible  <bruno@clisp.org>
30927
30928         gnulib-tool: Create distributed built sources also for the tests.
30929         * gnulib-tool (func_create_testdir): Also generate distributed built
30930         sources in the tests directory.
30931
30932 2010-04-02  Bruno Haible  <bruno@clisp.org>
30933
30934         gnulib-tool: Obey user's environment variables.
30935         * gnulib-tool (func_create_testdir): When creating built sources,
30936         respect the environment variables for autoconf, automake, etc. given by
30937         the user.
30938
30939 2010-04-02  Bruno Haible  <bruno@clisp.org>
30940
30941         gnulib-tool: Provide the value of --m4-base to modules.
30942         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30943         of gl_m4_base.
30944
30945 2010-04-02  Eric Blake  <eblake@redhat.com>
30946
30947         maint.mk: fix some fallout
30948         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30949         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30950
30951 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30952
30953         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30954         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30955         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30956         (sc_cast_of_x_alloc_return_value): Likewise.
30957         (sc_cast_of_alloca_return_value): Likewise.
30958         (sc_space_tab): Likewise.
30959         (sc_prohibit_atoi_atof): Likewise.
30960         (sc_prohibit_magic_number_exit): Likewise.
30961         (sc_error_exit_success): Likewise.
30962         (sc_file_system): Likewise.
30963         (sc_prohibit_have_config_h): Likewise.
30964         (sc_require_config_h): Likewise.
30965         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30966         (sc_obsolete_symbols): Likewise.
30967         (sc_changelog): Likewise.
30968         (sc_program_name): Likewise.
30969         (sc_the_the): Likewise.
30970         (sc_trailing_blank): Likewise.
30971         (sc_two_space_separator_in_usage): Likewise.
30972         (sc_useless_cpp_parens): Likewise.
30973         (sc_GPL_version): Likewise.
30974         (sc_GFDL_version): Likewise.
30975         (sc_texinfo_acronym): Likewise.
30976         (sc_prohibit_cvs_keyword): Likewise.
30977         (sc_prohibit_stat_st_blocks): Likewise.
30978         (sc_prohibit_S_IS_definition): Likewise.
30979         (sc_redundant_const): Likewise.
30980         (sc_makefile_TAB_only_indentation): Likewise.
30981         (sc_m4_quote_check): Likewise.
30982         (sc_makefile_path_separator_check): Likewise.
30983         (sc_copyright_check): Likewise.
30984         (sc_Wundef_boolean): Likewise.
30985         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30986
30987         maint.mk: match 0 or more whitespace-before-function-call '('
30988         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30989         that have zero or two-and-more spaces between the function name
30990         and the open parenthesis.
30991         (sc_error_message_warn_fatal): Likewise.
30992         (sc_error_message_uppercase): Likewise.
30993         (sc_error_message_period): Likewise.
30994
30995 2010-03-31  Eric Blake  <eblake@redhat.com>
30996
30997         maint.mk: check for [ as well as test
30998         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30999         Based on a libvirt report by Matthias Bolte.
31000
31001         gnumakefile: don't squelch _version output
31002         * top/GNUmakefile (_version): Create one-shot dependency rather
31003         than using $(shell) when version must be regenerated.
31004         (_autoreconf): Run verbosely, by default.
31005
31006         sys_time: avoid compiler warnings
31007         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31008         unconditional, fixing regression from 2010-03-29.
31009         Reported by Simon Josefsson.
31010
31011 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31012
31013         maint.mk: s/_header_without_use/_sc_header_without_use/
31014         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31015         (sc_prohibit_assert_without_use): Use the new name.
31016         (sc_prohibit_close_stream_without_use): Likewise.
31017         (sc_prohibit_getopt_without_use): Likewise.
31018         (sc_prohibit_quotearg_without_use): Likewise.
31019         (sc_prohibit_quote_without_use): Likewise.
31020         (sc_prohibit_long_options_without_use): Likewise.
31021         (sc_prohibit_inttostr_without_use): Likewise.
31022         (sc_prohibit_ignore_value_without_use): Likewise.
31023         (sc_prohibit_error_without_use): Likewise.
31024         (sc_prohibit_xalloc_without_use): Likewise.
31025         (sc_prohibit_hash_without_use): Likewise.
31026         (sc_prohibit_hash_pjw_without_use): Likewise.
31027         (sc_prohibit_safe_read_without_use): Likewise.
31028         (sc_prohibit_argmatch_without_use): Likewise.
31029         (sc_prohibit_canonicalize_without_use): Likewise.
31030         (sc_prohibit_root_dev_ino_without_use): Likewise.
31031         (sc_prohibit_openat_without_use): Likewise.
31032         (sc_prohibit_c_ctype_without_use): Likewise.
31033         (sc_prohibit_signal_without_use): Likewise.
31034         (sc_prohibit_intprops_without_use): Likewise.
31035
31036 2010-03-30  Eric Blake  <eblake@redhat.com>
31037
31038         maint: improve module indicators
31039         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31040         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31041         columns, and avoid extra macro expansion.
31042
31043         fdopendir: work around FreeBSD bug
31044         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31045         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31046         * modules/dirent (Makefile.am): Substitute it.
31047         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31048         declaration.
31049         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31050         fix.
31051         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31052
31053 2010-03-29  Bruno Haible  <bruno@clisp.org>
31054
31055         Emit #pragma system_header after the inclusion guard, not before.
31056         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31057         guard that spans the entire file, not before. This enables an
31058         optimization in GCC's preprocessor.
31059         * lib/ctype.in.h: Likewise.
31060         * lib/dirent.in.h: Likewise.
31061         * lib/errno.in.h: Likewise.
31062         * lib/float.in.h: Likewise.
31063         * lib/getopt.in.h: Likewise.
31064         * lib/iconv.in.h: Likewise.
31065         * lib/langinfo.in.h: Likewise.
31066         * lib/locale.in.h: Likewise.
31067         * lib/math.in.h: Likewise.
31068         * lib/netdb.in.h: Likewise.
31069         * lib/netinet_in.in.h: Likewise.
31070         * lib/pty.in.h: Likewise.
31071         * lib/sched.in.h: Likewise.
31072         * lib/se-selinux.in.h: Likewise.
31073         * lib/search.in.h: Likewise.
31074         * lib/spawn.in.h: Likewise.
31075         * lib/stdarg.in.h: Likewise.
31076         * lib/stdint.in.h: Likewise.
31077         * lib/string.in.h: Likewise.
31078         * lib/strings.in.h: Likewise.
31079         * lib/sys_file.in.h: Likewise.
31080         * lib/sys_ioctl.in.h: Likewise.
31081         * lib/sys_time.in.h: Likewise.
31082         * lib/sys_times.in.h: Likewise.
31083         * lib/sys_utsname.in.h: Likewise.
31084         * lib/sys_wait.in.h: Likewise.
31085         * lib/sysexits.in.h: Likewise.
31086         * lib/wctype.in.h: Likewise.
31087
31088 2010-03-28  James Youngman  <jay@gnu.org>
31089
31090         save-cwd: don't leak a file descriptor when the caller execs.
31091         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31092         saved file descriptor.
31093         * modules/save-cwd (Depends-on): Depend on cloexec.
31094
31095 2010-03-29  Bruno Haible  <bruno@clisp.org>
31096
31097         Remove vestiges of fts-lgpl module.
31098         * lib/fts_.h: Assume GNULIB_FTS is 1.
31099         * lib/fts.c: Likewise.
31100         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31101
31102 2010-03-28  Bruno Haible  <bruno@clisp.org>
31103
31104         Fix definition of tests witness macro.
31105         * gnulib-tool (func_import): Fix definition of witness macro.
31106
31107 2010-03-28  Bruno Haible  <bruno@clisp.org>
31108
31109         Fix ioctl's protoype on glibc systems.
31110         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31111         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31112         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31113         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31114         signature. If not, arrange to replace the ioctl function.
31115         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31116         REPLACE_IOCTL.
31117         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31118         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31119         Reported by Ludovic Courtès <ludo@gnu.org>.
31120
31121 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31122
31123         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31124         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31125         made it so grep -r --include=GLOB* ... did not work.
31126
31127 2010-03-26  Jim Meyering  <meyering@redhat.com>
31128             Eric Blake  <eblake@redhat.com>
31129
31130         maint.mk: prohibit use of test's -o and -a operators
31131         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31132
31133 2010-03-28  Bruno Haible  <bruno@clisp.org>
31134
31135         Remove unused GNULIB_XYZ macro definitions.
31136         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31137         invocation.
31138
31139 2010-03-28  Bruno Haible  <bruno@clisp.org>
31140
31141         Mark privileged tests modules.
31142         * modules/idpriv-drop-tests (Status): New section.
31143         * modules/idpriv-droptemp-tests (Status): New section.
31144
31145 2010-03-28  Bruno Haible  <bruno@clisp.org>
31146
31147         Split C++ tests into separate tests modules.
31148         * modules/dirent-c++-tests: New file, extracted from
31149         modules/dirent-tests.
31150         * modules/dirent-tests: Depend on it.
31151         * modules/fcntl-h-c++-tests: New file, extracted from
31152         modules/fcntl-h-tests.
31153         * modules/fcntl-h-tests: Depend on it.
31154         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31155         * modules/glob-tests: Depend on it.
31156         * modules/iconv-h-c++-tests: New file, extracted from
31157         modules/iconv-h-tests.
31158         * modules/iconv-h-tests: Depend on it.
31159         * modules/langinfo-c++-tests: New file, extracted from
31160         modules/langinfo-tests.
31161         * modules/langinfo-tests: Depend on it.
31162         * modules/locale-c++-tests: New file, extracted from
31163         modules/locale-tests.
31164         * modules/locale-tests: Depend on it.
31165         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31166         * modules/math-tests: Depend on it.
31167         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31168         * modules/pty-tests: Depend on it.
31169         * modules/search-c++-tests: New file, extracted from
31170         modules/search-tests.
31171         * modules/search-tests: Depend on it.
31172         * modules/signal-c++-tests: New file, extracted from
31173         modules/signal-tests.
31174         * modules/signal-tests: Depend on it.
31175         * modules/spawn-c++-tests: New file, extracted from
31176         modules/spawn-tests.
31177         * modules/spawn-tests: Depend on it.
31178         * modules/stdio-c++-tests: New file, extracted from
31179         modules/stdio-tests.
31180         * modules/stdio-tests: Depend on it.
31181         * modules/stdlib-c++-tests: New file, extracted from
31182         modules/stdlib-tests.
31183         * modules/stdlib-tests: Depend on it.
31184         * modules/string-c++-tests: New file, extracted from
31185         modules/string-tests.
31186         * modules/string-tests: Depend on it.
31187         * modules/sys_ioctl-c++-tests: New file, extracted from
31188         modules/sys_ioctl-tests.
31189         * modules/sys_ioctl-tests: Depend on it.
31190         * modules/sys_select-c++-tests: New file, extracted from
31191         modules/sys_select-tests.
31192         * modules/sys_select-tests: Depend on it.
31193         * modules/sys_socket-c++-tests: New file, extracted from
31194         modules/sys_socket-tests.
31195         * modules/sys_socket-tests: Depend on it.
31196         * modules/sys_stat-c++-tests: New file, extracted from
31197         modules/sys_stat-tests.
31198         * modules/sys_stat-tests: Depend on it.
31199         * modules/sys_time-c++-tests: New file, extracted from
31200         modules/sys_time-tests.
31201         * modules/sys_time-tests: Depend on it.
31202         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31203         * modules/time-tests: Depend on it.
31204         * modules/unistd-c++-tests: New file, extracted from
31205         modules/unistd-tests.
31206         * modules/unistd-tests: Depend on it.
31207         * modules/wchar-c++-tests: New file, extracted from
31208         modules/wchar-tests.
31209         * modules/wchar-tests: Depend on it.
31210         * modules/wctype-c++-tests: New file, extracted from
31211         modules/wctype-tests.
31212         * modules/wctype-tests: Depend on it.
31213         Reported by Simon Josefsson.
31214
31215 2010-03-28  Bruno Haible  <bruno@clisp.org>
31216
31217         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31218         * gnulib-tool (func_exists_module): New function, extracted from
31219         func_verify_module.
31220         (func_verify_module): Use it.
31221         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31222         'foo' only if 'foo' exists.
31223         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31224         module.
31225
31226 2010-03-28  Bruno Haible  <bruno@clisp.org>
31227
31228         gnulib-tool: Add support for special categories of tests.
31229         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31230         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31231         (func_usage): Document them.
31232         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31233         inc_unportable_tests, inc_all_tests): New variables.
31234         (func_acceptable): Consider these variables.
31235         (func_modules_transitive_closure): Make it work when the 'Status' field
31236         consists of multiple words.
31237         (func_import): Store and restore the values of inc_cxx_tests,
31238         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31239         inc_all_tests in gnulib-comp.m4.
31240         (func_create_testdir): Set inc_all_tests to true.
31241         * doc/gnulib.texi (Extra tests modules): New section.
31242         Suggested by Jim Meyering.
31243
31244 2010-03-28  Bruno Haible  <bruno@clisp.org>
31245
31246         ansi-c++-opt: Allow turning off the C++ build by default.
31247         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31248         gl_CXX_CHOICE_DEFAULT_NO is defined.
31249         Requested by Eric Blake.
31250
31251 2010-03-28  Bruno Haible  <bruno@clisp.org>
31252
31253         unistd: Avoid #define replacements in C++ mode.
31254         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31255         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31256         setsockopt, shutdown, select): In C++, attach a warning to the function
31257         if possible, rather than #defining the symbol to a dysfunctional alias.
31258         Reported by John W. Eaton <jwe@gnu.org>.
31259
31260 2010-03-28  Bruno Haible  <bruno@clisp.org>
31261
31262         Fix link errors on mingw.
31263         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31264         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31265         $(LIBSOCKET).
31266         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31267         $(LIBSOCKET).
31268
31269 2010-03-28  Bruno Haible  <bruno@clisp.org>
31270             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31271
31272         lib-ignore: Determine different options for different compilers.
31273         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31274         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31275         Add comments.
31276         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31277         * NEWS: Mention the change.
31278
31279 2010-03-27  Bruno Haible  <bruno@clisp.org>
31280
31281         Remove unused GNULIB_XYZ macro definitions.
31282         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31283         * modules/fseek (configure.ac): Likewise.
31284         * modules/ioctl (configure.ac): Likewise.
31285         * modules/open (configure.ac): Likewise.
31286         * modules/stdlib-safer (configure.ac): Likewise.
31287
31288 2010-03-27  Bruno Haible  <bruno@clisp.org>
31289
31290         Add a remark about certain modules.
31291         * modules/malloc (Comment): New section.
31292         * modules/realloc (Comment): Likewise.
31293         * modules/sigpipe (Comment): Likewise.
31294
31295 2010-03-27  Bruno Haible  <bruno@clisp.org>
31296
31297         Resolve conflict between the two kinds of module indicators.
31298         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31299         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31300         * modules/canonicalize (configure.ac): Invoke
31301         gl_MODULE_INDICATOR_FOR_TESTS.
31302         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31303         GNULIB_XYZ.
31304         * tests/test-dirent-c++.cc: Likewise.
31305         * tests/test-dirent-safer.c: Likewise.
31306         * tests/test-dup2.c: Likewise.
31307         * tests/test-fchdir.c: Likewise.
31308         * tests/test-fcntl-h-c++.cc: Likewise.
31309         * tests/test-getopt.c: Likewise.
31310         * tests/test-getopt.h: Likewise.
31311         * tests/test-langinfo-c++.cc: Likewise.
31312         * tests/test-locale-c++.cc: Likewise.
31313         * tests/test-math-c++.cc: Likewise.
31314         * tests/test-pty-c++.cc: Likewise.
31315         * tests/test-search-c++.cc: Likewise.
31316         * tests/test-signal-c++.cc: Likewise.
31317         * tests/test-spawn-c++.cc: Likewise.
31318         * tests/test-stdio-c++.cc: Likewise.
31319         * tests/test-stdlib-c++.cc: Likewise.
31320         * tests/test-string-c++.cc: Likewise.
31321         * tests/test-sys_ioctl-c++.cc: Likewise.
31322         * tests/test-sys_select-c++.cc: Likewise.
31323         * tests/test-sys_socket-c++.cc: Likewise.
31324         * tests/test-sys_stat-c++.cc: Likewise.
31325         * tests/test-sys_time-c++.cc: Likewise.
31326         * tests/test-time-c++.cc: Likewise.
31327         * tests/test-unistd-c++.cc: Likewise.
31328         * tests/test-wchar-c++.cc: Likewise.
31329         * tests/uninorm/test-u8-nfc.c: Likewise.
31330         * tests/uninorm/test-u8-nfd.c: Likewise.
31331         * tests/uninorm/test-u8-nfkc.c: Likewise.
31332         * tests/uninorm/test-u8-nfkd.c: Likewise.
31333         * tests/uninorm/test-u16-nfc.c: Likewise.
31334         * tests/uninorm/test-u16-nfd.c: Likewise.
31335         * tests/uninorm/test-u16-nfkc.c: Likewise.
31336         * tests/uninorm/test-u16-nfkd.c: Likewise.
31337         * tests/uninorm/test-u32-nfc.c: Likewise.
31338         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31339         * tests/uninorm/test-u32-nfd.c: Likewise.
31340         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31341         * tests/uninorm/test-u32-nfkc.c: Likewise.
31342         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31343         * tests/uninorm/test-u32-nfkd.c: Likewise.
31344         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31345         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31346
31347 2010-03-27  Bruno Haible  <bruno@clisp.org>
31348
31349         Distinguish two kinds of module indicators.
31350         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31351         gl_MODULE_INDICATOR.
31352         (gl_MODULE_INDICATOR): New macro.
31353         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31354         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31355         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31356         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31357         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31358         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31359         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31360         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31361         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31362         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31363         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31364         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31365         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31366         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31367         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31368         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31369         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31370         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31371         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31372         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31373         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31374         * modules/cloexec (configure.ac): Likewise.
31375         * modules/getopt-gnu (configure.ac): Likewise.
31376         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31377         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31378         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31379         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31380
31381 2010-03-27  Bruno Haible  <bruno@clisp.org>
31382
31383         New module description field 'Comment'.
31384         * gnulib-tool: New option --extract-comment.
31385         (func_usage): Document it.
31386         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31387         (func_get_comment): New function.
31388         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31389
31390 2010-03-27  Bruno Haible  <bruno@clisp.org>
31391
31392         Addendum to 2010-02-07 commit.
31393         * gnulib-tool (func_usage): Document --extract-applicability option.
31394
31395 2010-03-27  Bruno Haible  <bruno@clisp.org>
31396
31397         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31398         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31399         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31400         rather than link errors.
31401
31402 2010-03-27  Bruno Haible  <bruno@clisp.org>
31403
31404         Avoid side effects from tests-related modules on the compilation of lib.
31405         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31406         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31407         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31408         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31409         macro.
31410         (func_import): Define a witness macro. Assign it a value that depends
31411         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31412         tests-related modules.
31413         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31414         Reported by Jim Meyering.
31415
31416 2010-03-27  Bruno Haible  <bruno@clisp.org>
31417
31418         Factorize common .m4 code.
31419         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31420         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31421         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31422         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31423         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31424         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31425         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31426         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31427         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31428         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31429         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31430         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31431         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31432         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31433         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31434         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31435         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31436         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31437         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31438         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31439         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31440         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31441         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31442         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31443         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31444         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31445         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31446         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31447         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31448         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31449         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31450         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31451
31452 2010-03-27  Bruno Haible  <bruno@clisp.org>
31453
31454         Fix a compilation error on Cygwin with g++ >= 4.3.
31455         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31456         if it is undefined or if we alias it to chmod.
31457         (lstat): Don't warn about the use of this function if it is undefined
31458         or if we alias it to stat.
31459         Reported by Simon Josefsson.
31460
31461 2010-03-27  Bruno Haible  <bruno@clisp.org>
31462
31463         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31464         * modules/getlogin (configure.ac): Update.
31465
31466         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31467         * modules/getlogin_r (configure.ac): Update.
31468
31469         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31470         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31471         * modules/inet_ntop (configure.ac): Update.
31472
31473         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31474         * modules/inet_pton (configure.ac): Update.
31475
31476         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31477         * modules/mbslen (configure.ac): Update.
31478
31479         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31480         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31481         * modules/forkpty (configure.ac): Update.
31482         * modules/openpty (configure.ac): Update.
31483
31484 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31485
31486         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31487         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31488
31489 2010-03-25  Eric Blake  <eblake@redhat.com>
31490
31491         maint: use pragma consistently across replacement headers
31492         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31493         * lib/dirent.in.h (system_header): Likewise.
31494         * lib/errno.in.h (system_header): Likewise.
31495         * lib/float.in.h (system_header): Likewise.
31496         * lib/getopt.in.h (system_header): Likewise.
31497         * lib/iconv.in.h (system_header): Likewise.
31498         * lib/inttypes.in.h (system_header): Likewise.
31499         * lib/langinfo.in.h (system_header): Likewise.
31500         * lib/locale.in.h (system_header): Likewise.
31501         * lib/math.in.h (system_header): Likewise.
31502         * lib/netdb.in.h (system_header): Likewise.
31503         * lib/netinet_in.in.h (system_header): Likewise.
31504         * lib/pty.in.h (system_header): Likewise.
31505         * lib/sched.in.h (system_header): Likewise.
31506         * lib/se-selinux.in.h (system_header): Likewise.
31507         * lib/search.in.h (system_header): Likewise.
31508         * lib/spawn.in.h (system_header): Likewise.
31509         * lib/stdarg.in.h (system_header): Likewise.
31510         * lib/stdint.in.h (system_header): Likewise.
31511         * lib/string.in.h (system_header): Likewise.
31512         * lib/strings.in.h (system_header): Likewise.
31513         * lib/sys_file.in.h (system_header): Likewise.
31514         * lib/sys_ioctl.in.h (system_header): Likewise.
31515         * lib/sys_socket.in.h (system_header): Likewise.
31516         * lib/sys_times.in.h (system_header): Likewise.
31517         * lib/sys_utsname.in.h (system_header): Likewise.
31518         * lib/sys_wait.in.h (system_header): Likewise.
31519         * lib/sysexits.in.h (system_header): Likewise.
31520         * lib/unistd.in.h (system_header): Likewise.
31521         * lib/wctype.in.h (system_header): Likewise.
31522
31523         arpa/inet: fix mingw compilation warning
31524         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31525         Reported by Matthew Bolte.
31526
31527 2010-03-25  Bruno Haible  <bruno@clisp.org>
31528
31529         Avoid collision between gnulib wrapper and libintl wrapper.
31530         * lib/printf.c (printf): Don't define if a printf wrapper is already
31531         defined in intl/printf.c.
31532         Reported by Michel Boaventura <michel@michelboaventura.com>.
31533
31534 2010-03-25  Bruno Haible  <bruno@clisp.org>
31535
31536         Use ANSI C.
31537         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31538
31539 2010-03-25  Bruno Haible  <bruno@clisp.org>
31540
31541         Minor formatting changes.
31542         * lib/acosl.c: Insert space before function argument list.
31543         * lib/argz.c: Likewise.
31544         * lib/asinl.c: Likewise.
31545         * lib/expl.c: Likewise.
31546         * lib/gen-uni-tables.c: Likewise.
31547         * lib/gettext.h: Likewise.
31548         * lib/glthread/lock.h: Likewise.
31549         * lib/tanl.c: Likewise.
31550         * lib/uniname/uniname.c: Likewise.
31551         * tests/test-idpriv-drop.c: Likewise.
31552         * tests/test-idpriv-droptemp.c: Likewise.
31553         * tests/test-lock.c: Likewise.
31554         * tests/test-tls.c: Likewise.
31555         * lib/argp-help.c: Insert space before function-like macro argument
31556         list.
31557         * lib/memcmp.c: Likewise.
31558         * tests/test-base64.c: Likewise.
31559         * lib/localename.c: Insert space before sizeof's argument list.
31560         * lib/safe-alloc.h: Likewise.
31561         * lib/file-set.h: Insert space before macro argument list.
31562         * tests/test-argp.c: Likewise.
31563         * lib/argp-namefrob.h: Insert space before function parameter list.
31564         * lib/getaddrinfo.c: Likewise.
31565         * lib/netdb.in.h: Likewise.
31566         * lib/parse-duration.h: Likewise.
31567         * lib/parse-duration.c: Likewise.
31568         * lib/poll.c: Likewise.
31569         * lib/select.c: Likewise.
31570         * lib/trim.h: Likewise.
31571         * tests/test-usleep.c: Likewise.
31572         * lib/ldexpl.c: Insert space before function parameter list and before
31573         function argument list.
31574         * lib/logl.c: Likewise.
31575         * lib/sqrtl.c: Likewise.
31576         * lib/trim.c: Likewise.
31577         * lib/cosl.c: Use GNU style indentation. Insert space before function
31578         argument list.
31579         * lib/sinl.c: Likewise.
31580         * lib/tsearch.c: Insert space after 'for'.
31581         Reported by Jim Meyering.
31582
31583 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31584
31585         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31586         config header before grepping, as it's not present before
31587         autoreconf/configure are run.  Reported by Simon Josefsson.
31588
31589 2010-03-23  Bruno Haible  <bruno@clisp.org>
31590
31591         pt_chown: Make it work with automake < 1.11.
31592         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31593         Reported by Simon Josefsson.
31594
31595 2010-03-23  Bruno Haible  <bruno@clisp.org>
31596
31597         pt_chown: Don't depend on GPLed modules.
31598         * lib/pt_chown.c: Don't include idpriv.h.
31599         (main): Don't drop privileges.
31600         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31601         Reported by Simon Josefsson.
31602
31603 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31604
31605         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31606         suggestions from karl@freefriends.org (Karl Berry).
31607
31608 2010-03-22  Eric Blake  <eblake@redhat.com>
31609
31610         gethostname: further tweaks
31611         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31612         are overriding gethostname.
31613         Suggested by Bruno Haible.
31614
31615 2010-03-21  Bruno Haible  <bruno@clisp.org>
31616
31617         Fix comments.
31618         * lib/forkpty.c (rpl_forkpty): Fix comment.
31619         * lib/openpty.c (rpl_openpty): Likewise.
31620         Reported by Eric Blake.
31621
31622 2010-03-22  Eric Blake  <eblake@redhat.com>
31623
31624         gethostname: fix build on mingw
31625         * lib/unistd.in.h (includes): Work around fact that mingw
31626         <winsock2.h> re-includes <unistd.h>, by avoiding any
31627         redeclarations if we are being included by <winsock2.h>.
31628         Reported by Matthias Bolte.
31629
31630 2010-03-21  Bruno Haible  <bruno@clisp.org>
31631
31632         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31633         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31634         modifications.
31635         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31636         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31637         provide the replacement.
31638         * modules/forkpty (Depends-on): Add openpty, login_tty.
31639         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31640         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31641         * doc/glibc-functions/forkpty.texi: More supported platforms.
31642         * config/srclist.txt: Add forkpty.c (commented).
31643
31644 2010-03-21  Bruno Haible  <bruno@clisp.org>
31645
31646         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31647         (Makefile.am): Verify that PTY_LIB is defined.
31648
31649         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31650
31651 2010-03-21  Bruno Haible  <bruno@clisp.org>
31652
31653         Tests for module 'login_tty'.
31654         * modules/login_tty-tests: New file.
31655         * tests/test-login_tty.c: New file.
31656
31657         New module 'login_tty'.
31658         * lib/login_tty.c: New file.
31659         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31660         * modules/login_tty: New file.
31661         * doc/glibc-functions/login_tty.texi: Mention the new module.
31662
31663 2010-03-21  Bruno Haible  <bruno@clisp.org>
31664
31665         login_tty: Documentation.
31666         * doc/glibc-functions/login_tty.texi: New file.
31667         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31668
31669 2010-03-21  Bruno Haible  <bruno@clisp.org>
31670
31671         pty: Consistent macro naming.
31672         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31673         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31674         * modules/pty (configure.ac): Update.
31675
31676 2010-03-21  Bruno Haible  <bruno@clisp.org>
31677
31678         Tests for openpty: Make stricter.
31679         * tests/test-openpty.c (main): Add test of canonical processing and
31680         erase.
31681         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31682
31683         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31684         * lib/openpty.c (openpty): New replacement function.
31685         * lib/pty.in.h: Include <termios.h>.
31686         (openpty): Update declaration. Add comments.
31687         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31688         is not declared, arrange to provide the replacement. Check for _getpty
31689         and posix_openpt.
31690         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31691         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31692         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31693         * modules/pty-tests (test_pty_c___LDADD): New variable.
31694         * doc/glibc-functions/openpty.texi: More supported platforms.
31695
31696 2010-03-21  Bruno Haible  <bruno@clisp.org>
31697
31698         setenv: Tweaks.
31699         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31700         the test program.
31701         * doc/posix-functions/setenv.texi: Update platforms list.
31702
31703 2010-03-21  Bruno Haible  <bruno@clisp.org>
31704
31705         New module 'unlockpt'.
31706         * lib/unlockpt.c: New file, from glibc with modifications.
31707         * m4/unlockpt.m4: New file.
31708         * modules/unlockpt: New file.
31709         * lib/stdlib.in.h (unlockpt): New declaration.
31710         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31711         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31712         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31713         HAVE_UNLOCKPT.
31714         * doc/posix-functions/unlockpt.texi: Mention the new module.
31715         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31716         * config/srclist.txt: Add unlockpt.c (commented).
31717
31718 2010-03-21  Jim Meyering  <meyering@redhat.com>
31719
31720         maint.mk: prohibit inclusion of "intprops.h" without use
31721         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31722
31723 2010-03-21  Bruno Haible  <bruno@clisp.org>
31724
31725         New module 'grantpt'.
31726         * lib/grantpt.c: New file, from glibc with modifications.
31727         * m4/grantpt.m4: New file.
31728         * modules/grantpt: New file.
31729         * lib/stdlib.in.h (grantpt): New declaration.
31730         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31731         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31732         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31733         HAVE_GRANTPT.
31734         * doc/posix-functions/grantpt.texi: Mention the new module.
31735         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31736         * config/srclist.txt: Add grantpt.c (commented).
31737
31738 2010-03-21  Bruno Haible  <bruno@clisp.org>
31739
31740         New module 'pt_chown'.
31741         * lib/pt_chown.c: New file, from glibc with modifications.
31742         * lib/pty-private.h: New file, from glibc with modifications.
31743         * modules/pt_chown: New file.
31744         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31745
31746 2010-03-21  Bruno Haible  <bruno@clisp.org>
31747
31748         Tests for module 'ptsname'.
31749         * modules/ptsname-tests: New file.
31750         * tests/test-ptsname.c: New file.
31751
31752         New module 'ptsname'.
31753         * lib/ptsname.c: New file, from glibc with modifications.
31754         * m4/ptsname.m4: New file.
31755         * modules/ptsname: New file.
31756         * lib/stdlib.in.h (ptsname): New declaration.
31757         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31758         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31759         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31760         HAVE_PTSNAME.
31761         * doc/posix-functions/ptsname.texi: Mention the new module.
31762         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31763         * config/srclist.txt: Add ptsname.c (commented).
31764
31765 2010-03-21  Bruno Haible  <bruno@clisp.org>
31766
31767         Tests for module 'ttyname_r'.
31768         * modules/ttyname_r-tests: New file.
31769         * tests/test-ttyname_r.c: New file.
31770
31771         New module 'ttyname_r'.
31772         * lib/ttyname_r.c: New file.
31773         * m4/ttyname_r.m4: New file.
31774         * modules/ttyname_r: New file.
31775         * lib/unistd.in.h (ttyname_r): New declaration.
31776         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31777         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31778         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31779         HAVE_TTYNAME_R.
31780         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31781         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31782
31783 2010-03-20  Bruno Haible  <bruno@clisp.org>
31784
31785         signal: Undefine macro definitions in C++ mode.
31786         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31787         sigfillset): Undefine macro definitions from the system header in C++
31788         mode.
31789         Reported by John W. Eaton <jwe@gnu.org>.
31790
31791 2010-03-20  Bruno Haible  <bruno@clisp.org>
31792
31793         Ensure no #include statements inside extern "C" { ... }.
31794         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31795         contain #include statements.
31796         * lib/time.in.h: Likewise.
31797
31798 2010-03-20  Bruno Haible  <bruno@clisp.org>
31799
31800         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31801         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31802         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31803         Reported by John W. Eaton <jwe@gnu.org>.
31804
31805 2010-03-20  Bruno Haible  <bruno@clisp.org>
31806
31807         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31808         Reported by Jim Meyering.
31809
31810 2010-03-20  Bruno Haible  <bruno@clisp.org>
31811
31812         pipe: Set errno upon failure.
31813         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31814         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31815         errno value in error message.
31816
31817 2010-03-20  Bruno Haible  <bruno@clisp.org>
31818             Jim Meyering  <meyering@redhat.com>
31819
31820         lchown: Avoid "unused variable" warning.
31821         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31822
31823 2010-03-20  Bruno Haible  <bruno@clisp.org>
31824
31825         Work around unlink() bug on MacOS X 10.5.6.
31826         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31827         attempting to unlink a parent directory.
31828         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31829         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31830         activate for the replacement function.
31831         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31832
31833 2010-03-20  Bruno Haible  <bruno@clisp.org>
31834
31835         Fix link errors on Solaris 8.
31836         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31837         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31838
31839 2010-03-19  Jim Meyering  <meyering@redhat.com>
31840
31841         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31842         The _LIBC implementation of build_range_exp correctly honors the
31843         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31844         However, the non-_LIBC implementation would ignore that syntax-bit
31845         flag and return REG_ERANGE unconditionally.
31846         This change makes it honor that flag.
31847         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31848         Make two pointer parameters "const".
31849         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31850         (parse_bracket_exp): Update caller.
31851
31852         regex.m4: correct the reversed range endpoint ([b-a]) test
31853         * m4/regex.m4: When requiring that [b-a] evoke failure,
31854         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31855         test pass once again for x86-based systems.
31856
31857 2010-03-19  Bruno Haible  <bruno@clisp.org>
31858
31859         scandir: Fix link error on Solaris 8.
31860         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31861         macros.
31862
31863 2010-03-19  Bruno Haible  <bruno@clisp.org>
31864
31865         getusershell: Fix documentation.
31866         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31867         module.
31868         * doc/glibc-functions/setusershell.texi: Likewise.
31869
31870         getusershell: Provide declaration, missing on Solaris 9.
31871         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31872         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31873         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31874         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31876         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31877         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31878         HAVE_GETUSERSHELL.
31879         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31880
31881 2010-03-19  Bruno Haible  <bruno@clisp.org>
31882
31883         wctype: Provide iswblank function.
31884         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31885         exists and is fine.
31886         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31887         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31888         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31889         * doc/posix-functions/iswblank.texi: Update.
31890
31891 2010-03-19  Bruno Haible  <bruno@clisp.org>
31892
31893         Tests of module 'pty' in C++ mode.
31894         * modules/pty-tests: New file.
31895         * tests/test-pty-c++.cc: New file.
31896         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31897
31898 2010-03-19  Eric Blake  <eblake@redhat.com>
31899
31900         logb: fix documentation
31901         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31902         1.5 declaration bug.
31903
31904         forkpty, openpty: prefer glibc's const-safe prototype
31905         * lib/forkpty.c (rpl_forkpty): New file.
31906         * lib/openpty.c (rpl_openpty): Likewise.
31907         * modules/forkpty (Files): Distribute it.
31908         * modules/openpty (Files): Likewise.
31909         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31910         check...
31911         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31912         replacement for for non-const BSD signature.
31913         * modules/pty (Makefile.am): Substitute witnesses.
31914         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31915         * tests/test-forkpty.c: Update signature check.
31916         * tests/test-openpty.c: Likewise.
31917         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31918         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31919
31920         forkpty, openpty: split functions into new modules
31921         * modules/pty (Makefile.am): Substitute new witnesses.
31922         (Libraries): Move library detection...
31923         * modules/forkpty: ...into new module.
31924         * modules/openpty: Another new module.
31925         * modules/pty-tests: Rename and split...
31926         * modules/forkpty-tests: ...to this...
31927         * modules/openpty-tests: ...and this.
31928         * tests/test-pty.c: Rename and split...
31929         * tests/test-forkpty.c: ...to this...
31930         * tests/test-openpty.c: ...and this.
31931         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31932         (gl_PTY): Split library searching...
31933         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31934         (gl_FORKPTY, gl_OPENPTY): New macros.
31935         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31936         * NEWS: Mention the split.
31937         * MODULES.html.sh (Misc): Document the modules.
31938         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31939         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31940
31941         pty: improve replacement header
31942         * lib/pty.in.h: New file.
31943         * modules/pty (Files): Ship it.
31944         (Makefile.am): Always build replacement.
31945         * m4/pty.m4: Rename...
31946         * m4/pty_h.m4: ...to this.
31947         (gl_PTY): Modernize setting of witness macros; update check of
31948         forkpty to take proper advantage of cache.
31949         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31950
31951         getopt: avoid compiler warning
31952         * lib/getopt.c (attribute_hidden): Remove unused macro.
31953
31954 2010-03-18  Bruno Haible  <bruno@clisp.org>
31955
31956         Fix link errors on Solaris 8.
31957         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31958         * modules/search-tests (test_search_c___LDADD): Likewise.
31959         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31960         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31961         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31962         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31963         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31964         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31965         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31966
31967 2010-03-18  Bruno Haible  <bruno@clisp.org>
31968
31969         Fix bug introduced on 2010-03-14.
31970         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31971         (gl_SPAWN_H): Require it.
31972         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31973         Reported by Simon Josefsson.
31974
31975 2010-03-18  Bruno Haible  <bruno@clisp.org>
31976
31977         Fix typo introduced on 2009-12-31.
31978         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31979         posix_spawn_file_actions_adddup2.
31980
31981 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31982         and Eric Blake  <eblake@redhat.com>
31983
31984         test-vc-list-files-git: make more robust
31985         * tests/test-vc-list-files-git.sh: Unset problematic environment
31986         variables.  Chain commands together.
31987
31988 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31989
31990         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31991         `AC_CHECK_DECL' invocation.
31992
31993 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31994
31995         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31996         appears before executable statements. Suggested by Petr Sumbera
31997         <Petr.Sumbera@Sun.COM>.
31998
31999 2010-03-14  Bruno Haible  <bruno@clisp.org>
32000
32001         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32002         portability problems. Instead use a simpler test.
32003         (main): Check that invalid arguments are rejected only on Linux.
32004
32005 2010-03-14  Bruno Haible  <bruno@clisp.org>
32006
32007         Fix bug introduced on 2009-12-31.
32008         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32009         gl_PREREQ_SYS_H_WINSOCK2 always.
32010         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32011         SYS_SOCKET_H variable.
32012         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32013         Update comments.
32014         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32015         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32016         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32017         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32018         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32019
32020 2010-03-14  Bruno Haible  <bruno@clisp.org>
32021
32022         Fix values returned by sinl, cosl.
32023         * lib/trigl.h: Add specification comments.
32024         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32025         that combines the values from the precomputed table with the values of
32026         the Chebyshev polynomials.
32027
32028 2010-03-14  Bruno Haible  <bruno@clisp.org>
32029
32030         Fix compilation error when modules 'posix_spawn[p]' are not used.
32031         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32032         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32033
32034 2010-03-14  Bruno Haible  <bruno@clisp.org>
32035
32036         Fix compilation error on mingw when module 'time_r' is not used.
32037         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32038         is 1.
32039         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32040         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32041         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32042         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32043
32044 2010-03-14  Bruno Haible  <bruno@clisp.org>
32045
32046         Fix compilation error with Sun C.
32047         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32048         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32049         instead of GCC specific ULONG_LONG_MAX.
32050         * lib/xstrtoll.c: Likewise.
32051         * lib/xstrtoull.c: Likewise.
32052
32053 2010-03-13  Bruno Haible  <bruno@clisp.org>
32054
32055         Allow the user to disable C++ code and tests.
32056         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32057         (gl_PROG_ANSI_CXX): Require it.
32058
32059 2010-03-13  Bruno Haible  <bruno@clisp.org>
32060
32061         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32062         cases.
32063
32064 2010-03-13  Bruno Haible  <bruno@clisp.org>
32065
32066         Test that gnulib does not break the standard C++ headers.
32067         * tests/test-locale-c++2.cc: New file.
32068         * modules/locale-tests (Files): Add it.
32069         (Makefile.am): Compile it for test-locale-c++.
32070         * tests/test-math-c++2.cc: New file.
32071         * modules/math-tests (Files): Add it.
32072         (Makefile.am): Compile it for test-math-c++.
32073         * tests/test-signal-c++2.cc: New file.
32074         * modules/signal-tests (Files): Add it.
32075         (Makefile.am): Compile it for test-signal-c++.
32076         * tests/test-stdio-c++2.cc: New file.
32077         * modules/stdio-tests (Files): Add it.
32078         (Makefile.am): Compile it for test-stdio-c++.
32079         * tests/test-stdlib-c++2.cc: New file.
32080         * modules/stdlib-tests (Files): Add it.
32081         (Makefile.am): Compile it for test-stdlib-c++.
32082         * tests/test-string-c++2.cc: New file.
32083         * modules/string-tests (Files): Add it.
32084         (Makefile.am): Compile it for test-string-c++.
32085         * tests/test-time-c++2.cc: New file.
32086         * modules/time-tests (Files): Add it.
32087         (Makefile.am): Compile it for test-time-c++.
32088         Reported by John W. Eaton <jwe@gnu.org>.
32089
32090 2010-03-13  Bruno Haible  <bruno@clisp.org>
32091
32092         * gnulib-tool (func_usage): Clarify which options are available for
32093         --create-testdir and --create-megatestdir.
32094
32095 2010-03-13  Bruno Haible  <bruno@clisp.org>
32096
32097         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32098         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32099         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32100         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32101         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32102         when appropriate.
32103         Reported by Jim Meyering.
32104
32105 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32106
32107         * gnulib-tool (func_import): Explain origin of code.
32108
32109 2010-03-12  Bruno Haible  <bruno@clisp.org>
32110
32111         Fix problem with automake's definition of CXXLINK.
32112         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32113         Reported by Simon Josefsson and Ludovic Courtès.
32114
32115 2010-03-12  Bruno Haible  <bruno@clisp.org>
32116
32117         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32118         stable releases.
32119
32120 2010-03-11  Bruno Haible  <bruno@clisp.org>
32121
32122         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32123         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32124         whether the system provides one variant or multiple variants of the
32125         function.
32126         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32127         C++ compilers.
32128         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32129         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32130         Reported by Jim Meyering.
32131
32132 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32133
32134         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32135
32136 2010-03-08  Bruno Haible  <bruno@clisp.org>
32137
32138         gnulib-tool: Add support for --libtool in --create-testdir.
32139         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32140         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32141
32142 2010-03-08  Eric Blake  <eblake@redhat.com>
32143
32144         gnulib-tool.texi: mention possibility of git submodule
32145         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32146         submodules.
32147         * doc/.gitignore: Ignore another generated file.
32148
32149 2010-03-08  Karl Berry  <karl@gnu.org>
32150
32151         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32152         of committing gnulib files while skipping others.
32153
32154 2010-03-07  Bruno Haible  <bruno@clisp.org>
32155
32156         Tests of module 'wctype' in C++ mode.
32157         * tests/test-wctype-c++.cc: New file.
32158         * modules/wctype-tests (Files): Add it and tests/signature.h.
32159         (Depends-on): Add ansi-c++-opt.
32160         (Makefile.am): Arrange to compile and run test-wctype-c++.
32161
32162         Tests of module 'wchar' in C++ mode.
32163         * tests/test-wchar-c++.cc: New file.
32164         * modules/wchar-tests (Files): Add it and tests/signature.h.
32165         (Depends-on): Add ansi-c++-opt.
32166         (Makefile.am): Arrange to compile and run test-wchar-c++.
32167         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32168         gl_MODULE_INDICATOR.
32169
32170         Tests of module 'unistd' in C++ mode.
32171         * tests/test-unistd-c++.cc: New file.
32172         * modules/unistd-tests (Files): Add it and tests/signature.h.
32173         (Depends-on): Add ansi-c++-opt.
32174         (Makefile.am): Arrange to compile and run test-unistd-c++.
32175         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32176         gl_MODULE_INDICATOR.
32177
32178         Tests of module 'time' in C++ mode.
32179         * tests/test-time-c++.cc: New file.
32180         * modules/time-tests (Files): Add it and tests/signature.h.
32181         (Depends-on): Add ansi-c++-opt.
32182         (Makefile.am): Arrange to compile and run test-time-c++.
32183         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32184
32185         Tests of module 'sys_time' in C++ mode.
32186         * tests/test-sys_time-c++.cc: New file.
32187         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32188         (Depends-on): Add ansi-c++-opt.
32189         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32190         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32191         gl_MODULE_INDICATOR.
32192
32193         Tests of module 'sys_stat' in C++ mode.
32194         * tests/test-sys_stat-c++.cc: New file.
32195         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32196         (Depends-on): Add ansi-c++-opt.
32197         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32198         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32199         gl_MODULE_INDICATOR.
32200
32201         Tests of module 'sys_socket' in C++ mode.
32202         * tests/test-sys_socket-c++.cc: New file.
32203         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32204         (Depends-on): Add ansi-c++-opt.
32205         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32206         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32207         gl_MODULE_INDICATOR.
32208
32209         Tests of module 'sys_select' in C++ mode.
32210         * tests/test-sys_select-c++.cc: New file.
32211         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32212         (Depends-on): Add ansi-c++-opt.
32213         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32214         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32215         gl_MODULE_INDICATOR.
32216
32217         Tests of module 'sys_ioctl' in C++ mode.
32218         * tests/test-sys_ioctl-c++.cc: New file.
32219         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32220         (Depends-on): Add ansi-c++-opt.
32221         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32222         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32223         gl_MODULE_INDICATOR.
32224
32225         Tests of module 'string' in C++ mode.
32226         * tests/test-string-c++.cc: New file.
32227         * modules/string-tests (Files): Add it and tests/signature.h.
32228         (Depends-on): Add ansi-c++-opt.
32229         (Makefile.am): Arrange to compile and run test-string-c++.
32230         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32231         gl_MODULE_INDICATOR.
32232
32233         Tests of module 'stdlib' in C++ mode.
32234         * tests/test-stdlib-c++.cc: New file.
32235         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32236         (Depends-on): Add ansi-c++-opt.
32237         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32238         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32239         gl_MODULE_INDICATOR.
32240
32241         Tests of module 'stdio' in C++ mode.
32242         * tests/test-stdio-c++.cc: New file.
32243         * modules/stdio-tests (Files): Add it and tests/signature.h.
32244         (Depends-on): Add ansi-c++-opt.
32245         (Makefile.am): Arrange to compile and run test-stdio-c++.
32246         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32247         gl_MODULE_INDICATOR.
32248
32249         Tests of module 'spawn' in C++ mode.
32250         * tests/test-spawn-c++.cc: New file.
32251         * modules/spawn-tests (Files): Add it and tests/signature.h.
32252         (Depends-on): Add ansi-c++-opt.
32253         (Makefile.am): Arrange to compile and run test-spawn-c++.
32254         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32255         gl_MODULE_INDICATOR.
32256
32257         Tests of module 'signal' in C++ mode.
32258         * tests/test-signal-c++.cc: New file.
32259         * modules/signal-tests (Files): Add it and tests/signature.h.
32260         (Depends-on): Add ansi-c++-opt.
32261         (Makefile.am): Arrange to compile and run test-signal-c++.
32262         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32263         gl_MODULE_INDICATOR.
32264
32265         Tests of module 'search' in C++ mode.
32266         * tests/test-search-c++.cc: New file.
32267         * modules/search-tests (Files): Add it and tests/signature.h.
32268         (Depends-on): Add ansi-c++-opt.
32269         (Makefile.am): Arrange to compile and run test-search-c++.
32270         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32271         gl_MODULE_INDICATOR.
32272
32273         Tests of module 'math' in C++ mode.
32274         * tests/test-math-c++.cc: New file.
32275         * modules/math-tests (Files): Add it and tests/signature.h.
32276         (Depends-on): Add ansi-c++-opt.
32277         (Makefile.am): Arrange to compile and run test-math-c++.
32278         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32279
32280         Tests of module 'locale' in C++ mode.
32281         * tests/test-locale-c++.cc: New file.
32282         * modules/locale-tests (Files): Add it and tests/signature.h.
32283         (Depends-on): Add ansi-c++-opt.
32284         (Makefile.am): Arrange to compile and run test-locale-c++.
32285         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32286         gl_MODULE_INDICATOR.
32287
32288         Tests of module 'langinfo' in C++ mode.
32289         * tests/test-langinfo-c++.cc: New file.
32290         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32291         (Depends-on): Add ansi-c++-opt.
32292         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32293         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32294         gl_MODULE_INDICATOR.
32295
32296         Tests of module 'iconv-h' in C++ mode.
32297         * tests/test-iconv-h-c++.cc: New file.
32298         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32299         (Depends-on): Add ansi-c++-opt.
32300         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32301
32302         Tests of module 'glob' in C++ mode.
32303         * tests/test-glob-c++.cc: New file.
32304         * modules/glob-tests (Files): Add it.
32305         (Depends-on): Add ansi-c++-opt.
32306         (Makefile.am): Arrange to compile and run test-glob-c++.
32307
32308         Tests of module 'fcntl-h' in C++ mode.
32309         * tests/test-fcntl-h-c++.cc: New file.
32310         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32311         (Depends-on): Add ansi-c++-opt.
32312         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32313         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32314         gl_MODULE_INDICATOR.
32315
32316         Tests of module 'dirent' in C++ mode.
32317         * tests/test-dirent-c++.cc: New file.
32318         * modules/dirent-tests (Files): Add it and tests/signature.h.
32319         (Depends-on): Add ansi-c++-opt.
32320         (Makefile.am): Arrange to compile and run test-dirent-c++.
32321         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32322         gl_MODULE_INDICATOR.
32323
32324         New module 'ansi-c++-opt'.
32325         * modules/ansi-c++-opt: New file.
32326         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32327
32328         Document C++ namespace mode.
32329         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32330
32331         wctype: Avoid #define replacements in C++ mode.
32332         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32333         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32334         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32335         In C++, define a namespaced alias symbol.
32336         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32337         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32338         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32339         rule.
32340
32341         wchar: Avoid #define replacements in C++ mode.
32342         * lib/wchar.in.h: Include c++defs.h.
32343         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32344         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32345         symbol.
32346         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32347         * modules/wchar (Depends-on): Add c++defs.
32348         (Makefile.am): Update wchar.h rule.
32349
32350         unistd: Avoid #define replacements in C++ mode.
32351         * lib/unistd.in.h: Include c++defs.h.
32352         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32353         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32354         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32355         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32356         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32357         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32358         symbol.
32359         (environ): Update.
32360         * modules/unistd (Depends-on): Add c++defs.
32361         (Makefile.am): Update unistd.h rule.
32362
32363         time: Avoid #define replacements in C++ mode.
32364         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32365         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32366         define a namespaced alias symbol.
32367         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32368         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32369         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32370         * modules/time (Depends-on): Add c++defs, warn-on-use.
32371         (Makefile.am): Update time.h rule.
32372         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32373         * modules/nanosleep (configure.ac): Likewise.
32374         * modules/strptime (configure.ac): Likewise.
32375         * modules/timegm (configure.ac): Likewise.
32376
32377         sys_time: Avoid #define replacements in C++ mode.
32378         * lib/sys_time.in.h: Include c++defs.h.
32379         (gettimeofday): In C++, define a namespaced alias symbol.
32380         * modules/sys_time (Depends-on): Add c++defs.
32381         (Makefile.am): Update sys/time.h rule.
32382
32383         sys_stat: Avoid #define replacements in C++ mode.
32384         * lib/sys_stat.in.h: Include c++defs.h.
32385         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32386         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32387         namespaced alias symbol.
32388         In C++, define a namespaced alias symbol.
32389         * modules/sys_stat (Depends-on): Add c++defs.
32390         (Makefile.am): Update sys/stat.h rule.
32391
32392         sys_socket: Avoid #define replacements in C++ mode.
32393         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32394         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32395         definitions also when the system has a <sys/socket.h>.
32396         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32397         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32398         In C++, define a namespaced alias symbol.
32399         * modules/sys_socket (Depends-on): Add c++defs.
32400         (Makefile.am): Update sys/socket.h rule.
32401
32402         sys_select: Avoid #define replacements in C++ mode.
32403         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32404         definitions also when the system has a <sys/select.h>.
32405         (select): In C++, define a namespaced alias symbol.
32406         * modules/sys_select (Depends-on): Add c++defs.
32407         (Makefile.am): Update sys/select.h rule.
32408
32409         sys_ioctl: Avoid #define replacements in C++ mode.
32410         * lib/sys_ioctl.in.h: Include c++defs.h.
32411         (ioctl): In C++, define a namespaced alias symbol.
32412         * modules/sys_ioctl (Depends-on): Add c++defs.
32413         (Makefile.am): Update sys/ioctl.h rule.
32414
32415         string: Avoid #define replacements in C++ mode.
32416         * lib/string.in.h: Include c++defs.h.
32417         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32418         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32419         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32420         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32421         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32422         * modules/string (Depends-on): Add c++defs.
32423         (Makefile.am): Update string.h rule.
32424
32425         stdlib: Avoid #define replacements in C++ mode.
32426         * lib/stdlib.in.h: Include c++defs.h.
32427         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32428         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32429         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32430         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32431         symbol.
32432         * modules/stdlib (Depends-on): Add c++defs.
32433         (Makefile.am): Update stdlib.h rule.
32434
32435         stdio: Avoid #define replacements in C++ mode.
32436         * lib/stdio.in.h: Include c++defs.h.
32437         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32438         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32439         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32440         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32441         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32442         namespaced alias symbol.
32443         * modules/stdio (Depends-on): Add c++defs.
32444         (Makefile.am): Update stdio.h rule.
32445
32446         spawn: Avoid #define replacements in C++ mode.
32447         * lib/spawn.in.h: Include c++defs.h.
32448         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32449         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32450         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32451         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32452         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32453         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32454         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32455         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32456         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32457         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32458         In C++, define a namespaced alias symbol.
32459         * modules/spawn (Depends-on): Add c++defs.
32460         (Makefile.am): Update spawn.h rule.
32461
32462         signal: Avoid #define replacements in C++ mode.
32463         * lib/signal.in.h: Include c++defs.h.
32464         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32465         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32466         namespaced alias symbol.
32467         * modules/signal (Depends-on): Add c++defs.
32468         (Makefile.am): Update signal.h rule.
32469
32470         search: Avoid #define replacements in C++ mode.
32471         * lib/search.in.h: Include c++defs.h.
32472         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32473         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32474         symbol.
32475         * modules/search (Depends-on): Add c++defs.
32476         (Makefile.am): Update search.h rule.
32477
32478         math: Avoid #define replacements in C++ mode.
32479         * lib/math.in.h: Include c++defs.h.
32480         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32481         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32482         trunc, truncl): In C++, define a namespaced alias symbol.
32483         * modules/math (Depends-on): Add c++defs.
32484         (Makefile.am): Update math.h rule.
32485
32486         locale: Avoid #define replacements in C++ mode.
32487         * lib/locale.in.h: Include c++defs.h.
32488         (duplocale): In C++, define a namespaced alias symbol.
32489         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32490         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32491         * modules/locale (Depends-on): Add c++defs.
32492         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32493
32494         langinfo: Avoid #define replacements in C++ mode.
32495         * lib/langinfo.in.h: Include c++defs.h.
32496         (nl_langinfo): In C++, define a namespaced alias symbol.
32497         * modules/langinfo (Depends-on): Add c++defs.
32498         (Makefile.am): Update langinfo.h rule.
32499
32500         iconv-h: Avoid #define replacements in C++ mode.
32501         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32502         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32503         symbol.
32504         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32505         whenever iconv is present.
32506         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32507         (Makefile.am): Update iconv.h rule.
32508
32509         glob: Avoid #define replacements in C++ mode.
32510         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32511         (_gl_glob_errfunc_fn): New type.
32512         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32513         symbol.
32514         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32515         (Makefile.am): Update glob.h rule.
32516
32517         fcntl-h: Avoid #define replacements in C++ mode.
32518         * lib/fcntl.in.h: Include c++defs.h.
32519         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32520         * modules/fcntl-h (Depends-on): Add c++defs.
32521         (Makefile.am): Update fcntl.h rule.
32522
32523         dirent: Avoid #define replacements in C++ mode.
32524         * lib/dirent.in.h: Include c++defs.h.
32525         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32526         namespaced alias symbol.
32527         (dirfd): Update declaration.
32528         * modules/dirent (Depends-on): Add c++defs.
32529         (Makefile.am): Update dirent.h rule.
32530
32531         ctype: Make it usable in C++ code.
32532         * lib/ctype.in.h: Include c++defs.h.
32533         (isblank): Declare as extern "C".
32534         * modules/ctype (Depends-on): Add c++defs.
32535         (Makefile.am): Update ctype.h rule.
32536
32537         New module 'c++defs'.
32538         * modules/c++defs: New file.
32539         * build-aux/c++defs.h: New file.
32540         Reported by John W. Eaton <jwe@gnu.org>.
32541
32542 2010-03-07  Bruno Haible  <bruno@clisp.org>
32543
32544         logb: Provide missing declaration for Cygwin.
32545         * lib/math.in.h (logb): New declaration.
32546         * m4/logb.m4: New file.
32547         * modules/logb (Files): Add m4/logb.m4.
32548         (Depends-on): Add math.
32549         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32550         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32552         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32553         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32554
32555 2010-03-07  Bruno Haible  <bruno@clisp.org>
32556
32557         Fix test-cond link error.
32558         * tests/test-cond.c: Include <stdio.h>.
32559
32560 2010-03-07  Bruno Haible  <bruno@clisp.org>
32561
32562         Fix test-dirent-safer link error.
32563         * modules/dirent-safer-tests (Makefile.am): Define
32564         test_dirent_safer_LDADD.
32565
32566 2010-03-07  Bruno Haible  <bruno@clisp.org>
32567
32568         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32569         among default module list.
32570
32571 2010-03-07  Bruno Haible  <bruno@clisp.org>
32572
32573         Fix link error on platforms with GNU libiconv.
32574         * modules/unistr/u8-strcoll-tests (Makefile): Define
32575         test_u8_strcoll_LDADD.
32576         * modules/unistr/u16-strcoll-tests (Makefile): Define
32577         test_u16_strcoll_LDADD.
32578         * modules/unistr/u32-strcoll-tests (Makefile): Define
32579         test_u32_strcoll_LDADD.
32580
32581 2010-03-07  Bruno Haible  <bruno@clisp.org>
32582
32583         Use POSIX declarations for socket functions.
32584         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32585         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32586         rpl_sendto): Change declaration to match POSIX.
32587         * lib/connect.c (rpl_connect): Likewise.
32588         * lib/accept.c (rpl_accept): Likewise.
32589         * lib/bind.c (rpl_bind): Likewise.
32590         * lib/getpeername.c (rpl_getpeername): Likewise.
32591         * lib/getsockname.c (rpl_getsockname): Likewise.
32592         * lib/recv.c (rpl_recv): Likewise.
32593         * lib/send.c (rpl_send): Likewise.
32594         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32595         * lib/sendto.c (rpl_sendto): Likewise.
32596
32597 2010-03-06  Bruno Haible  <bruno@clisp.org>
32598
32599         Clarify access, euidaccess, faccessat.
32600         * doc/posix-functions/faccessat.texi: Mention security problem under
32601         "Other problems", not "Portability problems".
32602         * doc/posix-functions/access.texi: Likewise. Mention a related security
32603         problem.
32604         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32605         * lib/euidaccess.c: Add comments about platforms.
32606         * lib/unistd.in.h (access, euidaccess): Add warnings.
32607
32608 2010-03-07  Bruno Haible  <bruno@clisp.org>
32609
32610         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32611         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32612         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32613         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32614         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32615         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32616         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32617         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32618         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32619         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32620         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32621         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32622         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32623         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32624         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32625         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32626         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32627         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32628         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32629         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32630         Likewise.
32631         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32632         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32633         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32634         Likewise.
32635         * tests/test-spawn.c (main): Make it work when
32636         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32637
32638 2010-03-07  Bruno Haible  <bruno@clisp.org>
32639
32640         Fix incorrect Makefile.am generation in German locale.
32641         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32642         Execute sed command with character range in C locale.
32643
32644 2010-03-06  Bruno Haible  <bruno@clisp.org>
32645
32646         Tests for module 'iconv-h'.
32647         * modules/iconv-h-tests: New file.
32648         * tests/test-iconv-h.c: New file.
32649
32650         New module 'iconv-h'.
32651         * modules/iconv-h: New file.
32652         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32653         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32654         (configure.ac): Remove gl_ICONV_H.
32655         (Makefile.am): Remove rule for iconv.h.
32656
32657 2010-03-06  Bruno Haible  <bruno@clisp.org>
32658
32659         More consistent naming of *.m4 files.
32660         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32661         * modules/wctype (Files): Update.
32662
32663         More consistent naming of *.m4 files.
32664         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32665         * modules/wchar (Files): Update.
32666
32667 2010-03-06  Jim Meyering  <meyering@redhat.com>
32668
32669         euidaccess: relax license to LGPLv2+
32670         * modules/euidaccess (License): Relax to LGPLv2+.
32671
32672 2010-03-06  Bruno Haible  <bruno@clisp.org>
32673
32674         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32675         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32676         (Makefile.am): Augment lib_SOURCES instead.
32677
32678 2010-03-04  Jim Meyering  <meyering@redhat.com>
32679
32680         utime: remove obsolete module
32681         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32682         unnecessary for years, and has been marked as obsolete for 10 months.
32683         * modules/utime: Remove file.
32684         * lib/utime.c: Remove file.
32685         * m4/utime.m4: Remove file.
32686         * m4/utimes-null.m4: Remove file.
32687         * doc/posix-functions/utime.texi (utime): Remove reference to
32688         the module.  Move the sole "fixed by gnulib" item into the
32689         "problems not fixed by Gnulib" list.
32690         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32691
32692 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32693
32694         * modules/exit (License): Relax license to LGPLv2+.
32695         (Status): Mark as obsolete.
32696         * NEWS: Mention deprecated 'exit' module.
32697         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32698         of now obsolete 'exit'.
32699
32700 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32701
32702         fts-lgpl: remove unused module
32703         * modules/fts-lgpl: Remove.
32704         * MODULES.html.sh (func_all_modules): Adjust.
32705         * check-module (find_included_lib_files): Adjust.
32706         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32707
32708 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32709
32710         copy-acl: enhance Solaris ACL error handling
32711         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32712         * lib/set-mode-acl.c (qset_acl): Likewise.
32713
32714 2010-03-02  Bruno Haible  <bruno@clisp.org>
32715
32716         spawn: Don't override the system defined values on FreeBSD 8.
32717         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32718         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32719         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32720         if HAVE_POSIX_SPAWN is 1.
32721         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32722
32723 2010-03-01  Bruno Haible  <bruno@clisp.org>
32724
32725         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32726         regarding Automake.
32727
32728 2010-02-25  Bruno Haible  <bruno@clisp.org>
32729
32730         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32731         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32732         setting, not afterwards.
32733         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32734
32735 2010-02-24  Eric Blake  <eblake@redhat.com>
32736
32737         bootstrap, git-version-gen: use timestamp
32738         * build-aux/git-version-gen (scriptversion): Force UTC.
32739         * build-aux/bootstrap (scriptversion): New variable.
32740
32741         bootstrap: allow older git
32742         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32743         older than 1.6.4.  Requested by the libvirt project.
32744
32745 2010-02-23  Eric Blake  <eblake@redhat.com>
32746
32747         warn-on-use: work with old autoconf
32748         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32749         AS_VAR semantics of autoconf 2.60.
32750         Reported by Bruno Haible.
32751
32752         bootstrap: improve some comments
32753         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32754         clarification comments.
32755
32756         gettimeofday: provide correct function
32757         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32758         when replacement is declared, otherwise provide gettimeofday.
32759         Reported by Michael Goffioul.
32760
32761 2010-02-23  Jim Meyering  <meyering@redhat.com>
32762
32763         lib-ignore: relax license to "unlimited", not LGPLv2+
32764         * modules/lib-ignore (License): Relax to "unlimited".
32765
32766 2010-02-23  Jim Meyering  <meyering@redhat.com>
32767
32768         lib-ignore: relax license to LGPLv2+
32769         * modules/lib-ignore (License): Relax to LGPLv2+.
32770
32771 2010-02-22  Eric Blake  <eblake@redhat.com>
32772
32773         lseek: avoid bash 3.2 broken pipe bug
32774         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32775         warning from bash 3.2.
32776         Reported by Ben Pfaff, with analysis from Bruno Haible.
32777
32778         bootstrap: support non-FSF copyright holder
32779         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32780         bootstrap.conf override of COPYRIGHT_HOLDER.
32781         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32782
32783         bootstrap: interoperate with gettext 0.14.1
32784         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32785
32786         bootstrap: allow for alternate submodule location
32787         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32788         hardcoding submodule location.
32789         (gnulib_mk): Allow direct use of Makefile.am.
32790
32791         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32792         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32793         rather than reconfiguring where the submodule points.
32794
32795         gettimeofday: restore support for platforms that lack function
32796         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32797         replacement if function is missing.
32798         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32799         * modules/sys_time (Makefile.am): Substitute it.
32800         * lib/sys_time.in.h (gettimeofday): Check it.
32801         Reported by Michael Goffioul.
32802
32803 2010-02-21  Bruno Haible  <bruno@clisp.org>
32804
32805         * lib/stdio.in.h (obstack_printf): Fix typo.
32806
32807 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32808
32809         vc-list-files: use bzr ls's -R option
32810         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32811         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32812
32813 2010-02-21  Jim Meyering  <meyering@redhat.com>
32814
32815         init.sh: fix EXEEXT shims to work also for names like test-prog
32816         * tests/init.sh: Re-exec a better shell, when needed.
32817         If the current shell lacks support for posix $(...), an init.sh-using
32818         test will now try to find a shell that supports that.  If EXEEXT is
32819         nonempty, we also require support for hyphen-in-alias-name and shell
32820         substitutions like ${var#glob}.  Failure to find such a shell results
32821         in a skipped test.
32822
32823 2010-02-21  Bruno Haible  <bruno@clisp.org>
32824
32825         Really work around around "broken pipe" error message from bash 3.2.
32826         * gnulib-tool (func_reset_sigpipe): Remove function.
32827         (echo): In bash 3.2, define to a function that uses printf.
32828         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32829
32830 2010-02-20  Bruno Haible  <bruno@clisp.org>
32831
32832         Restore support for automake 1.9.6 with autoconf 2.61.
32833         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32834         Reported by James Youngman <jay@gnu.org>.
32835
32836 2010-02-20  Bruno Haible  <bruno@clisp.org>
32837
32838         Improve *printf warning condition.
32839         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32840         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32841         and the function is overridden due to SIGPIPE emulation.
32842
32843 2010-02-20  Bruno Haible  <bruno@clisp.org>
32844
32845         * lib/stdio.in.h: Tweak comments.
32846
32847 2010-02-19  Bruno Haible  <bruno@clisp.org>
32848
32849         Make it easier to find modules. New gnulib-tool option '--find'.
32850         * gnulib-tool: New option --find.
32851         (func_usage): Document it.
32852         (func_sanitize_modulelist): New function, extracted from
32853         func_all_modules.
32854         (func_all_modules): Invoke it.
32855         * doc/gnulib-tool.texi (Which modules?): New node.
32856
32857 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32858
32859         * lib/sys_select.in.h: Provide select replacement even if
32860         sys/select.h exists on a system, for Interix.
32861
32862 2010-02-18  Jim Meyering  <meyering@redhat.com>
32863
32864         init.sh: don't use $(...) just yet
32865         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32866         to accommodate e.g., Solaris' /bin/sh.
32867
32868 2010-02-17  Bruno Haible  <bruno@clisp.org>
32869
32870         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32871         Reported by Ludovic Courtès <ludo@gnu.org>.
32872
32873 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32874
32875         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32876         linking with -lintl.
32877
32878 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32879
32880         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32881         if not provided by the system's netdb.h.  Reported by
32882         ludo@gnu.org (Ludovic Courtès).
32883
32884 2010-02-15  Jim Meyering  <meyering@redhat.com>
32885
32886         init.sh: improve portability and efficiency
32887         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32888         "dummy" in a for loop.
32889         Use '!', not '^' to select the complement of a character set used
32890         in a "case" statement.
32891         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32892         Suggestions from Eric Blake.
32893
32894         init.sh: automatically accommodate programs with the .exe suffix
32895         Automatically arrange for an invocation of "prog" to execute the
32896         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32897         may use the simpler "prog", yet still work when built on a system
32898         that requires specifying the added suffix.
32899         Do this by constructing a function named "prog" that invokes
32900         "prog.exe" for each .exe file in selected directories.
32901         * tests/init.sh (find_exe_basenames_): New function.
32902         (create_exe_shim_functions_): New function.
32903         (path_prepend_): Use it.
32904
32905         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32906         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32907         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32908
32909 2010-02-14  Jim Meyering  <meyering@redhat.com>
32910
32911         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32912         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32913         (sc_prohibit_hash_pjw_without_use): New rule.
32914
32915         maint.mk: allow the default upload destination dir to be overridden
32916         * top/maint.mk (upload_dest_dir_): Define with a default that
32917         preserves the status quo.
32918         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32919         Reported by Peter Simons.
32920
32921         maint.mk: prohibit inclusion of "hash.h" without_use
32922         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32923
32924 2010-02-10  Jim Meyering  <meyering@redhat.com>
32925
32926         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32927         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32928
32929 2010-02-09  Eric Blake  <ebb9@byu.net>
32930         and Bruno Haible  <bruno@clisp.org>
32931
32932         obstack-printf-posix: ensure declaration
32933         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32934         extracted from gl_FUNC_OBSTACK_PRINTF.
32935         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32936         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32937         Likewise.
32938         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32939         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32940         0.
32941
32942 2010-02-08  Bruno Haible  <bruno@clisp.org>
32943
32944         gnulib-tool: Fix typo in 2010-02-07 commit.
32945         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32946         Reported by Eric Blake.
32947
32948 2010-02-07  Bruno Haible  <bruno@clisp.org>
32949
32950         gnulib-tool: Fix up caching patches.
32951         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32952         option --no-cache. Use associative arrays when supported by the shell.
32953         (sed_comments): New variable.
32954         (modcache): Renamed from do_cache.
32955         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32956         abbreviate unnecessarily.
32957         (have_associative): New variable.
32958         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32959         way also for ksh and zsh.
32960         (func_init_sed_convert_to_cache_statements): New function, extracted
32961         from func_cache_lookup_module. Add support for associative arrays.
32962         Don't set the c_MODULE_cached variable here. Ignore all lines before
32963         the first field header. Remove only the final newline, not all trailing
32964         newlines. Support empty fields correctly. Limit the use of 'eval' to
32965         assignments.
32966         (func_get_description, func_get_status, func_get_notice,
32967         func_get_applicability, func_get_filelist, func_get_dependencies,
32968         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32969         func_get_automake_snippet, func_get_include_directive,
32970         func_get_link_directive, func_get_license, func_get_maintainer):
32971         Update documentation. List the unoptimized code first. Add support for
32972         associative arrays. Limit the use of 'eval' to assignments.
32973         (func_get_applicability): Undo stylistic pessimisations.
32974         (func_get_automake_snippet, func_get_include_directive): Reduce code
32975         duplication.
32976         (func_modules_transitive_closure, func_modules_add_dummy,
32977         func_modules_notice, func_modules_to_filelist, func_add_file,
32978         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32979         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32980         func_create_testdir, func_create_megatestdir): Update documentation.
32981
32982 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32983
32984         * gnulib-tool (func_cache_lookup_module): Store the module name
32985         belonging to the cache variable; error out if two different
32986         module names map to the same cache variable name.
32987
32988 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32989
32990         gnulib-tool: Make caching optional.
32991         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32992         Update matching short versions of --no-changelog.
32993         (func_usage): Update.
32994         (sed_extract_cache_prog): Renamed from ...
32995         (sed_extract_prog): ... this; revert to old extraction script.
32996         (func_get_description, func_get_status)
32997         (func_get_notice, func_get_applicability, func_get_filelist)
32998         (func_get_dependencies, func_get_autoconf_early_snippet)
32999         (func_get_autoconf_snippet, func_get_automake_snippet)
33000         (func_get_include_directive, func_get_link_directive)
33001         (func_get_license, func_get_maintainer): If $do_cache is false,
33002         use old, non-caching extraction scripts.
33003         Suggestion by Bruno Haible.
33004
33005 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33006
33007         gnulib-tool: cache module metainformation.
33008         * gnulib-tool (sed_extract_prog): Match newline before each
33009         header, and rewrite header to a shell variable suffix.
33010         (func_cache_var, func_cache_lookup_module): New functions,
33011         to turn a module name into a cache variable prefix, and to
33012         look up and cache module metainformation.
33013         (func_get_description, func_get_status)
33014         (func_get_notice, func_get_applicability, func_get_filelist)
33015         (func_get_dependencies, func_get_autoconf_early_snippet)
33016         (func_get_autoconf_snippet, func_get_automake_snippet)
33017         (func_get_include_directive, func_get_link_directive)
33018         (func_get_license, func_get_maintainer): Use
33019         func_cache_lookup_module.
33020
33021 2010-02-07  Bruno Haible  <bruno@clisp.org>
33022
33023         fnctl: Fix missing dependency.
33024         * modules/fcntl (Depends-on): Add getdtablesize.
33025         Reported by John W. Eaton <jwe@gnu.org>.
33026
33027 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33028
33029         Argp: fix recognition of short alias options.
33030
33031         * lib/argp-parse.c (convert_options): Fix improper use of
33032         `|' between character values.
33033         * tests/test-argp.c (group1_option): New alias option
33034         --read (-r).
33035         (group1_parser): Special handling for 'r'.
33036         (test15): New test case.
33037         (test_fun): Add test15.
33038         * tests/test-argp-2.sh: Update expected --help and --usage
33039         outputs.
33040
33041 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33042
33043         * tests/test-argp.c: Fix indentation.
33044
33045 2010-02-04  Eric Blake  <ebb9@byu.net>
33046
33047         gettimeofday: expose type of second argument
33048         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33049         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33050         * tests/test-gettimeofday.c: Use it to silence warning.
33051         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33052         the issue.
33053
33054 2010-02-03  Jim Meyering  <meyering@redhat.com>
33055
33056         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33057         * lib/regcomp.c (TYPE_SIGNED): Define.
33058         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33059
33060         regcomp.c: avoid a new -Wshadow warning
33061         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33062
33063 2010-02-01  Jim Meyering  <meyering@redhat.com>
33064
33065         removing useless parentheses in cpp #define directives
33066         For motivation, see commit c0221df4, "define STREQ(a,b)
33067         consistently, removing useless parentheses"
33068         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33069         * lib/mountlist.c (MNT_IGNORE): Likewise.
33070         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33071
33072 2010-02-01  Eric Blake  <ebb9@byu.net>
33073
33074         sys_time: use link-warning
33075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33076         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33077         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33078         * modules/sys_time (Depends-on): Add warn-on-use.
33079         (Makefile.am): Always build replacement.
33080         (configure.ac): Update substitutions.
33081         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33082         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33083         bother with SYS_TIME_H.
33084         * modules/gettimeofday (configure.ac): Declare indicator.
33085         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33086         in use.
33087
33088         closein-tests: silence compiler warning
33089         * tests/test-closein.c (main): Ignore fread result.
33090         * modules/closein-tests (Depends-on): Add ignore-value.
33091
33092         tests: silence warning about system return
33093         * tests/test-areadlink-with-size.c (main): Ignore system result.
33094         * tests/test-areadlink.c (main): Likewise.
33095         * tests/test-areadlinkat-with-size.c (main): Likewise.
33096         * tests/test-areadlinkat.c (main): Likewise.
33097         * tests/test-canonicalize-lgpl.c (main): Likewise.
33098         * tests/test-canonicalize.c (main): Likewise.
33099         * tests/test-chown.c (main): Likewise.
33100         * tests/test-fchownat.c (main): Likewise.
33101         * tests/test-fdutimensat.c (main): Likewise.
33102         * tests/test-fstatat.c (main): Likewise.
33103         * tests/test-futimens.c (main): Likewise.
33104         * tests/test-lchown.c (main): Likewise.
33105         * tests/test-link.c (main): Likewise.
33106         * tests/test-linkat.c (main): Likewise.
33107         * tests/test-lstat.c (main): Likewise.
33108         * tests/test-mkdir.c (main): Likewise.
33109         * tests/test-mkdirat.c (main): Likewise.
33110         * tests/test-mkfifo.c (main): Likewise.
33111         * tests/test-mkfifoat.c (main): Likewise.
33112         * tests/test-mknod.c (main): Likewise.
33113         * tests/test-readlink.c (main): Likewise.
33114         * tests/test-remove.c (main): Likewise.
33115         * tests/test-rename.c (main): Likewise.
33116         * tests/test-renameat.c (main): Likewise.
33117         * tests/test-rmdir.c (main): Likewise.
33118         * tests/test-symlink.c (main): Likewise.
33119         * tests/test-symlinkat.c (main): Likewise.
33120         * tests/test-unlink.c (main): Likewise.
33121         * tests/test-unlinkat.c (main): Likewise.
33122         * tests/test-utimens.c (main): Likewise.
33123         * tests/test-utimensat.c (main): Likewise.
33124         * modules/areadlink-tests (Depends-on): Add ignore-value.
33125         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33126         * modules/areadlinkat-tests (Depends-on): Likewise.
33127         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33128         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33129         * modules/canonicalize-tests (Depends-on): Likewise.
33130         * modules/chown-tests (Depends-on): Likewise.
33131         * modules/fdutimensat-tests (Depends-on): Likewise.
33132         * modules/futimens-tests (Depends-on): Likewise.
33133         * modules/lchown-tests (Depends-on): Likewise.
33134         * modules/link-tests (Depends-on): Likewise.
33135         * modules/linkat-tests (Depends-on): Likewise.
33136         * modules/lstat-tests (Depends-on): Likewise.
33137         * modules/mkdir-tests (Depends-on): Likewise.
33138         * modules/mkfifo-tests (Depends-on): Likewise.
33139         * modules/mkfifoat-tests (Depends-on): Likewise.
33140         * modules/mknod-tests (Depends-on): Likewise.
33141         * modules/openat-tests (Depends-on): Likewise.
33142         * modules/readlink-tests (Depends-on): Likewise.
33143         * modules/remove-tests (Depends-on): Likewise.
33144         * modules/rename-tests (Depends-on): Likewise.
33145         * modules/renameat-tests (Depends-on): Likewise.
33146         * modules/rmdir-tests (Depends-on): Likewise.
33147         * modules/symlink-tests (Depends-on): Likewise.
33148         * modules/symlinkat-tests (Depends-on): Likewise.
33149         * modules/unlink-tests (Depends-on): Likewise.
33150         * modules/utimens-tests (Depends-on): Likewise.
33151         * modules/utimensat-tests (Depends-on): Likewise.
33152
33153 2010-01-31  Bruno Haible  <bruno@clisp.org>
33154
33155         Perform the same test for many <math.h> functions.
33156         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33157         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33158         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33159         of gl_MATHFUNC.
33160         * modules/acos (configure.ac): Likewise.
33161         * modules/asin (configure.ac): Likewise.
33162         * modules/atan (configure.ac): Likewise.
33163         * modules/atan2 (configure.ac): Likewise.
33164         * modules/cbrt (configure.ac): Likewise.
33165         * modules/copysign (configure.ac): Likewise.
33166         * modules/cos (configure.ac): Likewise.
33167         * modules/cosh (configure.ac): Likewise.
33168         * modules/erf (configure.ac): Likewise.
33169         * modules/erfc (configure.ac): Likewise.
33170         * modules/exp (configure.ac): Likewise.
33171         * modules/fmod (configure.ac): Likewise.
33172         * modules/hypot (configure.ac): Likewise.
33173         * modules/j0 (configure.ac): Likewise.
33174         * modules/j1 (configure.ac): Likewise.
33175         * modules/jn (configure.ac): Likewise.
33176         * modules/lgamma (configure.ac): Likewise.
33177         * modules/log (configure.ac): Likewise.
33178         * modules/log10 (configure.ac): Likewise.
33179         * modules/log1p (configure.ac): Likewise.
33180         * modules/pow (configure.ac): Likewise.
33181         * modules/remainder (configure.ac): Likewise.
33182         * modules/sin (configure.ac): Likewise.
33183         * modules/sinh (configure.ac): Likewise.
33184         * modules/tan (configure.ac): Likewise.
33185         * modules/tanh (configure.ac): Likewise.
33186         * modules/y0 (configure.ac): Likewise.
33187         * modules/y1 (configure.ac): Likewise.
33188         * modules/yn (configure.ac): Likewise.
33189         Suggested by Paolo Bonzini.
33190
33191 2010-01-31  Bruno Haible  <bruno@clisp.org>
33192
33193         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33194
33195 2010-01-31  Bruno Haible  <bruno@clisp.org>
33196
33197         Work around getdelim() bug on FreeBSD 8.0.
33198         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33199         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33200         not work.
33201         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33202         is 1.
33203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33204         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33205         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33206         a non-zero size.
33207         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33208
33209 2010-01-31  Bruno Haible  <bruno@clisp.org>
33210
33211         Work around getline() bug on FreeBSD 8.0.
33212         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33213         and a non-zero size.
33214         * tests/test-getline.c (main): Likewise.
33215         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33216         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33217
33218 2010-01-28  Eric Blake  <ebb9@byu.net>
33219
33220         regex: fix build failure
33221         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33222         platforms.
33223
33224 2010-01-28  Jim Meyering  <meyering@redhat.com>
33225
33226         regex: do not ignore memory allocation failure
33227         * lib/regex_internal.c (create_cd_newstate): Detect
33228         re_node_set_init_copy failure.   Extracted from glibc commit
33229         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33230
33231         regex: sync more white-space changes from libc
33232         * lib/regex_internal.c: White-space only changes.
33233         * lib/regexec.c: Likewise.
33234
33235         regex: add many uses of __attribute_warn_unused_result__
33236         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33237         * lib/regexec.c: Likewise.
33238         Extracted from a messy glibc commit.
33239
33240         regcomp.c: spelling and merge-artifact from glibc
33241         * lib/regcomp.c: Merge remainder of glibc's
33242         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33243
33244         regcomp.c: sync white-space changes from glibc
33245         * lib/regcomp.c: Merge to accommodate white space
33246         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33247
33248         regcomp.c: do not ignore internal return values
33249         * lib/regcomp.c: Do not ignore internal return values.
33250         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33251         but without its white-space changes and spelling fixes.
33252
33253         regex_internal.h: define __attribute_warn_unused_result__
33254         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33255
33256         maint: add a syntax-check rule to check for vulnerable Makefile.in
33257         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33258
33259 2010-01-27  Jim Meyering  <meyering@redhat.com>
33260
33261         ncftpput-ftp: clean up spaces
33262         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33263         Remove trailing blanks.
33264
33265 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33266
33267         * build-aux/git-version-gen: Fix copyright statement.
33268         * build-aux/gnupload: Likewise.
33269         * tests/test-arcfour.c: Likewise.
33270         * tests/test-arctwo.c: Likewise.
33271         * tests/test-count-one-bits.c: Likewise.
33272         * tests/test-crc.c: Likewise.
33273         * tests/test-des.c: Likewise.
33274         * tests/test-gc-arcfour.c: Likewise.
33275         * tests/test-gc-arctwo.c: Likewise.
33276         * tests/test-gc-des.c: Likewise.
33277         * tests/test-gc-hmac-md5.c: Likewise.
33278         * tests/test-gc-hmac-sha1.c: Likewise.
33279         * tests/test-gc-md2.c: Likewise.
33280         * tests/test-gc-md4.c: Likewise.
33281         * tests/test-gc-md5.c: Likewise.
33282         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33283         * tests/test-gc-rijndael.c: Likewise.
33284         * tests/test-gc-sha1.c: Likewise.
33285         * tests/test-gc.c: Likewise.
33286         * tests/test-gethostname.c: Likewise.
33287         * tests/test-gettimeofday.c: Likewise.
33288         * tests/test-hash.c: Likewise.
33289         * tests/test-hmac-md5.c: Likewise.
33290         * tests/test-hmac-sha1.c: Likewise.
33291         * tests/test-md2.c: Likewise.
33292         * tests/test-md4.c: Likewise.
33293         * tests/test-md5.c: Likewise.
33294         * tests/test-memchr.c: Likewise.
33295         * tests/test-memchr2.c: Likewise.
33296         * tests/test-memcmp.c: Likewise.
33297         * tests/test-memmem.c: Likewise.
33298         * tests/test-memrchr.c: Likewise.
33299         * tests/test-rawmemchr.c: Likewise.
33300         * tests/test-read-file.c: Likewise.
33301         * tests/test-rijndael.c: Likewise.
33302         * tests/test-sockets.c: Likewise.
33303         * tests/test-strchrnul.c: Likewise.
33304         * tests/test-strstr.c: Likewise.
33305         * tests/test-strtod.c: Likewise.
33306         * build-aux/ncftpput-ftp: Likewise.
33307
33308 2010-01-26  Eric Blake  <ebb9@byu.net>
33309
33310         ignore-value: update recommended header name
33311         * modules/ignore-value (Include): Only use <> for headers that
33312         exist in glibc.
33313
33314 2010-01-26  Jim Meyering  <meyering@redhat.com>
33315
33316         test-userspec.c: avoid compiler warnings
33317         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33318         and "initialization discards qualifiers..." warnings.
33319         Put the first "uid" in its own scope, and make char* members "const".
33320
33321 2010-01-25  Bruno Haible  <bruno@clisp.org>
33322
33323         gnulib-tool: Make warning diagnostics consistent.
33324         * gnulib-tool (func_warning): New function.
33325         Use it everywhere where gnulib-tool produces output to stderr and it is
33326         not a fatal error.
33327
33328 2010-01-25  Bruno Haible  <bruno@clisp.org>
33329
33330         Fix test dependencies.
33331         * modules/xstrtol-tests (Depends-on): Add inttypes.
33332         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33333
33334 2010-01-25 Pádraig Brady <P@draigBrady.com>
33335
33336         syntax-check: detect incorrect boolean macro values in config.h
33337         * modules/maintainer-makefile (configure.ac): Parameterize the location
33338         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33339         The logic is from Eric Blake and the location indicated by Jim Meyering.
33340         Note the more natural CONFIG_HEADER name is prohibited by automake
33341         for backwards compatibility reasons.
33342         * top/maint.mk (sc_Wundef_boolean): New rule.
33343
33344 2010-01-25  Jim Meyering  <meyering@redhat.com>
33345
33346         bootstrap: detect MacOS 10.6's shasum, too
33347         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33348         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33349
33350 2010-01-23  Jim Meyering  <meyering@redhat.com>
33351
33352         xstrtoll: new module
33353         * modules/xstrtoll: New file.
33354         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33355         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33356         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33357         ./configure fails if you use this module and lack "long long".
33358         * modules/xstrtoll-tests: New module.
33359         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33360         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33361         new init.sh-based test framework.
33362
33363 2010-01-24  Bruno Haible  <bruno@clisp.org>
33364
33365         Tests for module 'yn'.
33366         * modules/yn-tests: New file.
33367         * tests/test-yn.c: New file.
33368
33369         Tests for module 'y1'.
33370         * modules/y1-tests: New file.
33371         * tests/test-y1.c: New file.
33372
33373         Tests for module 'y0'.
33374         * modules/y0-tests: New file.
33375         * tests/test-y0.c: New file.
33376
33377         Tests for module 'tanh'.
33378         * modules/tanh-tests: New file.
33379         * tests/test-tanh.c: New file.
33380
33381         Tests for module 'tan'.
33382         * modules/tan-tests: New file.
33383         * tests/test-tan.c: New file.
33384
33385         Tests for module 'sqrt'.
33386         * modules/sqrt-tests: New file.
33387         * tests/test-sqrt.c: New file.
33388
33389         Tests for module 'sinh'.
33390         * modules/sinh-tests: New file.
33391         * tests/test-sinh.c: New file.
33392
33393         Tests for module 'sin'.
33394         * modules/sin-tests: New file.
33395         * tests/test-sin.c: New file.
33396
33397         Tests for module 'rint'.
33398         * modules/rint-tests: New file.
33399         * tests/test-rint.c: New file.
33400
33401         Tests for module 'remainder'.
33402         * modules/remainder-tests: New file.
33403         * tests/test-remainder.c: New file.
33404
33405         Tests for module 'pow'.
33406         * modules/pow-tests: New file.
33407         * tests/test-pow.c: New file.
33408
33409         Tests for module 'nextafter'.
33410         * modules/nextafter-tests: New file.
33411         * tests/test-nextafter.c: New file.
33412
33413         Tests for module 'modf'.
33414         * modules/modf-tests: New file.
33415         * tests/test-modf.c: New file.
33416
33417         Tests for module 'logb'.
33418         * modules/logb-tests: New file.
33419         * tests/test-logb.c: New file.
33420
33421         Tests for module 'log1p'.
33422         * modules/log1p-tests: New file.
33423         * tests/test-log1p.c: New file.
33424
33425         Tests for module 'log10'.
33426         * modules/log10-tests: New file.
33427         * tests/test-log10.c: New file.
33428
33429         Tests for module 'log'.
33430         * modules/log-tests: New file.
33431         * tests/test-log.c: New file.
33432
33433         Tests for module 'lgamma'.
33434         * modules/lgamma-tests: New file.
33435         * tests/test-lgamma.c: New file.
33436
33437         Tests for module 'ldexp'.
33438         * modules/ldexp-tests: New file.
33439         * tests/test-ldexp.c: New file.
33440
33441         Tests for module 'jn'.
33442         * modules/jn-tests: New file.
33443         * tests/test-jn.c: New file.
33444
33445         Tests for module 'j1'.
33446         * modules/j1-tests: New file.
33447         * tests/test-j1.c: New file.
33448
33449         Tests for module 'j0'.
33450         * modules/j0-tests: New file.
33451         * tests/test-j0.c: New file.
33452
33453         Tests for module 'hypot'.
33454         * modules/hypot-tests: New file.
33455         * tests/test-hypot.c: New file.
33456
33457         Tests for module 'fmod'.
33458         * modules/fmod-tests: New file.
33459         * tests/test-fmod.c: New file.
33460
33461         Tests for module 'fabs'.
33462         * modules/fabs-tests: New file.
33463         * tests/test-fabs.c: New file.
33464
33465         Tests for module 'exp'.
33466         * modules/exp-tests: New file.
33467         * tests/test-exp.c: New file.
33468
33469         Tests for module 'erfc'.
33470         * modules/erfc-tests: New file.
33471         * tests/test-erfc.c: New file.
33472
33473         Tests for module 'erf'.
33474         * modules/erf-tests: New file.
33475         * tests/test-erf.c: New file.
33476
33477         Tests for module 'cosh'.
33478         * modules/cosh-tests: New file.
33479         * tests/test-cosh.c: New file.
33480
33481         Tests for module 'cos'.
33482         * modules/cos-tests: New file.
33483         * tests/test-cos.c: New file.
33484
33485         Tests for module 'copysign'.
33486         * modules/copysign-tests: New file.
33487         * tests/test-copysign.c: New file.
33488
33489         Tests for module 'cbrt'.
33490         * modules/cbrt-tests: New file.
33491         * tests/test-cbrt.c: New file.
33492
33493         Tests for module 'atan2'.
33494         * modules/atan2-tests: New file.
33495         * tests/test-atan2.c: New file.
33496
33497         Tests for module 'atan'.
33498         * modules/atan-tests: New file.
33499         * tests/test-atan.c: New file.
33500
33501         Tests for module 'asin'.
33502         * modules/asin-tests: New file.
33503         * tests/test-asin.c: New file.
33504
33505         Tests for module 'acos'.
33506         * modules/acos-tests: New file.
33507         * tests/test-acos.c: New file.
33508
33509 2010-01-24  Bruno Haible  <bruno@clisp.org>
33510
33511         Fix tests for common <math.h> functions.
33512         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33513         code snippet that references the function pointer, rather than merely
33514         calling the function. Substitute the FUNC_LIBM variable.
33515         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33516         * modules/acos (configure.ac): Likewise.
33517         * modules/asin (configure.ac): Likewise.
33518         * modules/atan (configure.ac): Likewise.
33519         * modules/atan2 (configure.ac): Likewise.
33520         * modules/cbrt (configure.ac): Likewise.
33521         * modules/copysign (configure.ac): Likewise.
33522         * modules/cos (configure.ac): Likewise.
33523         * modules/cosh (configure.ac): Likewise.
33524         * modules/erf (configure.ac): Likewise.
33525         * modules/erfc (configure.ac): Likewise.
33526         * modules/exp (configure.ac): Likewise.
33527         * modules/fabs (configure.ac): Likewise.
33528         * modules/fmod (configure.ac): Likewise.
33529         * modules/hypot (configure.ac): Likewise.
33530         * modules/j0 (configure.ac): Likewise.
33531         * modules/j1 (configure.ac): Likewise.
33532         * modules/jn (configure.ac): Likewise.
33533         * modules/ldexp (configure.ac): Likewise.
33534         * modules/lgamma (configure.ac): Likewise.
33535         * modules/log (configure.ac): Likewise.
33536         * modules/log10 (configure.ac): Likewise.
33537         * modules/log1p (configure.ac): Likewise.
33538         * modules/logb (configure.ac): Likewise.
33539         * modules/modf (configure.ac): Likewise.
33540         * modules/nextafter (configure.ac): Likewise.
33541         * modules/pow (configure.ac): Likewise.
33542         * modules/remainder (configure.ac): Likewise.
33543         * modules/rint (configure.ac): Likewise.
33544         * modules/sin (configure.ac): Likewise.
33545         * modules/sinh (configure.ac): Likewise.
33546         * modules/tan (configure.ac): Likewise.
33547         * modules/tanh (configure.ac): Likewise.
33548         * modules/y0 (configure.ac): Likewise.
33549         * modules/y1 (configure.ac): Likewise.
33550         * modules/yn (configure.ac): Likewise.
33551
33552 2010-01-24  Bruno Haible  <bruno@clisp.org>
33553
33554         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33555         * tests/test-acosl.c (x): New variable.
33556         (main): Store argument in x and fetch it from x.
33557         * tests/test-asinl.c (x): New variable.
33558         (main): Store argument in x and fetch it from x.
33559         * tests/test-atanl.c (x): New variable.
33560         (main): Store argument in x and fetch it from x.
33561         * tests/test-cosl.c (x): New variable.
33562         (main): Store argument in x and fetch it from x.
33563         * tests/test-expl.c (x): New variable.
33564         (main): Store argument in x and fetch it from x.
33565         * tests/test-logl.c (x): New variable.
33566         (main): Store argument in x and fetch it from x.
33567         * tests/test-sinl.c (x): New variable.
33568         (main): Store argument in x and fetch it from x.
33569         * tests/test-sqrtl.c (x): New variable.
33570         (main): Store argument in x and fetch it from x.
33571         * tests/test-tanl.c (x): New variable.
33572         (main): Store argument in x and fetch it from x.
33573
33574 2010-01-24  Bruno Haible  <bruno@clisp.org>
33575
33576         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33577         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33578         assignments to the initial TESTS_ENVIRONMENT.
33579         * doc/gnulib.texi (Unit test modules): Document it.
33580         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33581         TESTS_ENVIRONMENT.
33582         * modules/btowc-tests (Makefile.am): Likewise.
33583         * modules/c-stack-tests (Makefile.am): Likewise.
33584         * modules/c-strcase-tests (Makefile.am): Likewise.
33585         * modules/copy-file-tests (Makefile.am): Likewise.
33586         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33587         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33588         * modules/mbrtowc-tests (Makefile.am): Likewise.
33589         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33590         * modules/mbscasestr-tests (Makefile.am): Likewise.
33591         * modules/mbschr-tests (Makefile.am): Likewise.
33592         * modules/mbscspn-tests (Makefile.am): Likewise.
33593         * modules/mbsinit-tests (Makefile.am): Likewise.
33594         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33595         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33596         * modules/mbspbrk-tests (Makefile.am): Likewise.
33597         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33598         * modules/mbsrchr-tests (Makefile.am): Likewise.
33599         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33600         * modules/mbsspn-tests (Makefile.am): Likewise.
33601         * modules/mbsstr-tests (Makefile.am): Likewise.
33602         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33603         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33604         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33605         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33606         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33607         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33608         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33609         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33610         * modules/wcrtomb-tests (Makefile.am): Likewise.
33611         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33612         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33613         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33614         assignments from TESTS_ENVIRONMENT.
33615         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33616         augmentation.
33617         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33618         * modules/atexit-tests (Makefile.am): Likewise.
33619         * modules/binary-io-tests (Makefile.am): Likewise.
33620         * modules/closein-tests (Makefile.am): Likewise.
33621         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33622         * modules/exclude-tests (Makefile.am): Likewise.
33623         * modules/fflush-tests (Makefile.am): Likewise.
33624         * modules/fpending-tests (Makefile.am): Likewise.
33625         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33626         * modules/freadahead-tests (Makefile.am): Likewise.
33627         * modules/freadptr-tests (Makefile.am): Likewise.
33628         * modules/freadseek-tests (Makefile.am): Likewise.
33629         * modules/fseek-tests (Makefile.am): Likewise.
33630         * modules/fseeko-tests (Makefile.am): Likewise.
33631         * modules/ftell-tests (Makefile.am): Likewise.
33632         * modules/ftello-tests (Makefile.am): Likewise.
33633         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33634         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33635         * modules/lseek-tests (Makefile.am): Likewise.
33636         * modules/parse-duration-tests (Makefile.am): Likewise.
33637         * modules/perror-tests (Makefile.am): Likewise.
33638         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33639         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33640         * modules/pipe-tests (Makefile.am): Likewise.
33641         * modules/pread-tests (Makefile.am): Likewise.
33642         * modules/printf-posix-tests (Makefile.am): Likewise.
33643         * modules/select-tests (Makefile.am): Likewise.
33644         * modules/sigpipe-tests (Makefile.am): Likewise.
33645         * modules/tsearch-tests (Makefile.am): Likewise.
33646         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33647         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33648         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33649         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33650         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33651         * modules/version-etc-tests (Makefile.am): Likewise.
33652         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33653         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33654         * modules/xalloc-die-tests (Makefile.am): Likewise.
33655         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33656         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33657         * modules/xstrtol-tests (Makefile.am): Likewise.
33658         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33659         * modules/yesno-tests (Makefile.am): Likewise.
33660         Suggested by Jim Meyering.
33661
33662 2010-01-24  Bruno Haible  <bruno@clisp.org>
33663
33664         More documentation.
33665         * doc/gnulib.texi (Writing modules): New chapter.
33666         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33667         the new chapter.
33668
33669 2010-01-24  Jim Meyering  <meyering@redhat.com>
33670
33671         maint.mk: do not prepend "./" after filtering
33672         * top/maint.mk (_prepend_srcdir_prefix): New variable
33673         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33674         "./" when $(srcdir) is ".".
33675
33676         define STREQ(a,b) consistently, removing useless parentheses
33677         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33678         since the only risk is that "a" or "b" contains an unparenthesized
33679         comma, but if either did that, STREQ would have 3 or more arguments.
33680         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33681         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33682         * lib/hash-triple.c (STREQ): Likewise.
33683         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33684         * lib/getugroups.c (STREQ): Likewise.
33685
33686 2010-01-23  Jim Meyering  <meyering@redhat.com>
33687
33688         maint.mk: fix syntax-check in a non-srcdir build directory
33689         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33690         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33691
33692 2010-01-22  Jim Meyering  <meyering@redhat.com>
33693
33694         userspec: add unit tests
33695         * tests/test-userspec.c: New file.
33696         * modules/userspec-tests: Likewise.
33697
33698 2010-01-21  Jim Meyering  <meyering@redhat.com>
33699
33700         maint.mk: handle source file names containing "." robustly
33701         * top/maint.mk (_dot_escaped_srcdir): Define.
33702         (VC_LIST): Use it in LHS of sed substitution.
33703
33704 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33705
33706         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33707         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33708         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33709         from a non-srcdir build.
33710
33711 2010-01-20  Eric Blake  <ebb9@byu.net>
33712
33713         warn-on-use: use instead of link-warning
33714         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33715         * modules/unistd (Depends-on, Makefile.am): Likewise.
33716         * modules/arpa_inet (Depends-on): Replace link-warning with
33717         warn-on-use.
33718         (Makefile.am): Update rules accordingly.
33719         * modules/ctype (Depends-on, Makefile.am): Likewise.
33720         * modules/dirent (Depends-on, Makefile.am): Likewise.
33721         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33722         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33723         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33724         * modules/locale (Depends-on, Makefile.am): Likewise.
33725         * modules/math (Depends-on, Makefile.am): Likewise.
33726         * modules/search (Depends-on, Makefile.am): Likewise.
33727         * modules/signal (Depends-on, Makefile.am): Likewise.
33728         * modules/spawn (Depends-on, Makefile.am): Likewise.
33729         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33730         * modules/string (Depends-on, Makefile.am): Likewise.
33731         * modules/strings (Depends-on, Makefile.am): Likewise.
33732         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33733         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33734         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33735         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33736         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33737         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33738         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33739         * modules/wchar (Depends-on, Makefile.am): Likewise.
33740         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33741         should be poisoned.
33742         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33743         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33744         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33745         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33746         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33747         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33748         * m4/math_h.m4 (gl_MATH_H): Likewise.
33749         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33750         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33751         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33752         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33753         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33754         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33755         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33756         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33757         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33759         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33761         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33762         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33763         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33764         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33765         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33766         GL_LINK_WARNING.
33767         * lib/ctype.in.h: Likewise.
33768         * lib/dirent.in.h: Likewise.
33769         * lib/fcntl.in.h: Likewise.
33770         * lib/inttypes.in.h: Likewise.
33771         * lib/langinfo.in.h: Likewise.
33772         * lib/locale.in.h: Likewise.
33773         * lib/math.in.h: Likewise.
33774         * lib/search.in.h: Likewise.
33775         * lib/signal.in.h: Likewise.
33776         * lib/spawn.in.h: Likewise.
33777         * lib/stdio.in.h: Likewise.
33778         * lib/stdlib.in.h: Likewise.
33779         * lib/string.in.h: Likewise.
33780         * lib/strings.in.h: Likewise.
33781         * lib/sys_file.in.h: Likewise.
33782         * lib/sys_ioctl.in.h: Likewise.
33783         * lib/sys_select.in.h: Likewise.
33784         * lib/sys_socket.in.h: Likewise.
33785         * lib/sys_stat.in.h: Likewise.
33786         * lib/sys_times.in.h: Likewise.
33787         * lib/sys_utsname.in.h: Likewise.
33788         * lib/unistd.in.h: Likewise.
33789         * lib/wchar.in.h: Likewise.
33790
33791 2010-01-20  Bruno Haible  <bruno@clisp.org>
33792
33793         Avoid duplicate -lm.
33794         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33795         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33796         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33797         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33798         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33799         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33800         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33801         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33802         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33803         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33804         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33805         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33806         Reported by Paolo Bonzini.
33807
33808 2010-01-19  Bruno Haible  <bruno@clisp.org>
33809
33810         langinfo, nl_langinfo: Relicense under LGPLv2+.
33811         * modules/langinfo (License): Change to LGPLv2+.
33812         * modules/nl_langinfo (License): Likewise.
33813         Patch by David Lutterkort <lutter@redhat.com>.
33814
33815 2010-01-19  Bruno Haible  <bruno@clisp.org>
33816
33817         Avoid compilation error with cc on OSF/1 5.1.
33818         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33819         statement, not before.
33820         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33821
33822 2010-01-18  Bruno Haible  <bruno@clisp.org>
33823
33824         Avoid a link error due to the __printf__ symbol.
33825         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33826         and 2.6.x.
33827         (__format__, __printf__): Remove definitions.
33828         * lib/argp-fmtstream.h: Likewise.
33829         * lib/argp.h: Likewise.
33830         * lib/error.h: Likewise.
33831         * lib/vasnprintf.h: Likewise.
33832         * lib/xprintf.h: Likewise.
33833         * lib/xvasprintf.h: Likewise.
33834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33835
33836 2010-01-18  Bruno Haible  <bruno@clisp.org>
33837
33838         Tests for module 'tanl'.
33839         * modules/tanl-tests: New file.
33840         * tests/test-tanl.c: New file.
33841
33842         Tests for module 'sqrtl'.
33843         * modules/sqrtl-tests: New file.
33844         * tests/test-sqrtl.c: New file.
33845
33846         Tests for module 'sinl'.
33847         * modules/sinl-tests: New file.
33848         * tests/test-sinl.c: New file.
33849
33850         Tests for module 'logl'.
33851         * modules/logl-tests: New file.
33852         * tests/test-logl.c: New file.
33853
33854         Tests for module 'expl'.
33855         * modules/expl-tests: New file.
33856         * tests/test-expl.c: New file.
33857
33858         Tests for module 'cosl'.
33859         * modules/cosl-tests: New file.
33860         * tests/test-cosl.c: New file.
33861
33862         Tests for module 'atanl'.
33863         * modules/atanl-tests: New file.
33864         * tests/test-atanl.c: New file.
33865
33866         Tests for module 'asinl'.
33867         * modules/asinl-tests: New file.
33868         * tests/test-asinl.c: New file.
33869
33870         Tests for module 'acosl'.
33871         * modules/acosl-tests: New file.
33872         * tests/test-acosl.c: New file.
33873
33874         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33875         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33876         tanl): Use the standard gnulib idiom.
33877         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33878         * lib/sinl.c: Likewise.
33879         * lib/tanl.c: Don't include trigl.c.
33880         (kernel_tanl): Make static.
33881         * lib/sincosl.c: Include trigl.h first.
33882         * lib/trigl.c: Likewise.
33883         * m4/acosl.m4: New file.
33884         * m4/asinl.m4: New file.
33885         * m4/atanl.m4: New file.
33886         * m4/cosl.m4: New file.
33887         * m4/expl.m4: New file.
33888         * m4/logl.m4: New file.
33889         * m4/sinl.m4: New file.
33890         * m4/sqrtl.m4: New file.
33891         * m4/tanl.m4: New file.
33892         * m4/mathl.m4: Remove file.
33893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33894         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33895         Don't initialize GNULIB_MATHL.
33896         * modules/acosl: New file.
33897         * modules/asinl: New file.
33898         * modules/atanl: New file.
33899         * modules/cosl: New file.
33900         * modules/expl: New file.
33901         * modules/logl: New file.
33902         * modules/sinl: New file.
33903         * modules/sqrtl: New file.
33904         * modules/tanl: New file.
33905         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33906         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33907         substitute GNULIB_MATHL.
33908         * modules/mathl: Rewritten.
33909         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33910         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33911         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33912         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33913         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33914         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33915         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33916         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33917         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33918
33919 2010-01-18  Bruno Haible  <bruno@clisp.org>
33920
33921         sqrt: Make gl_FUNC_SQRT requirable.
33922         * m4/sqrt.m4: New file.
33923         * modules/sqrt (Files): Add it.
33924         (configure.ac): Invoke gl_FUNC_SQRT.
33925
33926 2010-01-18  Bruno Haible  <bruno@clisp.org>
33927
33928         New modules for common <math.h> functions.
33929         * m4/mathfunc.m4: New file.
33930         * modules/acos: New file.
33931         * modules/asin: New file.
33932         * modules/atan: New file.
33933         * modules/atan2: New file.
33934         * modules/cbrt: New file.
33935         * modules/copysign: New file.
33936         * modules/cos: New file.
33937         * modules/cosh: New file.
33938         * modules/erf: New file.
33939         * modules/erfc: New file.
33940         * modules/exp: New file.
33941         * modules/fabs: New file.
33942         * modules/fmod: New file.
33943         * modules/hypot: New file.
33944         * modules/j0: New file.
33945         * modules/j1: New file.
33946         * modules/jn: New file.
33947         * modules/ldexp: New file.
33948         * modules/lgamma: New file.
33949         * modules/log: New file.
33950         * modules/log10: New file.
33951         * modules/log1p: New file.
33952         * modules/logb: New file.
33953         * modules/modf: New file.
33954         * modules/nextafter: New file.
33955         * modules/pow: New file.
33956         * modules/remainder: New file.
33957         * modules/rint: New file.
33958         * modules/sin: New file.
33959         * modules/sinh: New file.
33960         * modules/sqrt: New file.
33961         * modules/tan: New file.
33962         * modules/tanh: New file.
33963         * modules/y0: New file.
33964         * modules/y1: New file.
33965         * modules/yn: New file.
33966         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33967         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33968         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33969         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33970         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33971         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33972         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33973         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33974         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33975         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33976         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33977         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33978         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33979         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33980         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33981         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33982         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33983         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33984         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33985         * doc/posix-functions/log.texi: Mention the 'log' module.
33986         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33987         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33988         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33989         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33990         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33991         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33992         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33993         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33994         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33995         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33996         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33997         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33998         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33999         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34000         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34001         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34002
34003 2010-01-18  Jim Meyering  <meyering@redhat.com>
34004
34005         ignore-value: relax license to LGPLv2+
34006         * modules/ignore-value (License): Relax to LGPLv2+.
34007
34008         getdate: don't leak when TZ contains two or more '"'s
34009         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34010         double quote in TZ after the first one.
34011
34012         readtokens: do not leak internal token_lengths buffer
34013         * lib/readtokens.c (readtokens): Free the local, lengths,
34014         when the supplied "token_lengths" parameter is NULL.
34015
34016 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34017
34018         Fix a couple of missing LIBTHREAD link failures on AIX.
34019         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34020         $(LIBTHREAD).
34021         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34022
34023         Link test-poll against INET_PTON_LIB.
34024         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34025         for inet_pton on Solaris 10.
34026
34027 2010-01-17  Bruno Haible  <bruno@clisp.org>
34028
34029         unistdio/*-sprintf: Fix typo in module description.
34030         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34031         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34032         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34033         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34034         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34035         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34036         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34038
34039 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34040
34041         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34042         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34043         variables in shell case patterns, for AIX and HP-UX ksh.
34044
34045         Split large sed scripts, for HP-UX sed.
34046         * modules/stdio: Split sed scripts around 50 sed commands,
34047         to avoid HP-UX limit of 99 commands, in the near future.
34048         * modules/string: Likewise.
34049         * modules/unistd: Likewise.
34050
34051         gnulib-tool: avoid writing in the current directory.
34052         * gnulib-tool (func_emit_lib_Makefile_am)
34053         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34054         not in the current directory, so concurrent gnulib-tool
34055         instances do not interfere.
34056
34057 2010-01-16  Jim Meyering  <meyering@redhat.com>
34058
34059         doc: update users.txt
34060         * users.txt: Add grep.
34061         (diffutils, gzip): Update URLs.
34062
34063 2010-01-12  Bruno Haible  <bruno@clisp.org>
34064
34065         posix_spawn: Avoid test failure on Cygwin.
34066         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34067         characters.
34068         Reported by Simon Josefsson.
34069
34070 2010-01-12  Bruno Haible  <bruno@clisp.org>
34071
34072         * tests/test-cond.c (main): When skipping the test, show the reason.
34073
34074 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34075
34076         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34077
34078 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34079
34080         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34081         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34082
34083 2010-01-12  Eric Blake  <ebb9@byu.net>
34084
34085         build: guarantee AS_VAR_IF
34086         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34087         (gl_AS_VAR_IF): Move...
34088         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34089         Reported by Simon Josefsson.
34090
34091 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34092
34093         * lib/stdio.in.h: Fix typo.
34094
34095 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34096
34097         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34098         libgpg-error.
34099
34100 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34101
34102         * tests/test-xalloc-die.sh: Use $EXEEXT.
34103
34104 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34105             Bruno Haible  <bruno@clisp.org>
34106
34107         getlogin, getlogin_r: Avoid test failure.
34108         * tests/test-getlogin.c: Include <stdio.h>.
34109         (main): Skip the test when the function fails because stdin is not a
34110         tty.
34111         * tests/test-getlogin_r.c: Include <stdio.h>.
34112         (main): Skip the test when the function fails because stdin is not a
34113         tty.
34114
34115 2010-01-11  Eric Blake  <ebb9@byu.net>
34116
34117         tests: avoid more large file warnings
34118         * tests/test-fflush.c: Avoid warning about ftell use.
34119         * tests/test-fseek.c: Avoid warning about fseek use.
34120
34121 2010-01-10  Bruno Haible  <bruno@clisp.org>
34122
34123         nproc: Work better on Linux when /proc and /sys are not mounted.
34124         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34125         as lower bound when, on glibc/Linux systems,
34126         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34127         Suggested by Pádraig Brady <P@draigbrady.com>.
34128         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34129
34130         nproc: Refactor.
34131         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34132         extracted from num_processors.
34133         (num_processors): Call it.
34134
34135 2010-01-11  Jim Meyering  <meyering@redhat.com>
34136
34137         utimecmp: avoid new warning from upcoming gcc-4.5.0
34138         * lib/utimecmp.c (BILLION): Define using #define rather than an
34139         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34140
34141 2010-01-11  Eric Blake  <ebb9@byu.net>
34142
34143         math: add portability warnings for classification macros
34144         * modules/math (Depends-on): Add warn-on-use.
34145         (Makefile.am): Provide new substitutions.
34146         * m4/math_h.m4 (gl_MATH_H): Require inline.
34147         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34148         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34149         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34150         implement warnings.
34151
34152         unistd: warn on use of environ without module
34153         * modules/unistd (Depends-on): Add warn-on-use.
34154         (Makefile.am): Provide new substitutions.
34155         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34156         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34157
34158         stdio: warn on suspicious uses
34159         * modules/stdio (Depends-on): Add warn-on-use.
34160         (Makefile.am): Provide new substitutions.
34161         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34162         fseeko.
34163         * lib/stdio.in.h (gets): Always warn on use.
34164         (fseek, ftell): Adjust when warnings are issued, and honor
34165         _GL_NO_LARGE_FILES as a way to silence the warning.
34166         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34167         any warning about large file offsets.
34168         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34169         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34170         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34171         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34172         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34173         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34174         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34175         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34176
34177         warn-on-use: new module
34178         * modules/warn-on-use: New file.
34179         * build-aux/warn-on-use.h: Likewise.
34180         * m4/warn-on-use.m4: Likewise.
34181         * MODULES.html.sh (Support for building): Mention it.
34182
34183 2010-01-10  Bruno Haible  <bruno@clisp.org>
34184
34185         Tests for module 'unistr/u32-strdup'.
34186         * modules/unistr/u32-strdup-tests: New file.
34187         * tests/unistr/test-u32-strdup.c: New file.
34188
34189         Tests for module 'unistr/u16-strdup'.
34190         * modules/unistr/u16-strdup-tests: New file.
34191         * tests/unistr/test-u16-strdup.c: New file.
34192
34193         Tests for module 'unistr/u8-strdup'.
34194         * modules/unistr/u8-strdup-tests: New file.
34195         * tests/unistr/test-u8-strdup.c: New file.
34196         * tests/unistr/test-strdup.h: New file.
34197
34198         Tests for module 'unistr/u32-strncmp'.
34199         * modules/unistr/u32-strncmp-tests: New file.
34200         * tests/unistr/test-u32-strncmp.c: New file.
34201
34202         Tests for module 'unistr/u16-strncmp'.
34203         * modules/unistr/u16-strncmp-tests: New file.
34204         * tests/unistr/test-u16-strncmp.c: New file.
34205
34206         Tests for module 'unistr/u8-strncmp'.
34207         * modules/unistr/u8-strncmp-tests: New file.
34208         * tests/unistr/test-u8-strncmp.c: New file.
34209         * tests/unistr/test-strncmp.h: New file.
34210
34211         Tests for module 'unistr/u32-strcoll'.
34212         * modules/unistr/u32-strcoll-tests: New file.
34213         * tests/unistr/test-u32-strcoll.c: New file.
34214
34215         Tests for module 'unistr/u16-strcoll'.
34216         * modules/unistr/u16-strcoll-tests: New file.
34217         * tests/unistr/test-u16-strcoll.c: New file.
34218
34219         Tests for module 'unistr/u8-strcoll'.
34220         * modules/unistr/u8-strcoll-tests: New file.
34221         * tests/unistr/test-u8-strcoll.c: New file.
34222
34223         Tests for module 'unistr/u32-strcmp'.
34224         * modules/unistr/u32-strcmp-tests: New file.
34225         * tests/unistr/test-u32-strcmp.c: New file.
34226         * tests/unistr/test-u32-strcmp.h: New file.
34227
34228         Tests for module 'unistr/u16-strcmp'.
34229         * modules/unistr/u16-strcmp-tests: New file.
34230         * tests/unistr/test-u16-strcmp.c: New file.
34231         * tests/unistr/test-u16-strcmp.h: New file.
34232
34233         Tests for module 'unistr/u8-strcmp'.
34234         * modules/unistr/u8-strcmp-tests: New file.
34235         * tests/unistr/test-u8-strcmp.c: New file.
34236         * tests/unistr/test-u8-strcmp.h: New file.
34237         * tests/unistr/test-strcmp.h: New file.
34238
34239         Tests for module 'unistr/u32-strncat'.
34240         * modules/unistr/u32-strncat-tests: New file.
34241         * tests/unistr/test-u32-strncat.c: New file.
34242
34243         Tests for module 'unistr/u16-strncat'.
34244         * modules/unistr/u16-strncat-tests: New file.
34245         * tests/unistr/test-u16-strncat.c: New file.
34246
34247         Tests for module 'unistr/u8-strncat'.
34248         * modules/unistr/u8-strncat-tests: New file.
34249         * tests/unistr/test-u8-strncat.c: New file.
34250         * tests/unistr/test-strncat.h: New file.
34251
34252         Tests for module 'unistr/u32-strcat'.
34253         * modules/unistr/u32-strcat-tests: New file.
34254         * tests/unistr/test-u32-strcat.c: New file.
34255
34256         Tests for module 'unistr/u16-strcat'.
34257         * modules/unistr/u16-strcat-tests: New file.
34258         * tests/unistr/test-u16-strcat.c: New file.
34259
34260         Tests for module 'unistr/u8-strcat'.
34261         * modules/unistr/u8-strcat-tests: New file.
34262         * tests/unistr/test-u8-strcat.c: New file.
34263         * tests/unistr/test-strcat.h: New file.
34264
34265         Tests for module 'unistr/u32-stpncpy'.
34266         * modules/unistr/u32-stpncpy-tests: New file.
34267         * tests/unistr/test-u32-stpncpy.c: New file.
34268
34269         Tests for module 'unistr/u16-stpncpy'.
34270         * modules/unistr/u16-stpncpy-tests: New file.
34271         * tests/unistr/test-u16-stpncpy.c: New file.
34272
34273         Tests for module 'unistr/u8-stpncpy'.
34274         * modules/unistr/u8-stpncpy-tests: New file.
34275         * tests/unistr/test-u8-stpncpy.c: New file.
34276         * tests/unistr/test-stpncpy.h: New file.
34277
34278         Tests for module 'unistr/u32-strncpy'.
34279         * modules/unistr/u32-strncpy-tests: New file.
34280         * tests/unistr/test-u32-strncpy.c: New file.
34281
34282         Tests for module 'unistr/u16-strncpy'.
34283         * modules/unistr/u16-strncpy-tests: New file.
34284         * tests/unistr/test-u16-strncpy.c: New file.
34285
34286         Tests for module 'unistr/u8-strncpy'.
34287         * modules/unistr/u8-strncpy-tests: New file.
34288         * tests/unistr/test-u8-strncpy.c: New file.
34289         * tests/unistr/test-strncpy.h: New file.
34290
34291         Tests for module 'unistr/u32-stpcpy'.
34292         * modules/unistr/u32-stpcpy-tests: New file.
34293         * tests/unistr/test-u32-stpcpy.c: New file.
34294
34295         Tests for module 'unistr/u16-stpcpy'.
34296         * modules/unistr/u16-stpcpy-tests: New file.
34297         * tests/unistr/test-u16-stpcpy.c: New file.
34298
34299         Tests for module 'unistr/u8-stpcpy'.
34300         * modules/unistr/u8-stpcpy-tests: New file.
34301         * tests/unistr/test-u8-stpcpy.c: New file.
34302         * tests/unistr/test-stpcpy.h: New file.
34303
34304         Tests for module 'unistr/u32-strcpy'.
34305         * modules/unistr/u32-strcpy-tests: New file.
34306         * tests/unistr/test-u32-strcpy.c: New file.
34307
34308         Tests for module 'unistr/u16-strcpy'.
34309         * modules/unistr/u16-strcpy-tests: New file.
34310         * tests/unistr/test-u16-strcpy.c: New file.
34311
34312         Tests for module 'unistr/u8-strcpy'.
34313         * modules/unistr/u8-strcpy-tests: New file.
34314         * tests/unistr/test-u8-strcpy.c: New file.
34315         * tests/unistr/test-strcpy.h: New file.
34316
34317         Tests for module 'unistr/u32-strnlen'.
34318         * modules/unistr/u32-strnlen-tests: New file.
34319         * tests/unistr/test-u32-strnlen.c: New file.
34320
34321         Tests for module 'unistr/u16-strnlen'.
34322         * modules/unistr/u16-strnlen-tests: New file.
34323         * tests/unistr/test-u16-strnlen.c: New file.
34324
34325         Tests for module 'unistr/u8-strnlen'.
34326         * modules/unistr/u8-strnlen-tests: New file.
34327         * tests/unistr/test-u8-strnlen.c: New file.
34328         * tests/unistr/test-strnlen.h: New file.
34329
34330         Tests for module 'unistr/u32-strlen'.
34331         * modules/unistr/u32-strlen-tests: New file.
34332         * tests/unistr/test-u32-strlen.c: New file.
34333
34334         Tests for module 'unistr/u16-strlen'.
34335         * modules/unistr/u16-strlen-tests: New file.
34336         * tests/unistr/test-u16-strlen.c: New file.
34337
34338         Tests for module 'unistr/u8-strlen'.
34339         * modules/unistr/u8-strlen-tests: New file.
34340         * tests/unistr/test-u8-strlen.c: New file.
34341
34342         Tests for module 'unistr/u32-prev'.
34343         * modules/unistr/u32-prev-tests: New file.
34344         * tests/unistr/test-u32-prev.c: New file.
34345
34346         Tests for module 'unistr/u16-prev'.
34347         * modules/unistr/u16-prev-tests: New file.
34348         * tests/unistr/test-u16-prev.c: New file.
34349
34350         Tests for module 'unistr/u8-prev'.
34351         * modules/unistr/u8-prev-tests: New file.
34352         * tests/unistr/test-u8-prev.c: New file.
34353
34354         Tests for module 'unistr/u32-next'.
34355         * modules/unistr/u32-next-tests: New file.
34356         * tests/unistr/test-u32-next.c: New file.
34357
34358         Tests for module 'unistr/u16-next'.
34359         * modules/unistr/u16-next-tests: New file.
34360         * tests/unistr/test-u16-next.c: New file.
34361
34362         Tests for module 'unistr/u8-next'.
34363         * modules/unistr/u8-next-tests: New file.
34364         * tests/unistr/test-u8-next.c: New file.
34365
34366         Tests for module 'unistr/u32-strmbtouc'.
34367         * modules/unistr/u32-strmbtouc-tests: New file.
34368         * tests/unistr/test-u32-strmbtouc.c: New file.
34369
34370         Tests for module 'unistr/u16-strmbtouc'.
34371         * modules/unistr/u16-strmbtouc-tests: New file.
34372         * tests/unistr/test-u16-strmbtouc.c: New file.
34373
34374         Tests for module 'unistr/u8-strmbtouc'.
34375         * modules/unistr/u8-strmbtouc-tests: New file.
34376         * tests/unistr/test-u8-strmbtouc.c: New file.
34377
34378         Tests for module 'unistr/u32-strmblen'.
34379         * modules/unistr/u32-strmblen-tests: New file.
34380         * tests/unistr/test-u32-strmblen.c: New file.
34381
34382         Tests for module 'unistr/u16-strmblen'.
34383         * modules/unistr/u16-strmblen-tests: New file.
34384         * tests/unistr/test-u16-strmblen.c: New file.
34385
34386         Tests for module 'unistr/u8-strmblen'.
34387         * modules/unistr/u8-strmblen-tests: New file.
34388         * tests/unistr/test-u8-strmblen.c: New file.
34389
34390         Tests for module 'unistr/u32-cpy-alloc'.
34391         * modules/unistr/u32-cpy-alloc-tests: New file.
34392         * tests/unistr/test-u32-cpy-alloc.c: New file.
34393
34394         Tests for module 'unistr/u16-cpy-alloc'.
34395         * modules/unistr/u16-cpy-alloc-tests: New file.
34396         * tests/unistr/test-u16-cpy-alloc.c: New file.
34397
34398         Tests for module 'unistr/u8-cpy-alloc'.
34399         * modules/unistr/u8-cpy-alloc-tests: New file.
34400         * tests/unistr/test-u8-cpy-alloc.c: New file.
34401         * tests/unistr/test-cpy-alloc.h: New file.
34402
34403         Tests for module 'unistr/u32-mbsnlen'.
34404         * modules/unistr/u32-mbsnlen-tests: New file.
34405         * tests/unistr/test-u32-mbsnlen.c: New file.
34406
34407         Tests for module 'unistr/u16-mbsnlen'.
34408         * modules/unistr/u16-mbsnlen-tests: New file.
34409         * tests/unistr/test-u16-mbsnlen.c: New file.
34410
34411         Tests for module 'unistr/u8-mbsnlen'.
34412         * modules/unistr/u8-mbsnlen-tests: New file.
34413         * tests/unistr/test-u8-mbsnlen.c: New file.
34414
34415         Tests for module 'unistr/u32-chr'.
34416         * modules/unistr/u32-chr-tests: New file.
34417         * tests/unistr/test-u32-chr.c: New file.
34418
34419         Tests for module 'unistr/u16-chr'.
34420         * modules/unistr/u16-chr-tests: New file.
34421         * tests/unistr/test-u16-chr.c: New file.
34422
34423         Tests for module 'unistr/u8-chr'.
34424         * modules/unistr/u8-chr-tests: New file.
34425         * tests/unistr/test-u8-chr.c: New file.
34426         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34427
34428         Tests for module 'unistr/u32-cmp2'.
34429         * modules/unistr/u32-cmp2-tests: New file.
34430         * tests/unistr/test-u32-cmp2.c: New file.
34431
34432         Tests for module 'unistr/u16-cmp2'.
34433         * modules/unistr/u16-cmp2-tests: New file.
34434         * tests/unistr/test-u16-cmp2.c: New file.
34435
34436         Tests for module 'unistr/u8-cmp2'.
34437         * modules/unistr/u8-cmp2-tests: New file.
34438         * tests/unistr/test-u8-cmp2.c: New file.
34439         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34440
34441         Tests for module 'unistr/u32-cmp'.
34442         * modules/unistr/u32-cmp-tests: New file.
34443         * tests/unistr/test-u32-cmp.c: New file.
34444
34445         Tests for module 'unistr/u16-cmp'.
34446         * modules/unistr/u16-cmp-tests: New file.
34447         * tests/unistr/test-u16-cmp.c: New file.
34448
34449         Tests for module 'unistr/u8-cmp'.
34450         * modules/unistr/u8-cmp-tests: New file.
34451         * tests/unistr/test-u8-cmp.c: New file.
34452         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34453
34454         Tests for module 'unistr/u32-set'.
34455         * modules/unistr/u32-set-tests: New file.
34456         * tests/unistr/test-u32-set.c: New file.
34457
34458         Tests for module 'unistr/u16-set'.
34459         * modules/unistr/u16-set-tests: New file.
34460         * tests/unistr/test-u16-set.c: New file.
34461
34462         Tests for module 'unistr/u8-set'.
34463         * modules/unistr/u8-set-tests: New file.
34464         * tests/unistr/test-u8-set.c: New file.
34465         * tests/unistr/test-set.h: New file.
34466
34467         Tests for module 'unistr/u32-move'.
34468         * modules/unistr/u32-move-tests: New file.
34469         * tests/unistr/test-u32-move.c: New file.
34470
34471         Tests for module 'unistr/u16-move'.
34472         * modules/unistr/u16-move-tests: New file.
34473         * tests/unistr/test-u16-move.c: New file.
34474
34475         Tests for module 'unistr/u8-move'.
34476         * modules/unistr/u8-move-tests: New file.
34477         * tests/unistr/test-u8-move.c: New file.
34478         * tests/unistr/test-move.h: New file.
34479
34480         Tests for module 'unistr/u32-cpy'.
34481         * modules/unistr/u32-cpy-tests: New file.
34482         * tests/unistr/test-u32-cpy.c: New file.
34483
34484         Tests for module 'unistr/u16-cpy'.
34485         * modules/unistr/u16-cpy-tests: New file.
34486         * tests/unistr/test-u16-cpy.c: New file.
34487
34488         Tests for module 'unistr/u8-cpy'.
34489         * modules/unistr/u8-cpy-tests: New file.
34490         * tests/unistr/test-u8-cpy.c: New file.
34491         * tests/unistr/test-cpy.h: New file.
34492
34493 2010-01-09  Bruno Haible  <bruno@clisp.org>
34494
34495         Tests for module 'unistr/u32-uctomb'.
34496         * modules/unistr/u32-uctomb-tests: New file.
34497         * tests/unistr/test-u32-uctomb.c: New file.
34498
34499         Tests for module 'unistr/u16-uctomb'.
34500         * modules/unistr/u16-uctomb-tests: New file.
34501         * tests/unistr/test-u16-uctomb.c: New file.
34502
34503         Tests for module 'unistr/u8-uctomb'.
34504         * modules/unistr/u8-uctomb-tests: New file.
34505         * tests/unistr/test-u8-uctomb.c: New file.
34506
34507         Tests for module 'unistr/u32-mbtoucr'.
34508         * modules/unistr/u32-mbtoucr-tests: New file.
34509         * tests/unistr/test-u32-mbtoucr.c: New file.
34510
34511         Tests for module 'unistr/u16-mbtoucr'.
34512         * modules/unistr/u16-mbtoucr-tests: New file.
34513         * tests/unistr/test-u16-mbtoucr.c: New file.
34514
34515         Tests for module 'unistr/u8-mbtoucr'.
34516         * modules/unistr/u8-mbtoucr-tests: New file.
34517         * tests/unistr/test-u8-mbtoucr.c: New file.
34518
34519         Tests for module 'unistr/u32-mbtouc'.
34520         * modules/unistr/u32-mbtouc-tests: New file.
34521         * tests/unistr/test-u32-mbtouc.c: New file.
34522
34523         Tests for module 'unistr/u16-mbtouc'.
34524         * modules/unistr/u16-mbtouc-tests: New file.
34525         * tests/unistr/test-u16-mbtouc.c: New file.
34526
34527         Tests for module 'unistr/u8-mbtouc'.
34528         * modules/unistr/u8-mbtouc-tests: New file.
34529         * tests/unistr/test-u8-mbtouc.c: New file.
34530
34531         Tests for module 'unistr/u32-mbtouc-unsafe'.
34532         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34533         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34534         * tests/unistr/test-u32-mbtouc.h: New file.
34535
34536         Tests for module 'unistr/u16-mbtouc-unsafe'.
34537         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34538         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34539         * tests/unistr/test-u16-mbtouc.h: New file.
34540
34541         Tests for module 'unistr/u8-mbtouc-unsafe'.
34542         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34543         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34544         * tests/unistr/test-u8-mbtouc.h: New file.
34545
34546         Tests for module 'unistr/u32-mblen'.
34547         * modules/unistr/u32-mblen-tests: New file.
34548         * tests/unistr/test-u32-mblen.c: New file.
34549
34550         Tests for module 'unistr/u16-mblen'.
34551         * modules/unistr/u16-mblen-tests: New file.
34552         * tests/unistr/test-u16-mblen.c: New file.
34553
34554         Tests for module 'unistr/u8-mblen'.
34555         * modules/unistr/u8-mblen-tests: New file.
34556         * tests/unistr/test-u8-mblen.c: New file.
34557
34558         Tests for module 'unistr/u32-to-u16'.
34559         * modules/unistr/u32-to-u16-tests: New file.
34560         * tests/unistr/test-u32-to-u16.c: New file.
34561
34562         Tests for module 'unistr/u32-to-u8'.
34563         * modules/unistr/u32-to-u8-tests: New file.
34564         * tests/unistr/test-u32-to-u8.c: New file.
34565
34566         Tests for module 'unistr/u16-to-u32'.
34567         * modules/unistr/u16-to-u32-tests: New file.
34568         * tests/unistr/test-u16-to-u32.c: New file.
34569
34570         Tests for module 'unistr/u16-to-u8'.
34571         * modules/unistr/u16-to-u8-tests: New file.
34572         * tests/unistr/test-u16-to-u8.c: New file.
34573
34574         Tests for module 'unistr/u8-to-u32'.
34575         * modules/unistr/u8-to-u32-tests: New file.
34576         * tests/unistr/test-u8-to-u32.c: New file.
34577
34578         Tests for module 'unistr/u8-to-u16'.
34579         * modules/unistr/u8-to-u16-tests: New file.
34580         * tests/unistr/test-u8-to-u16.c: New file.
34581
34582         Tests for module 'unistr/u32-check'.
34583         * modules/unistr/u32-check-tests: New file.
34584         * tests/unistr/test-u32-check.c: New file.
34585
34586         Tests for module 'unistr/u16-check'.
34587         * modules/unistr/u16-check-tests: New file.
34588         * tests/unistr/test-u16-check.c: New file.
34589
34590         Tests for module 'unistr/u8-check'.
34591         * modules/unistr/u8-check-tests: New file.
34592         * tests/unistr/test-u8-check.c: New file.
34593
34594         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34595         (category_equals): New function.
34596         (main): Add more tests.
34597         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34598
34599         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34600
34601 2010-01-10  Bruno Haible  <bruno@clisp.org>
34602
34603         unistr/u*-strcoll: Try harder to distinguish different strings.
34604         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34605         compare s1 and s2 to see if they are different.
34606
34607 2010-01-10  Bruno Haible  <bruno@clisp.org>
34608
34609         unistr/u*-stpncpy: Fix the return value.
34610         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34611         description of the return value consistent with stpncpy in glibc.
34612         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34613         written non-NUL unit.
34614
34615 2010-01-10  Bruno Haible  <bruno@clisp.org>
34616
34617         unistr/u*-next: Add missing dependencies.
34618         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34619         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34620         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34621
34622 2010-01-10  Bruno Haible  <bruno@clisp.org>
34623
34624         unistr/u8-mbsnlen: Fix return value for incomplete character.
34625         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34626         u8_mblen.
34627         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34628         Remove unistr/u8-mblen.
34629         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34630         u16_mblen.
34631         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34632         Remove unistr/u16-mblen.
34633
34634 2010-01-10  Bruno Haible  <bruno@clisp.org>
34635
34636         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34637         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34638         Reported by Brian Gough <bjg@gnu.org> and
34639         Chris Clayton <chris2553@googlemail.com> via
34640         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34641
34642 2010-01-09  Bruno Haible  <bruno@clisp.org>
34643
34644         unistr/u16-to-u32: Reject invalid input.
34645         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34646         u16_mbtouc.
34647         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34648         Remove unistr/u16-mbtouc.
34649
34650         unistr/u16-to-u8: Reject invalid input.
34651         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34652         u16_mbtouc.
34653         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34654         Remove unistr/u16-mbtouc.
34655
34656         unistr/u8-to-u32: Reject invalid input.
34657         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34658         u8_mbtouc.
34659         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34660         Remove unistr/u8-mbtouc.
34661
34662         unistr/u8-to-u16: Reject invalid input.
34663         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34664         u8_mbtouc.
34665         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34666         Remove unistr/u8-mbtouc.
34667
34668 2010-01-09  Bruno Haible  <bruno@clisp.org>
34669
34670         Tests for module 'getlogin'.
34671         * modules/getlogin-tests: New file.
34672         * tests/test-getlogin.c: New file.
34673
34674         New module 'getlogin'.
34675         * lib/unistd.in.h (getlogin): New declaration.
34676         * lib/getlogin.c: New file.
34677         * m4/getlogin.m4: New file.
34678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34679         HAVE_GETLOGIN.
34680         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34681         HAVE_GETLOGIN.
34682         * modules/getlogin: New file.
34683         * doc/posix-functions/getlogin.texi: Mention the new module.
34684         Reported by John W. Eaton <jwe@gnu.org>.
34685
34686 2010-01-09  Bruno Haible  <bruno@clisp.org>
34687
34688         getlogin_r: Support for native Windows.
34689         * lib/getlogin_r.c: Include <windows.h>
34690         (getlogin_r): Implement for native Windows.
34691         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34692         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34693         via John W. Eaton <jwe@gnu.org>.
34694
34695 2010-01-09  Bruno Haible  <bruno@clisp.org>
34696
34697         getlogin_r: Small fixes.
34698         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34699         succeeds.
34700         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34701         before testing whether getlogin_r is declared. No need to set
34702         HAVE_DECL_GETLOGIN_R to 1.
34703         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34704
34705 2010-01-09  Bruno Haible  <bruno@clisp.org>
34706
34707         * lib/unistd.in.h (getlogin_r): Add comment.
34708
34709 2010-01-09  Bruno Haible  <bruno@clisp.org>
34710
34711         Tests for module 'getlogin_r'.
34712         * modules/getlogin_r-tests: New file.
34713         * tests/test-getlogin_r.c: New file.
34714
34715 2010-01-09  Jim Meyering  <meyering@redhat.com>
34716
34717         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34718         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34719         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34720
34721 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34722
34723         * lib/dup2.c (rpl_dup2): Improve comment.
34724
34725 2010-01-08  Eric Blake  <ebb9@byu.net>
34726
34727         maint.mk: allow packages to add makefile @@ exceptions
34728         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34729         (sc_makefile_check): Rename...
34730         (sc_makefile_at_at_check): ...to this, and use hook.
34731
34732         dup2: work around mingw bug
34733         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34734         Reported by Simon Josefsson.
34735
34736 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34737
34738         glob: Fix C++ compilation.
34739         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34740         C++.
34741
34742 2010-01-07  Bruno Haible  <bruno@clisp.org>
34743
34744         Fix indentation of wctype.in.h, broken since 2007-01-06.
34745         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34746
34747 2010-01-07  Bruno Haible  <bruno@clisp.org>
34748
34749         mbslen: Avoid collision with system function.
34750         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34751         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34752         * m4/mbslen.m4: New file.
34753         * modules/mbslen (Files): Add it.
34754         (configure.ac): Invoke gl_MBSLEN.
34755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34756         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34757         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34758         via Ian Beckwith <ianb@erislabs.net>.
34759
34760 2010-01-07  Bruno Haible  <bruno@clisp.org>
34761
34762         dirent: Document the last fix.
34763         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34764
34765 2010-01-07  Bruno Haible  <bruno@clisp.org>
34766
34767         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34768         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34769         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34770         va_list are defined.
34771         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34772         Reported by Eric Blake.
34773
34774 2010-01-07  Bruno Haible  <bruno@clisp.org>
34775
34776         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34777         * modules/xlist (Depends-on): Add 'list',
34778         * modules/xoset (Depends-on): Add 'oset'.
34779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34780
34781 2010-01-07  Bruno Haible  <bruno@clisp.org>
34782
34783         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34784         * doc/posix-functions/strncasecmp.texi: Likewise.
34785
34786 2010-01-07  Bruno Haible  <bruno@clisp.org>
34787
34788         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34789
34790 2010-01-07  John W. Eaton  <jwe@octave.org>
34791
34792         wctype: allow C++ use
34793         * lib/wctype.in.h: Add extern "C" block for C++.
34794
34795 2010-01-06  Eric Blake  <ebb9@byu.net>
34796
34797         maint.mk: detect incorrect GFDL usage
34798         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34799
34800 2010-01-06  Jim Meyering  <meyering@redhat.com>
34801         and Eric Blake  <ebb9@byu.net>
34802
34803         maint.mk: ignore multi-line copyright in NEWS
34804         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34805
34806 2010-01-06  Eric Blake  <ebb9@byu.net>
34807
34808         select: add missing dependency
34809         * modules/select-tests (Depends-on): Move sockets dependency...
34810         * modules/select (Depends-on): ...here.
34811         Reported by Ian Beckwith.
34812
34813         doc: regenerate INSTALL
34814         * doc/INSTALL: Reflect recent autoconf update.
34815         * doc/INSTALL.ISO: Likewise.
34816         * doc/INSTALL.UTF-8: Likewise.
34817
34818         pread: fix compilation on glibc
34819         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34820         Reported by Ralf Wildenhues.
34821
34822         dirent: fix test failure
34823         * lib/dirent.in.h (includes): Guarantee ino_t.
34824         Reported by Ralf Wildenhues.
34825
34826 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34827
34828         linkat, renameat: avoid bad free
34829         * lib/at-func2.c (at_func2): Fix typo.
34830         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34831
34832 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34833
34834         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34835         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34836         to avoid failure of symlink test later.
34837
34838 2010-01-06  Eric Blake  <ebb9@byu.net>
34839
34840         stdio, unistd: guarantee ssize_t
34841         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34842         2008 are exposed when needed.
34843         * lib/stdio.in.h (includes): Likewise.
34844         Reported by Ralf Wildenhues.
34845
34846 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34847
34848         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34849         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34850         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34851
34852 2010-01-06  Jim Meyering  <meyering@redhat.com>
34853
34854         readtokens: this module *does* require xalloc.h
34855         It uses only functions that were omitted by the old syntax-check rule.
34856         * lib/readtokens.c: Include "xalloc.h" once again.
34857         * modules/readtokens (Depends-on): Add xalloc.
34858         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34859
34860 2010-01-05  Eric Blake  <ebb9@byu.net>
34861
34862         maint: support 'make announcement' from a VPATH build
34863         * top/maint.mk (announcement): Look for correct NEWS file.
34864
34865 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34866
34867         utimens (fdutimens): ignore a negative FD, per contract
34868         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34869         when we have a valid file descriptor.  Otherwise, using a brand
34870         new glibc (with just-patched futimens that now fails with EBADF)
34871         would cause this function to fail with ENOSYS.
34872         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34873         See also http://bugzilla.redhat.com/552320.
34874
34875 2010-01-05  Eric Blake  <ebb9@byu.net>
34876
34877         strcase: document what it provides
34878         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34879         gnulib module.
34880         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34881         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34882
34883 2010-01-05  Jim Meyering  <meyering@redhat.com>
34884
34885         maint: remove useless inclusions of "xalloc.h"
34886         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34887         * lib/readtokens.c: Likewise.
34888         * lib/same.c: Likewise.
34889         * modules/getloadavg (Depends-on): Remove xalloc.
34890         * modules/readtokens: Likewise.
34891         * modules/same: Likewise.
34892
34893         maint.mk: include 4 more function names in alloca.h-checking regexp
34894         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34895         regexp.  Before, we would give a false-positive (saying alloca.h
34896         is included unnecessarily) when the only uses involved omitted symbols.
34897
34898         xalloc.h: use consistent formatting
34899         * lib/xalloc.h: Move declarations to start in the first column.
34900
34901 2010-01-05  Eric Blake  <ebb9@byu.net>
34902
34903         mkdir: avoid xalloc
34904         * lib/mkdir.c (includes): Drop unused header.
34905         Reported by John W. Eaton.
34906
34907 2010-01-04  Jim Meyering  <meyering@redhat.com>
34908
34909         nl_langinfo: avoid configure-time syntax error
34910         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34911         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34912         the empty string.  Don't let that provoke a shell syntax error.
34913
34914         regcomp, regexec, fnmatch: avoid array bounds read error
34915         * lib/regcomp.c (build_equiv_class): From glibc:
34916         Use only the low 24 bits of a findidx return value as an index
34917         into the weights array.  Patch by Ulrich Drepper:
34918         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34919         * lib/regexec.c (check_node_accept_bytes): Likewise.
34920         * lib/fnmatch_loop.c (FCT): Likewise.
34921
34922         regcomp: skip collseq lookup when there are no rules
34923         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34924         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34925
34926         regcomp: recognize ill-formed { } expressions
34927         * lib/regcomp.c (parse_dup_op): From glibc:
34928         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34929
34930         regcomp: fix typo in comment
34931         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34932         s/satisfy/satisfies/.
34933
34934         regcomp: sync from glibc: remove dead store
34935         * lib/regcomp.c (duplicate_node_closure): Remove useless
34936         search_duplicated_node call and dead store.
34937
34938         regcomp: sync from glibc; always use nl_langinfo
34939         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34940         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34941         * modules/regex (Depends-on): Add nl_langinfo.
34942
34943 2010-01-04  Eric Blake  <ebb9@byu.net>
34944
34945         fdopendir: fix configure test
34946         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34947
34948 2010-01-01  Bruno Haible  <bruno@clisp.org>
34949
34950         wchar: Remove unused configure check.
34951         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34952
34953 2010-01-01  Eric Blake  <ebb9@byu.net>
34954
34955         headers: make check of system header explicit
34956         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34957         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34958         ourselves.
34959         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34960         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34961         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34962         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34963         internals.
34964         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34965         missing.
34966         Suggested by Bruno Haible.
34967
34968 2010-01-01  Jim Meyering  <meyering@redhat.com>
34969
34970         ChangeLog: tweak to eliminate unnecessary copyright line
34971         * ChangeLog: Remove a copyright line that was mistakenly updated
34972         by today's update-copyright run.  Reported by Eric Blake.
34973
34974         test-update-copyright: don't let envvar setting cause test failure
34975         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34976
34977 2010-01-01  Bruno Haible  <bruno@clisp.org>
34978
34979         localename: Avoid gcc warning.
34980         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34981         function if it is not used.
34982
34983 2010-01-01  Jim Meyering  <meyering@redhat.com>
34984
34985         update nearly all FSF copyright year lists to include 2010
34986         Use the same procedure as for 2009, outlined in
34987         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34988
34989         version-etc: set COPYRIGHT_YEAR to 2010
34990         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34991
34992 2009-12-31  Eric Blake  <ebb9@byu.net>
34993
34994         doc: correct availability of cygwin 1.5.x getopt
34995         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34996         variables.
34997         * doc/posix-functions/opterr.texi (opterr): Likewise.
34998         * doc/posix-functions/optind.texi (optind): Likewise.
34999         * doc/posix-functions/optopt.texi (optopt): Likewise.
35000         * doc/posix-functions/tzname.texi (tzname): Likewise.
35001
35002         openat: update maintainer
35003         * modules/openat (Maintainer): Add myself.
35004
35005         utimens: avoid shadowing warning
35006         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35007         buffers into one, to avoid shadowing, as well as avoiding a
35008         redundant stat.
35009         Reported by Jim Meyering.
35010
35011         test-dup2: avoid compiler warning
35012         * tests/test-dup2.c (is_inheritable): Only define if used.
35013
35014 2010-01-01  Bruno Haible  <bruno@clisp.org>
35015
35016         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35017         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35018         defined, use wctomb instead of wcrtomb.
35019
35020 2010-01-01  Bruno Haible  <bruno@clisp.org>
35021
35022         iconv: Reject native Solaris iconv.
35023         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35024         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35025
35026 2009-12-31  Bruno Haible  <bruno@clisp.org>
35027
35028         * tests/test-signal.c (main): Remove test of 'SIG'.
35029
35030 2009-12-31  Bruno Haible  <bruno@clisp.org>
35031
35032         spawn: Fix incomplete fix.
35033         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35034         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35035         warnings for GNULIB_POSIXCHECK again.
35036         Reported by Eric Blake.
35037
35038 2009-12-31  Bruno Haible  <bruno@clisp.org>
35039
35040         Avoid namespace pollution on glibc systems.
35041         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35042         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35043         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35044         glibc systems.
35045
35046 2009-12-31  Bruno Haible  <bruno@clisp.org>
35047
35048         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35049         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35050         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35051         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35052         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35053         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35054         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35055
35056 2009-12-31  Bruno Haible  <bruno@clisp.org>
35057
35058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35059         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35060         afterwards.
35061
35062 2009-12-31  Bruno Haible  <bruno@clisp.org>
35063
35064         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35065         SYS_UTSNAME_H.
35066
35067 2009-12-31  Bruno Haible  <bruno@clisp.org>
35068
35069         spawn: Fix misapplied patch.
35070         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35071         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35072         warnings for GNULIB_POSIXCHECK.
35073
35074 2009-12-31  Bruno Haible  <bruno@clisp.org>
35075
35076         times: Update after sys_times changed.
35077         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35078         * modules/times (Files): Add it.
35079         (configure.ac): Invoke gl_FUNC_TIMES.
35080
35081 2009-12-31  Bruno Haible  <bruno@clisp.org>
35082
35083         Use AC_C_INLINE where necessary.
35084         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35085         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35086         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35087         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35088         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35089         * m4/mbiter.m4 (gl_MBITER): Likewise.
35090         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35091         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35092         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35093         * modules/u64 (configure.ac): Likewise.
35094
35095 2009-12-31  Bruno Haible  <bruno@clisp.org>
35096
35097         Use AC_C_INLINE instead of module 'inline' where possible.
35098         * modules/inline (Description): Clarify purpose.
35099         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35100         * modules/count-one-bits (Depends-on): Remove inline.
35101         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35102         * modules/openat (Depends-on): Remove inline.
35103         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35104         instead of depending on module 'inline'.
35105         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35106         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35107         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35108         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35109         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35110         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35111         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35112         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35113         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35114         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35115         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35116         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35117         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35118         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35119         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35120         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35121         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35122         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35123         Likewise.
35124         * modules/unictype/property-ascii-hex-digit (Depends-on,
35125         configure.ac): Likewise.
35126         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35127         configure.ac): Likewise.
35128         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35129         configure.ac): Likewise.
35130         * modules/unictype/property-bidi-block-separator (Depends-on,
35131         configure.ac): Likewise.
35132         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35133         configure.ac): Likewise.
35134         * modules/unictype/property-bidi-common-separator (Depends-on,
35135         configure.ac): Likewise.
35136         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35137         Likewise.
35138         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35139         configure.ac): Likewise.
35140         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35141         configure.ac): Likewise.
35142         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35143         configure.ac): Likewise.
35144         * modules/unictype/property-bidi-european-digit (Depends-on,
35145         configure.ac): Likewise.
35146         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35147         configure.ac): Likewise.
35148         * modules/unictype/property-bidi-left-to-right (Depends-on,
35149         configure.ac): Likewise.
35150         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35151         configure.ac): Likewise.
35152         * modules/unictype/property-bidi-other-neutral (Depends-on,
35153         configure.ac): Likewise.
35154         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35155         Likewise.
35156         * modules/unictype/property-bidi-segment-separator (Depends-on,
35157         configure.ac): Likewise.
35158         * modules/unictype/property-bidi-whitespace (Depends-on,
35159         configure.ac): Likewise.
35160         * modules/unictype/property-combining (Depends-on, configure.ac):
35161         Likewise.
35162         * modules/unictype/property-composite (Depends-on, configure.ac):
35163         Likewise.
35164         * modules/unictype/property-currency-symbol (Depends-on,
35165         configure.ac): Likewise.
35166         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35167         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35168         Likewise.
35169         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35170         configure.ac): Likewise.
35171         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35172         Likewise.
35173         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35174         Likewise.
35175         * modules/unictype/property-extender (Depends-on, configure.ac):
35176         Likewise.
35177         * modules/unictype/property-format-control (Depends-on, configure.ac):
35178         Likewise.
35179         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35180         Likewise.
35181         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35182         Likewise.
35183         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35184         Likewise.
35185         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35186         Likewise.
35187         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35188         Likewise.
35189         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35190         Likewise.
35191         * modules/unictype/property-id-start (Depends-on, configure.ac):
35192         Likewise.
35193         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35194         Likewise.
35195         * modules/unictype/property-ids-binary-operator (Depends-on,
35196         configure.ac): Likewise.
35197         * modules/unictype/property-ids-trinary-operator (Depends-on,
35198         configure.ac): Likewise.
35199         * modules/unictype/property-ignorable-control (Depends-on,
35200         configure.ac): Likewise.
35201         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35202         Likewise.
35203         * modules/unictype/property-join-control (Depends-on, configure.ac):
35204         Likewise.
35205         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35206         Likewise.
35207         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35208         Likewise.
35209         * modules/unictype/property-logical-order-exception (Depends-on,
35210         configure.ac): Likewise.
35211         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35212         Likewise.
35213         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35214         * modules/unictype/property-non-break (Depends-on, configure.ac):
35215         Likewise.
35216         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35217         Likewise.
35218         * modules/unictype/property-numeric (Depends-on, configure.ac):
35219         Likewise.
35220         * modules/unictype/property-other-alphabetic (Depends-on,
35221         configure.ac): Likewise.
35222         * modules/unictype/property-other-default-ignorable-code-point
35223         (Depends-on, configure.ac): Likewise.
35224         * modules/unictype/property-other-grapheme-extend (Depends-on,
35225         configure.ac): Likewise.
35226         * modules/unictype/property-other-id-continue (Depends-on,
35227         configure.ac): Likewise.
35228         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35229         Likewise.
35230         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35231         Likewise.
35232         * modules/unictype/property-other-math (Depends-on, configure.ac):
35233         Likewise.
35234         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35235         Likewise.
35236         * modules/unictype/property-paired-punctuation (Depends-on,
35237         configure.ac): Likewise.
35238         * modules/unictype/property-paragraph-separator (Depends-on,
35239         configure.ac): Likewise.
35240         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35241         Likewise.
35242         * modules/unictype/property-pattern-white-space (Depends-on,
35243         configure.ac): Likewise.
35244         * modules/unictype/property-private-use (Depends-on, configure.ac):
35245         Likewise.
35246         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35247         Likewise.
35248         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35249         Likewise.
35250         * modules/unictype/property-radical (Depends-on, configure.ac):
35251         Likewise.
35252         * modules/unictype/property-sentence-terminal (Depends-on,
35253         configure.ac): Likewise.
35254         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35255         Likewise.
35256         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35257         * modules/unictype/property-terminal-punctuation (Depends-on,
35258         configure.ac): Likewise.
35259         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35260         Likewise.
35261         * modules/unictype/property-unassigned-code-value (Depends-on,
35262         configure.ac): Likewise.
35263         * modules/unictype/property-unified-ideograph (Depends-on,
35264         configure.ac): Likewise.
35265         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35266         Likewise.
35267         * modules/unictype/property-variation-selector (Depends-on,
35268         configure.ac): Likewise.
35269         * modules/unictype/property-white-space (Depends-on, configure.ac):
35270         Likewise.
35271         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35272         Likewise.
35273         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35274         Likewise.
35275         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35276         Likewise.
35277         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35278         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35279         Likewise.
35280
35281 2009-12-31  Bruno Haible  <bruno@clisp.org>
35282
35283         Remove unnecessary AC_C_INLINE invocation.
35284         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35285         since 2009-08-21.
35286
35287 2009-12-31  Jim Meyering  <meyering@redhat.com>
35288
35289         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35290         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35291         With this change, we can all remove the gpg_key_ID = ... definition
35292         from our respective cfg.mk files.
35293
35294         maint.mk: create announcement template in ~/, not in /tmp
35295         * top/maint.mk (emit_upload_commands): Adjust.
35296         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35297         Remove temporary file, .ci-msg.
35298
35299 2009-12-31  Eric Blake  <ebb9@byu.net>
35300
35301         link-warning: always build headers with link warnings
35302         * modules/arpa_inet (Makefile.am): Always build replacement
35303         header.
35304         * modules/ctype (Makefile.am): Likewise.
35305         * modules/dirent (Makefile.am): Likewise.
35306         * modules/inttypes (Makefile.am): Likewise.
35307         * modules/langinfo (Makefile.am): Likewise.
35308         * modules/locale (Makefile.am): Likewise.
35309         * modules/spawn (Makefile.am): Likewise.
35310         * modules/sys_file (Makefile.am): Likewise.
35311         * modules/sys_ioctl (Makefile.am): Likewise.
35312         * modules/sys_select (Makefile.am): Likewise.
35313         * modules/sys_socket (Makefile.am): Likewise.
35314         * modules/sys_times (Makefile.am): Likewise.
35315         * modules/sys_utsname (Makefile.am): Likewise.
35316         * modules/sys_wait (Makefile.am): Likewise.
35317         * modules/wchar (Makefile.am): Likewise.
35318         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35319         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35320         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35321         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35322         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35323         Likewise.
35324         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35325         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35326         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35327         Likewise.
35328         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35329         Likewise.
35330         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35331         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35332         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35334         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35335         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35336         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35337         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35338         (gl_WCHAR_H_DEFAULTS): Likewise.
35339
35340 2009-12-31  Eric Blake  <ebb9@byu.net>
35341
35342         signal, spawn: use link warnings
35343         * lib/signal.in.h (sigset_t): Make unconditional.
35344         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35345         (sigpending, sigprocmask, sigaction): Add link warnings.
35346         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35347         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35348         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35349         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35350         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35351         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35352         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35353         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35354         (posix_spawn_file_actions_destroy)
35355         (posix_spawn_file_actions_addopen)
35356         (posix_spawn_file_actions_addclose)
35357         (posix_spawn_file_actions_adddup2): Likewise.
35358         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35359         * tests/test-signal.c (main): Enhance test.
35360
35361         spawn: improve wrapper support
35362         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35363         (gl_SPAWN_H_DEFAULTS): New defaults.
35364         * modules/spawn (Makefile.am): Substitute them.
35365         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35366         Only declare if missing or broken.
35367
35368         sys_times, sys_utsname: use include_next
35369         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35370         header.
35371         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35372         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35373         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35374         * modules/sys_times (Depends-on): Add include_next.
35375         (Makefile.am): Substitute additional values.
35376         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35377         * lib/sys_times.in.h (includes): Include native header, if
35378         available.
35379         * lib/sys_utsname.in.h (includes): Likewise.
35380         * tests/test-sys_times.c (main): Enhance test.
35381
35382         fdutimensat: revert prior patch
35383         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35384         utimens.h.
35385         Reported by Bruno Haible.
35386
35387 2009-12-30  Eric Blake  <ebb9@byu.net>
35388
35389         sys_wait: drop link-warning dependency
35390         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35391         link-warning efforts.
35392         * lib/sys_wait.in.h: Likewise.
35393
35394         fdutimensat: remove bogus dependency
35395         * modules/fdutimensat (Depends-on): Drop inline.
35396
35397         unistd: fix typo
35398         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35399
35400 2009-12-30  Bruno Haible  <bruno@clisp.org>
35401
35402         Fix compilation error with Solaris cc.
35403         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35404         * lib/unicase/u16-is-invariant.c: Likewise.
35405         * lib/unicase/u32-is-invariant.c: Likewise.
35406         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35407
35408 2009-12-30  Bruno Haible  <bruno@clisp.org>
35409
35410         Fix test crash.
35411         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35412         locales.
35413         Reported by Simon Josefsson <simon@josefsson.org>.
35414
35415 2009-12-30  Bruno Haible  <bruno@clisp.org>
35416
35417         Fix compilation error on most platforms.
35418         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35419         Reported by Simon Josefsson <simon@josefsson.org>
35420         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35421
35422 2009-12-30  Eric Blake  <ebb9@byu.net>
35423
35424         futimens, utimensat: work around ntfs-3g bug
35425         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35426         a ctime bug is present, and expand workaround to cover ntfs-3g.
35427         * lib/utimens.c (fdutimens, lutimens): Likewise.
35428         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35429         (validate_timespec): Adjust return value.
35430         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35431         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35432         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35433
35434 2009-12-29  Eric Blake  <ebb9@byu.net>
35435
35436         link-warning: make usage consistent
35437         * modules/ctype (Depends-on): Add link-warning.
35438         (Makefile.am): Update rules accordingly.
35439         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35440         * modules/locale (Depends-on, Makefile.am): Likewise.
35441         * modules/sys_file (Makefile.am): Likewise.
35442         * modules/getopt-posix (Makefile.am): Delete unused link warning
35443         efforts.
35444         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35445         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35446         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35447         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35448
35449         stdio: remove unused variables
35450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35451         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35452         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35453
35454         tests: test more substitute headers
35455         * modules/ctype-tests: New file.
35456         * modules/dirent-tests: Likewise.
35457         * modules/spawn-tests: Likewise.
35458         * modules/sys_file-tests: Likewise.
35459         * modules/sys_ioctl-tests: Likewise.
35460         * modules/sys_wait-tests: Likewise.
35461         * tests/test-ctype.c: Likewise.
35462         * tests/test-dirent.c: Likewise.
35463         * tests/test-spawn.c: Likewise.
35464         * tests/test-sys_file.c: Likewise.
35465         * tests/test-sys_ioctl.c: Likewise.
35466         * tests/test-sys_wait.c: Likewise.
35467         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35468         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35469         whether or not flock is in use.
35470
35471         tests: remove License section from module
35472         * modules/arpa_inet-tests: Remove unneeded section.
35473         * modules/byteswap-tests: Likewise.
35474         * modules/ceilf-tests: Likewise.
35475         * modules/ceill-tests: Likewise.
35476         * modules/crypto/des-tests: Likewise.
35477         * modules/crypto/gc-arcfour-tests: Likewise.
35478         * modules/crypto/gc-arctwo-tests: Likewise.
35479         * modules/crypto/gc-des-tests: Likewise.
35480         * modules/crypto/gc-hmac-md5-tests: Likewise.
35481         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35482         * modules/crypto/gc-md2-tests: Likewise.
35483         * modules/crypto/gc-md4-tests: Likewise.
35484         * modules/crypto/gc-md5-tests: Likewise.
35485         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35486         * modules/crypto/gc-rijndael-tests: Likewise.
35487         * modules/crypto/gc-sha1-tests: Likewise.
35488         * modules/crypto/gc-tests: Likewise.
35489         * modules/crypto/md2-tests: Likewise.
35490         * modules/crypto/md4-tests: Likewise.
35491         * modules/fcntl-h-tests: Likewise.
35492         * modules/floorf-tests: Likewise.
35493         * modules/floorl-tests: Likewise.
35494         * modules/frexp-nolibm-tests: Likewise.
35495         * modules/frexp-tests: Likewise.
35496         * modules/frexpl-nolibm-tests: Likewise.
35497         * modules/frexpl-tests: Likewise.
35498         * modules/getaddrinfo-tests: Likewise.
35499         * modules/inttypes-tests: Likewise.
35500         * modules/isfinite-tests: Likewise.
35501         * modules/isinf-tests: Likewise.
35502         * modules/ldexpl-tests: Likewise.
35503         * modules/locale-tests: Likewise.
35504         * modules/math-tests: Likewise.
35505         * modules/netdb-tests: Likewise.
35506         * modules/netinet_in-tests: Likewise.
35507         * modules/printf-frexp-tests: Likewise.
35508         * modules/printf-frexpl-tests: Likewise.
35509         * modules/priv-set-tests: Likewise.
35510         * modules/random_r-tests: Likewise.
35511         * modules/round-tests: Likewise.
35512         * modules/roundf-tests: Likewise.
35513         * modules/roundl-tests: Likewise.
35514         * modules/search-tests: Likewise.
35515         * modules/select-tests: Likewise.
35516         * modules/signal-tests: Likewise.
35517         * modules/stdbool-tests: Likewise.
35518         * modules/stddef-tests: Likewise.
35519         * modules/stdint-tests: Likewise.
35520         * modules/stdio-tests: Likewise.
35521         * modules/stdlib-tests: Likewise.
35522         * modules/string-tests: Likewise.
35523         * modules/strings-tests: Likewise.
35524         * modules/sys_select-tests: Likewise.
35525         * modules/sys_socket-tests: Likewise.
35526         * modules/sys_stat-tests: Likewise.
35527         * modules/sys_time-tests: Likewise.
35528         * modules/sys_utsname-tests: Likewise.
35529         * modules/sysexits-tests: Likewise.
35530         * modules/time-tests: Likewise.
35531         * modules/trunc-tests: Likewise.
35532         * modules/truncf-tests: Likewise.
35533         * modules/truncl-tests: Likewise.
35534         * modules/tsearch-tests: Likewise.
35535         * modules/unistd-tests: Likewise.
35536         * modules/wchar-tests: Likewise.
35537         * modules/wctype-tests: Likewise.
35538
35539         tests: fix license on several tests
35540         * tests/test-des.c: Update to GPLv3+.
35541         * tests/test-flock.c: Likewise.
35542         * tests/test-fsync.c: Likewise.
35543         * tests/test-futimens.h: Likewise.
35544         * tests/test-gc-arcfour.c: Likewise.
35545         * tests/test-gc-arctwo.c: Likewise.
35546         * tests/test-gc-des.c: Likewise.
35547         * tests/test-gc-hmac-md5.c: Likewise.
35548         * tests/test-gc-hmac-sha1.c: Likewise.
35549         * tests/test-gc-md2.c: Likewise.
35550         * tests/test-gc-md4.c: Likewise.
35551         * tests/test-gc-md5.c: Likewise.
35552         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35553         * tests/test-gc-rijndael.c: Likewise.
35554         * tests/test-gc-sha1.c: Likewise.
35555         * tests/test-gc.c: Likewise.
35556         * tests/test-getcwd.c: Likewise.
35557         * tests/test-link.c: Likewise.
35558         * tests/test-link.h: Likewise.
35559         * tests/test-lutimens.h: Likewise.
35560         * tests/test-md2.c: Likewise.
35561         * tests/test-md4.c: Likewise.
35562         * tests/test-mkdir.h: Likewise.
35563         * tests/test-rename.c: Likewise.
35564         * tests/test-rename.h: Likewise.
35565         * tests/test-safe-alloc.c: Likewise.
35566         * tests/test-utimens-common.h: Likewise.
35567         * tests/test-utimens.h: Likewise.
35568
35569         maint: sync license texts
35570         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35571         * doc/gpl-3.0.texi: Revert copyright year update.
35572         * doc/lgpl-3.0.texi: Likewise.
35573
35574 2009-12-29  Jim Meyering  <meyering@redhat.com>
35575
35576         update nearly all FSF copyright year lists to include 2009
35577         The files named by the following are exempted:
35578             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35579               test -f "$dst" && { echo "$dst"; continue; }
35580               test -d "$dst" || continue
35581               echo "$dst"/$(basename "$src")
35582             done > exempt
35583             git ls-files tests/unictype >> exempt
35584         In the remaining files, convert to all-interval notation if
35585         - there is already at least one year interval like 2000-2003
35586         - the file is maintained by me
35587         - the file is in lib/uni*/, where that style already prevails
35588         Otherwise, use update-copyright's default.
35589
35590 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35591         and Eric Blake  <ebb9@byu.net>
35592
35593         tests: don't require debug system() to pass
35594         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35595         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35596         * tests/test-unlink.h (test_unlink_func): Likewise.
35597         * tests/test-fstatat.c (main): ...into callers.
35598         * tests/test-lstat.c (main): Likewise.
35599         * tests/test-rmdir.c (main): Likewise.
35600         * tests/test-unlink.c (main): Likewise.
35601         * tests/test-unlinkat.c (main): Likewise.
35602         * tests/test-areadlink-with-size.c (main): Don't require a
35603         debug-only system call to pass, aiding cross-testing to mingw.
35604         * tests/test-areadlink.c (main): Likewise.
35605         * tests/test-areadlinkat-with-size.c (main): Likewise.
35606         * tests/test-areadlinkat.c (main): Likewise.
35607         * tests/test-canonicalize-lgpl.c (main): Likewise.
35608         * tests/test-canonicalize.c (main): Likewise.
35609         * tests/test-chown.c (main): Likewise.
35610         * tests/test-fchownat.c (main): Likewise.
35611         * tests/test-lchown.c (main): Likewise.
35612         * tests/test-fdutimensat.c (main): Likewise.
35613         * tests/test-futimens.c (main): Likewise.
35614         * tests/test-link.c (main): Likewise.
35615         * tests/test-linkat.c (main): Likewise.
35616         * tests/test-mkdir.c (main): Likewise.
35617         * tests/test-mkdirat.c (main): Likewise.
35618         * tests/test-mkfifo.c (main): Likewise.
35619         * tests/test-mkfifoat.c (main): Likewise.
35620         * tests/test-mknod.c (main): Likewise.
35621         * tests/test-readlink.c (main): Likewise.
35622         * tests/test-remove.c (main): Likewise.
35623         * tests/test-rename.c (main): Likewise.
35624         * tests/test-renameat.c (main): Likewise.
35625         * tests/test-symlink.c (main): Likewise.
35626         * tests/test-symlinkat.c (main): Likewise.
35627         * tests/test-utimens.c (main): Likewise.
35628         * tests/test-utimensat.c (main): Likewise.
35629
35630 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35631
35632         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35633         on $(UNUSED_PARAMETER_H) to avoid build failure.
35634
35635 2009-12-28  Jim Meyering  <meyering@redhat.com>
35636
35637         update-copyright: you may specify a max. line length other than 72
35638         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35639
35640         maint: use consistent FSF copyright line syntax
35641         * lib/posixtm.c: Add missing comma in FSF copyright line.
35642         * lib/posixtm.h: Likewise.
35643         * lib/getugroups.c: Add missing ", Inc.".
35644
35645         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35646         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35647         FSF copyright line.  Remove trailing blanks.
35648
35649 2009-12-28  Eric Blake  <ebb9@byu.net>
35650
35651         test-dup2: reduce dependencies
35652         * modules/cloexec (Configure.ac): Set witness.
35653         * modules/dup2-tests (Depends-on): Drop cloexec.
35654         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35655         not present.
35656         Suggested by Bruno Haible.
35657
35658 2009-12-26  Bruno Haible  <bruno@clisp.org>
35659
35660         Remove an unneeded dependency.
35661         * modules/fseterr (Depends-on): Remove dup2.
35662
35663 2009-12-26  Eric Blake  <ebb9@byu.net>
35664
35665         tests: use macros.h in more places
35666         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35667         (ASSERT_STREAM): Provide default of stderr.
35668         * tests/test-dirent-safer.c: Include macros.h, using alternate
35669         stream for assertions.
35670         * tests/test-dup-safer.c: Likewise.
35671         * tests/test-freopen-safer.c: Likewise.
35672         * tests/test-getopt.c: Likewise.
35673         * tests/test-openat-safer.c: Likewise.
35674         * tests/test-pipe.c: Likewise.
35675         * tests/test-popen-safer.c: Likewise.
35676         * modules/dirent-safer-tests (Files): Include macros.h.
35677         * modules/unistd-safer-tests (Files): Likewise.
35678         * modules/freopen-safer-tests (Files): Likewise.
35679         * modules/getopt-posix-tests (Files): Likewise.
35680         * modules/openat-safer-tests (Files): Likewise.
35681         * modules/pipe-tests (Files): Likewise.
35682
35683 2009-12-26  Bruno Haible  <bruno@clisp.org>
35684
35685         javacomp: Portability fix.
35686         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35687         that it also works on Solaris.
35688
35689 2009-12-26  Bruno Haible  <bruno@clisp.org>
35690
35691         localename: Fix storage allocation of gl_locale_name_thread's result.
35692         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35693         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35694         all platforms that have 'uselocale'.
35695         (gl_locale_name_thread_unsafe): New function, extracted from
35696         gl_locale_name_thread.
35697         (gl_locale_name_thread): Call struniq on all platforms that have
35698         'uselocale'.
35699         * tests/test-localename.c (test_locale_name_thread): Check that the
35700         resulting strings are permanently allocated.
35701         * modules/localename-tests (Depends-on): Add strdup.
35702
35703 2009-12-26  Bruno Haible  <bruno@clisp.org>
35704
35705         * tests/test-localename.c (categories): Fill in the strings.
35706
35707 2009-12-26  Jim Meyering  <meyering@redhat.com>
35708
35709         isdir: complete the removal of m4/isdir.m4
35710         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35711
35712         isdir: clean up, since at least grep still uses it
35713         * lib/isdir.c: Include "isdir.h".
35714         (S_ISDIR): Remove now-unneeded definition.
35715         * modules/isdir (Files): Add lib/isdir.h.
35716         * lib/isdir.h: New file, with declaration.
35717         * m4/isdir.m4: Remove file -- unneeded.
35718
35719 2009-12-25  Bruno Haible  <bruno@clisp.org>
35720
35721         selinux-h: Make generated .h files standalone.
35722         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35723         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35724         * lib/se-selinux.in.h: Likewise.
35725         * modules/selinux-h (Depends-on): Add unused-parameter.
35726         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35727         selinux/selinux.h and selinux/context.h.
35728         Suggested by Eric Blake.
35729
35730 2009-12-25  Bruno Haible  <bruno@clisp.org>
35731
35732         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35733         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35734         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35735         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35736         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35737
35738 2009-12-24  Bruno Haible  <bruno@clisp.org>
35739
35740         openat: Fix warning.
35741         * lib/openat-proc.c: Include <unistd.h>.
35742
35743 2009-12-24  Bruno Haible  <bruno@clisp.org>
35744
35745         New module 'unused-parameter'.
35746         * build-aux/unused-parameter.h: New file, extracted from earlier
35747         gnulib-common.m4.
35748         * modules/unused-parameter: New file.
35749         * lib/unistr.h: Include unused-parameter.h.
35750         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35751         _GL_UNUSED.
35752         * modules/unistr/base (Depends-on): Add unused-parameter.
35753
35754 2009-12-24  Bruno Haible  <bruno@clisp.org>
35755
35756         Add missing dependencies to 'extensions' module.
35757         * m4/extensions.m4: Add comment.
35758         * modules/accept4 (Depends-on): Add extensions.
35759         * modules/dup3 (Depends-on): Likewise.
35760         * modules/fcntl (Depends-on): Likewise.
35761         * modules/futimens (Depends-on): Likewise.
35762         * modules/mknod (Depends-on): Likewise.
35763         * modules/pipe2 (Depends-on): Likewise.
35764         * modules/stat-time (Depends-on): Likewise.
35765         * modules/strcasestr-simple (Depends-on): Likewise.
35766         * modules/strsignal (Depends-on): Likewise.
35767         * modules/utimensat (Depends-on): Likewise.
35768         * modules/localcharset (Depends-on): Likewise. Needed because of
35769         gl_FCNTL_O_FLAGS.
35770         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35771         AC_TYPE_MBSTATE_T.
35772         * modules/wcsnrtombs (Depends-on): Likewise.
35773         * modules/wcsrtombs (Depends-on): Likewise.
35774
35775 2009-12-24  Bruno Haible  <bruno@clisp.org>
35776
35777         binary-io: Avoid gcc warning due to SET_BINARY.
35778         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35779         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35780
35781 2009-12-24  Bruno Haible  <bruno@clisp.org>
35782
35783         Avoid future namespace pollution on glibc systems.
35784         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35785         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35786         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35787         glibc systems.
35788
35789 2009-12-24  Bruno Haible  <bruno@clisp.org>
35790
35791         Refactor common macros used in tests.
35792         * tests/macros.h: New file.
35793         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35794         and/or <stdlib.h>, if appropriate.
35795         (ASSERT, SIZEOF): Remove macros.
35796         * tests/test-areadlink-with-size.c: Likewise.
35797         * tests/test-areadlinkat.c: Likewise.
35798         * tests/test-areadlinkat-with-size.c: Likewise.
35799         * tests/test-argmatch.c: Likewise.
35800         * tests/test-argv-iter.c: Likewise.
35801         * tests/test-array-mergesort.c: Likewise.
35802         * tests/test-array_list.c: Likewise.
35803         * tests/test-array_oset.c: Likewise.
35804         * tests/test-avltree_list.c: Likewise.
35805         * tests/test-avltree_oset.c: Likewise.
35806         * tests/test-avltreehash_list.c: Likewise.
35807         * tests/test-base64.c: Likewise.
35808         * tests/test-binary-io.c: Likewise.
35809         * tests/test-bitrotate.c: Likewise.
35810         * tests/test-btowc.c: Likewise.
35811         * tests/test-byteswap.c: Likewise.
35812         * tests/test-c-ctype.c: Likewise.
35813         * tests/test-c-stack.c: Likewise.
35814         * tests/test-c-strcasecmp.c: Likewise.
35815         * tests/test-c-strcasestr.c: Likewise.
35816         * tests/test-c-strncasecmp.c: Likewise.
35817         * tests/test-c-strstr.c: Likewise.
35818         * tests/test-canonicalize-lgpl.c: Likewise.
35819         * tests/test-canonicalize.c: Likewise.
35820         * tests/test-carray_list.c: Likewise.
35821         * tests/test-ceilf1.c: Likewise.
35822         * tests/test-ceilf2.c: Likewise.
35823         * tests/test-ceill.c: Likewise.
35824         * tests/test-chown.c: Likewise.
35825         * tests/test-cloexec.c: Likewise.
35826         * tests/test-copy-acl.c: Likewise.
35827         * tests/test-copy-file.c: Likewise.
35828         * tests/test-count-one-bits.c: Likewise.
35829         * tests/test-dprintf-posix.c: Likewise.
35830         * tests/test-dup2.c: Likewise.
35831         * tests/test-dup3.c: Likewise.
35832         * tests/test-duplocale.c: Likewise.
35833         * tests/test-fbufmode.c: Likewise.
35834         * tests/test-fchdir.c: Likewise.
35835         * tests/test-fchownat.c: Likewise.
35836         * tests/test-fcntl-safer.c: Likewise.
35837         * tests/test-fcntl.c: Likewise.
35838         * tests/test-fdopendir.c: Likewise.
35839         * tests/test-fdutimensat.c: Likewise.
35840         * tests/test-fflush2.c: Likewise.
35841         * tests/test-file-has-acl.c: Likewise.
35842         * tests/test-filevercmp.c: Likewise.
35843         * tests/test-flock.c: Likewise.
35844         * tests/test-floorf1.c: Likewise.
35845         * tests/test-floorf2.c: Likewise.
35846         * tests/test-floorl.c: Likewise.
35847         * tests/test-fnmatch.c: Likewise.
35848         * tests/test-fopen.h: Likewise.
35849         * tests/test-fpending.c: Likewise.
35850         * tests/test-fprintf-posix.c: Likewise.
35851         * tests/test-fpurge.c: Likewise.
35852         * tests/test-freadable.c: Likewise.
35853         * tests/test-freadahead.c: Likewise.
35854         * tests/test-freading.c: Likewise.
35855         * tests/test-freadptr.c: Likewise.
35856         * tests/test-freadptr2.c: Likewise.
35857         * tests/test-freadseek.c: Likewise.
35858         * tests/test-freopen.c: Likewise.
35859         * tests/test-frexp.c: Likewise.
35860         * tests/test-frexpl.c: Likewise.
35861         * tests/test-fseek.c: Likewise.
35862         * tests/test-fseeko.c: Likewise.
35863         * tests/test-fstatat.c: Likewise.
35864         * tests/test-fstrcmp.c: Likewise.
35865         * tests/test-fsync.c: Likewise.
35866         * tests/test-ftell.c: Likewise.
35867         * tests/test-ftello.c: Likewise.
35868         * tests/test-func.c: Likewise.
35869         * tests/test-futimens.c: Likewise.
35870         * tests/test-fwritable.c: Likewise.
35871         * tests/test-fwriting.c: Likewise.
35872         * tests/test-getcwd.c: Likewise.
35873         * tests/test-getdate.c: Likewise.
35874         * tests/test-getdelim.c: Likewise.
35875         * tests/test-getdtablesize.c: Likewise.
35876         * tests/test-getgroups.c: Likewise.
35877         * tests/test-getline.c: Likewise.
35878         * tests/test-getndelim2.c: Likewise.
35879         * tests/test-glob.c: Likewise.
35880         * tests/test-hash.c: Likewise.
35881         * tests/test-i-ring.c: Likewise.
35882         * tests/test-iconv-utf.c: Likewise.
35883         * tests/test-iconv.c: Likewise.
35884         * tests/test-idpriv-drop.c: Likewise.
35885         * tests/test-idpriv-droptemp.c: Likewise.
35886         * tests/test-inet_ntop.c: Likewise.
35887         * tests/test-inet_pton.c: Likewise.
35888         * tests/test-isblank.c: Likewise.
35889         * tests/test-isfinite.c: Likewise.
35890         * tests/test-isinf.c: Likewise.
35891         * tests/test-isnan.c: Likewise.
35892         * tests/test-isnand.h: Likewise.
35893         * tests/test-isnanf.h: Likewise.
35894         * tests/test-isnanl.h: Likewise.
35895         * tests/test-lchown.c: Likewise.
35896         * tests/test-ldexpl.c: Likewise.
35897         * tests/test-link.c: Likewise.
35898         * tests/test-linkat.c: Likewise.
35899         * tests/test-linked_list.c: Likewise.
35900         * tests/test-linkedhash_list.c: Likewise.
35901         * tests/test-localename.c: Likewise.
35902         * tests/test-lseek.c: Likewise.
35903         * tests/test-lstat.c: Likewise.
35904         * tests/test-mbmemcasecmp.c: Likewise.
35905         * tests/test-mbmemcasecoll.c: Likewise.
35906         * tests/test-mbrtowc.c: Likewise.
35907         * tests/test-mbscasecmp.c: Likewise.
35908         * tests/test-mbscasestr1.c: Likewise.
35909         * tests/test-mbscasestr2.c: Likewise.
35910         * tests/test-mbscasestr3.c: Likewise.
35911         * tests/test-mbscasestr4.c: Likewise.
35912         * tests/test-mbschr.c: Likewise.
35913         * tests/test-mbscspn.c: Likewise.
35914         * tests/test-mbsinit.c: Likewise.
35915         * tests/test-mbsncasecmp.c: Likewise.
35916         * tests/test-mbsnrtowcs.c: Likewise.
35917         * tests/test-mbspbrk.c: Likewise.
35918         * tests/test-mbspcasecmp.c: Likewise.
35919         * tests/test-mbsrchr.c: Likewise.
35920         * tests/test-mbsrtowcs.c: Likewise.
35921         * tests/test-mbsspn.c: Likewise.
35922         * tests/test-mbsstr1.c: Likewise.
35923         * tests/test-mbsstr2.c: Likewise.
35924         * tests/test-mbsstr3.c: Likewise.
35925         * tests/test-memchr.c: Likewise.
35926         * tests/test-memchr2.c: Likewise.
35927         * tests/test-memcmp.c: Likewise.
35928         * tests/test-memmem.c: Likewise.
35929         * tests/test-memrchr.c: Likewise.
35930         * tests/test-mkdir.c: Likewise.
35931         * tests/test-mkdirat.c: Likewise.
35932         * tests/test-mkfifo.c: Likewise.
35933         * tests/test-mkfifoat.c: Likewise.
35934         * tests/test-mknod.c: Likewise.
35935         * tests/test-nanosleep.c: Likewise.
35936         * tests/test-nl_langinfo.c: Likewise.
35937         * tests/test-obstack-printf.c: Likewise.
35938         * tests/test-open.c: Likewise.
35939         * tests/test-openat.c: Likewise.
35940         * tests/test-pipe-filter-gi1.c: Likewise.
35941         * tests/test-pipe-filter-gi2-main.c: Likewise.
35942         * tests/test-pipe-filter-ii1.c: Likewise.
35943         * tests/test-pipe-filter-ii2-main.c: Likewise.
35944         * tests/test-pipe2.c: Likewise.
35945         * tests/test-popen.h: Likewise.
35946         * tests/test-posixtm.c: Likewise.
35947         * tests/test-pread.c: Likewise.
35948         * tests/test-printf-frexp.c: Likewise.
35949         * tests/test-printf-frexpl.c: Likewise.
35950         * tests/test-printf-posix.c: Likewise.
35951         * tests/test-priv-set.c: Likewise.
35952         * tests/test-quotearg.c: Likewise.
35953         * tests/test-random_r.c: Likewise.
35954         * tests/test-rawmemchr.c: Likewise.
35955         * tests/test-rbtree_list.c: Likewise.
35956         * tests/test-rbtree_oset.c: Likewise.
35957         * tests/test-rbtreehash_list.c: Likewise.
35958         * tests/test-readlink.c: Likewise.
35959         * tests/test-remove.c: Likewise.
35960         * tests/test-rename.c: Likewise.
35961         * tests/test-renameat.c: Likewise.
35962         * tests/test-rmdir.c: Likewise.
35963         * tests/test-round1.c: Likewise.
35964         * tests/test-roundf1.c: Likewise.
35965         * tests/test-roundl.c: Likewise.
35966         * tests/test-safe-alloc.c: Likewise.
35967         * tests/test-sameacls.c: Likewise.
35968         * tests/test-set-mode-acl.c: Likewise.
35969         * tests/test-setenv.c: Likewise.
35970         * tests/test-sigaction.c: Likewise.
35971         * tests/test-signbit.c: Likewise.
35972         * tests/test-sleep.c: Likewise.
35973         * tests/test-snprintf-posix.c: Likewise.
35974         * tests/test-snprintf.c: Likewise.
35975         * tests/test-sprintf-posix.c: Likewise.
35976         * tests/test-stat-time.c: Likewise.
35977         * tests/test-stat.c: Likewise.
35978         * tests/test-strcasestr.c: Likewise.
35979         * tests/test-strchrnul.c: Likewise.
35980         * tests/test-strerror.c: Likewise.
35981         * tests/test-striconv.c: Likewise.
35982         * tests/test-striconveh.c: Likewise.
35983         * tests/test-striconveha.c: Likewise.
35984         * tests/test-strsignal.c: Likewise.
35985         * tests/test-strstr.c: Likewise.
35986         * tests/test-strtod.c: Likewise.
35987         * tests/test-strverscmp.c: Likewise.
35988         * tests/test-symlink.c: Likewise.
35989         * tests/test-symlinkat.c: Likewise.
35990         * tests/test-trunc1.c: Likewise.
35991         * tests/test-trunc2.c: Likewise.
35992         * tests/test-truncf1.c: Likewise.
35993         * tests/test-truncf2.c: Likewise.
35994         * tests/test-truncl.c: Likewise.
35995         * tests/test-uname.c: Likewise.
35996         * tests/test-unlink.c: Likewise.
35997         * tests/test-unlinkat.c: Likewise.
35998         * tests/test-unsetenv.c: Likewise.
35999         * tests/test-usleep.c: Likewise.
36000         * tests/test-utimens.c: Likewise.
36001         * tests/test-utimensat.c: Likewise.
36002         * tests/test-vasnprintf-posix.c: Likewise.
36003         * tests/test-vasnprintf-posix2.c: Likewise.
36004         * tests/test-vasnprintf.c: Likewise.
36005         * tests/test-vasprintf-posix.c: Likewise.
36006         * tests/test-vasprintf.c: Likewise.
36007         * tests/test-vdprintf-posix.c: Likewise.
36008         * tests/test-vfprintf-posix.c: Likewise.
36009         * tests/test-vprintf-posix.c: Likewise.
36010         * tests/test-vsnprintf-posix.c: Likewise.
36011         * tests/test-vsnprintf.c: Likewise.
36012         * tests/test-vsprintf-posix.c: Likewise.
36013         * tests/test-wcrtomb.c: Likewise.
36014         * tests/test-wcsnrtombs.c: Likewise.
36015         * tests/test-wcsrtombs.c: Likewise.
36016         * tests/test-wctype.c: Likewise.
36017         * tests/test-wcwidth.c: Likewise.
36018         * tests/test-xfprintf-posix.c: Likewise.
36019         * tests/test-xmemdup0.c: Likewise.
36020         * tests/test-xprintf-posix.c: Likewise.
36021         * tests/test-xvasprintf.c: Likewise.
36022         * tests/unicase/test-locale-language.c: Likewise.
36023         * tests/unicase/test-mapping-part1.h: Likewise.
36024         * tests/unicase/test-predicate-part1.h: Likewise.
36025         * tests/unicase/test-u8-casecmp.c: Likewise.
36026         * tests/unicase/test-u8-casecoll.c: Likewise.
36027         * tests/unicase/test-u8-casefold.c: Likewise.
36028         * tests/unicase/test-u8-is-cased.c: Likewise.
36029         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36030         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36031         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36032         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36033         * tests/unicase/test-u8-tolower.c: Likewise.
36034         * tests/unicase/test-u8-totitle.c: Likewise.
36035         * tests/unicase/test-u8-toupper.c: Likewise.
36036         * tests/unicase/test-u16-casecmp.c: Likewise.
36037         * tests/unicase/test-u16-casecoll.c: Likewise.
36038         * tests/unicase/test-u16-casefold.c: Likewise.
36039         * tests/unicase/test-u16-is-cased.c: Likewise.
36040         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36041         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36042         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36043         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36044         * tests/unicase/test-u16-tolower.c: Likewise.
36045         * tests/unicase/test-u16-totitle.c: Likewise.
36046         * tests/unicase/test-u16-toupper.c: Likewise.
36047         * tests/unicase/test-u32-casecmp.c: Likewise.
36048         * tests/unicase/test-u32-casecoll.c: Likewise.
36049         * tests/unicase/test-u32-casefold.c: Likewise.
36050         * tests/unicase/test-u32-is-cased.c: Likewise.
36051         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36052         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36053         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36054         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36055         * tests/unicase/test-u32-tolower.c: Likewise.
36056         * tests/unicase/test-u32-totitle.c: Likewise.
36057         * tests/unicase/test-u32-toupper.c: Likewise.
36058         * tests/unicase/test-ulc-casecmp.c: Likewise.
36059         * tests/unicase/test-ulc-casecoll.c: Likewise.
36060         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36061         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36062         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36063         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36064         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36065         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36066         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36067         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36068         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36069         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36070         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36071         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36072         * tests/unictype/test-bidi_byname.c: Likewise.
36073         * tests/unictype/test-bidi_name.c: Likewise.
36074         * tests/unictype/test-bidi_of.c: Likewise.
36075         * tests/unictype/test-bidi_test.c: Likewise.
36076         * tests/unictype/test-block_list.c: Likewise.
36077         * tests/unictype/test-block_of.c: Likewise.
36078         * tests/unictype/test-block_test.c: Likewise.
36079         * tests/unictype/test-categ_and.c: Likewise.
36080         * tests/unictype/test-categ_and_not.c: Likewise.
36081         * tests/unictype/test-categ_byname.c: Likewise.
36082         * tests/unictype/test-categ_name.c: Likewise.
36083         * tests/unictype/test-categ_none.c: Likewise.
36084         * tests/unictype/test-categ_of.c: Likewise.
36085         * tests/unictype/test-categ_or.c: Likewise.
36086         * tests/unictype/test-categ_test_withtable.c: Likewise.
36087         * tests/unictype/test-combining.c: Likewise.
36088         * tests/unictype/test-decdigit.c: Likewise.
36089         * tests/unictype/test-digit.c: Likewise.
36090         * tests/unictype/test-mirror.c: Likewise.
36091         * tests/unictype/test-numeric.c: Likewise.
36092         * tests/unictype/test-pr_byname.c: Likewise.
36093         * tests/unictype/test-pr_test.c: Likewise.
36094         * tests/unictype/test-predicate-part1.h: Likewise.
36095         * tests/unictype/test-scripts.c: Likewise.
36096         * tests/unictype/test-sy_c_ident.c: Likewise.
36097         * tests/unictype/test-sy_java_ident.c: Likewise.
36098         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36099         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36100         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36101         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36102         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36103         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36104         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36105         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36106         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36107         * tests/uninorm/test-compat-decomposition.c: Likewise.
36108         * tests/uninorm/test-composition.c: Likewise.
36109         * tests/uninorm/test-decomposing-form.c: Likewise.
36110         * tests/uninorm/test-decomposition.c: Likewise.
36111         * tests/uninorm/test-u8-nfc.c: Likewise.
36112         * tests/uninorm/test-u8-nfd.c: Likewise.
36113         * tests/uninorm/test-u8-nfkc.c: Likewise.
36114         * tests/uninorm/test-u8-nfkd.c: Likewise.
36115         * tests/uninorm/test-u8-normcmp.c: Likewise.
36116         * tests/uninorm/test-u8-normcoll.c: Likewise.
36117         * tests/uninorm/test-u16-nfc.c: Likewise.
36118         * tests/uninorm/test-u16-nfd.c: Likewise.
36119         * tests/uninorm/test-u16-nfkc.c: Likewise.
36120         * tests/uninorm/test-u16-nfkd.c: Likewise.
36121         * tests/uninorm/test-u16-normcmp.c: Likewise.
36122         * tests/uninorm/test-u16-normcoll.c: Likewise.
36123         * tests/uninorm/test-u32-nfc.c: Likewise.
36124         * tests/uninorm/test-u32-nfd.c: Likewise.
36125         * tests/uninorm/test-u32-nfkc.c: Likewise.
36126         * tests/uninorm/test-u32-nfkd.c: Likewise.
36127         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36128         * tests/uninorm/test-u32-normcmp.c: Likewise.
36129         * tests/uninorm/test-u32-normcoll.c: Likewise.
36130         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36131         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36132         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36133         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36134         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36135         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36136         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36137         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36138         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36139         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36140         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36141         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36142         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36143         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36144         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36145         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36146         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36147         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36148         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36149         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36150         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36151         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36152         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36153         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36154         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36155         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36156         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36157         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36158         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36159         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36160         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36161         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36162         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36163         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36164         * tests/uniwidth/test-u8-width.c: Likewise.
36165         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36166         * tests/uniwidth/test-u16-width.c: Likewise.
36167         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36168         * tests/uniwidth/test-u32-width.c: Likewise.
36169         * tests/uniwidth/test-uc_width.c: Likewise.
36170         * tests/uniwidth/test-uc_width2.c: Likewise.
36171         * modules/acl-tests (Files): Add tests/macros.h.
36172         * modules/areadlink-tests (Files): Likewise.
36173         * modules/areadlink-with-size-tests (Files): Likewise.
36174         * modules/areadlinkat-tests (Files): Likewise.
36175         * modules/areadlinkat-with-size-tests (Files): Likewise.
36176         * modules/argmatch-tests (Files): Likewise.
36177         * modules/argv-iter-tests (Files): Likewise.
36178         * modules/array-list-tests (Files): Likewise.
36179         * modules/array-mergesort-tests (Files): Likewise.
36180         * modules/array-oset-tests (Files): Likewise.
36181         * modules/avltree-list-tests (Files): Likewise.
36182         * modules/avltree-oset-tests (Files): Likewise.
36183         * modules/avltreehash-list-tests (Files): Likewise.
36184         * modules/base64-tests (Files): Likewise.
36185         * modules/binary-io-tests (Files): Likewise.
36186         * modules/bitrotate-tests (Files): Likewise.
36187         * modules/btowc-tests (Files): Likewise.
36188         * modules/byteswap-tests (Files): Likewise.
36189         * modules/c-ctype-tests (Files): Likewise.
36190         * modules/c-stack-tests (Files): Likewise.
36191         * modules/c-strcase-tests (Files): Likewise.
36192         * modules/c-strcasestr-tests (Files): Likewise.
36193         * modules/c-strstr-tests (Files): Likewise.
36194         * modules/canonicalize-lgpl-tests (Files): Likewise.
36195         * modules/canonicalize-tests (Files): Likewise.
36196         * modules/carray-list-tests (Files): Likewise.
36197         * modules/ceilf-tests (Files): Likewise.
36198         * modules/ceill-tests (Files): Likewise.
36199         * modules/chown-tests (Files): Likewise.
36200         * modules/cloexec-tests (Files): Likewise.
36201         * modules/copy-file-tests (Files): Likewise.
36202         * modules/count-one-bits-tests (Files): Likewise.
36203         * modules/dprintf-posix-tests (Files): Likewise.
36204         * modules/dup2-tests (Files): Likewise.
36205         * modules/dup3-tests (Files): Likewise.
36206         * modules/duplocale-tests (Files): Likewise.
36207         * modules/fbufmode-tests (Files): Likewise.
36208         * modules/fchdir-tests (Files): Likewise.
36209         * modules/fcntl-safer-tests (Files): Likewise.
36210         * modules/fcntl-tests (Files): Likewise.
36211         * modules/fdopendir-tests (Files): Likewise.
36212         * modules/fdutimensat-tests (Files): Likewise.
36213         * modules/fflush-tests (Files): Likewise.
36214         * modules/filevercmp-tests (Files): Likewise.
36215         * modules/flock-tests (Files): Likewise.
36216         * modules/floorf-tests (Files): Likewise.
36217         * modules/floorl-tests (Files): Likewise.
36218         * modules/fnmatch-tests (Files): Likewise.
36219         * modules/fopen-safer-tests (Files): Likewise.
36220         * modules/fopen-tests (Files): Likewise.
36221         * modules/fpending-tests (Files): Likewise.
36222         * modules/fprintf-posix-tests (Files): Likewise.
36223         * modules/fpurge-tests (Files): Likewise.
36224         * modules/freadable-tests (Files): Likewise.
36225         * modules/freadahead-tests (Files): Likewise.
36226         * modules/freading-tests (Files): Likewise.
36227         * modules/freadptr-tests (Files): Likewise.
36228         * modules/freadseek-tests (Files): Likewise.
36229         * modules/freopen-tests (Files): Likewise.
36230         * modules/frexp-nolibm-tests (Files): Likewise.
36231         * modules/frexp-tests (Files): Likewise.
36232         * modules/frexpl-nolibm-tests (Files): Likewise.
36233         * modules/frexpl-tests (Files): Likewise.
36234         * modules/fseek-tests (Files): Likewise.
36235         * modules/fseeko-tests (Files): Likewise.
36236         * modules/fstrcmp-tests (Files): Likewise.
36237         * modules/fsync-tests (Files): Likewise.
36238         * modules/ftell-tests (Files): Likewise.
36239         * modules/ftello-tests (Files): Likewise.
36240         * modules/func-tests (Files): Likewise.
36241         * modules/futimens-tests (Files): Likewise.
36242         * modules/fwritable-tests (Files): Likewise.
36243         * modules/fwriting-tests (Files): Likewise.
36244         * modules/getcwd-tests (Files): Likewise.
36245         * modules/getdate-tests (Files): Likewise.
36246         * modules/getdelim-tests (Files): Likewise.
36247         * modules/getdtablesize-tests (Files): Likewise.
36248         * modules/getgroups-tests (Files): Likewise.
36249         * modules/getline-tests (Files): Likewise.
36250         * modules/getndelim2-tests (Files): Likewise.
36251         * modules/glob-tests (Files): Likewise.
36252         * modules/hash-tests (Files): Likewise.
36253         * modules/i-ring-tests (Files): Likewise.
36254         * modules/iconv-tests (Files): Likewise.
36255         * modules/iconv_open-utf-tests (Files): Likewise.
36256         * modules/idpriv-drop-tests (Files): Likewise.
36257         * modules/idpriv-droptemp-tests (Files): Likewise.
36258         * modules/inet_ntop-tests (Files): Likewise.
36259         * modules/inet_pton-tests (Files): Likewise.
36260         * modules/isblank-tests (Files): Likewise.
36261         * modules/isfinite-tests (Files): Likewise.
36262         * modules/isinf-tests (Files): Likewise.
36263         * modules/isnan-tests (Files): Likewise.
36264         * modules/isnand-nolibm-tests (Files): Likewise.
36265         * modules/isnand-tests (Files): Likewise.
36266         * modules/isnanf-nolibm-tests (Files): Likewise.
36267         * modules/isnanf-tests (Files): Likewise.
36268         * modules/isnanl-nolibm-tests (Files): Likewise.
36269         * modules/isnanl-tests (Files): Likewise.
36270         * modules/lchown-tests (Files): Likewise.
36271         * modules/ldexpl-tests (Files): Likewise.
36272         * modules/link-tests (Files): Likewise.
36273         * modules/linkat-tests (Files): Likewise.
36274         * modules/linked-list-tests (Files): Likewise.
36275         * modules/linkedhash-list-tests (Files): Likewise.
36276         * modules/localename-tests (Files): Likewise.
36277         * modules/lseek-tests (Files): Likewise.
36278         * modules/lstat-tests (Files): Likewise.
36279         * modules/mbmemcasecmp-tests (Files): Likewise.
36280         * modules/mbmemcasecoll-tests (Files): Likewise.
36281         * modules/mbrtowc-tests (Files): Likewise.
36282         * modules/mbscasecmp-tests (Files): Likewise.
36283         * modules/mbscasestr-tests (Files): Likewise.
36284         * modules/mbschr-tests (Files): Likewise.
36285         * modules/mbscspn-tests (Files): Likewise.
36286         * modules/mbsinit-tests (Files): Likewise.
36287         * modules/mbsncasecmp-tests (Files): Likewise.
36288         * modules/mbsnrtowcs-tests (Files): Likewise.
36289         * modules/mbspbrk-tests (Files): Likewise.
36290         * modules/mbspcasecmp-tests (Files): Likewise.
36291         * modules/mbsrchr-tests (Files): Likewise.
36292         * modules/mbsrtowcs-tests (Files): Likewise.
36293         * modules/mbsspn-tests (Files): Likewise.
36294         * modules/mbsstr-tests (Files): Likewise.
36295         * modules/memchr-tests (Files): Likewise.
36296         * modules/memchr2-tests (Files): Likewise.
36297         * modules/memcmp-tests (Files): Likewise.
36298         * modules/memmem-tests (Files): Likewise.
36299         * modules/memrchr-tests (Files): Likewise.
36300         * modules/mkdir-tests (Files): Likewise.
36301         * modules/mkfifo-tests (Files): Likewise.
36302         * modules/mkfifoat-tests (Files): Likewise.
36303         * modules/mknod-tests (Files): Likewise.
36304         * modules/nanosleep-tests (Files): Likewise.
36305         * modules/nl_langinfo-tests (Files): Likewise.
36306         * modules/obstack-printf-tests (Files): Likewise.
36307         * modules/open-tests (Files): Likewise.
36308         * modules/openat-tests (Files): Likewise.
36309         * modules/pipe-filter-gi-tests (Files): Likewise.
36310         * modules/pipe-filter-ii-tests (Files): Likewise.
36311         * modules/pipe2-tests (Files): Likewise.
36312         * modules/popen-safer-tests (Files): Likewise.
36313         * modules/popen-tests (Files): Likewise.
36314         * modules/posixtm-tests (Files): Likewise.
36315         * modules/pread-tests (Files): Likewise.
36316         * modules/printf-frexp-tests (Files): Likewise.
36317         * modules/printf-frexpl-tests (Files): Likewise.
36318         * modules/printf-posix-tests (Files): Likewise.
36319         * modules/priv-set-tests (Files): Likewise.
36320         * modules/quotearg-tests (Files): Likewise.
36321         * modules/random_r-tests (Files): Likewise.
36322         * modules/rawmemchr-tests (Files): Likewise.
36323         * modules/rbtree-list-tests (Files): Likewise.
36324         * modules/rbtree-oset-tests (Files): Likewise.
36325         * modules/rbtreehash-list-tests (Files): Likewise.
36326         * modules/readlink-tests (Files): Likewise.
36327         * modules/remove-tests (Files): Likewise.
36328         * modules/rename-tests (Files): Likewise.
36329         * modules/renameat-tests (Files): Likewise.
36330         * modules/rmdir-tests (Files): Likewise.
36331         * modules/round-tests (Files): Likewise.
36332         * modules/roundf-tests (Files): Likewise.
36333         * modules/roundl-tests (Files): Likewise.
36334         * modules/safe-alloc-tests (Files): Likewise.
36335         * modules/setenv-tests (Files): Likewise.
36336         * modules/sigaction-tests (Files): Likewise.
36337         * modules/signbit-tests (Files): Likewise.
36338         * modules/sleep-tests (Files): Likewise.
36339         * modules/snprintf-posix-tests (Files): Likewise.
36340         * modules/snprintf-tests (Files): Likewise.
36341         * modules/sprintf-posix-tests (Files): Likewise.
36342         * modules/stat-tests (Files): Likewise.
36343         * modules/stat-time-tests (Files): Likewise.
36344         * modules/strcasestr-tests (Files): Likewise.
36345         * modules/strchrnul-tests (Files): Likewise.
36346         * modules/strerror-tests (Files): Likewise.
36347         * modules/striconv-tests (Files): Likewise.
36348         * modules/striconveh-tests (Files): Likewise.
36349         * modules/striconveha-tests (Files): Likewise.
36350         * modules/strsignal-tests (Files): Likewise.
36351         * modules/strstr-tests (Files): Likewise.
36352         * modules/strtod-tests (Files): Likewise.
36353         * modules/strverscmp-tests (Files): Likewise.
36354         * modules/symlink-tests (Files): Likewise.
36355         * modules/symlinkat-tests (Files): Likewise.
36356         * modules/trunc-tests (Files): Likewise.
36357         * modules/truncf-tests (Files): Likewise.
36358         * modules/truncl-tests (Files): Likewise.
36359         * modules/uname-tests (Files): Likewise.
36360         * modules/unicase/cased-tests (Files): Likewise.
36361         * modules/unicase/ignorable-tests (Files): Likewise.
36362         * modules/unicase/locale-language-tests (Files): Likewise.
36363         * modules/unicase/tolower-tests (Files): Likewise.
36364         * modules/unicase/totitle-tests (Files): Likewise.
36365         * modules/unicase/toupper-tests (Files): Likewise.
36366         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36367         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36368         * modules/unicase/u8-casefold-tests (Files): Likewise.
36369         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36370         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36371         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36372         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36373         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36374         * modules/unicase/u8-tolower-tests (Files): Likewise.
36375         * modules/unicase/u8-totitle-tests (Files): Likewise.
36376         * modules/unicase/u8-toupper-tests (Files): Likewise.
36377         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36378         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36379         * modules/unicase/u16-casefold-tests (Files): Likewise.
36380         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36381         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36382         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36383         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36384         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36385         * modules/unicase/u16-tolower-tests (Files): Likewise.
36386         * modules/unicase/u16-totitle-tests (Files): Likewise.
36387         * modules/unicase/u16-toupper-tests (Files): Likewise.
36388         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36389         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36390         * modules/unicase/u32-casefold-tests (Files): Likewise.
36391         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36392         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36393         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36394         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36395         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36396         * modules/unicase/u32-tolower-tests (Files): Likewise.
36397         * modules/unicase/u32-totitle-tests (Files): Likewise.
36398         * modules/unicase/u32-toupper-tests (Files): Likewise.
36399         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36400         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36401         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36402         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36403         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36404         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36405         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36406         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36407         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36408         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36409         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36410         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36411         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36412         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36413         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36414         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36415         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36416         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36417         * modules/unictype/block-list-tests (Files): Likewise.
36418         * modules/unictype/block-of-tests (Files): Likewise.
36419         * modules/unictype/block-test-tests (Files): Likewise.
36420         * modules/unictype/category-C-tests (Files): Likewise.
36421         * modules/unictype/category-Cc-tests (Files): Likewise.
36422         * modules/unictype/category-Cf-tests (Files): Likewise.
36423         * modules/unictype/category-Cn-tests (Files): Likewise.
36424         * modules/unictype/category-Co-tests (Files): Likewise.
36425         * modules/unictype/category-Cs-tests (Files): Likewise.
36426         * modules/unictype/category-L-tests (Files): Likewise.
36427         * modules/unictype/category-Ll-tests (Files): Likewise.
36428         * modules/unictype/category-Lm-tests (Files): Likewise.
36429         * modules/unictype/category-Lo-tests (Files): Likewise.
36430         * modules/unictype/category-Lt-tests (Files): Likewise.
36431         * modules/unictype/category-Lu-tests (Files): Likewise.
36432         * modules/unictype/category-M-tests (Files): Likewise.
36433         * modules/unictype/category-Mc-tests (Files): Likewise.
36434         * modules/unictype/category-Me-tests (Files): Likewise.
36435         * modules/unictype/category-Mn-tests (Files): Likewise.
36436         * modules/unictype/category-N-tests (Files): Likewise.
36437         * modules/unictype/category-Nd-tests (Files): Likewise.
36438         * modules/unictype/category-Nl-tests (Files): Likewise.
36439         * modules/unictype/category-No-tests (Files): Likewise.
36440         * modules/unictype/category-P-tests (Files): Likewise.
36441         * modules/unictype/category-Pc-tests (Files): Likewise.
36442         * modules/unictype/category-Pd-tests (Files): Likewise.
36443         * modules/unictype/category-Pe-tests (Files): Likewise.
36444         * modules/unictype/category-Pf-tests (Files): Likewise.
36445         * modules/unictype/category-Pi-tests (Files): Likewise.
36446         * modules/unictype/category-Po-tests (Files): Likewise.
36447         * modules/unictype/category-Ps-tests (Files): Likewise.
36448         * modules/unictype/category-S-tests (Files): Likewise.
36449         * modules/unictype/category-Sc-tests (Files): Likewise.
36450         * modules/unictype/category-Sk-tests (Files): Likewise.
36451         * modules/unictype/category-Sm-tests (Files): Likewise.
36452         * modules/unictype/category-So-tests (Files): Likewise.
36453         * modules/unictype/category-Z-tests (Files): Likewise.
36454         * modules/unictype/category-Zl-tests (Files): Likewise.
36455         * modules/unictype/category-Zp-tests (Files): Likewise.
36456         * modules/unictype/category-Zs-tests (Files): Likewise.
36457         * modules/unictype/category-and-not-tests (Files): Likewise.
36458         * modules/unictype/category-and-tests (Files): Likewise.
36459         * modules/unictype/category-byname-tests (Files): Likewise.
36460         * modules/unictype/category-name-tests (Files): Likewise.
36461         * modules/unictype/category-none-tests (Files): Likewise.
36462         * modules/unictype/category-of-tests (Files): Likewise.
36463         * modules/unictype/category-or-tests (Files): Likewise.
36464         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36465         * modules/unictype/combining-class-tests (Files): Likewise.
36466         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36467         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36468         * modules/unictype/ctype-blank-tests (Files): Likewise.
36469         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36470         * modules/unictype/ctype-digit-tests (Files): Likewise.
36471         * modules/unictype/ctype-graph-tests (Files): Likewise.
36472         * modules/unictype/ctype-lower-tests (Files): Likewise.
36473         * modules/unictype/ctype-print-tests (Files): Likewise.
36474         * modules/unictype/ctype-punct-tests (Files): Likewise.
36475         * modules/unictype/ctype-space-tests (Files): Likewise.
36476         * modules/unictype/ctype-upper-tests (Files): Likewise.
36477         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36478         * modules/unictype/decimal-digit-tests (Files): Likewise.
36479         * modules/unictype/digit-tests (Files): Likewise.
36480         * modules/unictype/mirror-tests (Files): Likewise.
36481         * modules/unictype/numeric-tests (Files): Likewise.
36482         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36483         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36484         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36485         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36486         Likewise.
36487         * modules/unictype/property-bidi-block-separator-tests (Files):
36488         Likewise.
36489         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36490         Likewise.
36491         * modules/unictype/property-bidi-common-separator-tests (Files):
36492         Likewise.
36493         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36494         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36495         Likewise.
36496         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36497         Likewise.
36498         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36499         Likewise.
36500         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36501         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36502         Likewise.
36503         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36504         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36505         Likewise.
36506         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36507         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36508         * modules/unictype/property-bidi-segment-separator-tests (Files):
36509         Likewise.
36510         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36511         * modules/unictype/property-byname-tests (Files): Likewise.
36512         * modules/unictype/property-combining-tests (Files): Likewise.
36513         * modules/unictype/property-composite-tests (Files): Likewise.
36514         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36515         * modules/unictype/property-dash-tests (Files): Likewise.
36516         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36517         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36518         Likewise.
36519         * modules/unictype/property-deprecated-tests (Files): Likewise.
36520         * modules/unictype/property-diacritic-tests (Files): Likewise.
36521         * modules/unictype/property-extender-tests (Files): Likewise.
36522         * modules/unictype/property-format-control-tests (Files): Likewise.
36523         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36524         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36525         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36526         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36527         * modules/unictype/property-hyphen-tests (Files): Likewise.
36528         * modules/unictype/property-id-continue-tests (Files): Likewise.
36529         * modules/unictype/property-id-start-tests (Files): Likewise.
36530         * modules/unictype/property-ideographic-tests (Files): Likewise.
36531         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36532         * modules/unictype/property-ids-trinary-operator-tests (Files):
36533         Likewise.
36534         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36535         * modules/unictype/property-iso-control-tests (Files): Likewise.
36536         * modules/unictype/property-join-control-tests (Files): Likewise.
36537         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36538         * modules/unictype/property-line-separator-tests (Files): Likewise.
36539         * modules/unictype/property-logical-order-exception-tests (Files):
36540         Likewise.
36541         * modules/unictype/property-lowercase-tests (Files): Likewise.
36542         * modules/unictype/property-math-tests (Files): Likewise.
36543         * modules/unictype/property-non-break-tests (Files): Likewise.
36544         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36545         * modules/unictype/property-numeric-tests (Files): Likewise.
36546         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36547         * modules/unictype/property-other-default-ignorable-code-point-tests
36548         (Files): Likewise.
36549         * modules/unictype/property-other-grapheme-extend-tests (Files):
36550         Likewise.
36551         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36552         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36553         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36554         * modules/unictype/property-other-math-tests (Files): Likewise.
36555         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36556         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36557         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36558         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36559         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36560         * modules/unictype/property-private-use-tests (Files): Likewise.
36561         * modules/unictype/property-punctuation-tests (Files): Likewise.
36562         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36563         * modules/unictype/property-radical-tests (Files): Likewise.
36564         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36565         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36566         * modules/unictype/property-space-tests (Files): Likewise.
36567         * modules/unictype/property-terminal-punctuation-tests (Files):
36568         Likewise.
36569         * modules/unictype/property-test-tests (Files): Likewise.
36570         * modules/unictype/property-titlecase-tests (Files): Likewise.
36571         * modules/unictype/property-unassigned-code-value-tests (Files):
36572         Likewise.
36573         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36574         * modules/unictype/property-uppercase-tests (Files): Likewise.
36575         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36576         * modules/unictype/property-white-space-tests (Files): Likewise.
36577         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36578         * modules/unictype/property-xid-start-tests (Files): Likewise.
36579         * modules/unictype/property-zero-width-tests (Files): Likewise.
36580         * modules/unictype/scripts-tests (Files): Likewise.
36581         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36582         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36583         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36584         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36585         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36586         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36587         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36588         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36589         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36590         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36591         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36592         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36593         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36594         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36595         * modules/uninorm/composition-tests (Files): Likewise.
36596         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36597         * modules/uninorm/decomposition-tests (Files): Likewise.
36598         * modules/uninorm/filter-tests (Files): Likewise.
36599         * modules/uninorm/nfc-tests (Files): Likewise.
36600         * modules/uninorm/nfd-tests (Files): Likewise.
36601         * modules/uninorm/nfkc-tests (Files): Likewise.
36602         * modules/uninorm/nfkd-tests (Files): Likewise.
36603         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36604         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36605         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36606         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36607         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36608         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36609         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36610         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36611         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36612         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36613         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36614         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36615         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36616         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36617         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36618         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36619         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36620         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36621         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36622         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36623         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36624         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36625         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36626         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36627         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36628         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36629         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36630         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36631         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36632         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36633         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36634         * modules/uniwidth/u8-width-tests (Files): Likewise.
36635         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36636         * modules/uniwidth/u16-width-tests (Files): Likewise.
36637         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36638         * modules/uniwidth/u32-width-tests (Files): Likewise.
36639         * modules/uniwidth/width-tests (Files): Likewise.
36640         * modules/unlink-tests (Files): Likewise.
36641         * modules/unsetenv-tests (Files): Likewise.
36642         * modules/usleep-tests (Files): Likewise.
36643         * modules/utimens-tests (Files): Likewise.
36644         * modules/utimensat-tests (Files): Likewise.
36645         * modules/vasnprintf-posix-tests (Files): Likewise.
36646         * modules/vasnprintf-tests (Files): Likewise.
36647         * modules/vasprintf-posix-tests (Files): Likewise.
36648         * modules/vasprintf-tests (Files): Likewise.
36649         * modules/vdprintf-posix-tests (Files): Likewise.
36650         * modules/vfprintf-posix-tests (Files): Likewise.
36651         * modules/vprintf-posix-tests (Files): Likewise.
36652         * modules/vsnprintf-posix-tests (Files): Likewise.
36653         * modules/vsnprintf-tests (Files): Likewise.
36654         * modules/vsprintf-posix-tests (Files): Likewise.
36655         * modules/wcrtomb-tests (Files): Likewise.
36656         * modules/wcsnrtombs-tests (Files): Likewise.
36657         * modules/wcsrtombs-tests (Files): Likewise.
36658         * modules/wctype-tests (Files): Likewise.
36659         * modules/wcwidth-tests (Files): Likewise.
36660         * modules/xmemdup0-tests (Files): Likewise.
36661         * modules/xprintf-posix-tests (Files): Likewise.
36662         * modules/xvasprintf-tests (Files): Likewise.
36663
36664 2009-12-24  Eric Blake  <ebb9@byu.net>
36665
36666         test-nanosleep: fix typo
36667         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36668         patch.
36669         Reported by Bruno Haible.
36670
36671 2009-12-24  Bruno Haible  <bruno@clisp.org>
36672
36673         Reduce namespace pollution on glibc systems.
36674         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36675         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36676         systems.
36677         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36678         <getopt.h> on glibc systems.
36679         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36680         systems.
36681         * lib/fcntl.c: Include <unistd.h> here instead.
36682
36683 2009-12-24  Bruno Haible  <bruno@clisp.org>
36684
36685         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36686
36687 2009-12-24  Eric Blake  <ebb9@byu.net>
36688
36689         tests: add signature checks
36690         * tests/signature.h (SIGNATURE_CHECK): New file.
36691         * modules/atexit-tests (Files): Use it.
36692         * modules/btowc-tests (Files): Likewise.
36693         * modules/canonicalize-lgpl-tests (Files): Likewise.
36694         * modules/ceilf-tests (Files): Likewise.
36695         * modules/ceill-tests (Files): Likewise.
36696         * modules/chown-tests (Files): Likewise.
36697         * modules/dprintf-posix-tests (Files): Likewise.
36698         * modules/dup2-tests (Files): Likewise.
36699         * modules/dup3-tests (Files): Likewise.
36700         * modules/duplocale-tests (Files): Likewise.
36701         * modules/fchdir-tests (Files): Likewise.
36702         * modules/fcntl-tests (Files): Likewise.
36703         * modules/fdopendir-tests (Files): Likewise.
36704         * modules/fflush-tests (Files): Likewise.
36705         * modules/flock-tests (Files): Likewise.
36706         * modules/floorf-tests (Files): Likewise.
36707         * modules/floorl-tests (Files): Likewise.
36708         * modules/fnmatch-tests (Files): Likewise.
36709         * modules/fopen-tests (Files): Likewise.
36710         * modules/fprintf-posix-tests (Files): Likewise.
36711         * modules/freopen-tests (Files): Likewise.
36712         * modules/frexp-nolibm-tests (Files): Likewise.
36713         * modules/frexp-tests (Files): Likewise.
36714         * modules/frexpl-nolibm-tests (Files): Likewise.
36715         * modules/frexpl-tests (Files): Likewise.
36716         * modules/fseek-tests (Files): Likewise.
36717         * modules/fseeko-tests (Files): Likewise.
36718         * modules/fsync-tests (Files): Likewise.
36719         * modules/ftell-tests (Files): Likewise.
36720         * modules/ftello-tests (Files): Likewise.
36721         * modules/futimens-tests (Files): Likewise.
36722         * modules/getaddrinfo-tests (Files): Likewise.
36723         * modules/getcwd-tests (Files): Likewise.
36724         * modules/getdelim-tests (Files): Likewise.
36725         * modules/getdtablesize-tests (Files): Likewise.
36726         * modules/getgroups-tests (Files): Likewise.
36727         * modules/gethostname-tests (Files): Likewise.
36728         * modules/getline-tests (Files): Likewise.
36729         * modules/getopt-posix-tests (Files): Likewise.
36730         * modules/gettimeofday-tests (Files): Likewise.
36731         * modules/glob-tests (Files): Likewise.
36732         * modules/iconv-tests (Files): Likewise.
36733         * modules/inet_ntop-tests (Files): Likewise.
36734         * modules/inet_pton-tests (Files): Likewise.
36735         * modules/isblank-tests (Files): Likewise.
36736         * modules/lchown-tests (Files): Likewise.
36737         * modules/ldexpl-tests (Files): Likewise.
36738         * modules/link-tests (Files): Likewise.
36739         * modules/linkat-tests (Files): Likewise.
36740         * modules/lseek-tests (Files): Likewise.
36741         * modules/lstat-tests (Files): Likewise.
36742         * modules/mbrtowc-tests (Files): Likewise.
36743         * modules/mbsinit-tests (Files): Likewise.
36744         * modules/mbsnrtowcs-tests (Files): Likewise.
36745         * modules/mbsrtowcs-tests (Files): Likewise.
36746         * modules/memchr-tests (Files): Likewise.
36747         * modules/memcmp-tests (Files): Likewise.
36748         * modules/memmem-tests (Files): Likewise.
36749         * modules/memrchr-tests (Files): Likewise.
36750         * modules/mkdir-tests (Files): Likewise.
36751         * modules/mkfifo-tests (Files): Likewise.
36752         * modules/mkfifoat-tests (Files): Likewise.
36753         * modules/mknod-tests (Files): Likewise.
36754         * modules/nanosleep-tests (Files): Likewise.
36755         * modules/nl_langinfo-tests (Files): Likewise.
36756         * modules/obstack-printf-tests (Files): Likewise.
36757         * modules/open-tests (Files): Likewise.
36758         * modules/openat-tests (Files): Likewise.
36759         * modules/perror-tests (Files): Likewise.
36760         * modules/pipe2-tests (Files): Likewise.
36761         * modules/poll-tests (Files): Likewise.
36762         * modules/popen-tests (Files): Likewise.
36763         * modules/posix_spawn-tests (Files): Likewise.
36764         * modules/posix_spawnp-tests (Files): Likewise.
36765         * modules/pread-tests (Files): Likewise.
36766         * modules/printf-posix-tests (Files): Likewise.
36767         * modules/pty-tests (Files): Likewise.
36768         * modules/random_r-tests (Files): Likewise.
36769         * modules/rawmemchr-tests (Files): Likewise.
36770         * modules/readlink-tests (Files): Likewise.
36771         * modules/remove-tests (Files): Likewise.
36772         * modules/rename-tests (Files): Likewise.
36773         * modules/renameat-tests (Files): Likewise.
36774         * modules/rmdir-tests (Files): Likewise.
36775         * modules/round-tests (Files): Likewise.
36776         * modules/roundf-tests (Files): Likewise.
36777         * modules/roundl-tests (Files): Likewise.
36778         * modules/select-tests (Files): Likewise.
36779         * modules/setenv-tests (Files): Likewise.
36780         * modules/sigaction-tests (Files): Likewise.
36781         * modules/sleep-tests (Files): Likewise.
36782         * modules/snprintf-posix-tests (Files): Likewise.
36783         * modules/snprintf-tests (Files): Likewise.
36784         * modules/sprintf-posix-tests (Files): Likewise.
36785         * modules/stat-tests (Files): Likewise.
36786         * modules/strcasestr-tests (Files): Likewise.
36787         * modules/strchrnul-tests (Files): Likewise.
36788         * modules/strerror-tests (Files): Likewise.
36789         * modules/strsignal-tests (Files): Likewise.
36790         * modules/strstr-tests (Files): Likewise.
36791         * modules/strtod-tests (Files): Likewise.
36792         * modules/strverscmp-tests (Files): Likewise.
36793         * modules/symlink-tests (Files): Likewise.
36794         * modules/symlinkat-tests (Files): Likewise.
36795         * modules/times-tests (Files): Likewise.
36796         * modules/trunc-tests (Files): Likewise.
36797         * modules/truncf-tests (Files): Likewise.
36798         * modules/truncl-tests (Files): Likewise.
36799         * modules/tsearch-tests (Files): Likewise.
36800         * modules/uname-tests (Files): Likewise.
36801         * modules/unlink-tests (Files): Likewise.
36802         * modules/unsetenv-tests (Files): Likewise.
36803         * modules/usleep-tests (Files): Likewise.
36804         * modules/utimensat-tests (Files): Likewise.
36805         * modules/vasprintf-tests (Files): Likewise.
36806         * modules/vdprintf-posix-tests (Files): Likewise.
36807         * modules/vfprintf-posix-tests (Files): Likewise.
36808         * modules/vprintf-posix-tests (Files): Likewise.
36809         * modules/vsnprintf-posix-tests (Files): Likewise.
36810         * modules/vsnprintf-tests (Files): Likewise.
36811         * modules/vsprintf-posix-tests (Files): Likewise.
36812         * modules/wcrtomb-tests (Files): Likewise.
36813         * modules/wcsnrtombs-tests (Files): Likewise.
36814         * modules/wcsrtombs-tests (Files): Likewise.
36815         * modules/wcwidth-tests (Files): Likewise.
36816         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36817         * tests/test-isinf.c (isinf): Likewise.
36818         * tests/test-isnan.c (isnan): Likewise.
36819         * tests/test-signbit.c (signbit): Likewise.
36820         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36821         declaration, either as macro or with correct signature.
36822         (select): Ensure function under test is declared with correct
36823         signature in correct header.
36824         * tests/test-atexit.c (atexit): Likewise.
36825         * tests/test-btowc.c (btowc): Likewise.
36826         * tests/test-canonicalize-lgpl.c (realpath)
36827         (canonicalize_file_name): Likewise.
36828         * tests/test-ceilf1.c (ceilf): Likewise.
36829         * tests/test-ceill.c (ceill): Likewise.
36830         * tests/test-chown.c (chown): Likewise.
36831         * tests/test-dprintf-posix.c (dprintf): Likewise.
36832         * tests/test-dup2.c (dup2): Likewise.
36833         * tests/test-dup3.c (dup3): Likewise.
36834         * tests/test-duplocale.c (duplocale): Likewise.
36835         * tests/test-fchdir.c (fchdir): Likewise.
36836         * tests/test-fchownat.c (fchownat): Likewise.
36837         * tests/test-fcntl.c (fcntl): Likewise.
36838         * tests/test-fdopendir.c (fdopendir): Likewise.
36839         * tests/test-fflush.c (fflush): Likewise.
36840         * tests/test-flock.c (flock): Likewise.
36841         * tests/test-floorf1.c (floorf): Likewise.
36842         * tests/test-floorl.c (floorl): Likewise.
36843         * tests/test-fnmatch.c (fnmatch): Likewise.
36844         * tests/test-fopen.c (fopen): Likewise.
36845         * tests/test-fprintf-posix.c (fprintf): Likewise.
36846         * tests/test-freopen.c (freopen): Likewise.
36847         * tests/test-frexp.c (frexp): Likewise.
36848         * tests/test-frexpl.c (frexpl): Likewise.
36849         * tests/test-fseek.c (fseek): Likewise.
36850         * tests/test-fseeko.c (fseeko): Likewise.
36851         * tests/test-fstatat.c (fstatat): Likewise.
36852         * tests/test-fsync.c (fsync): Likewise.
36853         * tests/test-ftell.c (ftell): Likewise.
36854         * tests/test-ftello.c (ftello): Likewise.
36855         * tests/test-futimens.c (futimens): Likewise.
36856         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36857         (gai_strerror): Likewise.
36858         * tests/test-getcwd.c (getcwd): Likewise.
36859         * tests/test-getdelim.c (getdelim): Likewise.
36860         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36861         * tests/test-getgroups.c (getgroups): Likewise.
36862         * tests/test-gethostname.c (gethostname): Likewise.
36863         * tests/test-getline.c (getline): Likewise.
36864         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36865         Likewise.
36866         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36867         * tests/test-glob.c (glob, globfree): Likewise.
36868         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36869         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36870         * tests/test-inet_pton.c (inet_pton): Likewise.
36871         * tests/test-isblank.c (isblank): Likewise.
36872         * tests/test-lchown.c (lchown): Likewise.
36873         * tests/test-ldexpl.c (ldexpl): Likewise.
36874         * tests/test-link.c (link): Likewise.
36875         * tests/test-linkat.c (linkat): Likewise.
36876         * tests/test-lseek.c (lseek): Likewise.
36877         * tests/test-lstat.c (lstat): Likewise.
36878         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36879         * tests/test-mbsinit.c (mbsinit): Likewise.
36880         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36881         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36882         * tests/test-memchr.c (memchr): Likewise.
36883         * tests/test-memcmp.c (memcmp): Likewise.
36884         * tests/test-memmem.c (memmem): Likewise.
36885         * tests/test-memrchr.c (memrchr): Likewise.
36886         * tests/test-mkdir.c (mkdir): Likewise.
36887         * tests/test-mkdirat.c (mkdirat): Likewise.
36888         * tests/test-mkfifo.c (mkfifo): Likewise.
36889         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36890         * tests/test-mknod.c (mknod): Likewise.
36891         * tests/test-nanosleep.c (nanosleep): Likewise.
36892         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36893         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36894         Likewise.
36895         * tests/test-open.c (open): Likewise.
36896         * tests/test-openat.c (openat): Likewise.
36897         * tests/test-perror.c (perror): Likewise.
36898         * tests/test-pipe2.c (pipe2): Likewise.
36899         * tests/test-poll.c (poll): Likewise.
36900         * tests/test-popen.c (popen, pclose): Likewise.
36901         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36902         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36903         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36904         (posix_spawn_file_actions_destroy)
36905         (posix_spawn_file_actions_addclose)
36906         (posix_spawn_file_actions_addopen)
36907         (posix_spawn_file_actions_adddup2): Likewise.
36908         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36909         * tests/test-pread.c (pread): Likewise.
36910         * tests/test-printf-posix.c (printf): Likewise.
36911         * tests/test-pty.c (openpty, forkpty): Likewise.
36912         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36913         (random_r): Likewise.
36914         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36915         * tests/test-readlink.c (readlink): Likewise.
36916         * tests/test-remove.c (remove): Likewise.
36917         * tests/test-rename.c (rename): Likewise.
36918         * tests/test-renameat.c (renameat): Likewise.
36919         * tests/test-rmdir.c (rmdir): Likewise.
36920         * tests/test-round1.c (round): Likewise.
36921         * tests/test-roundf1.c (roundf): Likewise.
36922         * tests/test-roundl.c (roundl): Likewise.
36923         * tests/test-setenv.c (setenv): Likewise.
36924         * tests/test-sigaction.c (sigaction): Likewise.
36925         * tests/test-sleep.c (sleep): Likewise.
36926         * tests/test-snprintf.c (snprintf): Likewise.
36927         * tests/test-sprintf-posix.c (sprintf): Likewise.
36928         * tests/test-stat.c (stat): Likewise.
36929         * tests/test-stpncpy.c (stpncpy): Likewise.
36930         * tests/test-strcasestr.c (strcasestr): Likewise.
36931         * tests/test-strchrnul.c (strchrnul): Likewise.
36932         * tests/test-strerror.c (strerror): Likewise.
36933         * tests/test-strsignal.c (strsignal): Likewise.
36934         * tests/test-strstr.c (strstr): Likewise.
36935         * tests/test-strtod.c (strtod): Likewise.
36936         * tests/test-strverscmp.c (strverscmp): Likewise.
36937         * tests/test-symlink.c (symlink): Likewise.
36938         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36939         * tests/test-times.c (times): Likewise.
36940         * tests/test-trunc1.c (trunc): Likewise.
36941         * tests/test-truncf1.c (truncf): Likewise.
36942         * tests/test-truncl.c (truncl): Likewise.
36943         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36944         Likewise.
36945         * tests/test-uname.c (uname): Likewise.
36946         * tests/test-unlink.c (unlink): Likewise.
36947         * tests/test-unlinkat.c (unlinkat): Likewise.
36948         * tests/test-unsetenv.c (unsetenv): Likewise.
36949         * tests/test-usleep.c (usleep): Likewise.
36950         * tests/test-utimensat.c (utimensat): Likewise.
36951         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36952         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36953         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36954         * tests/test-vprintf-posix.c (vprintf): Likewise.
36955         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36956         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36957         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36958         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36959         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36960         * tests/test-wcwidth.c (wcwidth): Likewise.
36961
36962         build: pull in conditional headers during GNULIB_POSIXCHECK
36963         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36964         definitions from any conditionally-included headers.
36965         * lib/stdlib.in.h (includes): Likewise.
36966         * lib/unistd.in.h (includes): Likewise.
36967
36968 2009-12-24  Bruno Haible  <bruno@clisp.org>
36969
36970         * tests/test-argv-iter.c: Include header file being tested immediately
36971         after config.h.
36972         * tests/test-base64.c: Likewise.
36973         * tests/test-flock.c: Likewise.
36974         * tests/test-fsync.c: Likewise.
36975         * tests/test-getdate.c: Likewise.
36976         * tests/test-getndelim2.c: Likewise.
36977         * tests/test-isfinite.c: Likewise.
36978         * tests/test-isinf.c: Likewise.
36979         * tests/test-strerror.c: Likewise.
36980         * tests/test-strsignal.c: Likewise.
36981
36982 2009-12-23  Eric Blake  <ebb9@byu.net>
36983
36984         unistd: work around cygwin bug
36985         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36986         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36987         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36988
36989 2009-12-23  Bruno Haible  <bruno@clisp.org>
36990
36991         localename: More tests.
36992         * tests/test-localename.c (SIZEOF): New macro.
36993         (categories): New variable.
36994         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36995         test_locale_name_default): Add test w.r.t. thread locale.
36996         (test_locale_name_thread): New function.
36997         (main): Invoke it.
36998
36999         localename: Make aware of thread locale.
37000         * lib/localename.h (gl_locale_name_thread): New declaration.
37001         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37002         behaviour with respect to thread locale.
37003         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37004         <langinfo.h>, glthread/lock.h.
37005         (SIZE_BITS): New macro.
37006         (string_hash): New function.
37007         (struct hash_node): New type.
37008         (HASH_TABLE_SIZE): New macro.
37009         (struniq_hash_table, struniq_lock): New variables.
37010         (struniq): New function.
37011         (gl_locale_name_thread): New function.
37012         (gl_locale_name): Invoke it.
37013         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37014         * modules/localename (Depends-on): Add lock.
37015         Reported by Mike Gran <spk121@yahoo.com>.
37016
37017 2009-12-23  Eric Blake  <ebb9@byu.net>
37018
37019         va-args: new module
37020         * modules/va-args: New file.
37021         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37022         * MODULES.html.sh (Core language properties): Mention it.
37023
37024         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37025         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37026         named alias for __attribute__((__unused__)).
37027         * lib/chown.c: Update client.
37028         * lib/fchmodat.c: Likewise.
37029         * lib/fts.c: Likewise.
37030         * lib/getdate.y: Likewise.
37031         * lib/getgroups.c: Likewise.
37032         * lib/getopt.c: Likewise.
37033         * lib/getugroups.c: Likewise.
37034         * lib/mkdir.c: Likewise.
37035         * lib/mkfifo.c: Likewise.
37036         * lib/mkfifoat.c: Likewise.
37037         * lib/mknod.c: Likewise.
37038         * lib/mknodat.c: Likewise.
37039         * lib/readlink.c: Likewise.
37040         * lib/se-context.in.h: Likewise.
37041         * lib/se-selinux.in.h: Likewise.
37042         * lib/sockets.c: Likewise.
37043         * lib/symlink.c: Likewise.
37044         * lib/symlinkat.c: Likewise.
37045         * lib/unicodeio.c: Likewise.
37046         * lib/unistr.h: Likewise.
37047         * tests/test-areadlink.c: Likewise.
37048         * tests/test-areadlinkat.c: Likewise.
37049         * tests/test-filenamecat.c: Likewise.
37050         * tests/test-fseeko.c: Likewise.
37051         * tests/test-ftello.c: Likewise.
37052         * tests/test-getdate.c: Likewise.
37053         * tests/test-getgroups.c: Likewise.
37054         * tests/test-gethostname.c: Likewise.
37055         * tests/test-quotearg.c: Likewise.
37056         * tests/test-version-etc.c: Likewise.
37057         * tests/test-xalloc-die.c: Likewise.
37058         * tests/test-xfprintf-posix.c: Likewise.
37059         * tests/test-xprintf-posix.c: Likewise.
37060         * tests/test-xvasprintf.c: Likewise.
37061
37062         tests: avoid compiler warnings
37063         * tests/test-fcntl.c (main): Delete unused parameters.
37064         * tests/test-freopen-safer.c (main): Likewise.
37065         * tests/test-xalloc-die.c (main): Mark unused parameters.
37066         * tests/test-fseeko.c (main): Likewise.
37067         * tests/test-ftello.c (main): Likewise.
37068         * tests/test-nanosleep.c (main): Avoid declaration warning.
37069         * tests/test-sleep.c (main): Likewise.
37070         * tests/test-unsetenv.c (main): Silence warning about string
37071         literal.
37072         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37073
37074 2009-12-23  Bruno Haible  <bruno@clisp.org>
37075
37076         * tests/test-localename.c (test_locale_name): New function, extracted
37077         from main. Also test mixed situations.
37078         (test_locale_name_posix, test_locale_name_environ,
37079         test_locale_name_default): New functions.
37080         (main): Invoke them all.
37081         * modules/localename-tests (configure.ac): Test for newlocale.
37082
37083 2009-12-23  Bruno Haible  <bruno@clisp.org>
37084
37085         unistd: Ensure getcwd gets declared before being overridden.
37086         * lib/unistd.in.h: Conditionally include <io.h>.
37087
37088 2009-12-22  Bruno Haible  <bruno@clisp.org>
37089
37090         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37091         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37092         (gl_WCHAR_H): Invoke it.
37093         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37094         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37095         Reported by Karl Berry <karl@freefriends.org>.
37096
37097 2009-12-22  Eric Blake  <ebb9@byu.net>
37098
37099         math, unistd: avoid redundant includes
37100         * lib/math.in.h (isnan): No need to re-include <math.h>.
37101         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37102
37103         getsubopt: work around cygwin bug
37104         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37105         avoid conflicting with system getsubopt.
37106         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37107         bug.
37108
37109         getopt: synchronize from glibc
37110         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37111         parameter order.  Adjust all callers.
37112         (_getopt_internal_r, main): Adjust quoting in error messages.
37113         Drop considerations for outdated POSIX 1003.2 error message.
37114         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37115         callers.
37116         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37117
37118         test-getopt: test stderr behavior
37119         * modules/getopt-posix-tests (Depends-on): Add dup2.
37120         * tests/test-getopt.c (ASSERT): Avoid stderr.
37121         (main): Move stderr to a temporary file.
37122         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37123         Instead, add parameter to inform caller if output occurred.
37124         (test_getopt): Adjust all existing tests to expect silence, and
37125         add new tests of leading ":".
37126         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37127         glibc shortcomings with leading "-:" or "+:" in optstring.
37128         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37129         Likewise.
37130         * doc/posix-functions/getopt.texi (getopt): Likewise.
37131
37132         test-getopt: enhance test
37133         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37134         supports optind=0.
37135         * tests/test-getopt.c (OPTIND_MIN): Move...
37136         * tests/test-getopt.h (OPTIND_MIN): ...here.
37137         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37138         Require that optind=0 works, since modern BSD supports it in
37139         addition to optreset, and since coreutils expects it.
37140         (test_getopt_long_only): New test.
37141         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37142         glibc shortcomings with 'W;', and enforcement of optind=0.
37143         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37144         Likewise.
37145
37146 2009-12-21  Bruno Haible  <bruno@clisp.org>
37147
37148         localename: Improvements for MacOS X and Cygwin.
37149         * lib/localename.h (gl_locale_name_environ): New declaration.
37150         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37151         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37152         (gl_locale_name_posix): Invoke it.
37153         (gl_locale_name_default): Add comments. Use Windows native API also on
37154         Cygwin.
37155
37156 2009-12-21  Bruno Haible  <bruno@clisp.org>
37157
37158         Update list of Win32 locale ids.
37159         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37160         (LANG_SAMI): Renamed from LANG_SAAMI.
37161         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37162         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37163         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37164         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37165         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37166         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37167         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37168         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37169         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37170         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37171         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37172         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37173         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37174         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37175         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37176         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37177         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37178         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37179         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37180         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37181         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37182         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37183         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37184         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37185         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37186         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37187         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37188         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37189         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37190         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37191         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37192         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37193         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37194         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37195         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37196         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37197         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37198         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37199         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37200         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37201         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37202         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37203         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37204         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37205         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37206         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37207         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37208         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37209         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37210         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37211         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37212         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37213         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37214         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37215         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37216         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37217         Add more languages and countries for Sami, Sorbian. Add more countries
37218         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37219         for Pashto. Change country for Syriac, Tswana.
37220
37221 2009-12-21  Eric Blake  <ebb9@byu.net>
37222
37223         test-utimens: avoid spurious failure
37224         * tests/test-chown.h (nap): Factor...
37225         * tests/nap.h: ...into new file.
37226         * tests/test-lchown.h (nap): Avoid duplication.
37227         * tests/test-utimens-common.h (nap): Use shared implementation,
37228         necessary on file systems with 1-second resolution.
37229         * modules/chown-tests (Files): Include new file.
37230         * modules/fdutimensat-tests (Files): Likewise.
37231         * modules/futimens-tests (Files): Likewise.
37232         * modules/lchown-tests (Files): Likewise.
37233         * modules/openat-tests (Files): Likewise.
37234         * modules/utimens-tests (Files): Likewise.
37235         * modules/utimensat-tests (Files): Likewise.
37236
37237 2009-12-19  Eric Blake  <ebb9@byu.net>
37238
37239         futimens, utimensat: work around Linux bug
37240         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37241         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37242         * lib/utimensat.c (rpl_utimensat): Work around it.
37243         * lib/futimens.c (rpl_futimens): Adjust comment.
37244
37245         utimens: work around Linux ctime bug
37246         * lib/utimens.c (detect_ctime_bug): New helper function.
37247         (update_timespec): Differentiate between workaround needed for
37248         this bug vs. what is needed for systems that lack utimensat.
37249         (fdutimens, lutimens): Work around bug.
37250
37251         utimens: check for ctime update
37252         * tests/test-utimens-common.h (check_ctime): Define.
37253         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37254         * tests/test-futimens.h (test_futimens): Likewise.
37255         * tests/test-lutimens.h (test_lutimens): Likewise.
37256         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37257         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37258
37259 2009-12-19  Bruno Haible  <bruno@clisp.org>
37260
37261         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37262         * tests/test-dprintf-posix2.sh: New file.
37263         * tests/test-dprintf-posix2.c: New file.
37264         * modules/dprintf-posix-tests (Files): Add them.
37265         (configure.ac): Check for getrlimit and setrlimit.
37266         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37267
37268 2009-12-19  Bruno Haible  <bruno@clisp.org>
37269
37270         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37271         * tests/test-fprintf-posix3.sh: New file.
37272         * tests/test-fprintf-posix3.c: New file.
37273         * modules/fprintf-posix-tests (Files): Add them.
37274         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37275
37276 2009-12-19  Eric Blake  <ebb9@byu.net>
37277
37278         dirfd: fix prototype
37279         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37280         * lib/dirfd.c (dirfd): Likewise.
37281
37282         canonicalize: reduce memory usage
37283         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37284         allocation to size.
37285         Reported by Solar Designer <solar@openwall.com>.
37286
37287 2009-12-19  Bruno Haible  <bruno@clisp.org>
37288
37289         New module attribute 'Applicability'.
37290         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37291         * gnulib-tool: New option --extract-applicability.
37292         (func_usage): Document it.
37293         (sed_extract_prog): Recognize it.
37294         (func_get_applicability): New function.
37295         (func_import): Generalize handling of 'link-warning' module.
37296         * modules/link-warning (Applicability): New section.
37297         * modules/arg-nonnull (Applicability): New section.
37298         Repoted by Simon Josefsson <simon@josefsson.org>.
37299
37300 2009-12-19  Bruno Haible  <bruno@clisp.org>
37301
37302         fflush: tweak
37303         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37304         * lib/fseeko.c (rpl_fseeko): Likewise.
37305
37306 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37307
37308         * lib/gl_list.h: Fix typo in comment.
37309
37310 2009-12-16  Eric Blake  <ebb9@byu.net>
37311
37312         fcntl: use to simplify other modules
37313         * modules/cloexec (Depends-on): Add fcntl.
37314         * modules/fchdir (Depends-on): Likewise.
37315         * modules/fd-safer-flag (Depends-on): Likewise.
37316         * modules/unistd-safer (Depends-on): Likewise.
37317         * modules/dup3 (configure.ac): Set module indicator.
37318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37319         missing.
37320         * lib/fchdir.c (_gl_register_dup): Fix comment.
37321         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37322         * lib/dup-safer.c (dup_safer): Likewise.
37323         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37324         * lib/dup3.c (dup3): Likewise.
37325         * tests/test-fchdir.c (main): Enhance test.
37326         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37327
37328         fcntl: port portions of fcntl to mingw
37329         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37330         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37331         replacement for mingw.
37332         * modules/fcntl (Description): Update.
37333         (Depends-on): Add dup2.
37334         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37335         * modules/fcntl-h (Makefile.am): Substitute it.
37336         * lib/fcntl.in.h (fcntl): Update declaration.
37337         (F_DUPFD, F_GETFD): New macros, when needed.
37338         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37339         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37340         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37341         we now guarantee.
37342
37343         fcntl: work around cygwin bug in F_DUPFD
37344         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37345         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37346         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37347         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37348         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37349
37350         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37351         * modules/fcntl (Files): List new files.
37352         (configure.ac): Run a test.
37353         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37354         * lib/fcntl.c (rpl_fcntl): Likewise.
37355         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37356         (gl_FCNTL_H): Always replace fcntl.h.
37357         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37358         * lib/fcntl.in.h (fcntl): Declare replacement.
37359         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37360         needed, plus a witness.
37361         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37362         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37363         * tests/test-fcntl.c: New file.
37364         * modules/fcntl-tests: Likewise.
37365
37366         binary-io: avoid potential compilation warning
37367         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37368         directives.
37369
37370         fflush: avoid compilation error on NetBSD
37371         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37372         between off_t and fpos_t, since the latter is sometimes a struct.
37373         * lib/fseeko.c (rpl_fseeko): Likewise.
37374         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37375
37376 2009-12-15  Eric Blake  <ebb9@byu.net>
37377
37378         fcntl-h, stdio, sys_ioctl: fix declarations
37379         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37380         function must not take arguments.
37381         * lib/sys_ioctl.in.h (ioctl): Likewise.
37382         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37383         (open): Add a link warning.
37384
37385 2009-12-15  Jim Meyering  <meyering@redhat.com>
37386
37387         areadlink, areadlink-with-size: relax license to LGPLv2+
37388         * modules/areadlink (License): Relax to LGPLv2+.
37389         * modules/areadlink-with-size (License): Likewise.
37390
37391 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37392             Bruno Haible  <bruno@clisp.org>
37393
37394         *printf: Fix memory leak.
37395         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37396         * lib/vfprintf.c (vfprintf): Likewise.
37397         * lib/dprintf.c (dprintf): Likewise.
37398         * lib/vdprintf.c (vdprintf): Likewise.
37399
37400 2009-12-14  Eric Blake  <ebb9@byu.net>
37401
37402         accept4: adjust module dependencies
37403         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37404
37405         utimens: one more try at avoiding compiler warning
37406         * lib/utimens.c (lutimens): Lower scope of result.
37407
37408 2009-12-13  Bruno Haible  <bruno@clisp.org>
37409
37410         Move the malloc checking from module 'list' to new module 'xlist'.
37411         * modules/xlist: New file.
37412         * lib/gl_xlist.h: New file.
37413         * lib/gl_xlist.c: New file.
37414         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37415         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37416         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37417         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37418         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37419         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37420         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37421         gl_sortedlist_nx_add): New declarations.
37422         (struct gl_list_implementation): Rename and change methods accordingly.
37423         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37424         (gl_list_nx_create): Renamed from gl_list_create.
37425         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37426         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37427         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37428         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37429         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37430         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37431         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37432         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37433         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37434         gl_list_create_empty.
37435         (gl_list_nx_create): Renamed from gl_list_create.
37436         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37437         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37438         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37439         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37440         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37441         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37442         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37443         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37444         * lib/gl_array_list.c: Don't include xalloc.h.
37445         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37446         NULL upon out-of-memory.
37447         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37448         out-of-memory.
37449         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37450         Change return type to 'int'.
37451         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37452         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37453         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37454         upon out-of-memory.
37455         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37456         upon out-of-memory.
37457         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37458         upon out-of-memory.
37459         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37460         upon out-of-memory.
37461         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37462         out-of-memory.
37463         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37464         Update.
37465         (gl_array_list_implementation): Update.
37466         * lib/gl_carray_list.c: Don't include xalloc.h.
37467         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37468         Return NULL upon out-of-memory.
37469         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37470         out-of-memory.
37471         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37472         Change return type to 'int'.
37473         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37474         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37475         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37476         upon out-of-memory.
37477         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37478         upon out-of-memory.
37479         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37480         out-of-memory.
37481         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37482         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37483         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37484         Update.
37485         (gl_carray_list_implementation): Update.
37486         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37487         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37488         gl_linked_create_empty. Return NULL upon out-of-memory.
37489         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37490         out-of-memory.
37491         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37492         Change return type to 'int'. Return -1 upon out-of-memory.
37493         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37494         out-of-memory.
37495         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37496         upon out-of-memory.
37497         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37498         upon out-of-memory.
37499         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37500         NULL upon out-of-memory.
37501         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37502         upon out-of-memory.
37503         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37504         out-of-memory.
37505         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37506         Update.
37507         * lib/gl_linked_list.c: Don't include xalloc.h.
37508         (gl_linked_list_implementation): Update.
37509         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37510         (add_to_bucket): Change return type to 'int'.
37511         (gl_linkedhash_list_implementation): Update.
37512         * lib/gl_anytree_list1.h (free_subtree): New function.
37513         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37514         gl_tree_create_empty. Return NULL upon out-of-memory.
37515         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37516         Change return type to 'int'. Return -1 upon out-of-memory.
37517         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37518         out-of-memory.
37519         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37520         (gl_tree_remove_node): New function, moved here from
37521         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37522         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37523         Update.
37524         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37525         malloc, not xmalloc. Return NULL upon out-of-memory.
37526         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37527         out-of-memory.
37528         (gl_tree_remove_node_from_tree): New function, extracted from
37529         gl_tree_remove_node.
37530         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37531         upon out-of-memory.
37532         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37533         out-of-memory.
37534         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37535         upon out-of-memory.
37536         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37537         upon out-of-memory.
37538         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37539         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37540         not xmalloc. Return NULL upon out-of-memory.
37541         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37542         out-of-memory.
37543         (gl_tree_remove_node_from_tree): New function, extracted from
37544         gl_tree_remove_node.
37545         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37546         upon out-of-memory.
37547         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37548         out-of-memory.
37549         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37550         upon out-of-memory.
37551         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37552         upon out-of-memory.
37553         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37554         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37555         gl_anytree_list1.h before gl_anyavltree_list2.h.
37556         (gl_avltree_list_implementation): Update.
37557         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37558         gl_anytree_list1.h before gl_anyavltree_list2.h.
37559         (gl_rbtree_list_implementation): Update.
37560         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37561         Change return type to 'int'. Return -1 upon out-of-memory. Use
37562         __builtin_expect.
37563         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37564         (gl_avltreehash_list_implementation): Update.
37565         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37566         (gl_rbtreehash_list_implementation): Update.
37567         * modules/array-list (Depends-on): Remove xalloc.
37568         * modules/carray-list (Depends-on): Likewise.
37569         * modules/linked-list (Depends-on): Likewise.
37570         * modules/linkedhash-list (Depends-on): Likewise.
37571         * modules/avltree-list (Depends-on): Likewise.
37572         * modules/rbtree-list (Depends-on): Likewise.
37573         * modules/avltreehash-list (Depends-on): Likewise.
37574         * modules/rbtreehash-list (Depends-on): Likewise.
37575
37576         * modules/xsublist: New file.
37577         * lib/gl_xsublist.h: New file.
37578         * lib/gl_xsublist.c: New file.
37579         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37580         (gl_sublist_nx_create): New declaration.
37581         * lib/gl_sublist.c: Don't include xalloc.h.
37582         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37583         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37584         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37585         Change return type to 'int'. Return -1 upon out-of-memory.
37586         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37587         upon out-of-memory.
37588         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37589         NULL upon out-of-memory.
37590         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37591         upon out-of-memory.
37592         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37593         NULL upon out-of-memory.
37594         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37595         NULL upon out-of-memory.
37596         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37597         upon out-of-memory.
37598         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37599         (gl_sublist_list_implementation): Update.
37600         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37601         upon out-of-memory.
37602         * modules/sublist (Depends-on): Remove xalloc.
37603
37604         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37605         * tests/test-carray_list.c: Likewise.
37606         * tests/test-linked_list.c: Likewise.
37607         * tests/test-linkedhash_list.c: Likewise.
37608         * tests/test-avltree_list.c: Likewise.
37609         * tests/test-rbtree_list.c: Likewise.
37610         * tests/test-avltreehash_list.c: Likewise.
37611         * tests/test-rbtreehash_list.c: Likewise.
37612         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37613         * modules/carray-list-tests (Makefile.am): Likewise.
37614         * modules/linked-list-tests (Makefile.am): Likewise.
37615         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37616         * modules/avltree-list-tests (Makefile.am): Likewise.
37617         * modules/rbtree-list-tests (Makefile.am): Likewise.
37618         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37619         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37620
37621         * NEWS: Mention the changes.
37622
37623         * lib/clean-temp.c: Include gl_xlist.h.
37624         * modules/clean-temp (Depends-on): Add xlist.
37625
37626         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37627         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37628
37629         * tests/test-array_oset.c: Include gl_xlist.h.
37630         * modules/array-oset-tests (Depends-on): Add xlist.
37631
37632         Reported by José E. Marchesi <jemarch@gnu.org>.
37633
37634 2009-12-13  Bruno Haible  <bruno@clisp.org>
37635
37636         Move the malloc checking from module 'oset' to new module 'xoset'.
37637         * modules/xoset: New file.
37638         * lib/gl_xoset.h: New file.
37639         * lib/gl_xoset.c: New file.
37640         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37641         declarations.
37642         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37643         (struct gl_oset_implementation): Rename and change methods accordingly.
37644         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37645         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37646         'int'. Mark as __warn_unused_result__.
37647         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37648         gl_oset_create_empty.
37649         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37650         'int'.
37651         * lib/gl_array_oset.c: Don't include xalloc.h.
37652         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37653         malloc, not xmalloc.
37654         (grow): Change return type to 'int'. Don't call xalloc_die.
37655         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37656         to 'int'.
37657         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37658         'int'.
37659         (gl_array_oset_implementation): Update.
37660         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37661         gl_tree_create_empty.
37662         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37663         'int'.
37664         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37665         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37666         xmalloc.
37667         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37668         not xmalloc.
37669         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37670         xmalloc.
37671         (gl_avltree_oset_implementation): Update.
37672         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37673         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37674         xmalloc.
37675         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37676         not xmalloc.
37677         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37678         xmalloc.
37679         (gl_rbtree_oset_implementation): Update.
37680         * modules/array-oset (Depends-on): Remove xalloc.
37681         * modules/avltree-oset (Depends-on): Likewise.
37682         * modules/rbtree-oset (Depends-on): Likewise.
37683         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37684         * tests/test-avltree_oset.c: Likewise.
37685         * tests/test-rbtree_oset.c: Likewise.
37686         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37687         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37688         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37689         * NEWS: Mention the change.
37690
37691 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37692
37693         maint.mk: allow a project to override release-prep commands
37694         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37695         commands into a new rule.
37696         (release-prep): New rule.
37697         (release-prep-hook): New overridable variable.
37698
37699 2009-12-13  Bruno Haible  <bruno@clisp.org>
37700
37701         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37702
37703 2009-12-13  Jim Meyering  <meyering@redhat.com>
37704
37705         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37706         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37707
37708 2009-12-12  Bruno Haible  <bruno@clisp.org>
37709
37710         duplocale: Tweak.
37711         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37712
37713 2009-12-12  Karl Berry  <karl@gnu.org>
37714
37715         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37716
37717 2009-12-12  Bruno Haible  <bruno@clisp.org>
37718
37719         * m4/po.m4: Undo incorrect untabification.
37720
37721 2009-12-12  Bruno Haible  <bruno@clisp.org>
37722
37723         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37724         * modules/c-strtod (Depends-on): Add locale.
37725         * modules/c-strtold (Depends-on): Likewise.
37726
37727 2009-12-12  Bruno Haible  <bruno@clisp.org>
37728
37729         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37730
37731 2009-12-11  Eric Blake  <ebb9@byu.net>
37732
37733         setenv: relax requirement in light of POSIX ruling
37734         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37735         not NULL.
37736         * tests/test-setenv.c (main): Relax test.
37737         * tests/test-unsetenv.c (main): Likewise.
37738         * doc/posix-functions/setenv.texi (setenv): Document this.
37739         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37740
37741 2009-12-11  Bruno Haible  <bruno@clisp.org>
37742
37743         New module 'fd-safer-flag'.
37744         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37745         * lib/dup-safer.c (dup_safer_flag): Remove function.
37746         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37747         * lib/fd-safer.c (fd_safer_flag): Remove function.
37748         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37749         * modules/cloexec (configure.ac): Drop indicator macro.
37750         * modules/fd-safer-flag: New file.
37751         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37752         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37753         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37754
37755 2009-12-11  Bruno Haible  <bruno@clisp.org>
37756
37757         Tests for module 'nl_langinfo'.
37758         * modules/nl_langinfo-tests: New file.
37759         * tests/test-nl_langinfo.sh: New file.
37760         * tests/test-nl_langinfo.c: New file.
37761
37762         New module 'nl_langinfo'.
37763         * lib/nl_langinfo.c: New file.
37764         * m4/nl_langinfo.m4: New file.
37765         * modules/nl_langinfo: New file.
37766         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37767
37768 2009-12-11  Bruno Haible  <bruno@clisp.org>
37769
37770         Tests for module 'langinfo'.
37771         * modules/langinfo-tests: New file.
37772         * tests/test-langinfo.c: New file.
37773
37774         New module 'langinfo'.
37775         * lib/langinfo.in.h: New file.
37776         * m4/langinfo_h.m4: New file.
37777         * modules/langinfo: New file.
37778         * doc/posix-headers/langinfo.texi: Mention the new module.
37779
37780 2009-12-11  Bruno Haible  <bruno@clisp.org>
37781
37782         * lib/config.charset: Untabify.
37783
37784 2009-12-11  Bruno Haible  <bruno@clisp.org>
37785
37786         * modules/unistd-safer (configure.ac): Drop indicator macro.
37787
37788 2009-12-11  Bruno Haible  <bruno@clisp.org>
37789
37790         Move pipe2-safer code to its own file.
37791         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37792         * lib/pipe-safer.c (pipe2_safer): Remove function.
37793         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37794         (Makefile.am): Add it to lib_SOURCES.
37795
37796 2009-12-10  Bruno Haible  <bruno@clisp.org>
37797
37798         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37799
37800 2009-12-10  Bruno Haible  <bruno@clisp.org>
37801
37802         Declare which arguments expect non-NULL values, for GCC and clang.
37803         * build-aux/arg-nonnull.h: New file.
37804         * modules/arg-nonnull: New file.
37805         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37806         (inet_ntop, inet_pton): Use it.
37807         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37808         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37809         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37810         (open, openat): Use it.
37811         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37812         (fnmatch): Use it.
37813         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37814         (getopt, getopt_long, getopt_long_only): Use it.
37815         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37816         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37817         Use it.
37818         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37819         (iconv_open): Use it.
37820         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37821         (strtoimax, strtoumax): Use it.
37822         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37823         (duplocale): Use it.
37824         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37825         (frexp, frexpl): Use it.
37826         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37827         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37828         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37829         (tsearch, tfind, tdelete, twalk): Use it.
37830         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37831         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37832         sigpending): Use it.
37833         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37834         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37835         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37836         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37837         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37838         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37839         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37840         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37841         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37842         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37843         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37844         Use it.
37845         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37846         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37847         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37848         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37849         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37850         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37851         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37852         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37853         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37854         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37855         strtoull, unsetenv): Use it.
37856         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37857         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37858         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37859         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37860         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37861         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37862         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37863         (strcasecmp, strncasecmp): Use it.
37864         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37865         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37866         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37867         rpl_setsockopt): Use it.
37868         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37869         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37870         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37871         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37872         (gettimeofday): Use it.
37873         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37874         (times): Use it.
37875         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37876         (uname): Use it.
37877         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37878         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37879         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37880         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37881         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37882         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37883         unlinkat, write): Use it.
37884         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37885         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37886         * lib/argv-iter.h: Include arg-nonnull.h.
37887         (_ATTRIBUTE_NONNULL_): Remove macro.
37888         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37889         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37890         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37891         optimization.
37892         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37893         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37894         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37895         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37896         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37897         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37898         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37899         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37900         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37901         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37902         * modules/dirent (Depends-on): Add arg-nonnull.
37903         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37904         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37905         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37906         * modules/fnmatch (Depends-on): Add arg-nonnull.
37907         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37908         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37909         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37910         * modules/glob (Depends-on): Add arg-nonnull.
37911         (Makefile.am): Insert arg-nonnull.h into glob.h.
37912         * modules/iconv_open (Depends-on): Add arg-nonnull.
37913         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37914         * modules/inttypes (Depends-on): Add arg-nonnull.
37915         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37916         * modules/locale (Depends-on): Add arg-nonnull.
37917         (Makefile.am): Insert arg-nonnull.h into locale.h.
37918         * modules/math (Depends-on): Add arg-nonnull.
37919         (Makefile.am): Insert arg-nonnull.h into math.h.
37920         * modules/netdb (Depends-on): Add arg-nonnull.
37921         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37922         * modules/search (Depends-on): Add arg-nonnull.
37923         (Makefile.am): Insert arg-nonnull.h into search.h.
37924         * modules/signal (Depends-on): Add arg-nonnull.
37925         (Makefile.am): Insert arg-nonnull.h into signal.h.
37926         * modules/spawn (Depends-on): Add arg-nonnull.
37927         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37928         * modules/stdio (Depends-on): Add arg-nonnull.
37929         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37930         * modules/stdlib (Depends-on): Add arg-nonnull.
37931         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37932         * modules/string (Depends-on): Add arg-nonnull.
37933         (Makefile.am): Insert arg-nonnull.h into string.h.
37934         * modules/strings (Depends-on): Add arg-nonnull.
37935         (Makefile.am): Insert arg-nonnull.h into strings.h.
37936         * modules/sys_socket (Depends-on): Add arg-nonnull.
37937         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37938         * modules/sys_stat (Depends-on): Add arg-nonnull.
37939         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37940         * modules/sys_time (Depends-on): Add arg-nonnull.
37941         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37942         * modules/sys_times (Depends-on): Add arg-nonnull.
37943         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37944         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37945         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37946         * modules/time (Depends-on): Add arg-nonnull.
37947         (Makefile.am): Insert arg-nonnull.h into time.h.
37948         * modules/unistd (Depends-on): Add arg-nonnull.
37949         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37950         * modules/wchar (Depends-on): Add arg-nonnull.
37951         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37952         * modules/argv-iter (Depends-on): Add arg-nonnull.
37953         * tests/test-canonicalize.c (null_ptr): New function.
37954         (main): Use it.
37955         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37956         (main): Use it.
37957         * tests/test-memmem.c (null_ptr): New function.
37958         (main): Use it.
37959         Reported by Jim Meyering.
37960
37961 2009-12-10  Bruno Haible  <bruno@clisp.org>
37962
37963         Use spaces for indentation, not tabs.
37964         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37965         * m4/*.m4: Untabify.
37966         * build-aux/*.h: Untabify.
37967         * tests/**/*.[hc]: Untabify.
37968         * README: New section "Indent with spaces, not TABs", based on
37969         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37970         * NEWS: Mention the change.
37971
37972 2009-12-10  Bruno Haible  <bruno@clisp.org>
37973
37974         pty test: Fix link error.
37975         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37976         test_pty_LDADD.
37977
37978 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37979
37980         * modules/pty: New file.
37981         * modules/pty-tests: New file.
37982         * m4/pty.m4: New file.
37983         * tests/test-pty.c: New file.
37984         * doc/glibc-headers/pty.texi: Modified.
37985         * doc/glibc-functions/forkpty.texi: Modified.
37986         * doc/glibc-functions/openpty.texi: Modified.
37987
37988 2009-12-10  Bruno Haible  <bruno@clisp.org>
37989
37990         Avoid syntax error in C++ mode.
37991         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37992
37993 2009-12-10  Bruno Haible  <bruno@clisp.org>
37994
37995         Use sed with option -e.
37996         * gnulib-tool (func_version, func_emit_copyright_notice,
37997         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37998         option -e to sed.
37999         * modules/link-warning (Makefile.am): Likewise.
38000
38001 2009-12-10  Jim Meyering  <meyering@redhat.com>
38002
38003         mgetgroups: do not write bytes beyond end of malloc'd buffer
38004         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38005         username, we call getgroups with a one-element-shorter buffer,
38006         but still told it the length was original, max_n_groups.
38007
38008 2009-12-09  Eric Blake  <ebb9@byu.net>
38009
38010         cloexec: relax license
38011         * modules/cloexec (Maintainer): Add myself.
38012         (License): Use LGPL, not GPL.
38013
38014         link-warning: optimize generation
38015         * modules/link-warning (Makefile.am): Reduce process usage.
38016
38017 2009-12-09  Bruno Haible  <bruno@clisp.org>
38018
38019         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38020         workaround was added on 2009-11-17.
38021
38022 2009-12-09  Jim Meyering  <meyering@redhat.com>
38023             Bruno Haible  <bruno@clisp.org>
38024
38025         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38026         * modules/link-warning (Makefile.am): Make the comment-removing sed
38027         command more robust in the face of bootstrap-prepended comment lines.
38028
38029 2009-12-09  Bruno Haible  <bruno@clisp.org>
38030
38031         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38032         most one group.
38033
38034 2009-12-09  Simon Josefsson <simon@josefsson.org>
38035             Bruno Haible  <bruno@clisp.org>
38036
38037         * build-aux/link-warning.h: Add copyright notice.
38038         * modules/link-warning (Makefile.am): Generate link-warning.h from
38039         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38040         * NEWS: Mention change in link-warning module.
38041         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38042         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38043         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38044         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38045         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38046         * modules/math (Makefile.am): Add dependency to math.h.
38047         * modules/search (Makefile.am): Add dependency to search.h.
38048         * modules/signal (Makefile.am): Add dependency to signal.h.
38049         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38050         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38051         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38052         * modules/string (Makefile.am): Add dependency to string.h.
38053         * modules/strings (Makefile.am): Add dependency to strings.h.
38054         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38055         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38056         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38057         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38058         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38059         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38060         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38061         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38062         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38063
38064 2009-12-09  Bruno Haible  <bruno@clisp.org>
38065
38066         fchdir: Optimize away rpl_fstat when possible.
38067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38068         REPLACE_OPEN_DIRECTORY.
38069         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38070
38071 2009-12-09  Bruno Haible  <bruno@clisp.org>
38072
38073         * lib/fchdir.c: Update comment.
38074
38075 2009-12-09  Bruno Haible  <bruno@clisp.org>
38076
38077         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38078
38079 2009-12-08  Eric Blake  <ebb9@byu.net>
38080
38081         fchdir: avoid memory leak on re-registration.
38082         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38083
38084 2009-12-08  Jim Meyering  <meyering@redhat.com>
38085
38086         init.sh: avoid Solaris 10 /bin/sh portability problem
38087         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38088         sourced script:
38089           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38090           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38091           bar
38092         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38093         and two tests used that idiom.
38094         * tests/init.sh: Update suggested usage comments.
38095         (path_prepend_): New function, to be used in place
38096         of the --src-path=DIR option.
38097         (setup_): Move PATH-prepending code into path_prepend_.
38098         * tests/test-pread.sh: Adapt to new usage.
38099         * tests/test-xalloc-die.sh: Likewise.
38100
38101 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38102
38103         * doc/gnulib.texi (Glibc pty.h): Add.
38104         * doc/glibc-functions/forkpty.texi: Add.
38105         * doc/glibc-functions/openpty.texi: Add.
38106         Suggested by Bruno Haible.
38107
38108 2009-12-08  Eric Blake  <ebb9@byu.net>
38109
38110         fchdir: fix logic bugs
38111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38112         * tests/test-fchdir.c (main): Enhance test.
38113         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38114         is in use.
38115
38116         dup2: fix logic bugs
38117         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38118         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38119         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38120         exists.
38121         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38122
38123 2009-12-07  Eric Blake  <ebb9@byu.net>
38124
38125         unlink: fix m4 detection
38126         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38127
38128         unistd-safer: add unit test
38129         * modules/unistd-safer-tests: New file.
38130         * tests/test-dup-safer.c: Likewise.
38131         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38132         * tests/test-dup2.c (setmode): Likewise.
38133         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38134
38135         cloexec: preserve text vs. binary across dup_cloexec
38136         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38137         mode.
38138         * modules/dup2-tests (Depends-on): Add binary-io.
38139         * modules/cloexec-tests (Depends-on): Likewise.
38140         * tests/test-dup2.c (setmode, is_mode): New helpers.
38141         (main): Add tests that translation mode is preserved.
38142         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38143         Reported by Bruno Haible.
38144
38145         mgetgroups: reduce duplicate listings
38146         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38147         resulting array.
38148         * tests/test-chown.h (test_chown): Simplify client.
38149         * tests/test-lchown.h (test_lchown): Likewise.
38150
38151 2009-12-06  Bruno Haible  <bruno@clisp.org>
38152
38153         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38154         value.
38155
38156 2009-12-06  Bruno Haible  <bruno@clisp.org>
38157
38158         * lib/progname.c: Include stdio.h, stdlib.h.
38159         (set_program_name): Reject a NULL argument.
38160
38161 2009-12-05  Eric Blake  <ebb9@byu.net>
38162
38163         pipe2-safer: new module
38164         * modules/pipe2-safer: New file.
38165         * lib/unistd-safer.h (pipe2_safer): New prototype.
38166         * lib/unistd--.h (pipe2): New wrapper.
38167         * lib/pipe-safer.c (pipe2_safer): New function.
38168         * modules/pipe (Depends-on): Add pipe2-safer.
38169         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38170
38171         stdlib-safer: preserve cloexec flag for mkostemp[s]
38172         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38173         fd_safer_flag.
38174
38175         unistd-safer: allow preservation of cloexec status via flag
38176         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38177         prototypes.
38178         * lib/dup-safer.c (dup_safer_flag): New function.
38179         * lib/fd-safer.c (fd_safer_flag): Likewise.
38180         * modules/cloexec (configure.ac): Set witness.
38181
38182         test-dup2: enhance test
38183         * modules/dup2-tests (Depends-on): Add cloexec.
38184         * tests/test-dup2.c (main): Enhance test.
38185
38186         cloexec: add dup_cloexec
38187         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38188         header and comments.
38189         * lib/cloexec.c (set_cloexec_flag): Add comments.
38190         (dup_cloexec): New function, with mingw implementation borrowed
38191         from...
38192         * lib/w32spawn.h (dup_noinherit): ...here.
38193         * modules/execute (Depends-on): Add cloexec.
38194         * modules/pipe (Depends-on): Likewise.
38195         * modules/cloexec (Depends-on): Add dup2.
38196         * modules/cloexec-tests (Files): New file.
38197         * tests/test-cloexec.c: Likewise.
38198
38199         test-xalloc-die: fix test for mingw
38200         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38201         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38202         directory and .exe suffix off argv[0] output.
38203
38204         test-fseeko: fix test for mingw
38205         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38206         than undefining fseek, so test will pass on mingw.
38207
38208 2009-12-05  Bruno Haible  <bruno@clisp.org>
38209
38210         * lib/progname.h (set_program_name): Clarify specification.
38211         * lib/progname.c (set_program_name): Likewise.
38212         Reported by Jim Meyering.
38213
38214 2009-12-05  Jim Meyering  <meyering@redhat.com>
38215
38216         maint.mk: backslash-escape parens in default regexp
38217         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38218         backslash-escape the literal parentheses.
38219
38220         maint.mk: news-date-check: use grep -E
38221         * top/maint.mk (today): Define a Make variable, not a...
38222         (news-date-check): ...shell variable.
38223         (news-date-regexp): Use the Make variable.
38224         Use grep's -E option.  Change the failing diagnostic to mention
38225         the variable, $(news-date-regexp).
38226
38227 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38228
38229         maintainer-makefile: allow customization of NEWS entry format
38230         * top/maint.mk (news-date-regexp): New overridable variable.
38231         (news-date-check): Use it.
38232
38233 2009-12-04  Eric Blake  <ebb9@byu.net>
38234
38235         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38236         * lib/mgetgroups.h (xgetgroups): New prototype.
38237         * lib/mgetgroups.c (xgetgroups): New wrapper.
38238         (mgetgroups): Handle ENOSYS.
38239         * modules/mgetgroups (Depends-on): Add realloc.
38240         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38241
38242         mgetgroups: avoid argument promotion issues with -1
38243         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38244         for invalid gid_t.
38245         * tests/test-chown.h (getegid, test_chown): Likewise.
38246         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38247
38248 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38249
38250         exclude: Fix header file problems.
38251         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38252
38253 2009-12-01  Jim Meyering  <meyering@redhat.com>
38254
38255         fts: fts_open: do not let an empty string cause immediate failure
38256         This is required in support of GNU rm, for which the command
38257         "rm A '' B" must process and remove both A and B, in spite of
38258         the empty string argument.
38259         * lib/fts.c (fts_open): Do not let the presence of an empty string
38260         cause fts_open to fail immediately.  Most fts-using tools must be
38261         able to process all arguments, in order, and can be expected to
38262         diagnose such arguments themselves.
38263
38264 2009-11-30  Eric Blake  <ebb9@byu.net>
38265
38266         utimens: fix compilation error
38267         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38268         Declare variable at right scope.
38269
38270 2009-11-29  Jim Meyering  <meyering@redhat.com>
38271
38272         bootstrap: handle perl-5.11's changed --version output
38273         * build-aux/bootstrap (get_version): Handle perl separately,
38274         since perl-5.11's --version output is different.
38275
38276 2009-11-28  Jim Meyering  <meyering@redhat.com>
38277
38278         userspec: depend on the inttostr module, too
38279         * modules/userspec (Depends-on): Add inttostr.
38280
38281         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38282         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38283         number of MAXUID when it evaluates to (uid_t) -1.
38284         Likewise for group ID.  Reported by Matt McCutchen in
38285         <http://savannah.gnu.org/bugs/?28113>
38286
38287         userspec: reformat to use spaces, not TABs
38288         * lib/userspec.c: Expand TABs to spaces.
38289         Add Emacs' "indent-tabs-mode: nil" hint.
38290
38291 2009-11-27  Eric Blake  <ebb9@byu.net>
38292
38293         getopt-gnu: flush out another BSD bug
38294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38295         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38296         flush out BSD bug.
38297         * tests/test-getopt.h (test_getopt): End lists with NULL.
38298         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38299         (test_getopt_long_posix): Enhance test.
38300         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38301         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38302         getopt-gnu.
38303         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38304         Likewise.
38305
38306 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38307
38308         * modules/idpriv-droptemp-tests (Notice): Fix text.
38309
38310 2009-11-27  Jim Meyering  <meyering@redhat.com>
38311
38312         test-xalloc-die: avoid spurious failure due to libtool argv difference
38313         In a libtool-enabled project, this test would fail due to a difference
38314         in the emitted program name, e.g.,
38315         -test-xalloc-die: memory exhausted
38316         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38317         Use program to avoid that.
38318         * modules/xalloc-die-tests (Depends-on): Add progname.
38319         * tests/test-xalloc-die.c: Include progname.h".
38320         (program_name): Remove decl.
38321         (main): Call set_program_name.
38322         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38323
38324 2009-11-26  Richard Jones  <rjones@redhat.com>
38325
38326         w32sock: leave win32 error in place.
38327         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38328
38329 2009-11-26  Eric Blake  <ebb9@byu.net>
38330
38331         init.sh: suggest to use skip_ and fail_ functions in comments
38332         * tests/init.sh: Add a sentence.
38333
38334 2009-11-25  Bruno Haible  <bruno@clisp.org>
38335
38336         init.sh: add documentation in comments
38337         * tests/init.sh: Add some developer and user documentation.
38338
38339 2009-11-26  Jim Meyering  <meyering@redhat.com>
38340
38341         init.sh: accommodate even those who specify bogus srcdir manually
38342         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38343         configure-time tests to be sanitized, so that there is no need to
38344         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38345         (with no double quotes) suffices.  However, since tests may be
38346         invoked manually, and since you may explicitly set srcdir to the
38347         name of a directory containing spaces, do quote its uses here.
38348         * tests/test-pread.sh: Likewise.
38349         Suggested by Bruno Haible.
38350
38351         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38352         * tests/test-pread.sh: Write no data into the pipe, because
38353         test-pread actually reads none.  This avoids a diagnostic,
38354         "bash: echo: write error: Broken pipe", that arises in the unusual
38355         event something is ignoring SIGPIPE, and might be interpreted
38356         as some sort of failure.  Reported by Bruno Haible.
38357
38358 2009-11-25  Jim Meyering  <meyering@redhat.com>
38359
38360         test-pread: cover failure with ESPIPE and EINVAL
38361         * tests/test-pread.c (main): Test for failure, too.
38362         * tests/test-pread.sh: Invoke with stdin on a pipe.
38363         Suggested by Eric Blake.
38364
38365         pread: improvement and fix
38366         * modules/pread (Depends-on): Depend on lseek, for portability to
38367         e.g., mingw.  Suggested by Eric Blake.
38368         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38369
38370         unistd.in.h: correct declaration of pread
38371         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38372         Reported by Richard W.M. Jones.
38373
38374         test-pread.sh: distribute the test script
38375         * modules/pread-tests (Files): Include test-pread.sh.
38376
38377         test-pread.sh: clean up
38378         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38379         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38380         That is unnecessary, since it's always ".".
38381         Suggestion from Eric Blake.
38382
38383         test-pread.sh: make executable
38384         * tests/test-pread.sh: Set executable bit.
38385         Reported by Eric Blake.
38386
38387         correct typo in test-pread.sh
38388         * tests/test-pread.sh: Add #! line.
38389
38390         test pread
38391         * tests/test-pread.c: New file.
38392         * tests/test-pread.sh: Likewise.
38393         * modules/pread-tests: Likewise.
38394
38395         pread: new module
38396         * modules/pread: New file.
38397         * lib/unistd.in.h (pread): Define/declare.
38398         * lib/pread.c (pread): New file.
38399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38400         * modules/unistd (Makefile.am): Substitute witnesses.
38401         * doc/posix-functions/pread.texi (pread): Update.
38402         * MODULES.html.sh: Add pread.
38403
38404 2009-11-25  Jim Meyering  <meyering@redhat.com>
38405
38406         tests/init.sh: new file to be used via most *.sh tests
38407         * tests/init.sh: New file.
38408
38409 2009-11-25  Eric Blake  <ebb9@byu.net>
38410
38411         utimens: work around older Linux failure with symlinks
38412         * lib/utimens.c (lutimensat_works_really): New variable.
38413         (fdutimens, lutimens): Use it to manage kernels that support
38414         nanosecond times on files, but not on symlinks.
38415         Reported by OndÅ™ej Vašík.
38416
38417         utimes: fix configure grammar
38418         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38419
38420 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38421
38422         regex: Fix fastmap for multibyte character ranges.
38423         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38424         characters when a multibyte character range is included.
38425
38426 2009-11-22  Andy Wingo  <wingo@pobox.com>
38427
38428         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38429         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38430
38431 2009-11-24  Bruno Haible  <bruno@clisp.org>
38432
38433         doc: Most *_l functions exist in MacOS X 10.5.
38434         * doc/posix-functions/duplocale.texi: Update platforms list.
38435         * doc/posix-functions/freelocale.texi: Likewise.
38436         * doc/posix-functions/newlocale.texi: Likewise.
38437         * doc/posix-functions/uselocale.texi: Likewise.
38438         * doc/posix-functions/isalnum_l.texi: Likewise.
38439         * doc/posix-functions/isalpha_l.texi: Likewise.
38440         * doc/posix-functions/isblank_l.texi: Likewise.
38441         * doc/posix-functions/iscntrl_l.texi: Likewise.
38442         * doc/posix-functions/isdigit_l.texi: Likewise.
38443         * doc/posix-functions/isgraph_l.texi: Likewise.
38444         * doc/posix-functions/islower_l.texi: Likewise.
38445         * doc/posix-functions/isprint_l.texi: Likewise.
38446         * doc/posix-functions/ispunct_l.texi: Likewise.
38447         * doc/posix-functions/isspace_l.texi: Likewise.
38448         * doc/posix-functions/isupper_l.texi: Likewise.
38449         * doc/posix-functions/iswalnum_l.texi: Likewise.
38450         * doc/posix-functions/iswalpha_l.texi: Likewise.
38451         * doc/posix-functions/iswblank_l.texi: Likewise.
38452         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38453         * doc/posix-functions/iswctype_l.texi: Likewise.
38454         * doc/posix-functions/iswdigit_l.texi: Likewise.
38455         * doc/posix-functions/iswgraph_l.texi: Likewise.
38456         * doc/posix-functions/iswlower_l.texi: Likewise.
38457         * doc/posix-functions/iswprint_l.texi: Likewise.
38458         * doc/posix-functions/iswpunct_l.texi: Likewise.
38459         * doc/posix-functions/iswspace_l.texi: Likewise.
38460         * doc/posix-functions/iswupper_l.texi: Likewise.
38461         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38462         * doc/posix-functions/isxdigit_l.texi: Likewise.
38463         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38464         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38465         * doc/posix-functions/strcoll_l.texi: Likewise.
38466         * doc/posix-functions/strfmon_l.texi: Likewise.
38467         * doc/posix-functions/strftime_l.texi: Likewise.
38468         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38469         * doc/posix-functions/strxfrm_l.texi: Likewise.
38470         * doc/posix-functions/tolower_l.texi: Likewise.
38471         * doc/posix-functions/toupper_l.texi: Likewise.
38472         * doc/posix-functions/towctrans_l.texi: Likewise.
38473         * doc/posix-functions/towlower_l.texi: Likewise.
38474         * doc/posix-functions/towupper_l.texi: Likewise.
38475         * doc/posix-functions/wcscoll_l.texi: Likewise.
38476         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38477         * doc/posix-functions/wctrans_l.texi: Likewise.
38478         * doc/posix-functions/wctype_l.texi: Likewise.
38479         * doc/glibc-functions/strptime_l.texi: Likewise.
38480         * doc/glibc-functions/strtod_l.texi: Likewise.
38481         * doc/glibc-functions/strtof_l.texi: Likewise.
38482         * doc/glibc-functions/strtol_l.texi: Likewise.
38483         * doc/glibc-functions/strtold_l.texi: Likewise.
38484         * doc/glibc-functions/strtoll_l.texi: Likewise.
38485         * doc/glibc-functions/strtoul_l.texi: Likewise.
38486         * doc/glibc-functions/strtoull_l.texi: Likewise.
38487         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38488         * doc/glibc-functions/wcstod_l.texi: Likewise.
38489         * doc/glibc-functions/wcstof_l.texi: Likewise.
38490         * doc/glibc-functions/wcstol_l.texi: Likewise.
38491         * doc/glibc-functions/wcstold_l.texi: Likewise.
38492         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38493         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38494         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38495
38496 2009-11-24  Bruno Haible  <bruno@clisp.org>
38497
38498         duplocale: Fix logic bug.
38499         * lib/duplocale.c: Don't include <langinfo.h>.
38500         (_NL_LOCALE_NAME): Remove macro.
38501         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38502         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38503
38504 2009-11-23  Jim Meyering  <meyering@redhat.com>
38505
38506         test-update-copyright: don't hard-code /usr/bin/perl
38507         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38508         perl to print the current year.  Gilles Espinasse reported that
38509         the replaced use of perl was hard-coded as /usr/bin/perl.
38510
38511 2009-11-23  Bruno Haible  <bruno@clisp.org>
38512
38513         duplocale: Add support for glibc 2.3.x.
38514         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38515
38516 2009-11-22  Bruno Haible  <bruno@clisp.org>
38517
38518         vasnprintf: Tiny optimization.
38519         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38520         MacOS X.
38521
38522 2009-11-22  Bruno Haible  <bruno@clisp.org>
38523
38524         Tests for module 'duplocale'.
38525         * modules/duplocale-tests: New file.
38526         * tests/test-duplocale.c: New file.
38527
38528         New module 'duplocale'.
38529         * m4/duplocale.m4: New file.
38530         * lib/locale.in.h (duplocale): New declaration.
38531         * lib/duplocale.c: New file.
38532         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38533         gl_LOCALE_H_DEFAULTS): New macros.
38534         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38535         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38536         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38537         REPLACE_DUPLOCALE.
38538         * modules/duplocale: New file.
38539         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38540
38541 2009-11-22  Bruno Haible  <bruno@clisp.org>
38542
38543         * modules/locale-tests (configure.ac): Test for newlocale function.
38544         * tests/test-locale.c: When the system has extended locale functions,
38545         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38546
38547         locale: Make locale_t available when possible.
38548         * lib/locale.in.h: Include <xlocale.h> when it exists.
38549         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38550         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38551         * modules/locale (Depends-on): Add extensions.
38552         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38553         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38554
38555 2009-11-22  Bruno Haible  <bruno@clisp.org>
38556
38557         Add comments.
38558         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38559         invocation.
38560         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38561         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38562         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38563
38564 2009-11-22  Bruno Haible  <bruno@clisp.org>
38565
38566         error: account for the possibility of freopen (stdout).
38567         * lib/error.c: Include <unistd.h>.
38568         (flush_stdout): New function, extracted from error and error_at_line.
38569         Determine stdout's fd dynamically.
38570         (error, error_at_line): Invoke flush_stdout.
38571         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38572         * modules/error (Depends-on): Add unistd.
38573
38574 2009-11-22  Bruno Haible  <bruno@clisp.org>
38575
38576         diffseq: Add comment.
38577         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38578
38579 2009-11-22  Jim Meyering  <meyering@redhat.com>
38580
38581         c-stack: avoid defining an unused static function
38582         * lib/c-stack.c (find_stack_direction): Do not define this function
38583         when it will not be used.
38584
38585         diffseq: avoid spurious gcc warnings
38586         * lib/diffseq.h (IF_LINT2): Define.
38587         (compareseq): Use it to initialize two members of "part".
38588         This avoids two used-uninitialized warnings.
38589
38590 2009-11-21  Jim Meyering  <meyering@redhat.com>
38591
38592         c-stack: avoid "ignoring return value of `write'" warning
38593         * lib/c-stack.c: Include "ignore-value.h".
38594         (die): Explicitly ignore each write return value.
38595         * modules/c-stack (Depends-on): Add ignore-value.
38596
38597 2009-11-21  Bruno Haible  <bruno@clisp.org>
38598
38599         diffseq: reduce scope of variable 'best'.
38600         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38601         variable, earlier used for two different purposes.
38602
38603 2009-11-21  Jim Meyering  <meyering@redhat.com>
38604
38605         diffseq: remove useless assignment to "best"
38606         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38607         assignment.  At that point "best" is already guaranteed to be zero.
38608
38609 2009-11-20  Eric Blake  <ebb9@byu.net>
38610
38611         build: mention ftp redirector in release announcements
38612         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38613         values that used to come from cfg.mk; mention FTP redirect URL.
38614         * build-aux/announce-gen: Mention the mirror list.
38615         Suggested by Karl Berry.
38616
38617         nanosleep: improve port to mingw
38618         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38620         LIB_NANOSLEEP, but only when needed.
38621         * modules/select (Link): Document LIBSOCKET.
38622         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38623         enough.
38624
38625         nanosleep: work around cygwin bug
38626         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38627         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38628         bug.
38629         (getnow): Delete, not needed.
38630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38631         LIB_CLOCK_GETTIME.
38632         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38633         clock-time, gettime.
38634         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38635         bug.
38636         * modules/nanosleep-tests: New test.
38637         * tests/test-nanosleep.c: New file.
38638
38639         sleep: work around cygwin bug
38640         * lib/sleep.c (rpl_sleep): Work around the bug.
38641         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38642         (gl_PREREQ_SLEEP): Delete unused macro.
38643         * modules/sleep (Depends-on): Add verify.
38644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38645         * modules/unistd (Makefile.am): Substitute witness.
38646         * lib/unistd.in.h (sleep): Update prototype.
38647         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38648         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38649         * modules/sleep-tests (Depends-on): Check for alarm.
38650
38651 2009-11-20  Jim Meyering  <meyering@redhat.com>
38652
38653         maint.mk: improve sc_prohibit_magic_number_exit
38654         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38655         so it does not match uses like System.exit(1).
38656         Add comments showing how to correct all offenders.
38657
38658 2009-11-19  Eric Blake  <ebb9@byu.net>
38659
38660         xalloc-die-tests: add missing library
38661         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38662
38663         test-xvasprintf: silence compiler warnings
38664         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38665         empty string from gcc.
38666
38667 2009-11-19  Jim Meyering  <meyering@redhat.com>
38668
38669         xfreopen: new module, from coreutils
38670         * modules/xfreopen: New module.
38671         * lib/xfreopen.c: New file.
38672         * lib/xfreopen.h: New file.
38673         * MODULES.html.sh (File stream based Input/Output"): Add it.
38674
38675 2009-11-19  Eric Blake  <ebb9@byu.net>
38676
38677         manywarnings: depend on warnings
38678         * modules/manywarnings (Depends-on): Add warnings.
38679
38680         build: avoid compiler warnings
38681         * lib/select.c (rpl_select): Delete unused variable.
38682         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38683
38684 2009-11-18  Eric Blake  <ebb9@byu.net>
38685
38686         tests: avoid false negative with --with-packager
38687         * tests/test-version-etc.sh: Discard packager information.
38688         * tests/test-argp-version-etc-1.sh: Likewise.
38689         Reported by Mike Frysinger.
38690
38691         utimens: fix regression on Solaris
38692         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38693         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38694         can only change fd timestamps via futimesat.  Instead, use an
38695         additional witness macro to avoid BSD bug.
38696         Reported by Jim Meyering.
38697
38698 2009-11-17  Eric Blake  <ebb9@byu.net>
38699
38700         usleep: use it to simplify tests
38701         * modules/stat-time-tests (Depends-on): Add usleep.
38702         (configure.ac): Drop usleep check.
38703         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38704         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38705         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38706         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38707         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38708         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38709         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38710         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38711         Likewise.
38712         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38713         * tests/test-lchown.h (nap): Likewise.
38714         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38715         * tests/test-stat-time.c (nap): Likewise.
38716         * tests/test-utimens-common.h (nap): Update comments.
38717
38718         usleep: new module
38719         * modules/usleep: New file.
38720         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38721         * lib/usleep.c (usleep): Likewise.
38722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38723         * modules/unistd (Makefile.am): Substitute witnesses.
38724         * lib/unistd.in.h (usleep): Add declaration.
38725         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38726         * MODULES.html.sh (Date and time): Likewise.
38727         * modules/usleep-tests (Depends-on): New test.
38728         * tests/test-usleep.c: New file.
38729
38730         chown: work around OpenBSD bug
38731         * lib/chown.c (rpl_chown): Work around the bug.
38732         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38733         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38734         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38735         * modules/chown (Depends-on): Add stdbool.
38736         * modules/lchown (Depends-on): Likewise.
38737         * doc/posix-functions/chown.texi (chown): Document the bug.
38738         * doc/posix-functions/lchown.texi (lchown): Likewise.
38739         * tests/test-lchown.h (test_chown): Relax test.
38740
38741         mkstemp: avoid conflict with C++ keyword template
38742         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38743         * lib/mkostemp.c (mkostemp): Likewise.
38744         * lib/mkostemps.c (mkostemps): Likewise.
38745         * lib/mkstemp.c (mkstemp): Likewise.
38746         * lib/mkstemps.c (mkstemps): Likewise.
38747
38748         xalloc-die-tests: optimize
38749         * tests/test-xalloc-die.sh: Reduce number of processes.
38750
38751 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38752
38753         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38754         patch from ludo@gnu.org (Ludovic Courtès).
38755
38756 2009-11-17  Jim Meyering  <meyering@redhat.com>
38757
38758         version-etc: use proper license string
38759         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38760         * modules/version-etc-fsf: Likewise.
38761
38762 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38763
38764         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38765         printed to stdout.  Deal with EOL differences.
38766
38767 2009-11-17  Eric Blake  <ebb9@byu.net>
38768
38769         unsetenv: work around Solaris bug
38770         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38771         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38772         Reported by Jim Meyering.
38773
38774         vasnprintf: avoid compiler warnings
38775         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38776         variables.
38777         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38778
38779 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38780
38781         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38782         settings since xalloc-die is no longer the self test,
38783         xalloc-die.sh is.
38784
38785 2009-11-17  Jim Meyering  <meyering@redhat.com>
38786
38787         test-xalloc-die.sh: make the code agree with the commit log
38788         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38789         at the end, just in case you happen to have a test-xalloc-die
38790         program in some other PATH directory.
38791
38792         test-xalloc-die.sh: fix a portability bug
38793         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38794         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38795         Otherwise, argv[0] (as often seen in diagnostics) would be too
38796         system-dependent, sometimes with, and sometimes without the leading "./".
38797
38798         version-etc-fsf: relax license to LGPLv3+
38799         * modules/version-etc-fsf (License): Relax license.
38800
38801 2009-11-16  Eric Blake  <ebb9@byu.net>
38802
38803         xalloc-die-tests: avoid printing null pointer
38804         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38805         shell script.
38806         * tests/test-xalloc-die.c (program_name): Declare.
38807         * tests/test-xalloc-die.sh (tmpfiles): New file.
38808
38809         setenv, unsetenv: work around various bugs
38810         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38811         (setenv) [HAVE_SETENV]: Work around bugs.
38812         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38813         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38814         for bugs.
38815         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38816         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38818         * modules/stdlib (Makefile.am): Update substitutions.
38819         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38820         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38821         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38822         * modules/setenv-tests: New test.
38823         * modules/unsetenv-tests: Likewise.
38824         * tests/test-setenv.c: New file.
38825         * tests/test-unsetenv.c: Likewise.
38826
38827 2009-11-16  Jim Meyering  <meyering@redhat.com>
38828
38829         version-etc: relax license to LGPLv3+
38830         * modules/version-etc (License): Relax license.
38831
38832         better AC_REQUIRE expanded-before-required-warning avoidance
38833         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38834         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38835         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38836         which is no longer needed.
38837
38838 2009-11-16  Eric Blake  <ebb9@byu.net>
38839
38840         test-freading: clean up temporary file
38841         * tests/test-freading.c (main): Remove file on success, and use
38842         ASSERT more liberally.
38843         Reported by Jim Meyering.
38844
38845 2009-11-16  Jim Meyering  <meyering@redhat.com>
38846
38847         avoid new AC_REQUIRE expanded-before-required warnings
38848         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38849         merely using it.
38850         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38851         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38852
38853 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38854
38855         * tests/test-xalloc-die.c: New file.
38856         * modules/xalloc-die-tests: New file.
38857         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38858         XFAIL_TESTS so it can be appended by modules.
38859
38860 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38861
38862         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38863         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38864
38865 2009-11-14  Eric Blake  <ebb9@byu.net>
38866
38867         fnmatch: avoid compiler warning
38868         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38869         to silence compiler warning about mismatch signedness in ?:.
38870         Reported by Robert Millan.
38871
38872         intprops: add double-inclusion guard
38873         * lib/intprops.h: Allow idempotent includes.
38874         Suggested by Bruce Korb.
38875
38876         openat: detect Solaris fchownat bug
38877         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38878         penalizing glibc chownat when only lchownat is broken.
38879         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38880         trailing slash bugs.
38881         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38882         * modules/openat-tests (Files): Include more files.
38883         (Depends-on): Add mgetgroups, sleep, stat-time.
38884         (configure.ac): Add additional checks.
38885         (Makefile.am): Build new test.
38886         * tests/test-fchownat.c: New file.
38887
38888         lchown: detect Solaris and FreeBSD bug
38889         * lib/lchown.c (rpl_lchown): Work around bug.
38890         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38892         * modules/unistd (Makefile.am): Populate it.
38893         * lib/unistd.in.h (lchown): Update declaration.
38894         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38895         * modules/lchown-tests: New file.
38896         * tests/test-lchown.h (test_lchown): Likewise.
38897         * tests/test-lchown.c (main): Likewise.
38898
38899         chown: detect Solaris and FreeBSD bug
38900         * lib/chown.c (rpl_chown): Work around bug.
38901         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38902         (gl_PREREQ_CHOWN): Delete.
38903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38904         * modules/unistd (Makefile.am): Populate it.
38905         * lib/unistd.in.h (chown): Update declaration.
38906         * lib/lchown.c (chown): Update client.
38907         * modules/lchown (Depends-on): Add lstat.
38908         * doc/posix-functions/chown.texi (chown): Document the bug.
38909         * doc/posix-functions/getgroups.texi (getgroups): Document
38910         getgroups pitfall.
38911         * modules/chown-tests: New file.
38912         * tests/test-chown.h (test_chown): Likewise.
38913         * tests/test-chown.c (main): Likewise.
38914
38915 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38916
38917         gnulib-tool: correctly detect absence of m4 directories
38918         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38919
38920 2009-11-14  Jim Meyering  <meyering@redhat.com>
38921
38922         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38923         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38924
38925 2009-11-14  John W. Eaton  <jwe@gnu.org>
38926
38927         strftime.h: wrap funtion declaration in extern "C" block
38928         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38929
38930 2009-11-13  Eric Blake  <ebb9@byu.net>
38931
38932         getgroups: avoid compiler warning
38933         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38934
38935         getgroups: work around FreeBSD bug
38936         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38937         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38938         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38939         * tests/test-getgroups.c (main): Fix buffer overrun.
38940
38941         getgroups: avoid compilation failure
38942         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38943         * modules/getgroups (Depends-on): Add stdint.
38944
38945 2009-11-13  Jim Meyering  <meyering@redhat.com>
38946
38947         test-getgroups: avoid compilation failure
38948         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38949
38950 2009-11-13  Eric Blake  <ebb9@byu.net>
38951
38952         mgetgroups: new module, taken from coreutils
38953         * modules/mgetgroups: New file.
38954         * lib/mgetgroups.h: Likewise.
38955         * lib/mgetgroups.c (mgetgroups): Likewise.
38956         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38957         * MODULES.html.sh (Users and groups): Mention it.
38958
38959         getgroups: don't expose GETGROUPS_T to user
38960         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38961         an element at a time if GETGROUPS_T is wrong size.
38962         * lib/getugroups.h (getugroups): Change signature.
38963         * lib/unistd.in.h (getgroups): Likewise.
38964         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38965         signature needs fixing.
38966         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38967         AC_TYPE_GETGROUPS.
38968         * modules/group-member (Depends-on): Add getgroups.
38969         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38970         (group_member): Rely on getgroups replacement.
38971         * lib/getugroups.c (getugroups): Use gid_t.
38972         * tests/test-getgroups.c (main): Likewise.
38973         * NEWS: Mention the signature change.
38974         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38975         problem with signature.
38976         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38977         GETGROUPS_T is still useful for setgroups.
38978
38979         getgroups, getugroups: provide stubs for mingw
38980         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38981         * lib/getugroups.c (getugroups): Likewise.
38982         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38983         function.  Modernize replacement scheme.
38984         (gl_PREREQ_GETGROUPS): Delete.
38985         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38986         * modules/getgroups (configure.ac): Declare witness.
38987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38988         * modules/unistd (Depends-on): Substitute witness.
38989         * lib/unistd.in.h (getgroups): Declare replacement.
38990
38991         getgroups: avoid calling exit
38992         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38993         drop xalloc.
38994         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38995         dependencies.
38996         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38997         exiting, in the rare case of malloc failure.
38998
38999         getgroups: fix logic error
39000         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39001         has more than 20 groups.
39002         * modules/getgroups-tests: New test.
39003         * tests/test-getgroups.c: New file.
39004
39005 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39006
39007         * tests/test-base64.c: Improve.
39008
39009 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39010
39011         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39012         Blake <ebb9@byu.net>.
39013
39014 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39015
39016         * tests/test-xvasprintf.c: Add %s%s related checks.
39017
39018 2009-11-12  Eric Blake  <ebb9@byu.net>
39019
39020         version-etc: match standards.texi style
39021         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39022         and use <> only for URLs.
39023
39024 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39025
39026         fts: do not fail on a submount during traversal
39027         * lib/fts.c (fts_build): Read the stat info again after opening
39028         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39029         Original report at http://bugzilla.redhat.com/501848.
39030
39031 2009-11-12  Jim Meyering  <meyering@redhat.com>
39032
39033         bootstrap: sync from coreutils
39034         * build-aux/bootstrap (bootstrap_epilogue): New function.
39035         Use git_modules_config in one more place.  This make bootstrap's
39036         --gnulib-srcdir option more useful for testing.
39037
39038         bootstrap: generalize autoheader check
39039         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39040         AC_CONFIG_HEADERS.
39041
39042 2009-11-11  Eric Blake  <ebb9@byu.net>
39043
39044         mkfifoat: use new modules for Solaris and BSD bugs
39045         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39046         * lib/mkfifoat.c (mknodat): Split...
39047         * lib/mknodat.c (mknodat): ...into new file.
39048         * modules/mkfifoat (Files): Ship new file.
39049         (Depends-on): Add mkfifo, mknod.
39050         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39051         (Depends-on): Add symlink.
39052         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39053         redundant with test_mkfifo.h.
39054         (do_mkfifoat, do_mknodat): New helpers.
39055
39056         mknod: new module
39057         * modules/mknod: New file.
39058         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39059         * lib/mknod.c (mknod): Likewise.
39060         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39061         defaults.
39062         * modules/sys_stat (Makefile.am): Substitute them.
39063         * lib/sys_stat.in.h (mknod): Declare replacement.
39064         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39065         Document it.
39066         * doc/posix-functions/mknod.texi (mknod): Likewise.
39067         * modules/mknod-tests: New test.
39068         * tests/test-mknod.c: Likewise.
39069
39070         mkfifo: new module
39071         * modules/mkfifo: New file.
39072         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39073         * lib/mkfifo.c (mkfifo): Likewise.
39074         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39075         defaults.
39076         * modules/sys_stat (Makefile.am): Substitute them.
39077         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39078         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39079         Document it.
39080         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39081         * modules/mkfifo-tests: New test.
39082         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39083         from test-mkfifoat.c.
39084         * tests/test-mkfifo.c: New file.
39085
39086         readlink: detect FreeBSD bug
39087         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39088         slash on symlink.
39089         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39090         * tests/test-readlink.h (test_readlink): Enhance test.
39091
39092         symlink: detect FreeBSD bug
39093         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39094         slash on symlink.
39095         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39096         * tests/test-symlink.h (test_symlink): Enhance test.
39097
39098 2009-11-10  Eric Blake  <ebb9@byu.net>
39099
39100         link: detect FreeBSD bug
39101         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39102         symlink.
39103         * doc/posix-functions/link.texi (link): Document the bug.
39104         * tests/test-link.h (test_link): Enhance test.
39105         * tests/test-linkat.c (main): Update caller.
39106
39107         unlink, remove: detect FreeBSD bug
39108         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39109         slash on symlink.
39110         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39111         * doc/posix-functions/remove.texi (remove): Likewise.
39112         * tests/test-unlink.h (test_unlink): Enhance test.
39113         * tests/test-remove.c (main): Likewise.
39114
39115 2009-11-09  Eric Blake  <ebb9@byu.net>
39116
39117         rename: detect FreeBSD bug
39118         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39119         slash on symlink.
39120         * modules/renameat-tests (Depends-on): Add filenamecat.
39121         * tests/test-rename.h (test_rename): Allow one more errno.
39122         * tests/test-renameat.c (main): Likewise.
39123         * doc/posix-functions/rename.texi (rename): Document the bug.
39124
39125         open: detect FreeBSD bug
39126         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39127         symlink.
39128         * doc/posix-functions/open.texi (open): Document the bug.
39129         * doc/posix-functions/utimes.texi (utimes): Likewise.
39130         * tests/test-open.h (test_open): Add parameters, and test symlink
39131         handling.
39132         * tests/test-open.c (main): Adjust caller.
39133         * tests/test-fcntl-safer.c (main): Likewise.
39134         * modules/open-tests (Depends-on): Add stdbool, symlink.
39135         * modules/fcntl-safer-tests (Depends-on): Likewise.
39136         * tests/test-openat.c (main): Add test-open tests.
39137
39138         stat: detect FreeBSD bug
39139         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39140         symlink.
39141         * doc/posix-functions/stat.texi (stat): Document the bug.
39142         * tests/test-stat.h (test_stat_func): Add argument.
39143         * tests/test-stat.c (main): Adjust caller.
39144         * tests/test-fstatat.c (main): Likewise.
39145         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39146         Reported by Jim Meyering.
39147
39148 2009-11-09  James Youngman  <jay@gnu.org>
39149
39150         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39151         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39152
39153 2009-11-08  Jim Meyering  <meyering@redhat.com>
39154
39155         utimens: remove invalid futimesat call
39156         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39157         It used the file descriptor of the target file as the DIR_FD
39158         parameter and NULL as the file name.  That caused failure with
39159         errno == EFAULT on FreeBSD-8.0-rc2
39160
39161 2009-11-07  Eric Blake  <ebb9@byu.net>
39162
39163         fflush, freadseek: use fseeko, not fseek
39164         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39165         (clear_ungetc_buffer): Avoid potential problems on large files.
39166         * lib/freadseek.c (freadseek): Likewise.
39167         * modules/freadseek (Depends-on): Add fseeko.
39168         * modules/fseek (configure.ac): Set a witness.
39169         * tests/test-fflush.c (main): Use fseeko.
39170         * tests/test-fpurge.c (fseek): Disable link warning.
39171         * tests/test-freadable.c (fseek): Likewise.
39172         * tests/test-freading.c (fseek): Likewise.
39173         * tests/test-fseeko.c (fseek): Likewise.
39174         * tests/test-ftell.c (fseek): Likewise.
39175         * tests/test-ftello.c (fseek): Likewise.
39176         * tests/test-fwritable.c (fseek): Likewise.
39177         * tests/test-fwriting.c (fseek): Likewise.
39178
39179 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39180
39181         * modules/memchr (Depends-on): Drop getpagesize dependency.
39182
39183 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39184
39185         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39186         Reported by Ludovic Courtès.
39187         * build-aux/pmccabe2html: Improve example usage.
39188         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39189
39190 2009-11-06  Jim Meyering  <meyering@redhat.com>
39191
39192         do-release-commit-and-tag: New module.
39193         Automate the release-commit and tag process.
39194         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39195         * modules/do-release-commit-and-tag: New file.
39196         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39197
39198 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39199
39200         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39201         because test-select.c uses inet_pton.
39202
39203 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39204
39205         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39206         GETADDRINFO_LIB.  Bump serial number.
39207         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39208         Suggested by Eric Blake <ebb9@byu.net>.
39209
39210 2009-11-05  Eric Blake  <ebb9@byu.net>
39211
39212         strtod: detect darwin bug
39213         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39214         Reported by Leo Davis.
39215
39216         freopen-safer: new module
39217         * modules/freopen-safer: New module.
39218         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39219         * lib/freopen-safer.c (freopen_safer): New file.
39220         * lib/stdio-safer.h (freopen_safer): New declaration.
39221         * lib/stdio--.h (freopen): New override.
39222         * MODULES.html.sh (File stream based Input/Output): Mention it.
39223         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39224         freopen-safer module.
39225         * doc/posix-functions/stderr.texi (stderr): Likewise.
39226         * doc/posix-functions/stdin.texi (stdin): Likewise.
39227         * doc/posix-functions/stdout.texi (stdout): Likewise.
39228         * modules/freopen-safer-tests: New test.
39229         * tests/test-reopen-safer.c: New file.
39230
39231 2009-11-05  Jim Meyering  <meyering@redhat.com>
39232
39233         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39234         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39235
39236 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39237
39238         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39239
39240 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39241
39242         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39243
39244 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39245
39246         Fix link error.
39247         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39248         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39249
39250 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39251
39252         * tests/test-func.c: Also test value of __func__.
39253
39254 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39255
39256         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39257         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39258
39259 2009-11-05  Bruno Haible  <bruno@clisp.org>
39260
39261         Fix link error.
39262         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39263         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39264         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39265
39266 2009-11-05  Bruno Haible  <bruno@clisp.org>
39267
39268         Tests for module 'inet_pton'.
39269         * modules/inet_pton-tests: New file.
39270         * tests/test-inet_pton.c: New file.
39271
39272 2009-11-05  Bruno Haible  <bruno@clisp.org>
39273
39274         Tests for module 'inet_ntop'.
39275         * modules/inet_ntop-tests: New file.
39276         * tests/test-inet_ntop.c: New file.
39277
39278 2009-11-04  Eric Blake  <ebb9@byu.net>
39279
39280         stdlib-safer: wrap all mkstemp variants
39281         * modules/mkostemp (configure.ac): Set witness.
39282         * modules/mkostemps (configure.ac): Likewise.
39283         * modules/mkstemps (configure.ac): Likewise.
39284         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39285         (mkstemps_safer): Wrap more functions.
39286         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39287         wrapping.
39288         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39289         (mkstemps_safer): Implement the wrappers.
39290
39291         mkstemps, mkostemps: new modules
39292         * modules/mkostemps: New module.
39293         * modules/mkstemps: Likewise.
39294         * lib/mkostemps.c (mkostemps): New file.
39295         * lib/mkstemps.c (mkstemps): Likewise.
39296         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39297         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39299         * modules/stdlib (Makefile.am): Substitute them.
39300         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39301         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39302         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39303         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39304         * MODULES.html.sh (File system functions): Mention them.
39305
39306         tempname: resync from glibc
39307         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39308         same values for __GT_FILE as glibc.  Abort even when assertions
39309         are disabled.
39310         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39311         match its value otherwise.  Allow idempotent inclusion.
39312         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39313         * lib/mkostemp.c (mkostemp): Likewise.
39314         * lib/mkstemp.c (mkstemp): Likewise.
39315         * lib/tmpfile.c (tmpfile): Likewise.
39316         * NEWS: Document this.
39317
39318         utimens: fix use of futimens on older Linux
39319         * lib/utimens.c (fdutimens): Use updated, rather than original,
39320         timespec to avoid bug in older Linux kernel.
39321         Reported by Simon Josefsson.
39322
39323 2009-11-04  Bruno Haible  <bruno@clisp.org>
39324
39325         Make num_processors more flexible and consistent.
39326         * lib/nproc.h (enum nproc_query): New type.
39327         (num_processors): Add a 'query' argument.
39328         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39329         (num_processors): Add a 'query' argument. Test the value of the
39330         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39331         mingw, count the number of CPUs available for the current process.
39332         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39333         Check for sched_getaffinity and sched_getaffinity_np.
39334         * modules/nproc (Depends-on): Add c-ctype, extensions.
39335         * NEWS: Mention the change.
39336
39337 2009-11-03  Bruno Haible  <bruno@clisp.org>
39338
39339         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39340
39341 2009-11-03  Jim Meyering  <meyering@redhat.com>
39342
39343         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39344         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39345         if it is defined.
39346
39347 2009-11-02  Eric Blake  <ebb9@byu.net>
39348
39349         mktime, timegm: share common declaration
39350         * lib/mktime-internal.h: New file.
39351         * lib/mktime.c: Use it rather than open-coding a declaration.
39352         * lib/timegm.c: Likewise.
39353         * modules/mktime (Files): Ship it.
39354         * modules/timegm (Files): Likewise.
39355         Suggested by Bruno Haible.
39356
39357         test-update-copyright: update test to match script changes
39358         * tests/test-update-copyright.sh: Avoid hard-coding perl
39359         location.  Don't update *.bak created by earlier runs.
39360
39361 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39362             Simon Josefsson  <simon@josefsson.org>
39363             Bruno Haible  <bruno@clisp.org>
39364
39365         Fix link error on Solaris 8.
39366         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39367         also in libnsl. Define also INET_PTON_LIB.
39368         * modules/inet_pton (Link): New section.
39369
39370 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39371             Bruno Haible  <bruno@clisp.org>
39372
39373         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39374         * modules/inet_ntop (Link): New section.
39375         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39376
39377 2009-11-02  Eric Blake  <ebb9@byu.net>
39378
39379         maint: avoid compiler warnings in m4 macros
39380         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39381         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39382
39383 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39384
39385         * m4/pmccabe2html.m4: Remove file.
39386         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39387         function.  Change maintainer.
39388         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39389         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39390         Courtès).
39391
39392 2009-10-31  Eric Blake  <ebb9@byu.net>
39393
39394         fseeko: fix m4 regression
39395         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39396         regression from 2009-10-27.
39397         Reported by Ralf Wildenhues.
39398
39399 2009-10-31  Jim Meyering  <meyering@redhat.com>
39400
39401         inttostr: aesthetics and improved (compile-time) safety
39402         Define inttype_is_signed rather than inttype_is_unsigned,
39403         since the sole use is via "#if inttype_is_signed".
39404         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39405         inttype_is_unsigned.
39406         * lib/offtostr.c (inttype_is_signed): Likewise.
39407         * lib/uinttostr.c (inttype_is_signed): Likewise.
39408         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39409         * lib/inttostr.c (inttostr): Use verify to cross-check the
39410         inttype_is_signed value and the signedness of the actual type.
39411         * modules/inttostr (Depends-on): Add verify.
39412
39413 2009-10-30  Eric Blake  <ebb9@byu.net>
39414
39415         build: avoid compiler warnings
39416         * lib/fchmodat.c (lchmod): Mark unused variables.
39417         * lib/getopt.c (_getopt_initialize): Likewise.
39418         * lib/mktime.c (__mktime_internal): Provide prototype.
39419         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39420         older gcc that do not understand #pragma GCC diagnostic.
39421         * lib/uinttostr.c (inttype_is_unsigned): Define.
39422         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39423
39424 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39425
39426         stat: fix compilation on AIX
39427         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39428         only see struct stat64.
39429
39430 2009-10-30  Eric Blake  <ebb9@byu.net>
39431
39432         exclude: make more robust
39433         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39434         rather than masking a coding bug.
39435         Suggested by Bruno Haible.
39436
39437 2009-10-30  Jim Meyering  <meyering@redhat.com>
39438
39439         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39440         Rather than putting #!/usr/bin/perl on the first line,
39441         start with a variant of what's recommended by "man perlrun" that
39442         invokes the first "perl" program from your shell's search path.
39443         * build-aux/gitlog-to-changelog: Replace #!... as above.
39444         Add a "Local Variables" perl mode setting.
39445         Prompted by a patch from Ludovic Courtès.
39446         Improved by Eric Blake.
39447         * build-aux/useless-if-before-free: Likewise.
39448         * build-aux/announce-gen: Likewise.
39449         * build-aux/update-copyright: Likewise.
39450
39451 2009-10-29  Eric Blake  <ebb9@byu.net>
39452
39453         filenamecat-lgpl: adjust clients
39454         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39455         filenamecat.
39456         * modules/renameat (Depends-on): Likewise.
39457
39458         filenamecat: split into filenamecat-lgpl
39459         * modules/filenamecat-lgpl: New module.
39460         * modules/filenamecat (Files): Move library-safe files into
39461         filenamecat-lgpl.
39462         (Depends-on): Add filenamecat-lgpl.
39463         (configure.ac): Declare witness.
39464         * lib/filenamecat.h (file_name_concat): Only declare when using
39465         GPL module.
39466         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39467         Move...
39468         * lib/filenamecat-lgpl.c: ...into new file.
39469         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39470         (gl_FILE_NAME_CONCAT): Use it.
39471         * MODULES.html.sh (File system functions): Mention new module.
39472
39473         argp: avoid memory leak
39474         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39475         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39476         base_name, since the latter malloc()s and can call exit().
39477         Leak introduced 2006-07-03.
39478
39479         dirname-lgpl: adjust clients that don't need full dirname
39480         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39481         * modules/filenamecat (Depends-on): Likewise.
39482         * modules/linkat (Depends-on): Likewise.
39483         * modules/mkancesdirs (Depends-on): Likewise.
39484         * modules/mkdir (Depends-on): Likewise.
39485         * modules/openat (Depends-on): Likewise.
39486         * modules/savewd (Depends-on): Likewise.
39487         * modules/rename (Depends-on): Likewise.
39488         (License): Relax license.
39489         * modules/mkdir-tests (Depends-on): Drop progname.
39490         (Makefile.am): Delete unneeded LDADD.
39491         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39492
39493         dirname: split into dirname-lgpl
39494         * modules/dirname-lgpl: New module.
39495         * modules/dirname (Files): Move library-safe files into
39496         dirname-lgpl.
39497         (Depends-on): Add dirname-lgpl.
39498         (configure.ac): Declare witness.
39499         * modules/double-slash-root (License): Relax license.
39500         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39501         module.
39502         * lib/dirname.c (dir_len, mdir_name): Move...
39503         * lib/dirname-lgpl.c: ...into new file.
39504         * lib/basename.c (last_component, base_len): Move...
39505         * lib/basename-lgpl.c: ...into new file.
39506         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39507         (gl_DIRNAME): Use it.
39508         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39509         Mention new module.
39510         * modules/dirname-tests (Depends-on): Add progname.
39511         * tests/test-dirname.c (program_name): Delete.
39512
39513         mkdir: make safe for libraries
39514         * modules/mkdir (Depends-on): Drop xalloc.
39515         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39516         exit.
39517
39518         tests: avoid some compiler warnings
39519         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39520         literals.
39521         * tests/test-memchr.c (main): Avoid type mismatch.
39522         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39523         * tests/test-base64.c (main): Likewise.
39524         * tests/test-getdelim.c (main): Likewise.
39525         * tests/test-gethostname.c (main): Likewise.
39526         * tests/test-getline.c (main): Likewise.
39527         * tests/test-netinet_in.c (main): Likewise.
39528         * tests/test-select.c (open_server_socket, main): Likewise.
39529         * tests/test-select-stdin.c (main): Likewise.
39530         * tests/test-sockets.c (main): Likewise.
39531         * tests/test-strsignal.c (main): Likewise.
39532         * tests/test-sys_select.c (main): Likewise.
39533         * tests/test-sys_socket.c (main): Likewise.
39534         * tests/test-u64.c (main): Likewise.
39535         * tests/test-xfprintf-posix.c (main): Likewise.
39536         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39537
39538         sockets: avoid compiler warning
39539         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39540
39541         maint: detect usage(1) and other suspicious exits
39542         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39543
39544 2009-10-29  Jim Meyering  <meyering@redhat.com>
39545
39546         timespec: long-to-int truncation could make timespec_cmp malfunction
39547         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39548         a multiple of 2^32 nanoseconds as no difference.
39549
39550 2009-10-28  Jim Meyering  <meyering@redhat.com>
39551
39552         fprintftime: wrap macro code argument in "do {...} while(0)"
39553         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39554         cpy macro must be a statement that can be followed by a semicolon.
39555         Now that the else clause contains a comment and is hence longer
39556         than one line, I require curly braces.  That in turn requires
39557         that we wrap this code block in the standard do...while(0).
39558
39559         fprintftime: remove stray semicolon from previous change
39560         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39561
39562         fprintftime: avoid a warning about ignored fwrite return value
39563         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39564         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39565         that is unsafe.
39566         * modules/fprintftime (Depends-on): Add ignore-value.
39567
39568         exclude: avoid an unwarranted warning
39569         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39570
39571 2009-10-27  Eric Blake  <ebb9@byu.net>
39572
39573         fseek: avoid compilation failure when fflush is replaced
39574         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39575         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39576         module is in use.
39577         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39578         module is not in use; since REPLACE_FSEEK worked otherwise.
39579         (GNULIB_FTELLO): Likewise for ftell.
39580         Reported by Ian Beckwith and others.
39581
39582 2009-10-27  Bruno Haible  <bruno@clisp.org>
39583
39584         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39585         Reported by Jim Meyering.
39586
39587 2009-10-27  Jim Meyering  <jim@meyering.net>
39588             Bruno Haible  <bruno@clisp.org>
39589
39590         Avoid warning despite dropping the return value of fwrite.
39591         * lib/unicodeio.c: Include ignore-value.h.
39592         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39593         * modules/unicodeio (Depends-on): Add ignore-value.
39594
39595 2009-10-26  Eric Blake  <ebb9@byu.net>
39596
39597         areadlinkat: fix fallback path
39598         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39599         pointer and zero.
39600
39601 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39602
39603         Use a better IO block size for modern systems
39604         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39605         * lib/md2.c: Likewise.
39606         * lib/md4.c: Likewise.
39607         * lib/md5.c: Likewise.
39608         * lib/sha1.c: Likewise.
39609         * lib/sha256.c: Likewise.
39610         * lib/sha512.c: Likewise.
39611
39612 2009-10-22  Eric Blake  <ebb9@byu.net>
39613
39614         tests: avoid several compiler warnings
39615         * tests/test-getcwd.c (main): Avoid buffer underflow.
39616         * tests/test-getdate.c (main): String literals are not safe with
39617         putenv, so use setenv.  Declare unused argument.
39618         * modules/getdate-tests (Depends-on): Add setenv.
39619         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39620         problems with string literals in char *.
39621         * tests/test-hash.c (main): Avoid shadowing declaration.
39622         (insert_new): Treat string literals as char const *.
39623         * tests/test-getopt.h (test_getopt): Likewise.
39624         (getopt_loop): Alter types to minimize casting elsewhere.
39625         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39626         (test_getopt_long_posix): Likewise.
39627         (do_getopt_long): Add wrapper to minimize casting.
39628         * tests/test-atexit.c (clear_temp_file): Use void.
39629         * tests/test-areadlink-with-size.c (main): Declare unused
39630         arguments.
39631         * tests/test-areadlink.c (main): Likewise.
39632         * tests/test-areadlinkat-with-size.c (main): Likewise.
39633         * tests/test-areadlinkat.c (main): Likewise.
39634         * tests/test-canonicalize-lgpl.c (main): Likewise.
39635         * tests/test-canonicalize.c (main): Likewise.
39636         * tests/test-dirent-safer.c (main): Likewise.
39637         * tests/test-dirname.c (main): Likewise.
39638         * tests/test-dup2.c (main): Likewise.
39639         * tests/test-fchdir.c (main): Likewise.
39640         * tests/test-fcntl-h.c (main): Likewise.
39641         * tests/test-fcntl-safer.c (main): Likewise.
39642         * tests/test-fdopendir.c (main): Likewise.
39643         * tests/test-fdutimensat.c (main): Likewise.
39644         * tests/test-fflush.c (main): Likewise.
39645         * tests/test-filenamecat.c (main): Likewise.
39646         * tests/test-filevercmp.c (main): Likewise.
39647         * tests/test-fopen-safer.c (main): Likewise.
39648         * tests/test-fopen.c (main): Likewise.
39649         * tests/test-fpending.c (main): Likewise.
39650         * tests/test-fpurge.c (main): Likewise.
39651         * tests/test-freading.c (main): Likewise.
39652         * tests/test-fstatat.c (main): Likewise.
39653         * tests/test-fsync.c (main): Likewise.
39654         * tests/test-futimens.c (main): Likewise.
39655         * tests/test-getndelim2.c (main): Likewise.
39656         * tests/test-gettimeofday.c (main): Likewise.
39657         * tests/test-getopt.c (main): Likewise.
39658         * tests/test-i-ring.c (main): Likewise.
39659         * tests/test-inttypes.c (main): Likewise.
39660         * tests/test-link.c (main): Likewise.
39661         * tests/test-lstat.c (main): Likewise.
39662         * tests/test-math.c (main): Likewise.
39663         * tests/test-md5.c (main): Likewise.
39664         * tests/test-memchr2.c (main): Likewise.
39665         * tests/test-memrchr.c (main): Likewise.
39666         * tests/test-mkdir.c (main): Likewise.
39667         * tests/test-mkdirat.c (main): Likewise.
39668         * tests/test-mkfifoat.c (main): Likewise.
39669         * tests/test-open.c (main): Likewise.
39670         * tests/test-openat-safer.c (main): Likewise.
39671         * tests/test-openat.c (main): Likewise.
39672         * tests/test-quotearg.c (main): Likewise.
39673         * tests/test-rawmemchr.c (main): Likewise.
39674         * tests/test-readlink.c (main): Likewise.
39675         * tests/test-remove.c (main): Likewise.
39676         * tests/test-rename.c (main): Likewise.
39677         * tests/test-renameat.c (main): Likewise.
39678         * tests/test-rmdir.c (main): Likewise.
39679         * tests/test-sha1.c (main): Likewise.
39680         * tests/test-signal.c (main): Likewise.
39681         * tests/test-sigaction.c (main): Likewise.
39682         * tests/test-stat.c (main): Likewise.
39683         * tests/test-stat-time.c (main): Likewise.
39684         * tests/test-stddef.c (main): Likewise.
39685         * tests/test-stdint.c (main): Likewise.
39686         * tests/test-stdio.c (main): Likewise.
39687         * tests/test-stdlib.c (main): Likewise.
39688         * tests/test-strchrnul.c (main): Likewise.
39689         * tests/test-strerror.c (main): Likewise.
39690         * tests/test-string.c (main): Likewise.
39691         * tests/test-strtod.c (main): Likewise.
39692         * tests/test-strverscmp.c (main): Likewise.
39693         * tests/test-symlink.c (main): Likewise.
39694         * tests/test-symlinkat.c (main): Likewise.
39695         * tests/test-sys_stat.c (main): Likewise.
39696         * tests/test-sys_time.c (main): Likewise.
39697         * tests/test-time.c (main): Likewise.
39698         * tests/test-unistd.c (main): Likewise.
39699         * tests/test-unlink.c (main): Likewise.
39700         * tests/test-unlinkat.c (main): Likewise.
39701         * tests/test-utimens.c (main): Likewise.
39702         * tests/test-utimensat.c (main): Likewise.
39703         * tests/test-version-etc.c (main): Likewise.
39704         * tests/test-wchar.c (main): Likewise.
39705         * tests/test-wctype.c (main): Likewise.
39706         * tests/test-xprintf-posix.c (main): Likewise.
39707         * tests/test-posixtm.c (main): Likewise.
39708         (STREQ): Delete unused macro.
39709         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39710         shadowed variables.
39711         * tests/test-memchr.c (main): Likewise.
39712
39713 2009-10-21  Eric Blake  <ebb9@byu.net>
39714
39715         areadlinkat: avoid failure on older glibc
39716         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39717         rather than mis-comparing 0 against FUNC_RESULT of char*.
39718
39719 2009-10-21  Bruno Haible  <bruno@clisp.org>
39720
39721         * modules/stpncpy (License): Relicense under LGPLv2+.
39722         Reported by David Lutterkort <lutter@redhat.com>.
39723
39724 2009-10-20  Eric Blake  <ebb9@byu.net>
39725
39726         utimensat: work around Solaris 9 bug
39727         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39728         has trailing slash bugs.
39729         * tests/test-lutimens.h (test_lutimens): Enhance test.
39730         * tests/test-utimens.h (test_utimens): Likewise.
39731         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39732         * doc/posix-functions/utimes.texi (utimes): Likewise.
39733         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39734         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39735         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39736         * doc/posix-functions/futimens.texi (futimens): Likewise.
39737
39738         fdutimensat: new module
39739         * modules/fdutimensat: New file.
39740         * lib/fdutimensat.c (fdutimensat): Likewise.
39741         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39742         * MODULES.html.sh (File system functions): Mention module.
39743         * modules/fdutimensat-tests: New test.
39744         * tests/test-fdutimensat.c: Likewise.
39745
39746         doc: regenerate INSTALL
39747         * doc/INSTALL: Reflect recent autoconf update.
39748         * doc/INSTALL.ISO: Likewise.
39749         * doc/INSTALL.UTF-8: Likewise.
39750
39751 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39752
39753         acl: warn if ACL support is not detected
39754         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39755
39756 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39757
39758         * lib/nproc.h: Add extern "C" block for C++.
39759
39760 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39761             Bruno Haible  <bruno@clisp.org>
39762
39763         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39764         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39765         * doc/posix-functions/isalpha.texi: Likewise.
39766         * doc/posix-functions/isblank.texi: Likewise.
39767         * doc/posix-functions/iscntrl.texi: Likewise.
39768         * doc/posix-functions/isdigit.texi: Likewise.
39769         * doc/posix-functions/isgraph.texi: Likewise.
39770         * doc/posix-functions/islower.texi: Likewise.
39771         * doc/posix-functions/isprint.texi: Likewise.
39772         * doc/posix-functions/ispunct.texi: Likewise.
39773         * doc/posix-functions/isspace.texi: Likewise.
39774         * doc/posix-functions/isupper.texi: Likewise.
39775         * doc/posix-functions/isxdigit.texi: Likewise.
39776
39777 2009-10-18  Bruno Haible  <bruno@clisp.org>
39778
39779         Tests for module 'isblank'.
39780         * modules/isblank-tests: New file.
39781         * tests/test-isblank.c: New file.
39782
39783         New module 'isblank'.
39784         * lib/isblank.c: New file.
39785         * m4/isblank.m4: New file.
39786         * modules/isblank: New file.
39787         * doc/posix-functions/isblank.texi: Mention the new module.
39788
39789 2009-10-18  Bruno Haible  <bruno@clisp.org>
39790
39791         New module 'ctype'.
39792         * lib/ctype.in.h: New file.
39793         * m4/ctype.m4: New file.
39794         * modules/ctype: New file.
39795         * doc/posix-headers/ctype.texi: Mention the new module.
39796
39797 2009-10-18  Jim Meyering  <meyering@redhat.com>
39798
39799         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39800         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39801         right after its initialization, rather than farther down.
39802         Keeping these in close proximity makes it easier to ensure
39803         that each such variable is initialized.  E.g.,
39804
39805             LIB_CLOCK_GETTIME=
39806             AC_SUBST([LIB_CLOCK_GETTIME])
39807
39808         This change also increments these serial numbers.
39809         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39810         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39812
39813 2009-10-18  Bruno Haible  <bruno@clisp.org>
39814
39815         Don't let environment variables perturb build.
39816         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39817         (gl_PREREQ_GETHRXTIME): ... not here.
39818
39819 2009-10-18  Bruno Haible  <bruno@clisp.org>
39820
39821         Avoid symlink attack in localcharset module.
39822         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39823         (O_NOFOLLOW): Define fallback.
39824         (get_charset_aliases): Don't open the file if it is a symbolic link.
39825         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39826         gl_FCNTL_H.
39827         (gl_FCNTL_H): Require it.
39828         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39829         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39830         Reported by Fergal Glynn <fglynn@veracode.com>.
39831
39832 2009-10-18  Bruno Haible  <bruno@clisp.org>
39833
39834         Implement nproc for mingw.
39835         * lib/nproc.c: Include <windows.h>
39836         (num_processors): On native Windows platforms, try GetSystemInfo.
39837
39838 2009-10-18  Bruno Haible  <bruno@clisp.org>
39839
39840         Implement nproc for IRIX.
39841         * lib/nproc.c: Include <sys/sysmp.h>.
39842         (num_processors): On IRIX systems, try sysmp.
39843         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39844
39845 2009-10-18  Bruno Haible  <bruno@clisp.org>
39846
39847         Implement nproc for HP-UX.
39848         * lib/nproc.c: Include <sys/pstat.h>
39849         (num_processors): On HP-UX systems, try pstat_getdynamic.
39850         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39851         pstat_getdynamic.
39852
39853 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39854             Bruno Haible  <bruno@clisp.org>
39855
39856         Implement nproc for NetBSD, OpenBSD.
39857         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39858         (ARRAY_SIZE): New macro.
39859         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39860         * m4/nproc.m4: New file.
39861         * modules/nproc (Files): Add m4/nproc.m4.
39862         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39863         (Makefile.am): Instead, augment lib_SOURCES.
39864
39865 2009-10-18  Bruno Haible  <bruno@clisp.org>
39866
39867         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39868         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39869         sys/param.h.
39870
39871 2009-10-16  Eric Blake  <ebb9@byu.net>
39872
39873         utimensat: new module
39874         * modules/utimensat: New file.
39875         * lib/utimensat.c (utimensat): Likewise.
39876         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39877         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39878         so we can work around Linux bugs.
39879         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39880         * modules/sys_stat (Makefile.am): Substitute them.
39881         * lib/sys_stat.in.h (utimensat): Declare it.
39882         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39883         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39884         * modules/utimensat-tests: New test.
39885         * tests/test-utimensat.c: Likewise.
39886
39887         utimens: let lutimens work on non-symlinks
39888         * lib/utimens.c (lutimens): Fall back to utimens rather than
39889         failing with ENOSYS, when file is not a symlink.
39890         (utimens): Reduce redirection.
39891         * tests/test-lutimens.h (test_lutimens): Update test to cover
39892         non-symlinks.
39893         * tests/test-utimens.h (test_utimens): Update test to cover
39894         symlinks.
39895         * tests/test-utimens.c (main): Update caller.
39896
39897         utimens: cache whether utimensat syscall works
39898         * lib/utimens.c (utimensat_works_really): New cache variable.
39899         (fdutimens, lutimens): Use it to avoid failing syscall.
39900
39901         test-stat-time, test-utimens: improve portability
39902         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39903         ext4 on alpha, and for cygwin.
39904         * tests/test-utimens-common.h: New file.
39905         (nap): Factor delays into single function.
39906         * tests/test-lutimens.h (test_lutimens): Use new header.
39907         * tests/test-futimens.h (test_futimens): Likewise.
39908         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39909         timestamps to occur from same machine, as was done previously for
39910         test_utimens.
39911         * modules/utimens-tests (Files): Ship new file.
39912         * modules/futimens-tests (Files): Likewise.
39913         Reported in part by Jim Meyering.
39914
39915         sys_stat: sort replacement declarations
39916         * lib/sys_stat.in.h: Sort declarations.
39917         * lib/futimens.c (futimens): Fix typo.
39918
39919 2009-10-15  Jim Meyering  <meyering@redhat.com>
39920
39921         don't let environment settings perturb build
39922         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39923         could cause a configure-time and/or build-time malfunction.
39924         Typically, a configure-time function-in-library test is performed
39925         via code like this:
39926
39927           LIB_VAR=
39928           AC_SUBST([LIB_VAR])
39929           prefix_saved_LIBS=$LIBS
39930             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39931                        [test "$ac_cv_search_FUNC" = "none required" ||
39932                         LIB_VAR=$ac_cv_search_FUNC])
39933           LIBS=$prefix_saved_LIBS
39934
39935         However, in each of the files affected by this change, the LIB_VAR=
39936         initialization was omitted.  Thus, when set in the environment, its
39937         value would propagate into generated Makefiles when FUNC is not found
39938         in LIB_NAME.
39939         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39940         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39942
39943 2009-10-14  Eric Blake  <ebb9@byu.net>
39944
39945         fchdir: avoid infinite recursion in mingw
39946         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39947         recursing.
39948
39949         test-stat-time: port to mingw
39950         * tests/test-stat-time.c (force_unlink): Return a value.
39951         (test_ctime) [W32]: Fix compilation error.
39952         (nap): Don't call usleep with too large an argument.  Use
39953         force_unlink.
39954         * doc/pastposix-functions/usleep.texi (usleep): Document the
39955         portability issue.
39956
39957 2009-10-13  Jim Meyering  <meyering@redhat.com>
39958
39959         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39960         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39961         * modules/pipe-filter-ii: Likewise.
39962         * modules/sys_socket-tests: Likewise.
39963         * modules/tsearch-tests: Likewise.
39964         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39965         (check): Depend on it.
39966
39967 2009-10-12  Eric Blake  <ebb9@byu.net>
39968
39969         utimens-tests: port to NFS file systems
39970         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39971         comparisons to avoid spurious failures from timestamp drift
39972         between NFS machines.
39973
39974 2009-10-12  Eric Blake  <ebb9@byu.net>
39975
39976         stat-time-tests: minor cleanups
39977         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39978         * tests/test-stat-time.c (nap): Separate assignment from call.
39979         Suggested by Paolo Bonzini and Bruno Haible.
39980
39981         sys_stat: guarantee struct timespec
39982         * lib/sys_stat.in.h (includes): Always include <time.h>
39983         * modules/sys_stat (Depends-on): Add time.
39984         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39985         mode_t permission values.
39986         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39987         get at subsecond timestamps.
39988
39989 2009-10-10  Eric Blake  <ebb9@byu.net>
39990
39991         futimens: new module
39992         * modules/futimens: New file.
39993         * lib/futimens.c (futimens): Likewise.
39994         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39995         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39996         we can work around Linux bugs.
39997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39998         * modules/sys_stat (Makefile.am): Substitute them.
39999         * lib/sys_stat.in.h (futimens): Declare it.
40000         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40001         * doc/posix-functions/futimens.texi (futimens): Likewise.
40002         * modules/futimens-tests: New test.
40003         * tests/test-futimens.c: Likewise.
40004
40005         utimens: introduce fdutimens
40006         * lib/utimens.h (fdutimens): New prototype.
40007         * lib/utimens.c (gl_futimens): Move guts...
40008         (fdutimens): ...to new interface.
40009         * tests/test-utimens.c (do_fdutimens): Use it.
40010
40011         utimens: add UTIME_NOW and UTIME_OMIT support
40012         * lib/utimens.c (validate_timespec, update_timespec): New helper
40013         functions.
40014         (gl_futimens, lutimens): Use them.
40015         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40016         stdbool, sys_stat.
40017         (Link): Mention resulting library dependency.
40018         * modules/utimecmp (Link): Likewise.
40019         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40020         (Makefile.am): Pick up library dependency.
40021         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40022         definition.
40023         * tests/test-sys_stat.c: Test the definitions.
40024         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40025         * NEWS: Document library dependency.
40026
40027         utimecmp: support symlink timestamps
40028         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40029         hashing when possible.  Use pathconf when available.
40030         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40031         * modules/utimecmp (Depends-on): Add lstat.
40032
40033         utimens: add lutimens interface
40034         * lib/utimens.c (lutimens): New function.
40035         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40036         * lib/utimens.h (lutimens): Declare new interface.
40037         * tests/test-utimens.c (main): Enhance test.
40038         * tests/test-lutimens.h (test_lutimens): New file.
40039         * modules/utimens-tests (Files): Distribute it.
40040         (Depends-on): Add symlink.
40041         (configure.ac): Check for usleep.
40042
40043         utimens: validate futimens usage
40044         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40045         fewer syscalls on failure later on.  Avoid compiler warning on
40046         mingw.
40047         * modules/utimens (Depends-on): Add dup2.
40048
40049         utimens: add test
40050         * modules/utimens-tests: New test.
40051         * tests/test-utimens.h: New file.
40052         * tests/test-futimens.h: Likewise.
40053         * tests/test-utimens.c: Likewise.
40054
40055         doc: mention timestamp portability issues
40056         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40057         instead.
40058         * doc/posix-functions/utime.texi (utime): Likewise.
40059         * doc/posix-functions/utimes.texi (utimes): Likewise.
40060         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40061         instead.
40062         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40063         module.
40064         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40065         Mention weakness with symlink timestamps.
40066         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40067         to utimensat/futimens instead.
40068         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40069
40070         test-dup2: enhance test
40071         * tests/test-dup2.c (main): Also check AT_FDCWD.
40072
40073         test-stat-time: avoid more spurious failures
40074         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40075         xfs; and avoid race if the two timestamps cross quantization edge.
40076
40077         relocatable: prefer 'file system' over 'filesystem'
40078         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40079         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40080         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40081         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40082         * lib/relocatable.c (compute_curr_prefix): Likewise.
40083
40084 2009-10-10  Jim Meyering  <meyering@redhat.com>
40085
40086         stat-time-tests: check for the usleep function
40087         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40088
40089 2009-10-10  Bruno Haible  <bruno@clisp.org>
40090
40091         * modules/xnanosleep: Put the Link section after the Include section.
40092
40093 2009-10-09  Eric Blake  <ebb9@byu.net>
40094
40095         dup2: work around FreeBSD 6.1 bug
40096         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40097         * doc/posix-functions/dup2.texi (dup2): Document it.
40098         Reported by Nelson H. F. Beebe and Jim Meyering.
40099
40100         test-stat-time: port to buggy NFS clients
40101         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40102         (test_ctime): Also skip test if mtime and ctime are skewed.
40103
40104         maint: prefer 'file system' over 'filesystem'
40105         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40106         * doc/posix-functions/lstat.texi (lstat): Likewise.
40107         * lib/file-has-acl.c (file_has_acl): Likewise.
40108         * lib/fwriteerror.c [TEST]: Likewise.
40109         * tests/test-areadlink.h (test_areadlink): Likewise.
40110         * tests/test-areadlinkat-with-size.c (main): Likewise.
40111         * tests/test-areadlinkat.c (main): Likewise.
40112         * tests/test-canonicalize-lgpl.c (main): Likewise.
40113         * tests/test-canonicalize.c (main): Likewise.
40114         * tests/test-fstatat.c (main): Likewise.
40115         * tests/test-linkat.c (main): Likewise.
40116         * tests/test-lstat.h (test_lstat_func): Likewise.
40117         * tests/test-mkdir.h (test_mkdir): Likewise.
40118         * tests/test-readlink.h (test_readlink): Likewise.
40119         * tests/test-remove.c (main): Likewise.
40120         * tests/test-rename.h (test_rename): Likewise.
40121         * tests/test-renameat.c (main): Likewise.
40122         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40123         * tests/test-symlink.h (test_symlink): Likewise.
40124         * tests/test-symlinkat.c (main): Likewise.
40125         * tests/test-unlink.h (test_unlink_func): Likewise.
40126         * tests/test-unlinkat.c (main): Likewise.
40127
40128         maint: make realtime library usage explicit
40129         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40130         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40131         * modules/settime (Link): Likewise.
40132         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40133
40134         test-stat-time: speed up execution
40135         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40136         warning on mingw.
40137         (nap): New helper function.
40138         (prepare_test): Use it to reduce sleep time.
40139         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40140         execution.
40141         * modules/stat-time-tests (configure.ac): Check for usleep.
40142
40143 2009-10-09  Jim Meyering  <meyering@redhat.com>
40144
40145         selinux-h: always use getfilecon wrappers
40146         * lib/getfilecon.c: New file.
40147         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40148         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40149         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40150         (fgetfilecon): Provide a stub.
40151         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40152         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40153         file unconditionally.
40154         When <selinux/selinux.h> is found, arrange to use wrappers.
40155         * modules/selinux-h (Files): Add getfilecon.c.
40156         (Makefile.am): Substitute include-next-related bits
40157         into the now-always-generated selinux/selinux.h file.
40158         * doc/glibc-functions/lgetfilecon.texi: New file.
40159         * doc/glibc-functions/fgetfilecon.texi: New file.
40160         * doc/glibc-functions/getfilecon.texi: New file.
40161         * doc/glibc-functions/getfilecon-desc.texi: New file.
40162         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40163         which to pull in the new files.
40164         * MODULES.html.sh (Misc): Add selinux-h.
40165
40166 2009-10-08  Jim Meyering  <meyering@redhat.com>
40167
40168         unistd: fix comment typo
40169         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40170
40171 2009-10-08  Eric Blake  <ebb9@byu.net>
40172
40173         areadlink: use SIZE_MAX consistently
40174         * modules/areadlink (Depends-on): Add stdint.
40175         * modules/areadlink-with-size (Depends-on): Likewise.
40176         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40177         gives NULL; drop sys/types, since unistd gives size_t; and add
40178         stdint for SIZE_MAX.
40179         (SIZE_MAX): Rely on headers.
40180         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40181         and add stdint.
40182         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40183         (SIZE_MAX): Likewise.
40184         (INITIAL_BUF_SIZE): Turn into enum.
40185         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40186
40187 2009-10-08  Jim Meyering  <meyering@redhat.com>
40188
40189         areadlinkat: avoid compilation failure
40190         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40191         Fix typo in comment.
40192
40193 2009-10-07  Eric Blake  <ebb9@byu.net>
40194
40195         areadlinkat-with-size: new module
40196         * modules/areadlinkat-with-size: New module.
40197         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40198         * lib/areadlink.h (areadlinkat): Declare it.
40199         * MODULES.html.sh (File system functions): Mention it.
40200         * modules/areadlinkat-with-size-tests: New test.
40201         * tests/test-areadlinkat-with-size.c: New file.
40202
40203         xreadlinkat: new module
40204         * modules/xreadlinkat: New module.
40205         * lib/xreadlinkat.c (xreadlinkat): New file.
40206         * lib/xreadlink.h (xreadlinkat): Declare it.
40207         * MODULES.html.sh (File system functions): Mention it.
40208
40209         areadlinkat: new module
40210         * lib/at-func.c (FUNC_FAIL): New define.
40211         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40212         * modules/areadlinkat: New module.
40213         * lib/linkat.c (areadlinkat): Move...
40214         * lib/areadlinkat.c (areadlinkat): ...to new file.
40215         * lib/areadlink.h (areadlinkat): Declare it.
40216         * modules/linkat (Depends-on): Add areadlinkat.
40217         * MODULES.html.sh (File system functions): Mention it.
40218         * modules/areadlinkat-tests: New test.
40219         * tests/test-areadlinkat.c: New file.
40220
40221         areadlink, areadlink-with-size: add tests
40222         * modules/areadlink-tests: New test.
40223         * modules/areadlink-with-size-tests: Likewise.
40224         * tests/test-areadlink.h: New file.
40225         * tests/test-areadlink.c: Likewise.
40226         * tests/test-areadlink-with-size.c: Likewise.
40227
40228         maint: minor cleanups
40229         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40230         _UNUSED_PARAMETER_ instead.
40231         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40232         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40233         * modules/linkat-tests (Files): Distribute test-link.h.
40234
40235         openat, utimens: whitespace cleanup
40236         * lib/openat.c: Prefer space throughout, rather than mix of 8
40237         spaces vs. tabs.
40238         * lib/at-func.c: Likewise.
40239         * lib/utimens.c: Likewise.
40240
40241         openat: avoid using wrong fd
40242         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40243         working directory chooses same fd.
40244         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40245
40246         mkdir, mkdirat: fix cygwin 1.5.x bug
40247         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40248         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40249         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40250         bug.
40251         (gl_PREREQ_MKDIR): Delete unused macro.
40252         * modules/mkdir (Files): Track file rename.
40253         (configure.ac): Update macro name.
40254         * modules/openat (Depends-on): Add mkdir.
40255         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40256
40257         mkdir, mkdirat: add tests
40258         * modules/mkdir-tests: New test.
40259         * tests/test-mkdir.h: New file.
40260         * tests/test-mkdir.c: Likewise.
40261         * tests/test-mkdirat.c: Likewise.
40262         * modules/openat-tests (Files): Add new files.
40263         (Makefile.am): Run new test.
40264
40265 2009-10-06  Eric Blake  <ebb9@byu.net>
40266
40267         doc: tweak *at function documentation
40268         * doc/posix-functions/faccessat.texi (faccessat): Mention
40269         known issue with replacement.
40270         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40271         * doc/posix-functions/linkat.texi (linkat): Likewise.
40272         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40273         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40274         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40275         * doc/posix-functions/renameat.texi (renameat): Likewise.
40276         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40277
40278         openat: fix GNU/Hurd bug in unlinkat
40279         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40280         broken.
40281         * doc/posix-functions/unlink.texi (unlink): Document this.
40282         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40283
40284         fdopendir: fix GNU/Hurd bug
40285         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40286         allowing non-directory fds.
40287         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40289         * modules/dirent (Makefile.am): Substitute it.
40290         * lib/dirent.in.h (fdopendir): Declare replacement.
40291         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40292         * tests/test-fdopendir.c (main): Test something other than
40293         /dev/null, since on Hurd that behaves like a directory.
40294
40295         test-symlink: port to GNU/Hurd
40296         * tests/test-symlink.h (test_symlink): Relax expected errno.
40297
40298         doc: tweak more cygwin information
40299         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40300         now compatible with glibc.
40301         * doc/posix-functions/getopt.texi (getopt): Likewise.
40302
40303         getopt-gnu: add another test
40304         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40305         guarantee behavior relied on by m4.
40306         * tests/test-getopt.c (main): Use it.
40307         * modules/getopt-posix-tests (Depends-on): Add setenv.
40308         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40309
40310         getopt: fix compilation on darwin
40311         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40312         include.
40313         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40314         Reported by Ludovic Courtès.
40315
40316 2009-10-06  Bruno Haible  <bruno@clisp.org>
40317
40318         * modules/size_max (Description): Discourage its use.
40319         Reported by Simon Josefsson.
40320
40321 2009-10-06  Jim Meyering  <meyering@redhat.com>
40322
40323         linkat: avoid compilation failure
40324         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40325
40326 2009-10-05  Eric Blake  <ebb9@byu.net>
40327
40328         linkat: support Linux 2.6.17
40329         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40330         linkat on Linux, but allow cache variable override.
40331         * lib/linkat.c (rpl_linkat): Define override.
40332         * modules/linkat (Depends-on): Add symlinkat.
40333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40334         * modules/unistd (Makefile.am): Substitute it.
40335         * lib/unistd.in.h (linkat): Declare replacement.
40336         Reported by Pádraig Brady.
40337
40338         quotearg: port test to systems with C.UTF-8 locale
40339         * tests/test-quotearg.c (struct result_strings): Add another
40340         member, differentiating between C.ASCII and C.UTF-8 handling.
40341         (compare_strings): Add parameter.
40342         (main): Adjust all callers.
40343
40344         getopt: avoid clash with FreeBSD _getopt_internal
40345         * lib/getopt.in.h (_getopt_internal): Override the name.
40346         * lib/getopt_int.h (includes): Pick up any overrides.
40347         Reported by Reuben Thomas.
40348
40349         hash: allow C89 compilation
40350         * lib/hash.c (check_tuning): Move declaration before statement.
40351         Reported by Reuben Thomas.
40352
40353 2009-10-05  Karl Berry  <karl@gnu.org>
40354
40355         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40356
40357 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40358             Bruno Haible  <bruno@clisp.org>
40359
40360         * lib/uname.c (uname): Use a table-driven algorithm to compute
40361         Windows NT versions.
40362
40363 2009-10-04  Bruno Haible  <bruno@clisp.org>
40364
40365         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40366         program_invocation_short_name.
40367         * modules/progname (configure.ac): Test for presence of
40368         program_invocation_short_name.
40369         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40370
40371 2009-10-04  Bruno Haible  <bruno@clisp.org>
40372
40373         * lib/progname.c (set_program_name): Fix comment.
40374         Reported by Jim Meyering.
40375
40376 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40377             Bruno Haible  <bruno@clisp.org>
40378
40379         * lib/uname.c: Include <string.h>.
40380         (uname): Do only one call to GetVersionEx in the common case.
40381
40382 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40383             Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40386         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40387         (uname): Add support for Windows CE and various non-x86 CPU types.
40388
40389 2009-10-03  Bruno Haible  <bruno@clisp.org>
40390
40391         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40392         invocation to tests/configure.ac.
40393         Reported by Ian Beckwith <ianb@erislabs.net>.
40394
40395 2009-10-02  Eric Blake  <ebb9@byu.net>
40396
40397         fchdir: avoid compiler warning
40398         * lib/fchdir.c (canonicalize_file_name)
40399         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40400
40401         test-open: support mingw errno values
40402         * tests/test-open.h (test_open): Relax test.
40403         * tests/test-fopen.h (test_fopen): Likewise.
40404         * tests/test-openat-safer.c (main): Likewise.
40405
40406         open: fix opening directory on mingw
40407         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40408
40409         test-open: on GNU/Hurd, /dev/null is a directory
40410         * tests/test-fopen.h (main): Rename...
40411         (test_fopen): ...to this.  Use a guaranteed non-directory when
40412         confirming open behavior on trailing slash.
40413         * tests/test-openat-safer.c (main): Likewise.
40414         * tests/test-open.h (main): Likewise....
40415         (test_open): ...to this.
40416         * tests/test-fopen.c (main): Adjust caller.
40417         * tests/test-fopen-safer.c (main): Likewise.
40418         * tests/test-open.c (main): Likewise.
40419         * tests/test-fcntl-safer.c (main): Likewise.
40420         Reported by Samuel Thibault.
40421
40422         rename, fchdir: don't ignore chdir failure
40423         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40424         * lib/rename.c (rpl_rename) [W32]: Likewise.
40425         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40426         an empty destination directory if source cannot be renamed,
40427         although there is still possibility for failure.
40428         * doc/posix-functions/rename.texi (rename): Document the race.
40429         Reported by Jim Meyering.
40430
40431         maint: cleanup whitespace in recent commits
40432         * lib/rename.c (rpl_rename): Remove tabs.
40433         * tests/test-link.h (test_link): Likewise.
40434         * lib/fchdir.c (get_name): Likewise.
40435         Reported by Jim Meyering.
40436
40437 2009-10-02  Ben Pfaff  <blp@gnu.org>
40438
40439         relocatable-prog-wrapper: Add missing dependency on
40440         double-slash-root.
40441         * modules/relocatable-prog-wrapper: Add dependency.
40442         Reported by Ian Beckwith <ianb@erislabs.net>.
40443
40444 2009-10-02  Eric Blake  <ebb9@byu.net>
40445
40446         renameat: fix Solaris bugs
40447         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40448         needed fixing.
40449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40450         * modules/stdio (Makefile.am): Substitute it.
40451         * lib/stdio.in.h (renameat): Declare replacement.
40452         * lib/renameat.c (rpl_renameat): Implement fix.
40453
40454         renameat: new module
40455         * modules/renameat: New file.
40456         * lib/renameat.c (renameat): Likewise.
40457         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40459         * modules/stdio (Makefile.am): Substitute them.
40460         * lib/stdio.in.h (renameat): Declare it.
40461         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40462         * doc/posix-functions/renameat.texi (renameat): Likewise.
40463         * modules/renameat-tests: New test.
40464         * tests/test-renameat.c: Likewise.
40465
40466         rename: fix mingw bugs
40467         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40468         directory overwrite bugs.
40469
40470         rename: fix another cygwin 1.5 bug
40471         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40472         checks.
40473         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40474         unnecessary cygwin workarounds.  Also work around bug with moving
40475         full directory onto an empty one.
40476         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40477
40478         rename-dest-slash: merge into rename module
40479         * modules/rename-dest-slash (Status): Mark obsolete.
40480         (Depends-on): Add rename.
40481         (Files): Let rename do it all.
40482         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40483         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40484         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40485         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40486         * lib/rename.c (rpl_rename): Update comments.
40487
40488         rename: fix cygwin 1.5.x bugs
40489         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40490         * lib/rename.c (rpl_rename): Work around them.
40491         * modules/rename (Depends-on): Add same-inode.
40492
40493         rename: fix Solaris 10 bug
40494         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40495         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40496         was the only bug.
40497
40498         rename: fix Solaris 9 bug
40499         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40500         on non-directory.  Avoid calling exit.
40501         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40502         strdup.
40503         * modules/rename-tests (Depends-on): Drop lstat.
40504         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40505         (gl_PREREQ_RENAME): Delete unused macro.
40506
40507         rename-dest-slash: fix NetBSD bug
40508         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40509         links.
40510         * modules/rename-dest-slash (Depends-on): Add same-inode.
40511
40512         rename-tests: new test, exposes several platform bugs
40513         * modules/rename-tests: New file.
40514         * tests/test-rename.h: Likewise.
40515         * tests/test-rename.c: Likewise.
40516         * doc/posix-functions/rename.texi (rename): Improve documentation,
40517         including bugs that will eventually be fixed in gnulib.
40518
40519 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40520
40521         * lib/uname.c: Include <stdlib.h>
40522         (uname): Assume version info is available.
40523
40524 2009-10-02  Jim Meyering  <meyering@redhat.com>
40525
40526         gnu-web-doc-update: correct --help output
40527         * build-aux/gnu-web-doc-update: Make --help output relevant.
40528
40529         gnu-web-doc-update: add standard options
40530         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40531
40532         gnu-web-doc-update: New module.
40533         Use this script to automatically update the on-line web documentation
40534         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40535         * modules/gnu-web-doc-update: New file, from coreutils.
40536         * build-aux/gnu-web-doc-update: New script.
40537
40538 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40539
40540         link: LoadLibrary is not needed.
40541         * lib/link.c: Use GetModuleHandle.
40542
40543 2009-10-01  Eric Blake  <ebb9@byu.net>
40544
40545         getopt: bump serial number
40546         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40547         change.
40548
40549         tests: tighten link, rmdir, and remove tests
40550         * tests/test-link.h (includes): No need to use <config.h> here.
40551         Clean up if directory hard link was created, otherwise test for
40552         trailing '.'.
40553         * tests/test-linkat.c (main): Simplify.
40554         * tests/test-remove.c (main): Enhance test for trailing '.'.
40555         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40556
40557 2009-10-01  Jim Meyering  <meyering@redhat.com>
40558
40559         maint.mk: requiring "make major" was annoying, for a "minor" release.
40560         What is intended is "stable", to contrast with alpha and beta,
40561         so require "make stable", not "make major".
40562         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40563         (get_tool_versions): Likewise.
40564         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40565
40566 2009-09-30  Ben Pfaff  <blp@gnu.org>
40567
40568         Fix broken build of replacement for Windows tmpfile().
40569         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40570         flags argument added along with the 'mkostemp' module.
40571
40572 2009-09-28  Bruno Haible  <bruno@clisp.org>
40573
40574         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40575         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40576         to 'remove_elt'.
40577         (gl_list_remove): Update.
40578         * lib/gl_list.c (gl_list_remove): Update.
40579         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40580         to 'remove_elt'.
40581         (gl_oset_remove): Update.
40582         * lib/gl_list.c (gl_oset_remove): Update.
40583         Reported by Eric Blake.
40584
40585 2009-09-28  Eric Blake  <ebb9@byu.net>
40586
40587         doc: mention yet more cygwin 1.7 status
40588         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40589         cygwin.
40590         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40591         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40592
40593         argp: fix test failure
40594         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40595         that are not upper-case.  Pass correct range to tolower.
40596
40597 2009-09-27  Jim Meyering  <meyering@redhat.com>
40598
40599         test-yesno: work around sparc-dash here-document infelicity
40600         Without this change, the literal \177 byte in a here document
40601         would make dash 0.5.5.1-3 access uninitialized memory.
40602         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40603         Instead, use a marker, "@", and filter through tr to create the desired
40604         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40605
40606 2009-09-27  Bruno Haible  <bruno@clisp.org>
40607
40608         Disable untested support for new flavours of ACLs on AIX.
40609         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40610         progress.
40611         * lib/set-mode-acl.c (qset_acl): Likewise.
40612
40613 2008-12-07  Bruno Haible  <bruno@clisp.org>
40614
40615         Add support for new flavours of ACLs on AIX. (Untested.)
40616         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40617         (file_has_acl): Add support for newer AIX.
40618         * lib/set-mode-acl.c (qset_acl): Likewise.
40619         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40620         Rainer Tammer <tammer@tammer.net>.
40621
40622 2009-09-26  Eric Blake  <ebb9@byu.net>
40623
40624         argp: fix compilation of getopt
40625         * lib/getopt.in.h (includes): Use different guard than glibc.
40626         Reported by Sergey Poznyakoff.
40627
40628         doc: mention more cygwin 1.7 status
40629         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40630         bug.
40631         * doc/posix-functions/execl.texi (execl): Likewise.
40632         * doc/posix-functions/execle.texi (execle): Likewise.
40633         * doc/posix-functions/execlp.texi (execlp): Likewise.
40634         * doc/posix-functions/execv.texi (execv): Likewise.
40635         * doc/posix-functions/execve.texi (execve): Likewise.
40636         * doc/posix-functions/execvp.texi (execvp): Likewise.
40637         * doc/glibc-functions/canonicalize_file_name.texi
40638         (canonicalize_file_name): Cygwin 1.7 now provides this.
40639         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40640         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40641         on AT_SYMLINK_NOFOLLOW.
40642
40643 2009-09-24  Eric Blake  <ebb9@byu.net>
40644
40645         test-linkat: make test more robust
40646         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40647
40648         getopt: fix inclusion guards for cygwin
40649         * modules/getopt-posix (Depends-on): Add include-next.
40650         (Makefile.am): Substitute more items in replacement header.
40651         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40652         <getopt.h>.
40653         * lib/getopt.in.h (includes): Use split inclusion guard, and
40654         prefer <getopt.h> over include <unistd.h> when one is present.
40655         (option): Also override name of 'struct option'.
40656
40657         same-inode: revert prior change; it is not yet ready
40658         * NEWS: Undo mention of this change.
40659         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40660         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40661         * lib/cycle-check.c (cycle_check): Likewise.
40662         * lib/same.c (same_name): Likewise.
40663         * lib/at-func2.c (at_func2): Likewise.
40664
40665 2009-09-23  Eric Blake  <ebb9@byu.net>
40666
40667         linkat: new module
40668         * modules/linkat: New file.
40669         * lib/at-func2.c (at_func2): Likewise.
40670         * lib/linkat.c (linkat): Likewise.
40671         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40672         * lib/openat-priv.h (at_func2): Add declaration.
40673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40674         * modules/unistd (Makefile.am): Substitute them.
40675         * lib/unistd.in.h (linkat): Declare it.
40676         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40677         * doc/posix-functions/linkat.texi (linkat): Likewise.
40678         * doc/posix-functions/link.texi (link): Tweak wording.
40679         * tests/test-link.c (main): Move guts...
40680         * tests/test-link.h (test_link): ...into new file.
40681         * modules/linkat-tests: New test.
40682         * tests/test-linkat.c: Likewise.
40683         * modules/link-tests (Files): Ship new file.
40684         (Depends-on): Add stdbool.
40685
40686         dirname: add library-safe mdir_name
40687         * lib/dirname.h (mdir_name): New prototype.
40688         * lib/dirname.c (dir_name): Move guts...
40689         (mdir_name): ...to new function that avoids xalloc_die.
40690
40691         fchdir: another mingw fix
40692         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40693         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40694         on mingw (where it has not yet been ported), and make it optional
40695         elsewhere.
40696         (_gl_register_fd): Use it.
40697
40698         same-inode: make SAME_INODE tri-state, to port to mingw
40699         * NEWS: Mention this change.
40700         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40701         st_ino always being 0.
40702         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40703         * lib/cycle-check.c (cycle_check): Likewise.
40704         * lib/same.c (same_name): Likewise.
40705
40706         lstat: avoid mingw compilation error
40707         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40708         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40709         lstat ourselves.
40710         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40711         was adequate.
40712         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40713         the checks for lstat.
40714         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40715
40716         link: fix test failure on Solaris 9
40717         * lib/link.c (rpl_link): Don't assume link will catch bogus
40718         trailing slash on source.
40719
40720         test-symlinkat: enhance test
40721         * tests/test-readlink.c (main): Move guts...
40722         * tests/test-readlink.h (test_readlink): ...into new file.
40723         * tests/test-symlink.c (main): Move guts...
40724         * tests/test-symlink.h (test_symlink): ...into new file.
40725         * tests/test-symlinkat.c (main): Use new files for further
40726         coverage.
40727         (do_symlink, do_readlink): New helper functions.
40728         * modules/symlink-tests (Files): Ship new file.
40729         (Depends-on): Add stdbool.
40730         * modules/readlink-tests (Files): Ship new file.
40731         (Depends-on): Add stdbool.
40732         * modules/symlinkat-tests (Files): Use new files.
40733
40734 2009-09-23  Eric Blake  <ebb9@byu.net>
40735
40736         readlink: document portability issue with symlink length
40737         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40738         systems have bogus st_size on symlinks, and mention the
40739         areadlink-with-size module.
40740         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40741         * doc/posix-functions/readlink.texi (readlink): Mention the
40742         areadlink module, and ERANGE failure.
40743         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40744         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40745
40746         readlink: fix Solaris 9 bug with trailing slash
40747         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40748         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40749         * doc/posix-functions/readlink.texi (readlink): Document this.
40750         * modules/readlink-tests: New test.
40751         * tests/test-readlink.c: Likewise.
40752
40753         readlink: fix cygwin 1.5.x bug with return type
40754         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40755         * lib/unistd.in.h (readlink): Use ssize_t.
40756         * lib/readlink.c (readlink): Likewise.
40757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40758         * modules/unistd (Makefile.am): Substitute it.
40759         * lib/unistd.in.h (readlink): Declare replacement.
40760         * doc/posix-functions/readlink.texi (readlink): Document this.
40761
40762         symlink: use throughout gnulib
40763         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40764         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40765         symlink is not used.
40766         * modules/symlinkat (Depends-on): Add symlink.
40767         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40768         * modules/canonicalize-tests (Depends-on): Likewise.
40769         * modules/lstat-tests (Depends-on): Likewise.
40770         * modules/openat-tests (Depends-on): Likewise.
40771         * modules/remove-tests (Depends-on): Likewise.
40772         * modules/rmdir-tests (Depends-on): Likewise.
40773         * modules/unlink-tests (Depends-on): Likewise.
40774         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40775         * tests/test-canonicalize.c (symlink): Likewise.
40776         * tests/test-fstatat.c (symlink): Likewise.
40777         * tests/test-lstat.c (symlink): Likewise.
40778         * tests/test-remove.c (symlink): Likewise.
40779         * tests/test-rmdir.c (symlink): Likewise.
40780         * tests/test-unlink.c (symlink): Likewise.
40781         * tests/test-unlinkat.c (symlink): Likewise.
40782
40783         symlink: new module, for Solaris 9 bug
40784         * modules/symlink: New file.
40785         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40786         * lib/symlink.c: Likewise.
40787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40788         * modules/unistd (Makefile.am): Substitute them.
40789         * lib/unistd.in.h (symlink): Declare replacement.
40790         * MODULES.html.sh (File system functions): Mention it.
40791         * doc/posix-functions/symlink.texi (symlink): Likewise.
40792         * modules/symlink-tests: New test.
40793         * tests/test-symlink.c: Likewise.
40794
40795 2009-09-23  Bruno Haible  <bruno@clisp.org>
40796
40797         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40798         when needed.
40799         Test case: gnulib-tool --import --with-tests atexit inttypes.
40800         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40801
40802 2009-09-23  Bruno Haible  <bruno@clisp.org>
40803
40804         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40805         subcommand, not in a subshell.
40806
40807 2009-09-22  Eric Blake  <ebb9@byu.net>
40808
40809         unistd: sort replacement declarations
40810         * lib/unistd.in.h: Sort declarations.
40811
40812         open, openat: minor optimization
40813         * lib/open.c (open): If open succeeded, len is non-zero.
40814         * lib/openat.c (rpl_openat): Likewise.
40815
40816         link-follow: ensure correct result
40817         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40818         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40819         distinguish between possible failures.
40820
40821 2009-09-21  Eric Blake  <ebb9@byu.net>
40822
40823         fts: avoid compiler warning
40824         * lib/fts.c (dirent_inode_sort_may_be_useful)
40825         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40826
40827 2009-09-19  Bruno Haible  <bruno@clisp.org>
40828
40829         * lib/progreloc.c (canonicalize_file_name): New declaration.
40830
40831 2009-09-19  Eric Blake  <ebb9@byu.net>
40832
40833         link: fix quoting
40834         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40835
40836         openat: fix openat bugs on Solaris 9
40837         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40838         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40839         * modules/openat (Depends-on): Add open.
40840         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40841         * modules/fcntl-h (Makefile.am): Substitute it.
40842         * lib/fcntl.in.h (openat): Declare replacement.
40843         * doc/posix-functions/openat.texi (openat): Document this.
40844
40845         openat: move fstatat and unlinkat into correct files
40846         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40847         compiled.
40848         * lib/openat.c (fstatat, unlinkat): Move...
40849         * lib/fstatat.c (fstatat): ...into correct files.
40850         * lib/unlinkat.c (unlinkat): Likewise.
40851
40852         openat: fix unlinkat bugs on Solaris 9
40853         * lib/unlinkat.c (unlinkat): New file.
40854         * modules/openat (Depends-on): Add unlink.
40855         (Files): Distribute it.
40856         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40857         trailing slash behavior is broken.
40858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40859         * modules/unistd (Makefile.am): Substitute it.
40860         * lib/unistd.in.h (unlinkat): Declare replacement.
40861         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40862
40863         openat: fix fstatat bugs on Solaris 9
40864         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40865         stat.
40866         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40867
40868         test-unlinkat: enhance test, to expose Solaris 9 bug
40869         * tests/test-unlink.c (main): Factor guts...
40870         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40871         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40872         * tests/test-rmdir.c (main): Adjust caller.
40873         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40874         (unlinker): New helper function.
40875         (rmdirat): Enhance check.
40876         * modules/rmdir-tests (Depends-on): Add stdbool.
40877         * modules/unlink-tests (Depends-on): Likewise.
40878         (Files): Add test-unlink.h.
40879         * modules/openat-tests (Files): Likewise.
40880         (Depends-on): Add unlinkdir.
40881
40882         test-fstatat: new test, to expose Solaris 9 bugs
40883         * tests/test-stat.c (main): Factor guts...
40884         * tests/test-stat.h (test_stat_func): ...into new file.
40885         * tests/test-lstat.c (main): Factor guts...
40886         * tests/test-lstat.h (test_lstat_func): ...into new file.
40887         * tests/test-fstatat.c: New file.
40888         * modules/stat-tests (Files): Add test-stat.h.
40889         * modules/lstat-tests (Files): Add test-lstat.h.
40890         (Depends-on): Add stdbool.
40891         * modules/openat-tests (Depends-on): Add pathmax.
40892         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40893         (Makefile.am): Run new test.
40894
40895         remove: new module, for mingw and Solaris 9 bugs
40896         * modules/remove: New file.
40897         * lib/remove.c: Likewise.
40898         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40900         * modules/stdio (Makefile.am): Use them.
40901         * lib/stdio.in.h (remove): Declare replacement.
40902         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40903         * doc/posix-functions/remove.texi (remove): Likewise.
40904         * modules/remove-tests: New test.
40905         * tests/test-remove.c: Likewise.
40906
40907         unlink: new module, for Solaris 9 bug
40908         * modules/unlink: New file.
40909         * lib/unlink.c: Likewise.
40910         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40912         * modules/unistd (Makefile.am): Use them.
40913         * lib/unistd.in.h (stat): Declare replacement.
40914         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40915         * doc/posix-functions/unlink.texi (unlink): Likewise.
40916         * modules/unlink-tests: New test.
40917         * tests/test-unlink.c: Likewise.
40918
40919         lstat: fix Solaris 9 bug
40920         * lib/lstat.c (lstat): Also check for trailing slash on
40921         non-symlink, non-directories.  Use stat module to simplify logic.
40922         * doc/posix-functions/lstat.texi (lstat): Document it.
40923         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40924         (configure.ac): Check for symlink.
40925         * tests/test-lstat.c (main): Add more tests.
40926
40927         stat: add as dependency to other modules
40928         * modules/chown (Depends-on): Add stat.
40929         * modules/euidaccess (Depends-on): Likewise.
40930         * modules/fchdir (Depends-on): Likewise.
40931         * modules/isdir (Depends-on): Likewise.
40932         * modules/link (Depends-on): Likewise.
40933         * modules/lstat (Depends-on): Likewise.
40934         * modules/mkdir-p (Depends-on): Likewise.
40935         * modules/modechange (Depends-on): Likewise.
40936         * modules/open (Depends-on): Likewise.
40937         * modules/readlink (Depends-on): Likewise.
40938         * modules/same (Depends-on): Likewise.
40939
40940         stat: fix Solaris 9 bug
40941         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40942         slash.
40943         * lib/stat.c (rpl_stat): Work around it.
40944         * doc/posix-functions/stat.texi (stat): Update documentation.
40945
40946         stat: new module, for mingw bug
40947         * modules/stat: New file.
40948         * lib/stat.c: Likewise.
40949         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40950         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40951         * modules/sys_stat (Makefile.am): Use them.
40952         * lib/sys_stat.in.h (stat): Declare replacement.
40953         * lib/openat.c (fstatat): Deal with lstat and stat being function
40954         macros.
40955         * modules/openat (Depends-on): Add inline.
40956         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40957         * doc/posix-functions/stat.texi (stat): Likewise.
40958         * modules/stat-tests: New test.
40959         * tests/test-stat.c: Likewise.
40960
40961 2009-09-19  Jim Meyering  <meyering@redhat.com>
40962
40963         syntax-check: detect unnecessary inclusion of canonicalize.h
40964         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40965
40966 2009-09-19  Eric Blake  <ebb9@byu.net>
40967
40968         canonicalize-lgpl: adjust clients to use correct header
40969         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40970         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40971         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40972         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40973         * lib/progreloc.c (includes): Likewise.
40974
40975 2009-09-19  Jim Meyering  <meyering@redhat.com>
40976
40977         test-posixtm.c: correct a comment
40978         * tests/test-posixtm.c: Correct first-line comment.
40979         Spotted by Eric Blake.
40980
40981 2009-09-16  Jim Meyering  <meyering@redhat.com>
40982
40983         posixtm-tests: make T const-correct; add a test case
40984         * tests/test-posixtm.c (T): Declare const.
40985         Add a test for -(2^31+1).
40986         Remove useless can-succeed-only-in-2002 test.
40987
40988         posixtm-tests: adjust the sole failing test
40989         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40990         expected output matches what mktime now produces.  Cross-checked via
40991         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40992
40993         posixtm: move #ifdef'd tests into a new module
40994         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40995         * tests/test-posixtm.c: ... this new file.
40996         * modules/posixtm-tests: New module.
40997
40998 2009-09-19  Eric Blake  <ebb9@byu.net>
40999
41000         openat: simplify use of at-func.c
41001         * lib/at-func.c (includes): Include prerequisites here, to
41002         simplify requirements on client files.
41003         * lib/openat-priv.h: Add double-inclusion guard.
41004         * lib/faccessat.c (includes): Simplify.
41005         * lib/fchmodat.c (includes): Likewise.
41006         * lib/fchownat.c (includes): Likewise.
41007         * lib/mkdirat.c (includes): Likewise.
41008         * lib/mkfifoat.c (includes): Likewise.
41009         * lib/symlinkat.c (includes): Likewise.
41010
41011         openat: allow return of fd 0
41012         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41013         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41014         unistd-safer.
41015         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41016         <fcntl.h>; this module does not leak fds.
41017         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41018         must be allowed to return 0, leaving openat_safer to add the
41019         safety.
41020         (openat_permissive): Avoid writing to just-opened fd 2 if
41021         restoring the current directory fails.
41022         * lib/openat-die.c (openat_restore_fail): Add comment.
41023         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41024         (save_cwd): Guarantee safe fd, but without use of open_safer.
41025         * tests/test-openat.c: New test.
41026         * modules/openat-tests (Files, Makefile.am): Distribute and build
41027         new file.
41028
41029         relocatable-prog-wrapper: fix build
41030         * modules/relocatable-prog-wrapper (Files): Update name of
41031         canonicalize m4 file, broken on 2009-09-17.
41032         Reported by emad hajjar <aleppos@hotmail.com>.
41033
41034 2009-09-19  Bruno Haible  <bruno@clisp.org>
41035
41036         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41037         * lib/safe-alloc.c: Likewise.
41038         Reported by Ian Beckwith <ianb@erislabs.net>.
41039
41040 2009-09-18  Bruno Haible  <bruno@clisp.org>
41041
41042         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41043         Reported by <erobles@sensacd.com.mx>.
41044
41045 2009-09-17  Eric Blake  <ebb9@byu.net>
41046
41047         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41048         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41049         slashes when checking if last component is missing.
41050         * tests/test-canonicalize.c (main): Test this.
41051
41052         canonicalize, canonicalize-lgpl: honor // if distinct from /
41053         * modules/canonicalize (Files): Add double-slash-root.m4.
41054         * modules/canonicalize-lgpl (Files): Likewise.
41055         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41056         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41057         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41058         fallback definition.
41059         (canonicalize_filename_mode): Use it to protect //.
41060         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41061         (__realpath): Likewise.
41062         * tests/test-canonicalize.c (main): Test this.
41063         * tests/test-canonicalize-lgpl.c (main): Likewise.
41064         * modules/canonicalize-tests (Depends-on): Add same-inode.
41065         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41066
41067         canonicalize-lgpl: fix glibc bug with trailing slash
41068         * m4/canonicalize-lgpl.m4: Move contents...
41069         * m4/canonicalize.m4: ...here.
41070         (gl_CANONICALIZE_LGPL): Factor realpath check...
41071         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41072         glibc 2.3.5 bug, fixed 2005-04-27.
41073         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41074         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41075         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41076         * modules/canonicalize-lgpl (Files): Manage file rename.
41077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41078         * modules/stdlib (Makefile.am): Substitute witness.
41079         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41080         is needed.
41081         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41082         replacement is required.
41083         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41084         * doc/glibc-functions/canonicalize_file_name.texi
41085         (canonicalize_file_name): Document this.
41086         * doc/posix-functions/realpath.texi (realpath): Likewise.
41087
41088         canonicalize-lgpl: reject non-directory with trailing slash
41089         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41090         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41091         catches failures in glibc 2.3.5.
41092         * tests/test-canonicalize.c (main): Likewise.
41093
41094         canonicalize-lgpl: use native realpath if it works
41095         * lib/canonicalize-lgpl.c (realpath): Guard with
41096         FUNC_REALPATH_WORKS.
41097         * lib/stdlib.in.h (realpath): Make declaration optional based on
41098         HAVE_REALPATH.
41099         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41100         native realpath works.
41101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41102         * modules/stdlib (Makefile.am): Substitute witness.
41103
41104         canonicalize, canonicalize-lgpl: use <stdlib.h>
41105         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41106         (Include): Mention <stdlib.h>.
41107         (configure.ac): Mention functions we provide.
41108         * modules/canonicalize (configure.ac): Likewise.
41109         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41110         realpath if canonicalize_file_name is missing.
41111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41112         * modules/stdlib (Makefile.am): Substitute witnesses.
41113         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41114         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41115         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41116         * NEWS: Document this.
41117         * doc/glibc-functions/canonicalize_file_name.texi
41118         (canonicalize_file_name): Likewise.
41119         * doc/posix-functions/realpath.texi (realpath): Likewise.
41120         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41121
41122         test-canonicalize: consolidate into single C program
41123         * tests/test-canonicalize.sh: Delete; move setup into...
41124         * tests/test-canonicalize.c (main): ...the program, making it
41125         easier to run in debugger.  Add some tests.
41126         * modules/canonicalize-tests (Files): Remove unused file.
41127         (Depends-on): Add progname.
41128         (configure.ac, Makefile.am): Simplify.
41129
41130         test-canonicalize-lgpl: consolidate into single C program
41131         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41132         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41133         easier to run in debugger.  Add some tests.
41134         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41135         (configure.ac, Makefile.am): Simplify.
41136
41137         canonicalize: avoid resolvepath
41138         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41139         unnecessary checks.
41140         * lib/canonicalize.c (includes): Simplify.
41141         (canonicalize_file_name): Drop resolvepath implementation.
41142         * modules/canonicalize (Depends-on): Drop filenamecat.
41143
41144         canonicalize: don't lose errno
41145         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41146         over calls to free.
41147
41148         canonicalize: simplify errno handling
41149         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41150         assignment.
41151
41152         canonicalize, canonicalize-lgpl: update module dependencies
41153         * modules/canonicalize (Depends-on): Add extensions, lstat,
41154         pathmax, stdlib.
41155         (Files): Drop pathmax.h.
41156         (configure.ac): Adjust macro name.
41157         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41158         lstat, stdlib, sys_stat.
41159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41160         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41161         extensions.
41162         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41163         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41164         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41165         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41166         declaration, if available.
41167         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41168         we can rely on the readlink module.
41169         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41170         (includes): Use <unistd.h> unconditionally.
41171
41172 2009-09-17  Eric Blake  <ebb9@byu.net>
41173
41174         maint: make Include sections of modules consistent
41175         * modules/alloca: Use only header name; no need to list #include.
41176         * modules/alloca-opt: Likewise.
41177         * modules/arpa_inet: Likewise.
41178         * modules/canon-host: Likewise.
41179         * modules/configmake: Likewise.
41180         * modules/dirent: Likewise.
41181         * modules/eealloc: Likewise.
41182         * modules/environ: Likewise.
41183         * modules/fchdir: Likewise.
41184         * modules/fcntl: Likewise.
41185         * modules/fcntl-h: Likewise.
41186         * modules/gethrxtime: Likewise.
41187         * modules/gettime: Likewise.
41188         * modules/ignore-value: Likewise.
41189         * modules/inet_ntop: Likewise.
41190         * modules/inet_pton: Likewise.
41191         * modules/inttypes: Likewise.
41192         * modules/isnand-nolibm: Likewise.
41193         * modules/isnanf-nolibm: Likewise.
41194         * modules/mbchar: Likewise.
41195         * modules/mbfile: Likewise.
41196         * modules/mbiter: Likewise.
41197         * modules/mbuiter: Likewise.
41198         * modules/netdb: Likewise.
41199         * modules/netinet_in: Likewise.
41200         * modules/nproc: Likewise.
41201         * modules/pagealign_alloc: Likewise.
41202         * modules/poll: Likewise.
41203         * modules/printf-frexp: Likewise.
41204         * modules/pthread: Likewise.
41205         * modules/putenv: Likewise.
41206         * modules/random_r: Likewise.
41207         * modules/relocatable-prog: Likewise.
41208         * modules/search: Likewise.
41209         * modules/select: Likewise.
41210         * modules/selinux-h: Likewise.
41211         * modules/settime: Likewise.
41212         * modules/signal: Likewise.
41213         * modules/size_max: Likewise.
41214         * modules/socklen: Likewise.
41215         * modules/ssize_t: Likewise.
41216         * modules/stdarg: Likewise.
41217         * modules/stdbool: Likewise.
41218         * modules/stddef: Likewise.
41219         * modules/stdint: Likewise.
41220         * modules/stdio: Likewise.
41221         * modules/stdlib: Likewise.
41222         * modules/string: Likewise.
41223         * modules/strings: Likewise.
41224         * modules/sys_file: Likewise.
41225         * modules/sys_ioctl: Likewise.
41226         * modules/sys_select: Likewise.
41227         * modules/sys_socket: Likewise.
41228         * modules/sys_stat: Likewise.
41229         * modules/sys_time: Likewise.
41230         * modules/sys_times: Likewise.
41231         * modules/sys_utsname: Likewise.
41232         * modules/sys_wait: Likewise.
41233         * modules/sysexits: Likewise.
41234         * modules/time: Likewise.
41235         * modules/times: Likewise.
41236         * modules/tmpfile: Likewise.
41237         * modules/trim: Likewise.
41238         * modules/unistd: Likewise.
41239         * modules/wchar: Likewise.
41240         * modules/wctype: Likewise.
41241
41242 2009-09-17  Bruno Haible  <bruno@clisp.org>
41243
41244         Make getdate.y compile on QNX and NetBSD 5 / i386.
41245         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41246         TIME_T_FITS_IN_LONG_INT.
41247         * lib/getdate.y (long_time_t): New type.
41248         (relative_time): Change type of 'seconds' field to long_time_t.
41249         (get_date): Update types of local variables. Check against overflow
41250         during conversion from long_time_t to time_t.
41251         Reported by Matt Kraai <kraai@ftbfs.org>
41252         and Hasso Tepper <hasso@netbsd.org>.
41253
41254 2009-09-17  Bruno Haible  <bruno@clisp.org>
41255
41256         * modules/COPYING: Update copyright years.
41257         * modules/README: Likeiwse.
41258         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41259         Reported by Ian Beckwith <ianb@erislabs.net>.
41260
41261 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41262
41263         * users.txt: Update references for gnuit package.
41264
41265 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41266
41267         * m4/getdelim.m4: Fix typo in copyright line.
41268
41269 2009-09-17  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/atoll.c: Use the standard header with GPL copyright.
41272         * lib/argz.in.h: Likewise.
41273         * lib/glob.c: Likewise.
41274         * lib/glob-libc.h: Likewise.
41275         * lib/random_r.c: Likewise.
41276         * lib/siglist.h: Likewise.
41277         * lib/strsignal.c: Likewise.
41278         Reported by Ian Beckwith <ianb@erislabs.net>.
41279
41280 2009-09-17  Eric Blake  <ebb9@byu.net>
41281
41282         rmdir: ensure correct dependency order
41283         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41284
41285 2009-09-17  Bruno Haible  <bruno@clisp.org>
41286
41287         Disable assertion that fails on NetBSD 5 / i386.
41288         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41289         Reported by Sam Steingold <sds@gnu.org>
41290         and Hasso Tepper <hasso@netbsd.org>.
41291
41292 2009-09-16  Eric Blake  <ebb9@byu.net>
41293
41294         unlinkdir: port to mingw
41295         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41296         on which no one can unlink a directory.
41297
41298         stdlib: sort witness names
41299         * modules/stdlib (Makefile.am): Sort replacements.
41300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41301         * lib/stdlib.in.h: Likewise.
41302
41303         parse-duration-tests: avoid link failure
41304         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41305         LIBINTL.
41306         Reported by Tom G. Christensen.
41307
41308         openat-tests: ensure unlinkat behaves like rmdir
41309         * tests/test-rmdir.c (main): Factor guts...
41310         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41311         * modules/rmdir-tests (Files): Ship new file.
41312         * modules/openat-tests: New test.
41313         * tests/test-unlinkat.c: Likewise.
41314
41315         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41316         * modules/rmdir-errno (Status, Notice): Now obsolete.
41317
41318         rmdir: work around cygwin 1.5.x and mingw bugs
41319         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41320         * lib/rmdir.c (rmdir): Work around it.
41321         * modules/rmdir (Status, Notice): No longer obsolete.
41322         (Files): Add dos.m4.
41323         (Depends-on): Add unistd.
41324         (configure.ac): Set witnesses.
41325         (License): Relax to LGPLv2+.
41326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41327         * modules/unistd (Makefile.am): Substitute witnesses.
41328         * lib/unistd.in.h (rmdir): Declare replacement.
41329         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41330         * modules/rmdir-tests: New tests.
41331         * tests/test-rmdir.c: Likewise.
41332
41333 2009-09-15  Eric Blake  <ebb9@byu.net>
41334
41335         fchdir: improve use of replacement functions
41336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41337         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41338         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41339         REPLACE_CLOSEDIR.
41340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41341         * modules/sys_stat (Makefile.am): Substitute correct witness.
41342         * modules/dirent (Makefile.am): Likewise.
41343         * modules/unistd (Makefile.am): Likewise.
41344         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41345         * lib/unistd.in.h (dup): Likewise.
41346         * lib/sys_stat.in.h (fstat): Likewise.
41347
41348         maint: ignore gnulib-tool temp files
41349         * .gitignore: Ignore files created during gnulib-tool --test.
41350
41351 2009-09-13  Jim Meyering  <meyering@redhat.com>
41352
41353         posixtm: don't reject a time that specify "60" as the number of seconds
41354         * lib/posixtm.c (posixtime): The code to reject invalid dates
41355         would also reject a time specified with the .60 suffix.
41356         But POSIX allows that, in order to accommodate leap seconds.
41357         So don't reject it.
41358         (main): Adjust tests accordingly.
41359         * modules/posixtm (Depends-on): Add stpcpy.
41360
41361 2009-09-11  Jim Meyering  <meyering@redhat.com>
41362
41363         announce-gen: include [$release_type] in emitted Subject:
41364         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41365         e.g., [stable] in the emitted Subject: line.
41366
41367 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41368
41369         Remove obsolete macros from several modules.
41370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41371         obsolete Autoconf macros with their modern counterparts.
41372         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41373         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41374         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41375         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41376         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41377         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41379         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41380         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41381         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41382         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41383         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41384         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41385         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41386         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41387         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41388         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41389         * m4/time_r.m4 (gl_TIME_R): Likewise.
41390         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41391         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41392         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41393
41394         Fix copyright header in build-aux scripts.
41395         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41396         recommendation.
41397         * build-aux/ncftpput-ftp: Likewise.
41398         * build-aux/update-copyright: Likewise.
41399
41400 2009-09-09  Eric Blake  <ebb9@byu.net>
41401
41402         test-link: allow Linux choice of errno
41403         * tests/test-link.c (main): Relax test for alternate error.
41404
41405         strndup: fix improper m4 caching
41406         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41407         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41408         (gl_PREREQ_STRNDUP): Delete.
41409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41410         * modules/string (Makefile.am): Substitute it.
41411         * lib/string.in.h (strndup): Modernize prototype.
41412
41413         getcwd: port to mingw
41414         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41415         different from the POSIX assumptions made throughout the getcwd
41416         module; fortunately, the mingw getcwd does not need replacement.
41417         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41418         * modules/getcwd-tests: New test.
41419         * tests/test-getcwd.c: Likewise.
41420
41421         link: fix platform bugs
41422         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41423         * lib/link.c (link): Work around them.  Fix related mingw bug.
41424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41425         * modules/unistd (Makefile.am): Substitute it.
41426         * lib/unistd.in.h (link): Declare replacement.
41427         * doc/posix-functions/link.texi (link): Document this.
41428         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41429
41430         test-link: consolidate into single C program, test more cases
41431         * tests/test-link.sh: Delete.
41432         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41433         at least Cygwin and Solaris.
41434         * modules/link-tests (Files): Remove unused file.
41435         (Depends-on): Add errno, sys_stat.
41436         (Makefile.am): Simplify.
41437
41438 2009-09-08  Bruno Haible  <bruno@clisp.org>
41439
41440         Work around towlower, towupper bug on mingw.
41441         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41442         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41443         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41444         * doc/posix-functions/towupper.texi: Likewise.
41445         Reported by Eric Blake.
41446
41447 2009-09-08  Jim Meyering  <meyering@redhat.com>
41448
41449         build: don't try to run autoheader if we don't use it
41450         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41451         is not used in configure.ac.
41452
41453 2009-09-08  Eric Blake  <ebb9@byu.net>
41454
41455         euidaccess: fix compilation error
41456         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41457
41458         rawmemchr: relax license
41459         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41460         okay.
41461         Reported by Jim Meyering.
41462
41463         mkfifoat: new module
41464         * modules/mkfifoat: New file.
41465         * lib/mkfifoat.c: Likewise.
41466         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41468         * modules/sys_stat (Makefile.am): Use them.
41469         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41470         * MODULES.html.sh (File system functions): Mention module.
41471         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41472         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41473         * modules/mkfifoat-tests: New test.
41474         * tests/test-mkfifoat.c: Likewise.
41475
41476         strchrnul: relax license
41477         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41478         okay.
41479         Reported by Jim Meyering.
41480
41481 2009-09-08  Eric Blake  <ebb9@byu.net>
41482
41483         fstatat: fix compilation on Solaris
41484         * lib/fstatat.c (includes): Add fcntl.h.
41485         Reported by Pádraig Brady.
41486
41487 2009-09-07  Eric Blake  <ebb9@byu.net>
41488
41489         rename: modernize replacement
41490         * modules/rename (Depends-on): Add stdio.
41491         (configure.ac): Declare witness.
41492         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41493         stdio take care of replacement.
41494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41495         * modules/stdio (Makefile.am): Substitute them.
41496         * lib/stdio.in.h (rename): Declare replacement.
41497         * lib/rename.c (includes): Allow cross-compilation to non-windows
41498         machines.
41499         * doc/posix-functions/rename.texi (rename): Improve
41500         documentation.
41501
41502         stdio: sort witness names
41503         * modules/stdio (Makefile.am): Sort replacements.
41504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41505         * lib/stdio.in.h: Likewise.
41506
41507         getcwd: minor cleanups
41508         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41509         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41510
41511         openat: provide more convenience names
41512         * modules/faccessat (configure.ac): Add C witness.
41513         * lib/unistd.in.h (readlinkat): Fix typo.
41514         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41515         convenience wrappers.
41516         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41517         wrappers in syntax checks.
41518
41519 2009-09-06  Eric Blake  <ebb9@byu.net>
41520
41521         doc: fix comments in recent patches
41522         * lib/faccessat.c: Mention correct function.
41523         * lib/fchmodat.c: Likewise.
41524         * lib/fchownat.c: Likewise.
41525         * lib/symlinkat.c: Likewise.
41526         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41527         constants.
41528
41529         faccessat, symlinkat: continue cleanup of previous patch
41530         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41531         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41532         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41534         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41535         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41536         set.
41537
41538 2009-09-06  Bruno Haible  <bruno@clisp.org>
41539
41540         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41541         (fstatat): Declare if GNULIB_FSTATAT is set.
41542         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41543         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41544         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41545         * modules/fcntl-h (Files): Remove m4/openat.m4.
41546         * modules/sys_stat (Files): Remove m4/openat.m4.
41547         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41548         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41549         * modules/unistd (Files): Remove m4/openat.m4.
41550         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41551         GNULIB_OPENAT.
41552         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41553         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41555         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41556         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41557         gl_OPENAT_DEFAULTS.
41558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41559         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41560         Don't require gl_OPENAT_DEFAULTS.
41561         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41562         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41563         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41564         (gl_OPENAT_DEFAULTS): Remove macro.
41565
41566 2009-09-06  Bruno Haible  <bruno@clisp.org>
41567
41568         * modules/openat (configure.ac): Remove unneeded witness.
41569
41570 2009-09-06  Bruno Haible  <bruno@clisp.org>
41571
41572         Set errno to ENOSYS when a function is entirely unsupported.
41573         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41574         EOPNOTSUPP.
41575         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41576         * modules/chown (Depends-on): Remove errno.
41577
41578 2009-09-06  Bruno Haible  <bruno@clisp.org>
41579
41580         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41581
41582 2009-09-06  Bruno Haible  <bruno@clisp.org>
41583
41584         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41585
41586 2009-09-06  Ben Pfaff  <blp@gnu.org>
41587             Bruno Haible  <bruno@clisp.org>
41588
41589         Work around a glibc bug in strtok_r.
41590         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41591         Undefine if UNDEFINE_STRTOK_R is set.
41592         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41594         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41595         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41596         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41597         UNDEFINE_STRTOK_R.
41598         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41599
41600 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41601
41602         exclude: minor fix
41603         * lib/exclude.c: Include wctype.h
41604
41605 2009-09-06  Akim Demaille  <demaille@gostai.com>
41606
41607         bootstrap: improve error message
41608         * build-aux/bootstrap (find_tool): Upon failure, report the list
41609         of candidates.
41610         Honor the initial value of the envvar.
41611
41612 2009-09-05  Eric Blake  <ebb9@byu.net>
41613
41614         symlinkat: new module
41615         * modules/symlinkat: New file.
41616         * lib/symlinkat.c: Likewise.
41617         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41619         * modules/unistd (Makefile.am): Use them.
41620         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41621         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41622         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41623         * MODULES.html.sh (File system functions): Mention module.
41624         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41625         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41626         * modules/symlinkat-tests: New test.
41627         * tests/test-symlinkat.c: Likewise.
41628
41629         test-openat-safer: add more checks
41630         * tests/test-openat-safer.c (main): Check more code paths.
41631
41632 2009-09-05  Jim Meyering  <meyering@redhat.com>
41633
41634         syntax-check: detect unnecessary inclusion of openat.h
41635         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41636
41637 2009-09-05  Bruno Haible  <bruno@clisp.org>
41638
41639         Support towlower, towupper.
41640         * doc/posix-functions/towlower.texi: Mention module wctype.
41641         * doc/posix-functions/towupper.texi: Likewise.
41642         * lib/wctype.in.h (towlower, towupper): New functions.
41643         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41644         (ASSERT): New macro.
41645         (e): New variable.
41646         (main): Test also towlower, towupper. Test WEOF argument.
41647         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41648
41649 2009-09-05  Bruno Haible  <bruno@clisp.org>
41650
41651         Fix conversion behaviour when the input is invalid.
41652         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41653         mark occurring in first pass of indirect conversion.
41654         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41655         input.
41656         Found by clang's static analyzer.
41657
41658 2009-09-05  Bruno Haible  <bruno@clisp.org>
41659
41660         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41661         where direct conversion is possible.
41662
41663 2009-09-04  Eric Blake  <ebb9@byu.net>
41664
41665         openat: fail with ENOENT on empty name
41666         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41667         buffer.
41668
41669         link-follow: fix logic bug in prior patch
41670         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41671         reversed sense of yes and no in prior patch.  Avoid confusing
41672         compilation failure with desired semantics.
41673
41674         link-follow: accomodate mingw and cross-compilation
41675         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41676         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41677         cross-compilation results to -1, to make linkat easier to
41678         implement when cross-compiling.  Trivially support mingw.
41679         * modules/link-follow (configure.ac): Call new name.
41680         * NEWS: Mention this.
41681
41682 2009-09-03  Eric Blake  <ebb9@byu.net>
41683
41684         faccessat: compile replacement
41685         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41686         needed.
41687
41688         fts: fix compilation error
41689         * lib/fts.c (includes): Re-add "openat.h", for
41690         openat_needs_fchdir.
41691
41692         faccessat: new module
41693         * modules/faccessat: New file.
41694         * lib/faccessat.c: Likewise.
41695         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41697         * modules/unistd (Makefile.am): Use it.
41698         * lib/unistd.in.h (faccessat): Declare it.
41699         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41700         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41701         * MODULES.html.sh (File system functions): Mention it.
41702         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41703         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41704
41705         euidaccess: prefer POSIX over non-standard implementation
41706         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41707         * lib/euidaccess.c (euidaccess): Use it if available.
41708
41709         openat: make template easier to use
41710         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41711         AT_FUNC_F2 to be undefined.
41712         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41713         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41714         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41715         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41716         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41717         Likewise.
41718         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41719         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41720         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41721         Likewise.
41722
41723         openat: declare in POSIX headers
41724         * NEWS: Mention this.
41725         * modules/openat (configure.ac): Declare witnesses.
41726         (Depends-on): Add fcntl-h, sys_stat, unistd.
41727         (Include): Mention correct headers.
41728         * modules/fcntl-h (Depends-on): Add link-warning.
41729         (Files): Add openat.m4.
41730         (Makefile.am): Substitute witnesses.
41731         * modules/sys_stat (Files, Makefile.am): Likewise.
41732         * modules/unistd (Files, Makefile.am): Likewise.
41733         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41734         (gl_OPENAT_DEFAULTS): New macro.
41735         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41737         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41738         (SYS_STAT_H): Remove unused variable.
41739         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41740         * lib/fcntl--.h (includes): Remove unneeded header.
41741         * lib/openat-safer.c (includes): Likewise.
41742         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41743         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41744         appropriate headers.
41745         (__OPENAT_PREFIX): Delete.
41746         * lib/fcntl.in.h (openat): Provide declaration.
41747         (AT_FDCWD): Fix Solaris bug.
41748         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41749         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41750         * lib/fchmodat.c (includes):  Adjust to find declaration.
41751         * lib/fchownat.c (includes): Likewise.
41752         * lib/mkdirat.c (includes): Likewise.
41753         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41754         still visible.
41755
41756 2009-09-02  Eric Blake  <ebb9@byu.net>
41757
41758         errno: use consistently
41759         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41760         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41761         * lib/canonicalize.c (ELOOP): Likewise.
41762         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41763         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41764         * lib/lchown.c (EOPNOTSUPP): Likewise.
41765         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41766         * lib/savewd.c (ESTALE): Likewise.
41767         * lib/settime.c (ENOSYS): Likewise.
41768         * lib/utimens.c (ENOSYS): Likewise.
41769         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41770         * lib/chdir-safer.c (ELOOP): Likewise.
41771         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41772         * modules/c-stack (Depends-on): Add errno.
41773         * modules/canonicalize (Depends-on): Likewise.
41774         * modules/chdir-safer (Depends-on): Likewise.
41775         * modules/fdopendir (Depends-on): Likewise.
41776         * modules/inet_ntop (Depends-on): Likewise.
41777         * modules/inet_pton (Depends-on): Likewise.
41778         * modules/lchown (Depends-on): Likewise.
41779         * modules/openat (Depends-on): Likewise.
41780         * modules/savewd (Depends-on): Likewise.
41781         * modules/settime (Depends-on): Likewise.
41782         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41783
41784         fts: avoid leaking fds
41785         * modules/fts (Depends-on): Add cloexec.
41786         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41787         flag.
41788
41789         fts: make directory fds more robust
41790         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41791         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41792
41793         backupfile, chdir-long, fts, savedir: make safer
41794         * lib/backupfile.c (includes): Use "dirent--.h", since
41795         numbered_backup can write to stderr during readdir.
41796         * lib/savedir.c (includes): Likewise.
41797         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41798         emulation can write to stderr on failure.
41799         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41800         * lib/getcwd.c: Document why opendir_safer is unused.
41801         * lib/glob.c: Likewise.
41802         * lib/scandir.c: Likewise.
41803         * lib/openat-proc.c: Likewise, for open_safer.
41804         * modules/backupfile (Depends-on): Add dirent-safer.
41805         * modules/savedir (Depends-on): Likewise.
41806         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41807         * modules/chdir-long (Depends-on): Add openat-safer.
41808
41809         openat-safer: new module
41810         * modules/openat-safer: New file.
41811         * lib/openat-safer.c: Likewise.
41812         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41813         * lib/fcntl-safer.h (openat_safer): Declare.
41814         * lib/fcntl--.h (openat): Override.
41815         * MODULES.html.sh (File descriptor based I/O): Mention it.
41816         * lib/openat.h: Add double-inclusion guards.
41817         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41818         "fcntl--.h", so we can implement openat.
41819         * modules/openat-safer-tests: New test.
41820         * tests/test-openat-safer.c: New file.
41821
41822         dirent-safer: new module
41823         * modules/dirent-safer: New file.
41824         * lib/dirent--.h: Likewise.
41825         * lib/dirent-safer.h: Likewise.
41826         * lib/opendir-safer.c: Likewise.
41827         * m4/dirent-safer.m4: Likewise.
41828         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41829         * modules/dirent-safer-tests: New test.
41830         * tests/test-dirent-safer.c: New file.
41831         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41832
41833         fdopendir: optimize on mingw
41834         * lib/unistd.in.h (_gl_directory_name): New prototype.
41835         * lib/fchdir.c (_gl_directory_name): Implement it.
41836         (fchdir): Use it to simplify implementation.
41837         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41838         fchdir, when available, to avoid calling [f]chdir().
41839
41840         fdopendir: split into its own module
41841         * lib/openat.c (fdopendir): Move...
41842         * lib/fdopendir.c: ...into new file.
41843         * modules/fdopendir: New module.
41844         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41845         * modules/openat (Depends-on): Add fdopendir.
41846         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41847         fdopendir here.
41848         * modules/savedir (Depends-on): Only need fdopendir, not full
41849         openat.
41850         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41851         * lib/openat.h (fdopendir): Drop prototype.
41852         * lib/dirent.in.h (fdopendir): Provide prototype.
41853         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41854         * modules/dirent (Makefile.am): Substitute them.
41855         * MODULES.html.sh (File system functions): Mention it.
41856         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41857         * modules/fdopendir-tests: New file.
41858         * tests/test-fdopendir.c: Likewise.
41859
41860         fchdir: use more consistent macro convention
41861         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41862         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41863         REPLACE_FCHDIR, rather than relying on config.h macros.
41864         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41865         inside a single make-time REPLACE_FCHDIR block, rather than using
41866         the config.h FCHDIR_REPLACEMENT.
41867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41868         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41869         Manage fstat replacement.
41870         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41871         REPLACE_FCHDIR.
41872         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41873         (Makefile.am): Substitute REPLACE_FCHDIR.
41874         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41875         FCHDIR_REPLACEMENT.
41876         * lib/dup-safer.c (dup_safer): Likewise.
41877         * lib/dup2.c (rpl_dup2): Likewise.
41878         * lib/dup3.c (rpl_dup3): Likewise.
41879         * lib/open.c (rpl_open): Likewise.
41880
41881         fchdir: simplify error handling, and support dup3
41882         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41883         stdbool, malloc-posix, realloc-posix.
41884         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41885         (ensure_dirs_slot): Return false on allocation failure.
41886         (rpl_dup2): Delete.
41887         (_gl_register_dup): New function.
41888         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41889         (_gl_register_fd): Close fd on allocation failure.
41890         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41891         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41892         prototype.
41893         (rpl_dup2_fchdir): Delete prototype.
41894         * lib/open.c (open): Update caller.
41895         * lib/dup2.c (dup2): Track fchdir metadata.
41896         * lib/dup3.c (dup3): Likewise.
41897         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41899
41900 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41901
41902         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41903         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41904         don't pass arguments to AC_OUTPUT.
41905
41906 2009-09-02  Bruno Haible  <bruno@clisp.org>
41907
41908         * modules/mkdtemp (License): Relicense under LGPLv2+.
41909         Reported by Paolo Bonzini.
41910
41911 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41912
41913         Replace uses of obsolete autoconf macros in Jim's modules.
41914         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41915         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41916         can evoke a warning from autoconf when run with -Wobsolete
41917         enabled.  They were declared obsolete for good reasons (see
41918         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41919         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41920         should not continue using the deprecated macros.
41921         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41922         obsolete Autoconf macros with modern counterparts.
41923         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41924         * m4/dos.m4 (gl_AC_DOS): Likewise.
41925         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41926         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41927         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41928         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41929         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41930         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41931         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41932         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41933         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41934         Likewise.
41935         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41936         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41937         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41938         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41939         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41940         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41941
41942 2009-09-01  Eric Blake  <ebb9@byu.net>
41943
41944         fchdir: fix off-by-one bug in previous patch
41945         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41946         (_gl_unregister_fd): Delete useless if.
41947
41948 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41949
41950         maint.mk: sort the list of syntax-check rules
41951         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41952         easier to get a sense of progress when the rules are run sequentially
41953         and take a long time.
41954
41955 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41956
41957         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41958         * modules/netinet_in: Likewise.
41959         * modules/sys_file: Likewise.
41960         * modules/sys_ioctl: Likewise.
41961         * modules/sys_select: Likewise.
41962         * modules/sys_socket: Likewise.
41963         * modules/sys_stat: Likewise.
41964         * modules/sys_time: Likewise.
41965         * modules/sys_times: Likewise.
41966         * modules/sys_utsname: Likewise.
41967         * modules/sys_wait: Likewise.
41968
41969 2009-09-01  Jim Meyering  <meyering@redhat.com>
41970
41971         fts: help ensure that return values are not ignored
41972         * lib/fts_.h (__GNUC_PREREQ): Define.
41973         (__attribute_warn_unused_result__): Define.
41974         (fts_children, fts_close, fts_open, fts_read): Declare with
41975         __attribute_warn_unused_result__.
41976
41977         fts: fts_close now fails also when closing a dir file descriptor fails
41978         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41979         and propagate to caller, along with errno.
41980
41981         announce-gen: correct formatting in --help output
41982         * build-aux/announce-gen (usage): Move the one-line description in
41983         --help output "up", to where it belongs, just after Usage:.
41984
41985 2009-08-31  Eric Blake  <ebb9@byu.net>
41986
41987         fchdir: port to mingw
41988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41989         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41990         opened, then use a substitute.
41991         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41992         replacement.
41993         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41994         (_gl_register_fd): No need to check stat if open already filters
41995         all directories.
41996         (fchdir): Fix error condition to match POSIX.
41997         * modules/fchdir (Depends-on): Add sys_stat.
41998         * doc/posix-functions/open.texi (open): Document the limitation.
41999         * modules/fchdir-tests: New file.
42000         * tests/test-fchdir.c: Likewise.
42001
42002         canonicalize: allow cross-testing from cygwin to mingw
42003         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42004         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42005         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42006         Likewise.
42007         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42008         target does not support symlinks.
42009         * tests/test-canonicalize-lgpl.sh: Likewise.
42010
42011         chown: avoid compilation warning on mingw
42012         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42013         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42014         mingw.
42015         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42016         * modules/chown (Depends-on): Add errno.
42017
42018 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42019
42020         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42021         command.
42022
42023 2009-08-31  Jim Meyering  <meyering@redhat.com>
42024
42025         canonicalize: remove useless initialization
42026         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42027         initialization of local, "end".
42028
42029 2009-08-30  Bruno Haible  <bruno@clisp.org>
42030
42031         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42032         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42033         ENOSYS.
42034
42035 2009-08-30  Bruno Haible  <bruno@clisp.org>
42036
42037         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42038         /usr/xpg4/bin/tr when it exists.
42039         * tests/test-pipe-filter-gi1.sh: Likewise.
42040
42041 2009-08-30  Bruno Haible  <bruno@clisp.org>
42042
42043         Work around deficient /usr/bin/id program on Solaris.
42044         * tests/test-file-has-acl.sh (ID): New variable.
42045         * tests/test-set-mode-acl.sh (ID): Likewise.
42046         * tests/test-copy-acl.sh (ID): Likewise.
42047         * tests/test-copy-file.sh (ID): Likewise.
42048
42049 2009-08-30  Bruno Haible  <bruno@clisp.org>
42050
42051         New module 'xstriconveh'.
42052         * lib/xstriconveh.h: New file.
42053         * lib/xstriconveh.c: New file.
42054         * modules/xstriconveh: New file.
42055
42056 2009-08-30  Bruno Haible  <bruno@clisp.org>
42057
42058         Make it easier to use mem_cd_iconveh.
42059         * lib/striconveh.h (iconveh_t): New type.
42060         (iconveh_open, iconveh_close): New declarations.
42061         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42062         with a single 'const iconveh_t *' argument.
42063         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42064         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42065         with a single 'const iconveh_t *' argument.
42066         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42067         * tests/test-striconveh.c (main): Update.
42068         * NEWS: Mention the change.
42069
42070 2009-08-30  Bruno Haible  <bruno@clisp.org>
42071
42072         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42073         problem.
42074
42075 2009-08-30  Bruno Haible  <bruno@clisp.org>
42076
42077         Work around iconv_open problem on Solaris.
42078         * lib/iconv_open-solaris.gperf: New file.
42079         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42080         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42081         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42082         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42083         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42084         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42085
42086 2009-08-29  Jim Meyering  <meyering@redhat.com>
42087
42088         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42089         * top/maint.mk (cvs-check): Remove target; it was just an alias
42090         to the better-named vc-diff-check.
42091         (maintainer-distcheck): Remove rule.  It was used only from
42092         the (alpha/beta/major) target, and all of its commands but one
42093         were coreutils-specific.
42094         (vc-dist): Remove rule.
42095         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42096         Run vc-diff-check, not vc-dist.
42097         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42098
42099 2009-08-27  Bruno Haible  <bruno@clisp.org>
42100
42101         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42102         of 0.
42103
42104 2009-08-27  Bruno Haible  <bruno@clisp.org>
42105
42106         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42107         compilers.
42108         * doc/func.texi: Document the SunPRO C bug.
42109
42110 2009-08-27  Bruno Haible  <bruno@clisp.org>
42111
42112         Fix link error on Solaris.
42113         * tests/test-parse-duration.c (xstrdup): Remove function.
42114
42115 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42116
42117         ignore-value: handle pointer types, too
42118         * lib/ignore-value.h (__attribute__): Remove definition.
42119         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42120         of a more concise and more-often effective "(void) i" statement.
42121         (ignore_ptr): New function to suppress warnings from functions that
42122         return pointers, and to make it explicit that one function doesn't
42123         handle all cases.
42124
42125 2009-08-25  Bruno Haible  <bruno@clisp.org>
42126
42127         dup2: work around a Linux bug.
42128         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42129         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42130         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42131         Reported by Simon Josefsson.
42132
42133 2009-08-25  Jim Meyering  <meyering@redhat.com>
42134
42135         libguestfs uses gnulib
42136         * users.txt: Add libguestfs.
42137
42138 2009-08-24  Eric Blake  <ebb9@byu.net>
42139
42140         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42141         * lib/pipe2.c (includes): Add binary-io.h.
42142         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42143
42144 2009-08-24  Bruno Haible  <bruno@clisp.org>
42145
42146         Tolerate declared but missing accept4 syscall.
42147         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42148         available.
42149         * lib/sys_socket.in.h (accept4): If the function is already present,
42150         override it.
42151         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42152         * modules/accept4 (Makefile.am): Compile accept4.c always.
42153         Reported by Paolo Bonzini and Eric Blake.
42154
42155 2009-08-23  Bruno Haible  <bruno@clisp.org>
42156
42157         New module 'accept4'.
42158         * lib/sys_socket.in.h (accept4): New declaration.
42159         * lib/accept4.c: New file.
42160         * m4/accept4.m4: New file.
42161         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42162         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42163         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42164         HAVE_ACCEPT4.
42165         * modules/accept4: New file.
42166         * doc/glibc-functions/accept4.texi: Mention the new module.
42167
42168 2009-08-24  Jim Meyering  <meyering@redhat.com>
42169
42170         progname: also set global program_invocation_name, when possible
42171         Before this change, a libtool-enabled program that calls glibc's
42172         error function would report the program name as
42173         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42174         * modules/progname (configure.ac): Check for a declaration of
42175         program_invocation_name.
42176         * lib/progname.c:  Include <errno.h>.
42177         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42178         Set program_invocation_name.
42179
42180 2009-08-23  Bruno Haible  <bruno@clisp.org>
42181
42182         * lib/dup3.c: Include <string.h>.
42183
42184 2009-08-23  Bruno Haible  <bruno@clisp.org>
42185
42186         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42187         * lib/pipe2.c (pipe2): Likewise.
42188         Suggested by Eric Blake.
42189
42190 2009-08-23  Bruno Haible  <bruno@clisp.org>
42191
42192         Tolerate declared but missing dup3 syscall.
42193         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42194         * lib/unistd.in.h (dup3): If the function is already present,
42195         override it.
42196         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42197         * modules/dup3 (Makefile.am): Compile dup3.c always.
42198         Reported by Paolo Bonzini.
42199
42200 2009-08-23  Bruno Haible  <bruno@clisp.org>
42201
42202         Tolerate declared but missing pipe2 syscall.
42203         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42204         available.
42205         * lib/unistd.in.h (pipe2): If the function is already present,
42206         override it.
42207         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42208         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42209         Reported by Paolo Bonzini.
42210
42211 2009-08-23  Bruno Haible  <bruno@clisp.org>
42212
42213         * lib/pipe2.c (pipe2): Move #ifs inside function.
42214
42215 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42216
42217         quotearg: document limitations of quote_these_too
42218         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42219         those limitations are created.
42220         * lib/quotearg.h (set_char_quoting): Document that digits and
42221         letters that are special after backslash are not permitted.
42222         (quotearg_char): Cross-reference set_char_quoting documentation.
42223
42224 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42225
42226         quotearg: implement custom_quoting_style
42227         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42228         right_quote fields.
42229         (set_custom_quoting): New public function.
42230         (quotearg_buffer_restyled): Add left_quote and right_quote
42231         arguments, handle them very much like locale quoting, and update
42232         all uses.
42233         (quotearg_n_custom): New public function.
42234         (quotearg_n_custom_mem): New public function.
42235         (quotearg_custom): New public function.
42236         (quotearg_custom_mem): New public function.
42237         * lib/quotearg.h: Prototype and document new public functions.
42238         (enum quoting_style): For escape_quoting_style and
42239         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42240         ignored even though they're otherwise like c_quoting_style.
42241         Add custom_quoting_style member and document with comparison to
42242         clocale_quoting_style.
42243         * tests/test-quotearg.c (custom_quotes): New array.
42244         (custom_results): New array.
42245         (main): Extend to test custom quoting.
42246
42247 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42248
42249         quotearg: fix right quote escaping when it's in quote_these_too
42250         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42251         quote, be sure to prepend only one backslash.
42252         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42253         (main): Test it.
42254
42255 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42256
42257         quotearg-tests: test escaping of embedded locale quotes
42258         * tests/test-quotearg.c (struct result_strings): Add member for
42259         new input.
42260         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42261         (inputs): Add new input.
42262         (results_g): Add expected results.
42263         (flag_results): Likewise.
42264         (locale_results): Likewise.
42265         (compare_strings): Check those.
42266
42267 2009-08-23  Bruno Haible  <bruno@clisp.org>
42268
42269         Tests for module 'dup3'.
42270         * modules/dup3-tests: New file.
42271         * tests/test-dup3.c: New file.
42272
42273         New module 'dup3'.
42274         * lib/unistd.in.h (dup3): New declaration.
42275         * lib/dup3.c: New file.
42276         * m4/dup3.m4: New file.
42277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42278         HAVE_DUP3.
42279         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42280         * modules/dup3: New file.
42281         * doc/glibc-functions/dup3.texi: Mention the new module.
42282
42283 2009-08-23  Bruno Haible  <bruno@clisp.org>
42284
42285         Tweak the dup2 test.
42286         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42287         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42288         the test file is still empty. Fix argument order of lseek.
42289
42290 2009-08-23  Bruno Haible  <bruno@clisp.org>
42291
42292         Avoid test link errors when the modules getopt-gnu, gettext are used.
42293         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42294         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42295
42296 2009-08-23  Bruno Haible  <bruno@clisp.org>
42297
42298         Fix getdtablesize() on mingw.
42299         * lib/getdtablesize.c (getdtablesize): Implement differently.
42300         * lib/unistd.in.h (getdtablesize): Improve comment.
42301
42302 2009-08-23  Bruno Haible  <bruno@clisp.org>
42303
42304         New module 'mkostemp'.
42305         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42306         * lib/stdlib.in.h (mksotemp): New declaration.
42307         * lib/mkostemp.c: New file, from glibc with modifications.
42308         * lib/tempname.h (GT_FILE): Remove outdated comment.
42309         (gen_tempname): Add flags argument.
42310         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42311         (__GT_FILE): Map to 1.
42312         (small_open, large_open): Remove macros.
42313         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42314         * lib/mkstemp.c (mkstemp): Update.
42315         * lib/mkdtemp.c (mkdtemp): Likewise.
42316         * m4/mkostemp.m4: New file.
42317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42318         HAVE_MKOSTEMP.
42319         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42320         HAVE_MKOSTEMP.
42321         * modules/mkostemp: New file, based on modules/mkstemp.
42322         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42323         * NEWS: Mention the change.
42324
42325 2009-08-23  Bruno Haible  <bruno@clisp.org>
42326
42327         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42328         Reported by Eric Blake.
42329
42330 2009-08-23  Bruno Haible  <bruno@clisp.org>
42331
42332         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42333         Reported by Eric Blake.
42334
42335 2009-08-23  Bruno Haible  <bruno@clisp.org>
42336
42337         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42338         * modules/pipe2 (Depends-on): Likewise.
42339
42340 2009-08-23  Eric Blake  <ebb9@byu.net>
42341
42342         fcntl-h: add O_TTY_INIT support
42343         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42344         * tests/test-fcntl-h.c (o): Test it.
42345         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42346
42347         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42348         * modules/fcntl: Move <fcntl.h> header replacement...
42349         * modules/fcntl-h: ...to new name, so as not to collide with
42350         like-named function.
42351         * tests/test-fcntl.c: Rename...
42352         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42353         * modules/fcntl-tests: Rename...
42354         * modules/fcntl-h-tests: ...to this.  Update test file name.
42355         * modules/chdir-long (Depends-on): Update clients.
42356         * modules/chdir-safer (Depends-on): Likewise.
42357         * modules/fcntl-safer (Depends-on): Likewise.
42358         * modules/fts (Depends-on): Likewise.
42359         * modules/mkancesdirs (Depends-on): Likewise.
42360         * modules/mkdir-p (Depends-on): Likewise.
42361         * modules/open (Depends-on): Likewise.
42362         * modules/savewd (Depends-on): Likewise.
42363         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42364         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42365
42366 2009-08-22  Bruno Haible  <bruno@clisp.org>
42367
42368         * modules/binary-io (License): Relicense under LGPL.
42369         * modules/pipe2 (License): Likewise.
42370
42371 2009-08-22  Bruno Haible  <bruno@clisp.org>
42372
42373         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42374         return value.
42375         * lib/pipe-filter-gi.c (filter_init): Likewise.
42376         Reported by Eric Blake.
42377
42378 2009-08-22  Bruno Haible  <bruno@clisp.org>
42379
42380         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42381         * modules/pipe (Depends-on): Add pipe2.
42382
42383 2009-08-22  Bruno Haible  <bruno@clisp.org>
42384
42385         Tests for module 'pipe2'.
42386         * modules/pipe2-tests: New file.
42387         * tests/test-pipe2.c: New file.
42388
42389         New module 'pipe2'.
42390         * lib/unistd.in.h (pipe2): New declaration.
42391         * lib/pipe2.c: New file.
42392         * m4/pipe2.m4: New file.
42393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42394         HAVE_PIPE2.
42395         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42396         * modules/pipe2: New file.
42397         * doc/glibc-functions/pipe2.texi: Mention the new module.
42398
42399 2009-08-22  Bruno Haible  <bruno@clisp.org>
42400
42401         Reference some new glibc functions.
42402         * doc/glibc-functions/accept4.texi: New file.
42403         * doc/glibc-functions/dup3.texi: New file.
42404         * doc/glibc-functions/mkostemp.texi: New file.
42405         * doc/glibc-functions/pipe2.texi: New file.
42406         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42407         (Glibc sys/socket.h): Refer to accept4.
42408         (Glibc unistd.h): Refer to dup3, pipe2.
42409         Reported by Eric Blake.
42410
42411 2009-08-22  Jim Meyering  <meyering@redhat.com>
42412             Bruno Haible  <bruno@clisp.org>
42413
42414         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42415         This makes it so packages using automake-1.11's silent-rules option
42416         can print e.g., a single "GEN    configmake.h" line, rather than
42417         the 30+ statements that perform the job.  If you want to see the
42418         actual commands, you can still run "make V=1".
42419         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42420         so that make output is abbreviated when those variables are defined
42421         appropriately.
42422         * modules/argz: Likewise.
42423         * modules/arpa_inet: Likewise.
42424         * modules/byteswap: Likewise.
42425         * modules/configmake: Likewise.
42426         * modules/dirent: Likewise.
42427         * modules/errno: Likewise.
42428         * modules/fcntl: Likewise.
42429         * modules/float: Likewise.
42430         * modules/fnmatch: Likewise.
42431         * modules/getopt-posix: Likewise.
42432         * modules/glob: Likewise.
42433         * modules/iconv_open: Likewise.
42434         * modules/inttypes: Likewise.
42435         * modules/localcharset: Likewise.
42436         * modules/locale: Likewise.
42437         * modules/math: Likewise.
42438         * modules/netdb: Likewise.
42439         * modules/netinet_in: Likewise.
42440         * modules/poll: Likewise.
42441         * modules/posix_spawnp-tests: Likewise.
42442         * modules/sched: Likewise.
42443         * modules/search: Likewise.
42444         * modules/selinux-h: Likewise.
42445         * modules/signal: Likewise.
42446         * modules/spawn: Likewise.
42447         * modules/stdarg: Likewise.
42448         * modules/stdbool: Likewise.
42449         * modules/stddef: Likewise.
42450         * modules/stdint: Likewise.
42451         * modules/stdio: Likewise.
42452         * modules/stdlib: Likewise.
42453         * modules/string: Likewise.
42454         * modules/strings: Likewise.
42455         * modules/sys_file: Likewise.
42456         * modules/sys_ioctl: Likewise.
42457         * modules/sys_select: Likewise.
42458         * modules/sys_socket: Likewise.
42459         * modules/sys_stat: Likewise.
42460         * modules/sys_time: Likewise.
42461         * modules/sys_times: Likewise.
42462         * modules/sys_utsname: Likewise.
42463         * modules/sys_wait: Likewise.
42464         * modules/sysexits: Likewise.
42465         * modules/time: Likewise.
42466         * modules/unistd: Likewise.
42467         * modules/wchar: Likewise.
42468         * modules/wctype: Likewise.
42469
42470 2009-08-22  Jim Meyering  <meyering@redhat.com>
42471
42472         announce-gen: detect write failure
42473         * build-aux/announce-gen: Add Coda at end.
42474         Remove equivalent-but-more-verbose block at top.
42475
42476 2009-08-19  Akim Demaille  <demaille@gostai.com>
42477
42478         bootstrap: --help to stdout.
42479         * bootstrap (usage): Don't send --help to stderr.
42480         Use a here doc instead of a long string.
42481
42482 2009-08-21  Eric Blake  <ebb9@byu.net>
42483
42484         test-popen-safer: split from test-popen
42485         * tests/test-popen.c (main): Move...
42486         * tests/test-popen.h: ...into new file.
42487         * tests/test-popen-safer2.c: New file.
42488         * modules/popen-tests (Files): Add test-popen.h.
42489         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42490         Suggested by Bruno Haible.
42491
42492         test-fcntl-safer: split from test-open
42493         * tests/test-open.c (main): Move...
42494         * tests/test-open.h: ...into new file.
42495         * tests/test-fcntl-safer.c: New file.
42496         * modules/open-tests (Files): Add test-open.h.
42497         * modules/fcntl-safer-tests: New file.
42498         Suggested by Bruno Haible.
42499
42500         test-fopen-safer: split from test-fopen
42501         * tests/test-fopen.c (main): Move...
42502         * tests/test-fopen.h: ...into new file.
42503         * tests/test-fopen-safer.c: New file.
42504         * modules/fopen-tests (Files): Add test-fopen.h.
42505         * modules/fopen-safer-tests: New file.
42506         Suggested by Bruno Haible.
42507
42508 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42509
42510         popen-safer: test O_CLOEXEC at run-time.
42511         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42512
42513 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42514
42515         fcntl: move more flags to the header
42516         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42517         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42518         * lib/fcntl.in.h: Do both things here.
42519
42520 2009-08-21  Jim Meyering  <meyering@redhat.com>
42521
42522         consistently remove $@-t before redirecting to it
42523         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42524         * modules/alloca-opt: Likewise.
42525         * modules/byteswap: Likewise.
42526         * modules/fnmatch: Likewise.
42527         * modules/getopt-posix: Likewise.
42528         * modules/glob: Likewise.
42529         * modules/poll: Likewise.
42530         * modules/posix_spawnp-tests: Likewise.
42531         * modules/sys_socket: Likewise.
42532         * modules/sysexits: Likewise.
42533
42534 2009-08-21  Eric Blake  <ebb9@byu.net>
42535
42536         popen: simplify access to original popen
42537         * lib/popen.c (rpl_popen): No need to worry about popen being a
42538         macro.
42539         Reported by Bruno Haible.
42540
42541 2009-08-20  Eric Blake  <ebb9@byu.net>
42542
42543         build: avoid some compiler warnings
42544         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42545         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42546         type.
42547         (new_exclude_segment, excluded_file_pattern_p)
42548         (excluded_file_name_p): Reduce scope.
42549         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42550         old-style declaration.
42551
42552 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42553
42554         * tests/test-exclude1.sh: Handle Windows EOL.
42555         * tests/test-exclude2.sh: Likewise.
42556         * tests/test-exclude3.sh: Likewise.
42557         * tests/test-exclude4.sh: Likewise.
42558         * tests/test-exclude5.sh: Likewise.
42559         * tests/test-exclude6.sh: Likewise.
42560         * tests/test-exclude7.sh: Likewise.
42561
42562 2009-08-19  Akim Demaille  <demaille@gostai.com>
42563
42564         bootstrap: find sha1sum when named gsha1sum.
42565         * bootstrap (find_tool): New.
42566         ($SHA1SUM): New.
42567         Use it.
42568
42569 2009-08-20  Jim Meyering  <meyering@redhat.com>
42570
42571         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42572         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42573         expression that converts "." in a file name to "\." in the resulting
42574         regexp.  Start with a dummy statement, so that prior shell variable
42575         definitions are expanded portably.  Reported by Simon Josefsson.
42576
42577 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42578
42579         Fix polling for writeability of a screen buffer.
42580         * lib/poll.c: Distinguish input and screen buffers for the
42581         Win32 implementation.
42582         * lib/select.c: Likewise.
42583
42584 2009-08-19  Eric Blake  <ebb9@byu.net>
42585
42586         popen-safer: prevent popen from clobbering std descriptors
42587         * modules/popen-safer: New file.
42588         * lib/popen-safer.c: Likewise.
42589         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42590         * lib/stdio--.h (popen): Provide override.
42591         * lib/stdio-safer.h (popen_safer): Provide declaration.
42592         * tests/test-popen.c (includes): Partially test this.
42593         * modules/popen-safer-tests: New file, for more tests.
42594         * tests/test-popen-safer.c: Likewise.
42595         * MODULES.html.sh (file stream based Input/Output): Mention it.
42596
42597         tests: test some of the *-safer modules
42598         * modules/fopen-safer (Depends-on): Add fopen.
42599         * modules/fcntl-safer (Depends-on): Add fcntl.
42600         * modules/stdlib-safer (Depends-on): Add stdlib.
42601         (configure.ac): Set indicator.
42602         * modules/unistd-safer (configure.ac): Likewise.
42603         * modules/tmpfile-safer (configure.ac): Likewise.
42604         (Depends-on): Add tmpfile.
42605         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42606         active.
42607         * tests/test-fopen.c (includes): Test safer versions when they are
42608         in use.
42609         * tests/test-open.c (includes): Likewise.
42610
42611         popen: fix cygwin 1.5 bug when stdin closed
42612         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42613         * modules/popen: New file.
42614         * modules/popen-tests: Likewise.
42615         * tests/test-popen.c: Likewise.
42616         * m4/popen.m4: Likewise.
42617         * lib/popen.c: Likewise.
42618         * lib/stdio.in.h (popen): New declaration.
42619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42620         * modules/stdio (Makefile.am): Likewise.
42621         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42622
42623 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42624
42625         maint.mk: give full control over update-copyright exclusions
42626         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42627         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42628         (update-copyright): Don't force inclusion of top-level
42629         ChangeLog.  Don't force exclusion of all COPYING files, but make
42630         them the default exclusion instead.
42631
42632 2009-08-16  Bruno Haible  <bruno@clisp.org>
42633
42634         Fix test failures on Solaris 10.
42635         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42636         tests when Solaris iconv() is used.
42637         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42638         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42639         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42640         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42641         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42642
42643 2009-08-16  Bruno Haible  <bruno@clisp.org>
42644
42645         Fix test failures on Solaris 10.
42646         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42647         'tr' program and pass it as first argument.
42648         * tests/test-pipe-filter-gi1.sh: Likewise.
42649         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42650         program as first argument.
42651         * tests/test-pipe-filter-gi1.c (main): Likewise.
42652
42653 2009-08-16  Eric Blake  <ebb9@byu.net>
42654
42655         fpurge: fix previous commits
42656         * modules/fpurge (Makefile.am): Make replacement conditional,
42657         partially reverting 2007-04-29 change; missed in previous
42658         attempt.
42659         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42660         is missing.
42661
42662 2009-08-16  Bruno Haible  <bruno@clisp.org>
42663
42664         Clarify fpurge's effect on the file position.
42665         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42666         * tests/test-fpurge.c (main): Make a second pass for checking the file
42667         position.
42668
42669 2009-08-16  Bruno Haible  <bruno@clisp.org>
42670
42671         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42672         declaration of fpurge is missing.
42673         * tests/test-fpurge.c (main): Check that the file has not more contents
42674         than expected. Close the file before removing it.
42675
42676 2009-08-15  Eric Blake  <ebb9@byu.net>
42677
42678         fpurge: don't wrap working cygwin implementation
42679         * lib/fpurge.c (fpurge): Fix comment typo.
42680         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42681         1.7 to avoid replacement.
42682         * tests/test-fpurge.c (main): Enhance test.
42683
42684 2009-08-15  Eric Blake  <ebb9@byu.net>
42685         and Jim Meyering  <meyering@redhat.com>
42686
42687         test-update-copyright: skip if perl is insufficient
42688         * tests/test-update-copyright.sh: Failure to run maintainer tool
42689         should not cause testsuite failure on cygwin 1.5.
42690
42691 2009-08-14  Eric Blake  <ebb9@byu.net>
42692
42693         doc: mention more functions added in cygwin 1.7.0
42694         * doc/posix-headers/limits.texi (limits.h): Update for recent
42695         cygwin additions.
42696         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42697         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42698         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42699         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42700         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42701
42702 2009-08-14  Eric Blake  <ebb9@byu.net>
42703
42704         maint.mk: simplify update-copyright rule
42705         * top/maint.mk (update-copyright-local): Delete, and document how
42706         to do it in cfg.mk instead.
42707         (update-copyright-exclude-regexp): Delete, and document how to do
42708         it in .x-update-copyright instead.
42709         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42710         exclude ChangeLog.
42711
42712 2009-08-14  Bruno Haible  <bruno@clisp.org>
42713
42714         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42715
42716 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42717
42718         maint.mk: support update-copyright-env
42719         * top/maint.mk (update-copyright-env): Define place-holder.
42720         (update-copyright): Expand $(update-copyright-env) before
42721         invoking update-copyright.
42722
42723 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42724
42725         update-copyright: implement forced reformatting
42726         * build-aux/update-copyright: Implement and document
42727         UPDATE_COPYRIGHT_FORCE.
42728         * tests/test-update-copyright.sh: Test it.
42729
42730 2009-08-14  Eric Blake  <ebb9@byu.net>
42731         and Bruno Haible  <bruno@clisp.org>
42732
42733         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42734         * tests/test-locale.c: Revert previous patch related to NULL.
42735         * tests/test-stdio.c: Likewise.
42736         * tests/test-stdlib.c: Likewise.
42737         * tests/test-string.c: Likewise.
42738         * tests/test-unistd.c: Likewise.
42739         * modules/time-tests (Depends-on): Add verify.
42740         * modules/wchar-tests (Depends-on): Likewise.
42741         * tests/test-time.c: Test for NULL compliance.
42742         * tests/test-wchar.c: Likewise.
42743         * modules/locale (Depends-on): Add stddef.
42744         * modules/stdio (Depends-on): Likewise.
42745         * modules/stdlib (Depends-on): Likewise.
42746         * modules/string (Depends-on): Likewise.
42747         * modules/time (Depends-on): Likewise.
42748         * modules/unistd (Depends-on): Likewise.
42749         * modules/wchar (Depends-on): Likewise.
42750         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42751         * lib/stdlib.in.h (includes): Likewise.
42752         * lib/string.in.h (includes): Likewise.
42753         * lib/time.in.h (includes): Likewise.
42754         * lib/unistd.in.h (includes): Likewise.
42755         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42756         replaced.
42757         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42758         * m4/stddef_h.m4: New file.
42759         * modules/stddef: Likewise.
42760         * lib/stddef.in.h: Likewise.
42761         * modules/stddef-tests: Likewise.
42762         * tests/test-stddef.c: Likewise.
42763         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42764         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42765         * doc/posix-headers/locale.texi (locale.h): Likewise.
42766         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42767         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42768         * doc/posix-headers/string.texi (string.h): Likewise.
42769         * doc/posix-headers/time.texi (time.h): Likewise.
42770         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42771         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42772
42773 2009-08-14  Eric Blake  <ebb9@byu.net>
42774
42775         doc: improve git diff of texinfo files
42776         * .gitattributes: Add rule for *.texi files, with hint on how to
42777         use it.
42778         Copied from m4, and based on a report by Bruno Haible.
42779
42780 2009-08-14  Bruno Haible  <bruno@clisp.org>
42781
42782         Disable multithread support by default on Cygwin 1.5.x for real.
42783         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42784
42785 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42786
42787         update-copyright: much ado about intervals
42788         * build-aux/update-copyright: Implement and document
42789         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42790         of copyright year intervals.
42791         Also, document UPDATE_COPYRIGHT_YEAR.
42792         * tests/test-update-copyright.sh: Test it.
42793
42794         update-copyright: convert 2-digit to 4-digit years
42795         * build-aux/update-copyright: Implement and document.
42796         * tests/test-update-copyright.sh: Update.
42797
42798 2009-08-14  Jim Meyering  <meyering@redhat.com>
42799
42800         test-exclude: avoid coreutils "make check" failure
42801         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42802         just as in test-argmatch.c.
42803
42804 2009-08-13  Eric Blake  <ebb9@byu.net>
42805
42806         test-dup2: fix bad assumption
42807         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42808         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42809
42810         test-version-etc: fix CRLF portability issue
42811         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42812         recognize \r.
42813         * tests/test-argp-version-etc-1.sh: Likewise.
42814
42815         getopt: update client modules
42816         * modules/argp (Depends-on): Use getopt-gnu.
42817         * modules/git-merge-changelog (Depends-on): Likewise.
42818         * modules/long-options (Depends-on): Likewise.
42819         * modules/xstrtol (Depends-on): Likewise.
42820
42821 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42822
42823         * tests/test-version-etc.sh: Don't fail on different
42824         project/version.  Don't fail on CRLF differences.  Rewrite to use
42825         multiple -e instead of multiple sed forks, suggested by Eric Blake
42826         <ebb9@byu.net>.
42827         * tests/test-argp-version-etc-1.sh: Likewise.
42828
42829 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42830
42831         * tests/test-version-etc.sh: Don't fail on different
42832         project/version.
42833
42834 2009-08-12  Bruno Haible  <bruno@clisp.org>
42835
42836         Tests for modules 'getopt-posix', 'getopt-gnu'.
42837         * modules/getopt-posix-tests: New file.
42838         * tests/test-getopt.c: New file.
42839         * tests/test-getopt.h: New file.
42840         * tests/test-getopt_long.h: New file.
42841
42842         New modules 'getopt-posix', 'getopt-gnu'.
42843         * modules/getopt-gnu: New file, renamed from modules/getopt.
42844         * modules/getopt-posix: New file.
42845         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42846         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42847         (gl_GETOPT): Remove macro.
42848         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42849         Disable the test against BSD systems that declare optreset. Test
42850         against mingw bug. Test against lack of support of optional arguments
42851         on many platforms.
42852         * doc/glibc-headers/getopt.texi: Update module name and list of
42853         relevant platforms.
42854         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42855         'getopt-gnu' and more portability problems.
42856         * NEWS: Mention the changes.
42857
42858 2009-08-12  Bruno Haible  <bruno@clisp.org>
42859
42860         Ensure that optarg etc. get declared by <unistd.h>.
42861         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42862         AC_USE_SYSTEM_EXTENSIONS.
42863         * modules/getopt (Depends-on): Add 'extensions'.
42864
42865 2009-08-12  Bruno Haible  <bruno@clisp.org>
42866
42867         Avoid test link errors.
42868         * modules/pipe-filter-ii-tests (Makefile.am): Define
42869         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42870         * modules/pipe-filter-gi-tests (Makefile.am): Define
42871         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42873
42874 2009-08-12  Bruno Haible  <bruno@clisp.org>
42875
42876         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42877         gl_GETOPT_SUBSTITUTE before.
42878         (gl_GETOPT): Use it.
42879         * m4/argp.m4 (gl_ARGP): Update.
42880         Reported by Sergey Poznyakoff.
42881
42882         * m4/getopt.m4: Reorder macros.
42883         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42884         (gl_GETOPT_SUBSTITUTE): Remove macro.
42885
42886 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42887
42888         Minor improvement in gitlog-to-changelog
42889
42890         * build-aux/gitlog-to-changelog: New option `--format' makes
42891         output format string configurable.
42892
42893 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42894
42895         Optimize exclude: use hash tables for non-wildcard patterns.
42896
42897         * lib/exclude.c: Include hash.h and mbuiter.h
42898         (struct exclude_pattern, exclude_segment): New data types.
42899         (struct exclude): Rewrite.
42900         (fnmatch_pattern_has_wildcards): New function.
42901         (new_exclude_segment, free_exclude_segment): New functions.
42902         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42903         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42904         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42905         * modules/exclude: Depend on hash and mbuiter.
42906
42907         * modules/exclude-tests: New file.
42908         * tests/test-exclude.c: New file.
42909         * tests/test-exclude1.sh: New file.
42910         * tests/test-exclude2.sh: New file.
42911         * tests/test-exclude3.sh: New file.
42912         * tests/test-exclude4.sh: New file.
42913         * tests/test-exclude5.sh: New file.
42914         * tests/test-exclude6.sh: New file.
42915         * tests/test-exclude7.sh: New file.
42916
42917 2009-08-12  Bruno Haible  <bruno@clisp.org>
42918
42919         Ensure that getopt() gets declared by <unistd.h>.
42920         * lib/unistd.in.h: Conditionally include getopt.h.
42921         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42922         Set GNULIB_UNISTD_H_GETOPT.
42923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42924         GNULIB_UNISTD_H_GETOPT.
42925         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42926
42927 2009-08-12  Bruno Haible  <bruno@clisp.org>
42928
42929         Clarify logic.
42930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42931         gl_replace_getopt instead of GETOPT_H.
42932
42933 2009-08-12  Bruno Haible  <bruno@clisp.org>
42934
42935         * m4/getopt.m4: Add comments.
42936
42937 2009-08-12  Bruno Haible  <bruno@clisp.org>
42938
42939         Disable multithread support by default on Cygwin 1.5.x.
42940         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42941         set gl_use_threads=no if not specified otherwise.
42942
42943 2009-08-11  Bruno Haible  <bruno@clisp.org>
42944
42945         Avoid compilation error on NetBSD 5.0.
42946         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42947         * tests/test-stdio.c: Likewise.
42948         * tests/test-stdlib.c: Likewise.
42949         * tests/test-string.c: Likewise.
42950         * tests/test-unistd.c: Likewise.
42951         Reported by Greg Troxel <gdt@ir.bbn.com>
42952         at <https://savannah.gnu.org/support/?106973>.
42953
42954 2009-08-11  Bruno Haible  <bruno@clisp.org>
42955
42956         * modules/dup2-tests (Depends-on): Remove close.
42957
42958         Undo 2009-07-19 commit.
42959         * modules/acl-tests (Depends-on): Remove close.
42960         * modules/binary-io-tests (Depends-on): Likewise.
42961         * modules/closein-tests (Depends-on): Likewise.
42962         * modules/flock-tests (Depends-on): Likewise.
42963         * modules/fsync-tests (Depends-on): Likewise.
42964         * modules/lseek-tests (Depends-on): Likewise.
42965         * modules/pipe-tests (Depends-on): Likewise.
42966         * modules/posix_spawn-tests (Depends-on): Likewise.
42967         * modules/posix_spawnp-tests (Depends-on): Likewise.
42968         * modules/stat-time-tests (Depends-on): Likewise.
42969         * modules/yesno-tests (Depends-on): Likewise.
42970
42971 2009-08-10  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42974
42975 2009-08-10  Bruno Haible  <bruno@clisp.org>
42976
42977         Fix a gcc warning.
42978         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42979
42980 2009-08-10  Bruno Haible  <bruno@clisp.org>
42981
42982         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42983         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42984         not only the first time.
42985         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42986         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42987         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42988         is 1, not only the the first time.
42989
42990 2009-08-10  Bruno Haible  <bruno@clisp.org>
42991
42992         Make it possible to use module 'gethostname' without module 'close'.
42993         * lib/unistd.in.h (close): Evoke a link error only if
42994         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42996         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42997         * modules/unistd (Makefile.am): Substitute
42998         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42999         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43000         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43001         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43002         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43003         * modules/sys_ioctl (Makefile.am): Substitute
43004         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43005         * modules/socket (configure.ac): On native Windows, set
43006         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43007         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43008         Reported by Sam Steingold <sds@gnu.org>.
43009
43010 2009-08-10  Bruno Haible  <bruno@clisp.org>
43011
43012         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43013         * modules/ioctl (configure.ac): Likewise.
43014
43015 2009-08-10  Bruno Haible  <bruno@clisp.org>
43016
43017         Avoid collision between gnulib wrapper and libintl wrapper.
43018         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43019         already defined in intl/printf.c.
43020         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43021         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43022
43023 2009-08-09  Bruno Haible  <bruno@clisp.org>
43024
43025         Make <sys/select.h> really self-contained, also on Solaris 10.
43026         * lib/sys_select.in.h: Include <string.h>.
43027         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43028         Solaris 10 problem.
43029         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43030         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43031         Reported by Jim Meyering.
43032
43033 2009-08-09  Bruno Haible  <bruno@clisp.org>
43034
43035         Avoid warnings from 'aclocal' that are due to a use of macro name
43036         AM_XGETTEXT_OPTION that is not defined in automake.
43037         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43038         automake.
43039         * modules/error (configure.ac): Likewise.
43040         * modules/propername (configure.ac): Likewise.
43041         * modules/vasprintf (configure.ac): Likewise.
43042         * modules/verror (configure.ac): Likewise.
43043         * modules/xprintf (configure.ac): Likewise.
43044         * modules/xvasprintf (configure.ac): Likewise.
43045
43046 2009-08-08  Bruno Haible  <bruno@clisp.org>
43047
43048         Avoid compilation error in C++ mode.
43049         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43050         Reported by Sam Steingold <sds@gnu.org>.
43051
43052 2009-08-08  Bruno Haible  <bruno@clisp.org>
43053
43054         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43055         for the various Unix platforms.
43056         * doc/posix-headers/limits.texi: Update platforms list regarding
43057         HOST_NAME_MAX.
43058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43059
43060 2009-08-07  Jim Meyering  <meyering@redhat.com>
43061
43062         selinux-at: fix typo in a comment
43063         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43064         Spotted by Paolo Bonzini.
43065
43066         selinux-at: remove redundant m4 code, add documentation
43067         * modules/selinux-at (configure.ac): Remove redundant code.
43068         LIB_SELINUX is already set via the dependent module, selinux-h.
43069         (Include): Add quotes around selinux-at.h.
43070         * lib/selinux-at.h: Add documentation.
43071         Reported by Bruno Haible in
43072         http://marc.info/?l=gnulib-bug&m=124958988300749
43073
43074 2009-08-07  Bruno Haible  <bruno@clisp.org>
43075
43076         Avoid link error on MacOS X 10.3 and 10.4.
43077         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43078         on non-ELF systems.
43079         * lib/argp-pv.c (argp_program_version): Likewise.
43080         Reported by Simon Josefsson.
43081
43082 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43083
43084         * tests/test-version-etc.sh: Use $EXEEXT.
43085
43086 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43087
43088         update-copyright: update documentation to point to maint.mk
43089         * build-aux/update-copyright: Here.
43090
43091 2009-08-06  Jim Meyering  <meyering@redhat.com>
43092
43093         maint.mk: support update-copyright-local
43094         * top/maint.mk (update-copyright-local): Define place-holder.
43095         (update-copyright): Depend on $(update-copyright-local).
43096
43097 2009-08-06  Jim Meyering  <meyering@redhat.com>
43098
43099         selinux-at: new module
43100         Initially written for coreutils, this module will soon be
43101         used by findutils, too.
43102         * MODULES.html.sh [Misc]: Add selinux-at.
43103         * lib/selinux-at.h: New file, from coreutils.
43104         * lib/selinux-at.c: Likewise.
43105         * modules/selinux-at: Likewise.
43106         (License): Change from LGPL to GPL, since it depends
43107         on the GPL'd openat module.
43108
43109         doc: update README
43110         * README: Remove references to cogito.
43111         Remove cvs-repo-updating instructions from 2007.
43112         Don't imply that CVS is better if you have limited disk space.
43113
43114 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43115
43116         update-copyright: support C-style comments
43117         * build-aux/update-copyright: Implement and document.
43118         * tests/test-update-copyright.sh: Test.
43119
43120 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43121
43122         update-copyright: support omitted "(C)"
43123         * build-aux/update-copyright: Implement and document.  Also,
43124         allow variable whitespace before "(C)".
43125         * tests/test-update-copyright.sh: Test.
43126
43127 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43128
43129         update-copyright: don't trip on non-FSF copyright statements
43130         * build-aux/update-copyright: Fix so that the first correctly
43131         formatted FSF copyright statement is recognized no matter what
43132         appears before it.  Update documentation.
43133         * tests/test-update-copyright.sh: Test that.
43134
43135 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43136
43137         update-copyright: clean up code a little
43138         * build-aux/update-copyright: Append "_re" to the name of any
43139         variable holding a regular expression.
43140         Replace "old" and "new" with "stmt" in variable names.
43141         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43142         handled correctly.
43143         Format code more consistently.
43144
43145 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43146
43147         update-copyright-tests: improve portability
43148         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43149         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43150
43151 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43152
43153         update-copyright: support @copyright{} and &copy;
43154         * build-aux/update-copyright: Implement and document.
43155         * tests/test-update-copyright.sh: Test.
43156
43157 2009-08-04  Jim Meyering  <meyering@redhat.com>
43158
43159         update-copyright-tests: correctly test EOL=\r\n handling
43160         * tests/test-update-copyright.sh: Put \r at the end of some lines
43161         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43162
43163         maint.mk: make update-copyright exclusion list more configurable
43164         * top/maint.mk (update-copyright): Default to excluding COPYING,
43165         but allow an override, in case someone does want to update that file.
43166
43167         maint.mk: don't update copyright date in COPYING
43168         * top/maint.mk (update-copyright): Exclude COPYING.
43169
43170         maint.mk: add a copyright-updating rule
43171         * top/maint.mk (update-copyright): New rule.
43172         Derived from coreutils/Makefile.am.
43173
43174         update-copyright: rename some variables
43175         * build-aux/update-copyright: Rename a few variables for clarity.
43176         Tweak syntax.  List Joel E. Denny as coauthor.
43177
43178 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43179
43180         update-copyright: fix bug for 2-digit last year and add tests
43181         * build-aux/update-copyright: Fix bug.
43182         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43183         specified.
43184         * modules/update-copyright-tests: New
43185         * tests/test-update-copyright.sh: New.
43186
43187 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43188
43189         update-copyright: handle leading tabs in line prefix
43190         * build-aux/update-copyright: Count leading tabs as 8 spaces
43191         when computing margin.  This helps with the formatting of
43192         ChangeLogs, for example.
43193         Fix documentation a little.
43194
43195 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43196
43197         update-copyright: support EOL=\r\n
43198         * build-aux/update-copyright: Implement that.
43199
43200 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43201
43202         update-copyright: automatically format copyright statements
43203         * build-aux/update-copyright: Implement that.
43204         Also, be a little more predictable and safer by always failing
43205         when the full copyright format is not perfectly recognized as an
43206         unbroken whole.  Discussed at
43207         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43208         Rewrite documentation.
43209
43210 2009-08-03  Bruno Haible  <bruno@clisp.org>
43211
43212         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43213
43214 2009-08-02  Bruno Haible  <bruno@clisp.org>
43215
43216         Tests for module 'uname'.
43217         * modules/uname-tests: New file.
43218         * tests/test-uname.c: New file.
43219
43220         New module 'uname'.
43221         * lib/uname.c: New file.
43222         * m4/uname.m4: New file.
43223         * modules/uname: New file.
43224         * doc/posix-functions/uname.texi: Mention the new module.
43225
43226 2009-08-02  Bruno Haible  <bruno@clisp.org>
43227
43228         Tests for module 'sys_utsname'.
43229         * modules/sys_utsname-tests: New file.
43230         * tests/test-sys_utsname.c: New file.
43231
43232         New module 'sys_utsname'.
43233         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43234         * m4/sys_utsname_h.m4: New file.
43235         * modules/sys_utsname: New file.
43236         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43237
43238 2009-08-02  Bruno Haible  <bruno@clisp.org>
43239
43240         Implicitly initialize the sockets library.
43241         * lib/gethostname.c: Include sockets.h.
43242         (rpl_gethostname): Invoke gl_sockets_startup.
43243         * lib/socket.c: Include sockets.h.
43244         (rpl_socket): Invoke gl_sockets_startup.
43245         * modules/gethostname (Depends-on): Add sockets.
43246         * modules/socket (Depends-on): Likewise.
43247         * tests/test-poll.c: Don't include sockets.h.
43248         (main): Don't invoke gl_sockets_startup.
43249         * tests/test-select.c: Don't include sockets.h.
43250         (main): Don't invoke gl_sockets_startup.
43251
43252 2009-08-02  Bruno Haible  <bruno@clisp.org>
43253
43254         Allow multiple calls to gl_sockets_startup.
43255         * lib/sockets.c (initialized_sockets_version): New variable.
43256         (gl_sockets_startup): Do nothing if already called for this or a higher
43257         version.
43258         (gl_sockets_cleanup): Reset initialized_sockets_version.
43259
43260 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43261
43262         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43263         different project/version.
43264
43265 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43266             Bruno Haible  <bruno@clisp.org>
43267
43268         Tests for module 'pipe-filter-gi'.
43269         * modules/pipe-filter-gi-tests: New file.
43270         * tests/test-pipe-filter-gi1.sh: New file.
43271         * tests/test-pipe-filter-gi1.c: New file.
43272         * tests/test-pipe-filter-gi2.sh: New file.
43273         * tests/test-pipe-filter-gi2-main.c: New file.
43274         * tests/test-pipe-filter-gi2-child.c: New file.
43275
43276         New module 'pipe-filter-gi'.
43277         * lib/pipe-filter-gi.c: New file.
43278         * modules/pipe-filter-gi: New file.
43279
43280 2009-08-02  Bruno Haible  <bruno@clisp.org>
43281             Paolo Bonzini  <bonzini@gnu.org>
43282
43283         Tests for module 'pipe-filter-ii'.
43284         * modules/pipe-filter-ii-tests: New file.
43285         * tests/test-pipe-filter-ii1.sh: New file.
43286         * tests/test-pipe-filter-ii1.c: New file.
43287         * tests/test-pipe-filter-ii2.sh: New file.
43288         * tests/test-pipe-filter-ii2-main.c: New file.
43289         * tests/test-pipe-filter-ii2-child.c: New file.
43290
43291         New module 'pipe-filter-ii'.
43292         * lib/pipe-filter.h: New file.
43293         * lib/pipe-filter-ii.c: New file.
43294         * lib/pipe-filter-aux.h: New file.
43295         * modules/pipe-filter-ii: New file.
43296
43297 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43298
43299         * lib/gc-libgcrypt.c: Change copyright to FSF.
43300         * lib/gc-gnulib.c: Likewise.
43301
43302 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43303
43304         * lib/gethostname.c: Include limits.h.
43305
43306 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43307             Bruno Haible  <bruno@clisp.org>
43308
43309         Ensure HOST_NAME_MAX as part of the gethostname module.
43310         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43311         define also HOST_NAME_MAX.
43312         * tests/test-gethostname.c: Include <limits.h>.
43313         (main): Check also HOST_NAME_MAX.
43314         * doc/posix-headers/limits.texi: Document the mingw problem.
43315
43316 2009-08-02  Bruno Haible  <bruno@clisp.org>
43317
43318         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43319         Add comments.
43320
43321 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43322
43323         * lib/gethostname.c: Add Windows wrapper.
43324         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43325         * modules/gethostname: Depend on sys_socket & errno, for also
43326         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43327         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43328
43329 2009-07-31  Jim Meyering  <meyering@redhat.com>
43330
43331         getloadavg: fix symbol name in comment
43332         * lib/getloadavg.c: Correct a typo I introduced when adding
43333         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43334         Matt Kraai spotted the problem.
43335
43336 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43337
43338         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43339         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43340         code also if ! defined N_NAME_POINTER.
43341         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43342         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43343         but the n_name member is a 12-byte array.
43344
43345 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43346
43347         update-copyright: generalize comment handling
43348         * build-aux/update-copyright: Handle copyright statements
43349         within more comment styles.
43350         Document usage.
43351         Report any file with an external copyright holder or parse failure.
43352
43353 2009-07-29  Jim Meyering  <meyering@redhat.com>
43354
43355         mktime: correct setting of REPLACE_MKTIME
43356         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43357
43358         update-copyright: new module
43359         * modules/update-copyright: New file.
43360         * build-aux/update-copyright: New file.
43361         * MODULES.html.sh (maint+release support): Add update-copyright.
43362
43363 2009-07-27  Bruno Haible  <bruno@clisp.org>
43364
43365         Fix compilation error when <ctime> is used and mktime is replaced.
43366         * lib/time.in.h (mktime): New declaration.
43367         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43368         REPLACE_MKTIME instead of defining mktime in config.h.
43369         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43370         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43371         Reported by Ross McFarland <rwmcfa1@neces.com>.
43372
43373 2009-07-27  Bruno Haible  <bruno@clisp.org>
43374
43375         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43376         Reported by Matt Kraai <mkraai@beckman.com>.
43377
43378 2009-07-25  Jim Meyering  <meyering@redhat.com>
43379
43380         maint.mk: avoid warnings about missing files
43381         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43382         diagnostic when .prev-version does not exist.
43383         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43384         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43385         nonexistent cfg.mk.
43386         Suggestions from Simon Josefsson.
43387
43388 2009-07-25  Bruno Haible  <bruno@clisp.org>
43389
43390         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43391         defined as macros. Needed on QNX 6.4.1.
43392         Reported by Matt Kraai <mkraai@beckman.com>.
43393
43394 2009-07-23  Jim Meyering  <meyering@redhat.com>
43395
43396         maint.mk: invoke "make dist" with a working value of XZ_OPT
43397         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43398
43399 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43400
43401         Make fseeko.c compile on QNX.
43402         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43403
43404 2009-07-22  Peter Simons  <simons@cryp.to>
43405
43406         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43407         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43408         * lib/md4.h: Likewise.
43409         * lib/md5.h: Likewise.
43410         * lib/sha1.h: Likewise.
43411         * lib/sha256.h: Likewise.
43412         * lib/sha512.h: Likewise.
43413
43414         tests-sha1: don't assign literal string to 'char *' variable
43415         * tests/test-sha1.c (main): Declare locals with "const" to match
43416         attributes of the right hand side.
43417
43418 2009-07-21  Eric Blake  <ebb9@byu.net>
43419
43420         dup2: fix more mingw problems
43421         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43422         fd to itself.
43423         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43424         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43425         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43426         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43427         care of mingw bugs.
43428
43429 2009-07-21  Jim Meyering  <meyering@redhat.com>
43430
43431         vc-list-files: avoid failure when /bin/sh is dash
43432         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43433         On some Debian based systems, /bin/sh is a symlink to dash, and running
43434         this command would omit the "/" following each 'tests' prefix:
43435           dash -x build-aux/vc-list-files -C . tests
43436         That is because bash and dash work differently:
43437           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43438           bash ok
43439           dash odd
43440
43441 2009-07-21  Eric Blake  <ebb9@byu.net>
43442
43443         dup2-tests: test previous patch
43444         * modules/dup2-tests: New file.
43445         * tests/test-dup2.c: Likewise.
43446         * tests/test-open.c (main): Avoid unspecified behavior.
43447         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43448         test.
43449
43450         dup2: work around mingw and cygwin 1.5 bug
43451         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43453         * modules/unistd (Makefile.am): Substitute it.
43454         * lib/unistd.in.h (dup2): Declare the replacement.
43455         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43456         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43457         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43458         * modules/execute (Depends-on): Add dup2.
43459         * modules/fseterr (Depends-on): Likewise.
43460         * modules/pipe (Depends-on): Likewise.
43461         * modules/posix_spawn-internal (Depends-on): Likewise.
43462
43463 2009-07-21  Bruno Haible  <bruno@clisp.org>
43464
43465         * modules/.gitattributes: New file.
43466
43467 2009-07-20  Bruno Haible  <bruno@clisp.org>
43468
43469         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43470         (main): Use it.
43471
43472 2009-07-20  Eric Blake  <ebb9@byu.net>
43473
43474         test-pipe: make a bit more robust.
43475         * tests/test-pipe.c (myerr): Allow error messages regardless of
43476         what we do to stderr.
43477         (test_pipe): Rearrange to avoid deadlock.
43478         (child_main): Try a larger read, to ensure we avoided deadlock.
43479         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43480         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43481         if misused.
43482
43483 2009-07-19  Jim Meyering  <meyering@redhat.com>
43484
43485         fts: avoid false-positive cycle-detection
43486         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43487         for each new command line argument.
43488
43489 2009-07-19  Bruno Haible  <bruno@clisp.org>
43490
43491         Fix build error on mingw with the modules sys_select and unistd.
43492         * modules/acl-tests (Depends-on): Add close.
43493         * modules/binary-io-tests (Depends-on): Likewise.
43494         * modules/closein-tests (Depends-on): Likewise.
43495         * modules/flock-tests (Depends-on): Likewise.
43496         * modules/fsync-tests (Depends-on): Likewise.
43497         * modules/lseek-tests (Depends-on): Likewise.
43498         * modules/pipe-tests (Depends-on): Likewise.
43499         * modules/posix_spawn-tests (Depends-on): Likewise.
43500         * modules/posix_spawnp-tests (Depends-on): Likewise.
43501         * modules/stat-time-tests (Depends-on): Likewise.
43502         * modules/yesno-tests (Depends-on): Likewise.
43503
43504 2009-07-19  Bruno Haible  <bruno@clisp.org>
43505
43506         Unify conditionals.
43507         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43508         macros, not at the compiler macros.
43509         * lib/pipe.c: Likewise.
43510         * lib/execute.c: Likewise.
43511         * lib/spawni.c: Likewise.
43512
43513 2009-07-19  Bruno Haible  <bruno@clisp.org>
43514
43515         Fix handling of closed stdin/stdout/stderr on mingw.
43516         * lib/w32spawn.h: Include unistd.h.
43517         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43518         file descriptor with O_NOINHERIT flag.
43519         (fd_safer_noinherit): New function, based on fd-safer.c.
43520         (dup_safer_noinherit): New function, based on dup-safer.c.
43521         (undup_safer_noinherit): New function.
43522         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43523         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43524         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43525         instead of fd_safer.
43526         * tests/test-pipe.c: Include <windows.h>.
43527         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43528         result.
43529
43530         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43531         from main.
43532         (test_pipe): Pass an extra argument for disambiguation.
43533         (main): Invoke parent_main or child_main.
43534
43535         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43536         consistently.
43537
43538 2009-07-18  Eric Blake  <ebb9@byu.net>
43539
43540         test-pipe: fix mingw build
43541         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43542
43543 2009-07-18  Bruno Haible  <bruno@clisp.org>
43544
43545         * modules/pipe-tests (Makefile.am): Fix typo.
43546
43547 2009-07-18  Eric Blake  <ebb9@byu.net>
43548
43549         error: fix mingw build
43550         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43551         Reported by Bruno Haible.
43552
43553         error: avoid undefined use of stdout
43554         * lib/error.c (error, error_at_line): Check that fd 1 is open
43555         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43556         is handling faults and the close_stdout module wants to report the
43557         detection of closed stdout as an error.
43558
43559 2009-07-17  Eric Blake  <ebb9@byu.net>
43560
43561         pipe: be robust in face of closed fds
43562         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43563         should cause child to misbehave.
43564         * modules/pipe-tests: New module.
43565         * tests/test-pipe.c: New file.
43566         * tests/test-pipe.sh: New file.
43567         Reported by Akim Demaille.
43568
43569 2009-07-14  Bruno Haible  <bruno@clisp.org>
43570
43571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43572         Reported by anonymous kc.
43573
43574 2009-07-07  Jim Meyering  <meyering@redhat.com>
43575
43576         maint.mk: don't look for translatable strings in *.m4 or *.mk
43577         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43578         when searching for translatable strings.
43579
43580 2009-07-05  Jim Meyering  <meyering@redhat.com>
43581
43582         remove superfluous parentheses in STREQ definition
43583         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43584         * lib/getugroups.c (STREQ): Likewise.
43585         * lib/fnmatch.c (STREQ): Likewise.
43586         Spotted by Bruno Haible.
43587
43588 2009-07-04  Jim Meyering  <meyering@redhat.com>
43589
43590         argv-iter: new module
43591         * MODULES.html.sh: Add argv-iter.
43592         * lib/argv-iter.c, lib/argv-iter.h: New files.
43593         * modules/argv-iter: New file.
43594         * modules/argv-iter-tests: New file.
43595         * tests/test-argv-iter.c: Test it.
43596
43597 2009-07-04  Bruno Haible  <bruno@clisp.org>
43598
43599         Fix assertion.
43600         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43601         contains more exact copies of a given entry than file2, leave the extra
43602         copies unpaired rather than aborting.
43603         Reported by Eric Blake.
43604
43605 2009-07-02  Bruno Haible  <bruno@clisp.org>
43606
43607         Speedup git-merge-changelog for git cherry-pick.
43608         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43609         (entries_mapping_get): New function, extracted from compute_mapping.
43610         (entries_mapping_reverse_get): New function.
43611         (compute_mapping): Add a 'full' argument. Return the result in a
43612         'struct entries_mapping'.
43613         (main): Update. Access the mappings through entries_mapping_get.
43614         Reported by Eric Blake.
43615
43616 2009-07-02  Bruno Haible  <bruno@clisp.org>
43617
43618         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43619         best_i.
43620
43621 2009-07-02  Bruno Haible  <bruno@clisp.org>
43622
43623         Speed up approximate search for matching ChangeLog entries.
43624         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43625         argument. Call fstrcmp_bounded instead of fstrcmp.
43626         (compute_mapping, try_split_merged_entry, main): Update callers.
43627
43628 2009-07-02  Bruno Haible  <bruno@clisp.org>
43629
43630         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43631
43632 2009-06-30  Bruno Haible  <bruno@clisp.org>
43633
43634         Reduce the number of uc_is_cased calls.
43635         * lib/unicase.h (casing_suffix_context_t): Add
43636         'first_char_except_ignorable' field.
43637         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43638         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43639         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43640         Update initializer.
43641         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43642         case-ignorable characters.
43643         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43644         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43645         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43646         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43647         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43648
43649 2009-06-30  Bruno Haible  <bruno@clisp.org>
43650
43651         Tests for module 'unicase/ignorable'.
43652         * modules/unicase/ignorable-tests: New file.
43653         * tests/unicase/test-ignorable.c: New file, generated by
43654         gen-uni-tables.
43655
43656         Tests for module 'unicase/cased'.
43657         * modules/unicase/cased-tests: New file.
43658         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43659         * tests/unicase/test-predicate-part1.h: New file, derived from
43660         tests/unictype/test-predicate-part1.h.
43661         * tests/unicase/test-predicate-part2.h: New file, same as
43662         tests/unictype/test-predicate-part2.h.
43663
43664         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43665         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43666         (output_casing_properties): New function.
43667         (main): Call it.
43668         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43669         * lib/unicase/cased.c: Include unictype/bitmap.h.
43670         (uc_is_cased): Define through a bitmap lookup.
43671         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43672         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43673         (uc_is_case_ignorable): Define through a bitmap lookup.
43674         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43675         lib/unictype/bitmap.h.
43676         (Depends-on): Add inline. Clean up.
43677         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43678         lib/unictype/bitmap.h.
43679         (Depends-on): Add inline. Clean up.
43680         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43681         recognition.
43682         * tests/unicase/test-u16-tolower.c (main): Likewise.
43683         * tests/unicase/test-u32-tolower.c (main): Likewise.
43684
43685 2009-06-30  Bruno Haible  <bruno@clisp.org>
43686
43687         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43688         * lib/unicase/u16-casemap.c: Likewise.
43689         * lib/unicase/u32-casemap.c: Likewise.
43690
43691 2009-06-29  Bruno Haible  <bruno@clisp.org>
43692
43693         Define u32_casefold as a wrapper around u32_ct_casefold.
43694         * lib/unicase/u32-casefold.c: Update.
43695         * modules/unicase/u32-casefold (Depends-on): Add
43696         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43697         unicase/empty-suffix-context. Clean up.
43698
43699         Define u16_casefold as a wrapper around u16_ct_casefold.
43700         * lib/unicase/u16-casefold.c: Update.
43701         * modules/unicase/u16-casefold (Depends-on): Add
43702         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43703         unicase/empty-suffix-context. Clean up.
43704
43705         Define u8_casefold as a wrapper around u8_ct_casefold.
43706         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43707         * lib/unicase/u8-casefold.c: Update.
43708         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43709         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43710
43711         Define u32_totitle as a wrapper around u32_ct_totitle.
43712         * lib/unicase/u32-totitle.c: Update.
43713         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43714         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43715
43716         Define u16_totitle as a wrapper around u16_ct_totitle.
43717         * lib/unicase/u16-totitle.c: Update.
43718         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43719         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43720
43721         Define u8_totitle as a wrapper around u8_ct_totitle.
43722         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43723         functions.
43724         (FUNC): Delegate to U_CT_TOTITLE.
43725         * lib/unicase/u8-totitle.c: Update.
43726         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43727         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43728
43729         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43730         invocation.
43731         * modules/unicase/u32-tolower (Depends-on): Add
43732         unicase/empty-prefix-context, unicase/empty-suffix-context.
43733
43734         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43735         invocation.
43736         * modules/unicase/u16-tolower (Depends-on): Add
43737         unicase/empty-prefix-context, unicase/empty-suffix-context.
43738
43739         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43740         * modules/unicase/u8-tolower (Depends-on): Add
43741         unicase/empty-prefix-context, unicase/empty-suffix-context.
43742
43743         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43744         invocation.
43745         * modules/unicase/u32-toupper (Depends-on): Add
43746         unicase/empty-prefix-context, unicase/empty-suffix-context.
43747
43748         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43749         invocation.
43750         * modules/unicase/u16-toupper (Depends-on): Add
43751         unicase/empty-prefix-context, unicase/empty-suffix-context.
43752
43753         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43754         * modules/unicase/u8-toupper (Depends-on): Add
43755         unicase/empty-prefix-context, unicase/empty-suffix-context.
43756
43757         New module 'unicase/u32-ct-casefold'.
43758         * lib/unicase/u32-ct-casefold.c: New file.
43759         * modules/unicase/u32-ct-casefold: New file.
43760
43761         New module 'unicase/u16-ct-casefold'.
43762         * lib/unicase/u16-ct-casefold.c: New file.
43763         * modules/unicase/u16-ct-casefold: New file.
43764
43765         New module 'unicase/u8-ct-casefold'.
43766         * lib/unicase/u8-ct-casefold.c: New file.
43767         * lib/unicase/u-ct-casefold.h: New file, derived from
43768         lib/unicase/u-casefold.h.
43769         * modules/unicase/u8-ct-casefold: New file.
43770
43771         New module 'unicase/u32-ct-totitle'.
43772         * lib/unicase/u32-ct-totitle.c: New file.
43773         * modules/unicase/u32-ct-totitle: New file.
43774
43775         New module 'unicase/u16-ct-totitle'.
43776         * lib/unicase/u16-ct-totitle.c: New file.
43777         * modules/unicase/u16-ct-totitle: New file.
43778
43779         New module 'unicase/u8-ct-totitle'.
43780         * lib/unicase/u8-ct-totitle.c: New file.
43781         * lib/unicase/u-ct-totitle.h: New file, derived from
43782         lib/unicase/u-totitle.h.
43783         * modules/unicase/u8-ct-totitle: New file.
43784
43785         New module 'unicase/u32-ct-tolower'.
43786         * lib/unicase/u32-ct-tolower.c: New file.
43787         * modules/unicase/u32-ct-tolower: New file.
43788
43789         New module 'unicase/u16-ct-tolower'.
43790         * lib/unicase/u16-ct-tolower.c: New file.
43791         * modules/unicase/u16-ct-tolower: New file.
43792
43793         New module 'unicase/u8-ct-tolower'.
43794         * lib/unicase/u8-ct-tolower.c: New file.
43795         * modules/unicase/u8-ct-tolower: New file.
43796
43797         New module 'unicase/u32-ct-toupper'.
43798         * lib/unicase/u32-ct-toupper.c: New file.
43799         * modules/unicase/u32-ct-toupper: New file.
43800
43801         New module 'unicase/u16-ct-toupper'.
43802         * lib/unicase/u16-ct-toupper.c: New file.
43803         * modules/unicase/u16-ct-toupper: New file.
43804
43805         New module 'unicase/u8-ct-toupper'.
43806         * lib/unicase/u8-ct-toupper.c: New file.
43807         * modules/unicase/u8-ct-toupper: New file.
43808
43809         Add context arguments to u*_casemap functions.
43810         * lib/unicase/unicasemap.h: Include unicase.h.
43811         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43812         suffix_context arguments.
43813         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43814         functions.
43815         (FUNC): Add prefix_context and suffix_context arguments. Use
43816         uc_is_cased and uc_is_case_ignorable.
43817         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43818         * lib/unicase/u16-casemap.c: Likewise.
43819         * lib/unicase/u32-casemap.c: Likewise.
43820         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43821         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43822         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43823         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43824         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43825         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43826
43827         New module 'unicase/u32-suffix-context'.
43828         * lib/unicase/u32-suffix-context.c: New file.
43829         * modules/unicase/u32-suffix-context: New file.
43830
43831         New module 'unicase/u16-suffix-context'.
43832         * lib/unicase/u16-suffix-context.c: New file.
43833         * modules/unicase/u16-suffix-context: New file.
43834
43835         New module 'unicase/u8-suffix-context'.
43836         * lib/unicase/u8-suffix-context.c: New file.
43837         * lib/unicase/u-suffix-context.h: New file.
43838         * modules/unicase/u8-suffix-context: New file.
43839
43840         New module 'unicase/empty-suffix-context'.
43841         * lib/unicase/empty-suffix-context.c: New file.
43842         * modules/unicase/empty-suffix-context: New file.
43843
43844         New module 'unicase/u32-prefix-context'.
43845         * lib/unicase/u32-prefix-context.c: New file.
43846         * modules/unicase/u32-prefix-context: New file.
43847
43848         New module 'unicase/u16-prefix-context'.
43849         * lib/unicase/u16-prefix-context.c: New file.
43850         * modules/unicase/u16-prefix-context: New file.
43851
43852         New module 'unicase/u8-prefix-context'.
43853         * lib/unicase/u8-prefix-context.c: New file.
43854         * lib/unicase/u-prefix-context.h: New file.
43855         * lib/unicase/context.h: New file.
43856         * modules/unicase/u8-prefix-context: New file.
43857
43858         New module 'unicase/empty-prefix-context'.
43859         * lib/unicase/empty-prefix-context.c: New file.
43860         * modules/unicase/empty-prefix-context: New file.
43861
43862         New module 'unicase/ignorable'.
43863         * lib/unicase/ignorable.c: New file.
43864         * modules/unicase/ignorable: New file.
43865
43866         New module 'unicase/cased'.
43867         * lib/unicase/caseprop.h: New file.
43868         * lib/unicase/cased.c: New file.
43869         * modules/unicase/cased: New file.
43870
43871         New functions for case mapping of substrings.
43872         * lib/unicase.h (casing_prefix_context_t): New type.
43873         (unicase_empty_prefix_context): New variable.
43874         (u8_casing_prefix_context, u16_casing_prefix_context,
43875         u32_casing_prefix_context, u8_casing_prefixes_context,
43876         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43877         declarations.
43878         (casing_suffix_context_t): New type.
43879         (unicase_empty_suffix_context): New variable.
43880         (u8_casing_suffix_context, u16_casing_suffix_context,
43881         u32_casing_suffix_context, u8_casing_suffixes_context,
43882         u16_casing_suffixes_context, u32_casing_suffixes_context,
43883         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43884         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43885         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43886         declarations.
43887
43888 2009-06-28  Jim Meyering  <meyering@redhat.com>
43889
43890         boostrap: indent only with spaces
43891         * build-aux/bootstrap: Indent only with spaces, never TABs.
43892
43893         bootstrap: split long lines
43894         * build-aux/bootstrap: Keep line length < 80.
43895
43896         bootstrap: sync from coreutils
43897         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43898         just as autoreconf does.  Verify a list of prerequisite
43899         package-name,version-number pairs if defined in bootstrap.conf.
43900         Refer to README-prereq, if prerequisites are not satisfied.
43901
43902 2009-06-27  Eric Blake  <ebb9@byu.net>
43903
43904         tests: add test for bogus NULL definition
43905         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43906         * tests/test-stdlib.c: Likewise.
43907         * tests/test-string.c: Likewise.
43908         * tests/test-locale.c: Likewise.
43909         * tests/test-unistd.c: Likewise.
43910         * modules/stdio-tests (Depends-on): Add verify.
43911         * modules/stdlib-tests (Depends-on): Likewise.
43912         * modules/string-tests (Depends-on): Likewise.
43913         * modules/locale-tests (Depends-on): Likewise.
43914         * modules/unistd-tests (Depends-on): Likewise.
43915
43916 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43917
43918         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43919         self-explaining comment.
43920         * m4/selinux-selinux-h: Update serial.
43921         (gl_LIBSELINUX): New macro, adding a warning for missing development
43922         packages to code extracted from...
43923         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43924         Add warning for missing development packages here, too.
43925
43926 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43927
43928         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43929
43930 2009-06-25  Eric Blake  <ebb9@byu.net>
43931
43932         version-etc: fix regression
43933         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43934         gcc.
43935         (version_etc): Use it, to catch bugs with trailing NULL.
43936         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43937         (version_etc_va): Fix logic bug.
43938         * modules/version-etc-tests: Add test.
43939         * tests/test-version-etc.c: New file.
43940         * tests/test-version-etc.sh: Likewise.
43941
43942 2009-06-25  Sam Steingold  <sds@gnu.org>
43943
43944         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43945         mbtowc declaration.
43946
43947 2009-06-25  Eric Blake  <ebb9@byu.net>
43948
43949         fpurge: migrate into <stdio.h>
43950         * lib/fpurge.h: Delete...
43951         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43952         * lib/fpurge.c (fpurge): Change declaring header.
43953         * modules/fpurge (Files): Drop deleted file.
43954         (Depends-on): Add stdio.
43955         (configure.ac): Set witness.
43956         * modules/stdio (Makefile.am): Support fpurge macros.
43957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43958         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43959         * lib/fflush.c: Update client.
43960         * tests/test-fpurge.c: Likewise.
43961         * NEWS: Mention the change.
43962
43963 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43964
43965         * lib/argp-version-etc.c (program_authors): Add const
43966         qualifier.
43967         * lib/version-etc.c: Fix typos in the comments.
43968         * modules/argp-version-etc: Depends on version-etc.
43969
43970 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43971
43972         argp-version-etc: new module.
43973
43974         * lib/argp-version-etc.c: New file.
43975         * lib/argp-version-etc.h: New file.
43976         * modules/argp-version-etc: New file.
43977         * modules/argp-version-etc-tests: New file.
43978         * tests/test-argp-version-etc.c: New test.
43979         * tests/test-argp-version-etc-1.sh: New test.
43980
43981 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43982
43983         Provide additional interfaces and documentation for version-etc
43984         module.
43985
43986         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43987         interfaces.
43988         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43989         prototypes.
43990
43991 2009-06-24  Bruno Haible  <bruno@clisp.org>
43992
43993         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43994         HAVE_LIB${NAME} macro.
43995         Reported by Sam Steingold <sds@gnu.org>.
43996
43997 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43998
43999         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44000         needed.
44001
44002 2009-06-21  Bruno Haible  <bruno@clisp.org>
44003
44004         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44005         work.
44006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44007         together with LIB${NAME}, LTLIB${NAME}.
44008         Reported by Sam Steingold <sds@gnu.org>.
44009
44010 2009-06-20  Jim Meyering  <meyering@redhat.com>
44011
44012         tests: make sc_require_test_exit_idiom more generic
44013         * top/maint.mk (Exit_witness_file): New overridable variable.
44014         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44015         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44016
44017 2009-06-19  Jim Meyering  <meyering@redhat.com>
44018
44019         hash: reverse order of src/dst parameters in an internal interface
44020         * lib/hash.c (transfer_entries): Reverse order of parameters to
44021         put DST before SRC.  Adjust callers.
44022
44023         tests: test-hash: avoid wholesale duplication
44024         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44025         Instead, use a loop and add a single conditional.
44026
44027         tests: test-hash: allow seed selection via a command line argument
44028         * tests/test-hash.c (get_seed): New function.
44029         (main): Use it.
44030
44031 2009-06-19  Eric Blake  <ebb9@byu.net>
44032
44033         hash: avoid memory leak on allocation failure
44034         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44035         failure.  Factor repeated algorithm...
44036         (transfer_entries): ...into new helper routine.
44037         (hash_delete): React to hash_rehash return value.
44038
44039         hash: reduce memory pressure in hash_rehash no-op case
44040         * lib/hash.c (next_prime): Avoid overflow.
44041         (hash_initialize): Factor bucket size computation...
44042         (compute_bucket_size): ...into new helper function.
44043         (hash_rehash): Use new function and open coding to reduce memory
44044         pressure, and avoid a memory leak in USE_OBSTACK code.
44045         Reported by Jim Meyering.
44046
44047 2009-06-18  Eric Blake  <ebb9@byu.net>
44048
44049         hash: make rotation more obvious
44050         * modules/hash (Depends-on): Add bitrotate and stdint.
44051         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44052         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44053         (SIZE_MAX): Rely on headers for definition.
44054         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44055         (raw_hasher): Use rotr_sz.
44056         Suggested by Jim Meyering.
44057
44058         hash: fix memory leak in last patch
44059         * lib/hash.c (hash_rehash): Avoid memory leak.
44060
44061         hash: avoid no-op rehashing
44062         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44063
44064         hash: provide default callback functions
44065         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44066         (hash_initialize): Use them as defaults.
44067         * tests/test-hash.c (main): Test this.
44068
44069         hash: minor optimization
44070         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44071         when possible.
44072         (hash_initialize): Document this promise.
44073         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44074         * tests/test-hash.c (hash_compare_strings): Test this.
44075
44076 2009-06-18  Bruno Haible  <bruno@clisp.org>
44077
44078         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44079         going to be replaced anyway.
44080
44081 2009-06-18  Bruno Haible  <bruno@clisp.org>
44082
44083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44084         in one place.
44085         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44086         be replaced anyway.
44087
44088 2009-06-18  Eric Blake  <ebb9@byu.net>
44089
44090         hash: check for resize before insertion
44091         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44092         threshold before insertion, so that a pathological hash_rehash
44093         that fills every bucket can still trigger another rehash.
44094
44095 2009-06-18  Jim Meyering  <meyering@redhat.com>
44096
44097         hash-tests: add a loop around the small tests
44098         * tests/test-hash.c (main): Repeat small tests with selected
44099         small initial table sizes.
44100
44101 2009-06-17  Eric Blake  <ebb9@byu.net>
44102
44103         hash: minor cleanups
44104         * lib/hash.h (hash_entry): Make opaque, by moving...
44105         * lib/hash.c (hash_entry): ...here.
44106         (hash_insert): Clarify restrictions on what can be inserted.
44107         (hash_get_next): Clarify when it is safe to remove an element
44108         during traversal.
44109         (check_tuning): Skip verification when tuning is known safe.
44110         (hash_initialize): Clarify restrictions on tuning.
44111
44112 2009-06-17  Jim Meyering  <jim@meyering.net>
44113         and Eric Blake  <ebb9@byu.net>
44114
44115         hash-tests: new module
44116         * modules/hash-tests: New file.
44117         * tests/test-hash.c: New file.
44118
44119 2009-06-17  Eric Blake  <ebb9@byu.net>
44120
44121         strstr-simple: document new module
44122         * MODULES.html.sh: Document new module.
44123
44124         strstr, strcasestr: replace on platforms with broken memchr
44125         * modules/strstr: Split into...
44126         * modules/strstr-simple: ...new module that does not care about
44127         performance, but does care about glibc bug.
44128         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44129         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44130         if platform memchr is broken, per Debian bug 521737.
44131         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44132         memchr.
44133         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44134         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44135         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44136         * modules/mountlist (Depends-on): Add strstr-simple.
44137         * modules/gen-uni-tables (Depends-on): Likewise.
44138         * modules/argz (Depends-on): Add strstr.
44139
44140 2009-06-17  Bruno Haible  <bruno@clisp.org>
44141
44142         * modules/posix_spawn-internal (Depends-on): Add errno.
44143
44144 2009-06-17  Bruno Haible  <bruno@clisp.org>
44145
44146         Define missing ESTALE on Interix 3.5.
44147         * lib/errno.in.h (ESTALE): Assign a value if missing.
44148         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44149         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44150         missing.
44151         * doc/posix-headers/errno.texi: Mention the Interix bug.
44152         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44153
44154 2009-06-15  Eric Blake  <ebb9@byu.net>
44155
44156         memchr, memchr2: add valgrind exception
44157         * lib/memchr.valgrind: New file.
44158         * lib/memchr2.valgrind: New file.
44159         * modules/memchr (Files): Distribute valgrind file.
44160         * modules/memchr2 (Files): Likewise.
44161
44162         docs: memchr is no longer obsolete
44163         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44164         * lib/string.in.h (memchr): Simplify logic.
44165
44166 2009-06-14  Jim Meyering  <meyering@redhat.com>
44167
44168         link-follow: fix the "checking..." message to not mention trailing slash
44169         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44170         never considered trailing slashes.
44171
44172 2009-06-14  Bruno Haible  <bruno@clisp.org>
44173
44174         * m4/memchr.m4: Mention also the bug on IA-64.
44175         * doc/posix-functions/memchr.texi: Likewise.
44176
44177 2009-06-12  Eric Blake  <ebb9@byu.net>
44178
44179         memchr: detect broken x86_64 and alpha implementations
44180         * modules/memchr-tests (Depends-on): Move mmap detection...
44181         * modules/memchr (Depends-on): ...here.
44182         (configure.ac): Set indicator.
44183         * lib/string.in.h (memchr): Declare replacement.
44184         * modules/string (Makefile.am): Trigger replacement.
44185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44186         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44187         bugs.
44188         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44189         * modules/getpagesize (License): Relax license.
44190
44191 2009-06-11  Bruno Haible  <bruno@clisp.org>
44192
44193         * lib/idpriv.h: Add more references.
44194
44195 2009-06-08  Bruno Haible  <bruno@clisp.org>
44196
44197         Tests for module 'idpriv-droptemp'.
44198         * modules/idpriv-droptemp-tests: New file.
44199         * tests/test-idpriv-droptemp.sh: New file.
44200         * tests/test-idpriv-droptemp.su.sh: New file.
44201         * tests/test-idpriv-droptemp.c: New file.
44202
44203         New module 'idpriv-droptemp'.
44204         * lib/idpriv-droptemp.c: New file.
44205         * modules/idpriv-droptemp: New file.
44206
44207 2009-06-08  Bruno Haible  <bruno@clisp.org>
44208
44209         Tests for module 'idpriv-drop'.
44210         * modules/idpriv-drop-tests: New file.
44211         * tests/test-idpriv-drop.sh: New file.
44212         * tests/test-idpriv-drop.su.sh: New file.
44213         * tests/test-idpriv-drop.c: New file.
44214
44215         New module 'idpriv-drop'.
44216         * lib/idpriv.h: New file.
44217         * lib-idpriv-drop.c: New file.
44218         * m4/idpriv.m4: New file.
44219         * modules/idpriv-drop: New file.
44220
44221 2009-06-08  Bruno Haible  <bruno@clisp.org>
44222
44223         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44224         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44225         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44226         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44227         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44228         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44229         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44230
44231 2009-06-08  Eric Blake  <ebb9@byu.net>
44232
44233         test-strstr: use memory fence, when possible
44234         * tests/test-strstr.c (main): Use memory fence, in order to be
44235         more likely to trigger Debian bug 521737.
44236         * modules/strstr-tests (Files): Pull in additional files.
44237
44238         memchr: no longer obsolete, for wider field testing
44239         * modules/memchr (Status, Notice): Delete, this module is no
44240         longer obsolete.
44241         * modules/vasnprintf (Depends-on): Add memchr.
44242
44243 2009-06-07  Jim Meyering  <meyering@redhat.com>
44244
44245         hash: declare some functions with the warn_unused_result attribute
44246         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44247
44248 2009-06-07  Bruno Haible  <bruno@clisp.org>
44249
44250         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44251         Reported by Eric Blake.
44252
44253 2009-06-06  Eric Blake  <ebb9@byu.net>
44254
44255         test-alignof: fix typo with long double
44256         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44257         compiler error.
44258
44259 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44260
44261         Escape non-texinfo { and }s.
44262         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44263         markup error.
44264
44265 2009-06-04  Jim Meyering  <meyering@redhat.com>
44266
44267         gitlog-to-changelog: don't infloop on an empty commit log
44268         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44269         Reported by Boris Petersen <transacid@centerim.org>.
44270
44271 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44272
44273         version-etc: extend for packagers
44274         Add three new configure options, intended for packagers:
44275           --with-packager="packager name"
44276           --with-packager-version="packager-specific version"
44277           --with-packager-bug-reports="packager bug reporting"
44278         An example with coreutils:
44279           $ ./configure \
44280             --with-packager=Gentoo \
44281             --with-packager-bug-report=http://bugs.gentoo.org/ \
44282             --with-packager-version="patchset 1.6"
44283           $ ./src/ls --version | head -n2
44284           ls (GNU coreutils) 7.1-dirty
44285           Packaged by Gentoo (patchset 1.6)
44286         Note that the bug reporting info via --help doesn't show up because
44287         coreutils uses its own custom emit_bug_reporting_address() implementation
44288         in src/system.h.  If it didn't, it'd look like:
44289           $ ./src/ls --help | tail -n4
44290           Report bugs to <bug-coreutils@gnu.org>.
44291           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44292           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44293           General help using GNU software: <http://www.gnu.org/gethelp/>.
44294         * lib/version-etc.c: Print new information, if provided.
44295         * m4/version-etc.m4: New file.
44296         * modules/version-etc (Files): Add m4/version-etc.m4.
44297         (configure.ac): Add gl_VERSION_ETC.
44298
44299 2009-05-31  Bruno Haible  <bruno@clisp.org>
44300
44301         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44302         and 'int64_t'.
44303         * modules/alignof-tests (Dependencies): Add stdint.
44304         Reported by Eric Blake.
44305
44306 2009-05-31  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44309         restriction due to compiler bugs.
44310         Reported by Eric Blake.
44311
44312 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44313             Bruno Haible  <bruno@clisp.org>
44314
44315         Fix test-alignof failure.
44316         * lib/alignof.h (alignof_slot): New macro.
44317         (alignof_type): New macro, with the same semantics as the previous
44318         'alignof'.
44319         (alignof): Alias to alignof_slot.
44320         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44321         check that the results are usable as constant expressions.
44322
44323 2009-05-31  Bruno Haible  <bruno@clisp.org>
44324
44325         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44326         * tests/test-memchr.c (main): Check that memchr does not read past the
44327         first occurrence of the byte.
44328         * tests/test-strstr.c (main): Update comment.
44329         Suggested by Eric Blake.
44330
44331 2009-05-30  Bruno Haible  <bruno@clisp.org>
44332
44333         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44334         detail how to use dumpbin.
44335         Reported by David Byron <dbyron@dbyron.com>.
44336
44337 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44338
44339         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44340
44341 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44342
44343         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44344
44345 2009-05-28  Bruno Haible  <bruno@clisp.org>
44346
44347         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44348         build-aux/ files.
44349
44350 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44351
44352         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44353
44354 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44355
44356         * gnulib-tool (sed_transform_main_lib_file)
44357         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44358         regexps.
44359
44360 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44361
44362         * tests/test-strstr.c: Add another self-test.
44363         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44364         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44365
44366 2009-05-23  Bruno Haible  <bruno@clisp.org>
44367
44368         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44369         change.
44370
44371 2009-05-21  Bruno Haible  <bruno@clisp.org>
44372
44373         Simplify use of mode_t varargs.
44374         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44375         uses 'mode_t' or 'int'.
44376         * lib/openat.c (openat): Likewise.
44377         * lib/open-safer.c (open_safer): Likewise.
44378         * m4/mode_t.m4: New file.
44379         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44380         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44381         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44382         * modules/open (Files): Add m4/mode_t.m4.
44383         * modules/openat (Files): Likewise.
44384         * modules/fcntl-safer (Files): Likewise.
44385         Suggested by Eric Blake.
44386
44387 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44388
44389         * doc/glibc-functions/fallocate.texi: New file.
44390         * doc/gnulib.texi: Include it.
44391
44392 2009-05-21  Eric Blake  <ebb9@byu.net>
44393             Bruno Haible  <bruno@clisp.org>
44394
44395         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44396         invocations.
44397         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44398
44399 2009-05-21  Eric Blake  <ebb9@byu.net>
44400             Bruno Haible  <bruno@clisp.org>
44401
44402         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44403         include_next. Fix of 2008-11-20 commit.
44404         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44405         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44406         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44407         NEXT_MATH_H.
44408         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44409         instead of NEXT_MATH_H.
44410
44411 2009-05-21  Bruno Haible  <bruno@clisp.org>
44412
44413         Avoid redefinition warnings for SIZE_MAX.
44414         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44415         Reported by Simon Josefsson.
44416
44417 2009-05-21  Bruno Haible  <bruno@clisp.org>
44418
44419         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44420         AC_CACHE_VAL.
44421
44422 2009-05-20  Bruno Haible  <bruno@clisp.org>
44423
44424         Make zeroptr.h work on mingw.
44425         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44426         mprotect.
44427         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44428         * modules/memchr2-tests (configure.ac): Likewise.
44429         * modules/memcmp-tests (configure.ac): Likewise.
44430         * modules/memmem-tests (configure.ac): Likewise.
44431         * modules/memrchr-tests (configure.ac): Likewise.
44432         Reported by Simon Josefsson.
44433
44434 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44435
44436         * tests/test-glob.c: Include string.h for strcmp prototype.
44437
44438 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44439
44440         * modules/getdelim (Depends-on): Add explicit stdint, although it
44441         was implicitly already pulled in via realloc-posix.
44442         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44443
44444 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44445
44446         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44447         G. Christensen" <tgc@jupiterrise.com>.
44448         * m4/sys_socket_h.m4: Check for sa_family_t.
44449         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44450         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44451         * tests/test-sys_socket.c: Check that sa_family_t works.
44452
44453 2009-05-18  Eric Blake  <ebb9@byu.net>
44454
44455         maint.mk: allow gnulib_dir in VPATH build
44456         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44457
44458 2009-05-15  Jim Meyering  <meyering@redhat.com>
44459
44460         maint.mk: Give gnulib_dir a default definition.
44461         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44462         Thus, most packages no longer need to specify this variable in cfg.mk
44463
44464 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44465
44466         rename.m4: fix typos that would make non-mingw cross-configure fail
44467         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44468
44469 2009-05-13  Eric Blake  <ebb9@byu.net>
44470
44471         mmap-anon: avoid out-of-order autoconf expansion
44472         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44473         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44474         * modules/memchr-tests (Depends-on): Add extensions.
44475         * modules/memchr2-tests (Depends-on): Add extensions.
44476         * modules/memcmp-tests (Depends-on): Add extensions.
44477         * modules/memmem-tests (Depends-on): Add extensions.
44478         * modules/memrchr-tests (Depends-on): Add extensions.
44479
44480 2009-05-13  Bruno Haible  <bruno@clisp.org>
44481
44482         Make some tests ISO C 99 compliant.
44483         * tests/zerosize-ptr.h: New file.
44484         * tests/test-memchr.c: Include zerosize-ptr.h.
44485         (main): Use a zero-size object pointer instead of NULL.
44486         * tests/test-memchr2.c: Include zerosize-ptr.h.
44487         (main): Use a zero-size object pointer instead of NULL.
44488         * tests/test-memcmp.c: Include zerosize-ptr.h.
44489         (main): Use a zero-size object pointer instead of NULL.
44490         * tests/test-memmem.c: Include zerosize-ptr.h.
44491         (main): Use a zero-size object pointer instead of NULL.
44492         * tests/test-memrchr.c: Include zerosize-ptr.h.
44493         (main): Use a zero-size object pointer instead of NULL.
44494         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44495         m4/mmap-anon.m4.
44496         (Depends-on): Add getpagesize.
44497         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44498         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44499         m4/mmap-anon.m4.
44500         (Depends-on): Add getpagesize.
44501         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44502         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44503         m4/mmap-anon.m4.
44504         (Depends-on): Add getpagesize.
44505         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44506         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44507         m4/mmap-anon.m4.
44508         (Depends-on): Add getpagesize.
44509         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44510         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44511         m4/mmap-anon.m4.
44512         (Depends-on): Add getpagesize.
44513         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44514
44515 2009-05-12  Bruno Haible  <bruno@clisp.org>
44516
44517         Tests for module 'alignof'.
44518         * modules/alignof-tests: New file.
44519         * tests/test-alignof.c: New file.
44520
44521 2009-05-12  Bruno Haible  <bruno@clisp.org>
44522
44523         Fix alignof macro.
44524         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44525         vendor compilers that are always correct.
44526
44527 2009-05-12  Bruno Haible  <bruno@clisp.org>
44528
44529         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44530         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44531         not whether its fully works.
44532
44533 2009-05-12  Bruno Haible  <bruno@clisp.org>
44534
44535         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44536
44537 2009-05-12  Jim Meyering  <meyering@redhat.com>
44538
44539         * top/maint.mk: Adjust backslash alignment.
44540
44541 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44542
44543         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44544
44545 2009-05-11  Eric Blake  <ebb9@byu.net>
44546
44547         argp: avoid undefined behavior
44548         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44549         macros.
44550
44551 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44552
44553         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44554         user.name to prevent git commit from complaining.
44555
44556 2009-05-10  Bruno Haible  <bruno@clisp.org>
44557
44558         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44559         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44560         it rewrites every file name only once.
44561         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44562
44563 2009-05-08  Bruno Haible  <bruno@clisp.org>
44564
44565         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44566         instead of 'max'.
44567
44568 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44569
44570         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44571         sockaddr_storage test.
44572
44573 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44574
44575         * modules/sys_socket (Makefile.am): Substitute
44576         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44577         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44578         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44579         * tests/test-sys_socket.c: Check sockaddr_storage.
44580
44581 2009-05-08  Bruno Haible  <bruno@clisp.org>
44582
44583         New module 'alignof'.
44584         * lib/alignof.h: New file.
44585         * modules/alignof: New file.
44586
44587 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44588             Bruno Haible  <bruno@clisp.org>
44589
44590         Fix test-file-has-acl on FreeBSD.
44591         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44592         mask is implicitly added.
44593         * tests/test-file-has-acl.c: Include <signal.h>.
44594         (main): Terminate the test after 5 seconds.
44595         * modules/acl-tests (configure.ac): Check for alarm function.
44596
44597 2009-05-04  Bruno Haible  <bruno@clisp.org>
44598
44599         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44600         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44601         * modules/errno (configure.ac): Drop AC_REQUIRE.
44602         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44603         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44604
44605 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44606
44607         * modules/glob-tests: New module.
44608         * tests/test-glob.c: Add.
44609
44610 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44611
44612         * modules/fnmatch-tests: New module.
44613         * tests/test-fnmatch.c: Add.
44614
44615 2009-05-04  Eric Blake  <ebb9@byu.net>
44616
44617         maint: make the new no-submodule-changes rule VPATH-safe
44618         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44619
44620 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44621             Bruno Haible  <bruno@clisp.org>
44622
44623         acl: Fix infinite loop on FreeBSD.
44624         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44625         of return value from acl_get_entry.
44626         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44627         Likewise.
44628
44629 2009-05-03  Bruno Haible  <bruno@clisp.org>
44630
44631         * lib/acl-internal.h (acl_entries): Clarify return value.
44632         * lib/acl_entries.c (acl_entries): Likewise.
44633
44634 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44635
44636         Bug fix in acl module.
44637         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44638
44639 2009-05-03  Bruno Haible  <bruno@clisp.org>
44640
44641         Create gperf-generated file in the source dir, not in the build dir.
44642         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44643         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44644         * modules/unicase/locale-language (unicase/locale-languages.h):
44645         Likewise.
44646         * modules/unicase/special-casing (unicase/special-casing-table.h):
44647         Likewise.
44648         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44649         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44650         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44651         Reported by Ralf Wildenhues.
44652
44653 2009-05-03  Bruno Haible  <bruno@clisp.org>
44654
44655         * modules/fnmatch (Description, configure.ac): Taken from
44656         fnmatch-posix.
44657         * modules/fnmatch-posix: Turn into a symbolic reference to the
44658         'fnmatch' module, and deprecate.
44659         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44660
44661 2009-05-03  Bruno Haible  <bruno@clisp.org>
44662
44663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44664         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44665         Reported by Ralf Wildenhues.
44666
44667 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44668
44669         * m4/fnmatch.m4: Fix fnmatch re-define.
44670
44671 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44672
44673         priv-set: new module and tests; adapt write-any-file
44674         * lib/priv-set.c: New file.
44675         * lib/priv-set.h: New file.
44676         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44677         * lib/write-any-file.c: Simplify by using priv-set module.
44678         * m4/priv-set.m4: New file.
44679         * modules/priv-set: New file.
44680         * modules/unlinkdir: Add dependency on priv-set module.
44681         * modules/write-any-file: Likewise.
44682
44683         Tests for module 'priv-set'.
44684         * modules/priv-set-tests: New file.
44685         * tests/test-priv-set.c: New file.
44686
44687 2009-05-03  Jim Meyering  <meyering@redhat.com>
44688             Bruno Haible  <bruno@clisp.org>
44689
44690         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44691         use the converted UTF-8 variant of the name instead.
44692
44693 2009-05-03  Jim Meyering  <meyering@redhat.com>
44694
44695         tests: tighten some getdate tests
44696         * tests/test-getdate.c (main): Tighten tests: require equality,
44697         not just greater than.  Set TZ envvar to UTC0.
44698
44699 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44700
44701         getdate: correctly interpret "next monday" when run on a Monday
44702         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44703         that e.g., "next tues" (when run on a tuesday) results in a date
44704         that is one week in the future, and not today's date.
44705         I.e., add a week when the wday is the same as the current one.
44706         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44707         and earlier by Martin Bernreuther and Jan Minář.
44708         * tests/test-getdate.c (main): Check that "next DAY" is always in
44709         the future and that "last DAY" is always in the past.
44710
44711 2009-05-02  Jim Meyering  <meyering@redhat.com>
44712
44713         build: ensure that a release build fails when a submodule is unclean
44714         * top/maint.mk (no-submodule-changes): New rule.
44715         (alpha beta major): Depend on it.
44716
44717 2009-05-02  Bruno Haible  <bruno@clisp.org>
44718
44719         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44720         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44721         shell variable gl_fnmatch_required to detect which variant is
44722         requested.
44723         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44724         gl_FUNC_FNMATCH_POSIX.
44725         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44726         exclude fnmatch-posix.
44727
44728 2009-05-02  Bruno Haible  <bruno@clisp.org>
44729
44730         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44731         * modules/mbsrtowcs (License): Change to LGPLv2+.
44732         * modules/strnlen1 (License): Likewise.
44733         Reported by Simon Josefsson.
44734
44735 2009-05-02  Bruno Haible  <bruno@clisp.org>
44736
44737         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44738         "cross".
44739         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44740         gnulib-tool was called with option --source-base=lib.
44741
44742 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44743
44744         Use automake *-local hooks without commands, for extensibility.
44745         * modules/localcharset (Makefile.am): Rename install-exec-local
44746         rule to install-exec-localcharset, and make it a prerequisite of
44747         install-exec-local.  Likewise, rename the uninstall-local rule to
44748         uninstall-localcharset, and make it a prerequisite of the former.
44749
44750 2009-05-01  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44753         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44754         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44756         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44757         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44758         m4/locale-zh.m4, m4/codeset.m4.
44759
44760         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44761         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44762         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44763         m4/locale-zh.m4.
44764
44765         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44766         REPLACE_WCRTOMB if mbstate_t must be replaced.
44767         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44768         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44769
44770 2009-05-01  Bruno Haible  <bruno@clisp.org>
44771
44772         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44773         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44774         dngettext, dcngettext, textdomain, bindtextdomain,
44775         bind_textdomain_codeset): Undefine before redefining.
44776
44777 2009-04-30  Bruno Haible  <bruno@clisp.org>
44778
44779         Fix bug introduced on 2009-04-25.
44780         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44781         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44782         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44783         is defined.
44784         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44785         is defined.
44786         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44787         is defined.
44788         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44789
44790 2009-04-28  Bruno Haible  <bruno@clisp.org>
44791
44792         Comment tweaks.
44793         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44794         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44795         * lib/unicase.h (u*_casexfrm): Likewise.
44796         Reported by Paolo Bonzini.
44797
44798 2009-04-28  Bruno Haible  <bruno@clisp.org>
44799
44800         Fix a compilation error.
44801         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44802         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44803         Reported by Jim Meyering.
44804
44805 2009-04-27  Bruno Haible  <bruno@clisp.org>
44806
44807         New module 'libunistring'.
44808         * modules/libunistring: New file.
44809         * m4/libunistring.m4: New file.
44810         * MODULES.html.sh (Unicode string functions): Add it.
44811
44812 2009-04-27  Eric Blake  <ebb9@byu.net>
44813
44814         maint.mk: allow package-specific header to provide <config.h>
44815         * top/maint.mk (sc_require_config_h): New variable.
44816         (sc_require_config_h, sc_require_config_h_first): Use it.
44817
44818 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44819
44820         * top/maint.mk (sc_avoid_if_before_free): Except
44821         useless-if-before-free script.
44822
44823 2009-04-27  Eric Blake  <ebb9@byu.net>
44824
44825         maintainer-makefile: depend on all required helper scripts
44826         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44827         useless-if-before-free.
44828         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44829         version, rather than assuming gnulib checkout is available.
44830         Reported by Simen Josefsson.
44831
44832 2009-04-26  Bruno Haible  <bruno@clisp.org>
44833
44834         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44835         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44836         "../" or "..".
44837
44838 2009-04-26  Bruno Haible  <bruno@clisp.org>
44839
44840         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44841         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44842         AC_LIB_HAVE_LINKFLAGS.
44843
44844 2009-04-26  Bruno Haible  <bruno@clisp.org>
44845
44846         Simplify calling convention of u*_conv_from_encoding.
44847         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44848         u32_conv_from_encoding): Expect a resultbuf argument and return the
44849         result directly as a pointer.
44850         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44851         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44852         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44853         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44854         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44855         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44856         Update.
44857         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44858         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44859         * lib/vasnprintf.c (VASNPRINTF): Update.
44860         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44861         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44862         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44863         * NEWS: Mention the change.
44864
44865 2009-04-26  Bruno Haible  <bruno@clisp.org>
44866
44867         Simplify calling convention of u*_conv_to_encoding.
44868         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44869         u32_conv_to_encoding): Expect a resultbuf argument and return the
44870         result directly as a pointer.
44871         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44872         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44873         freeing scaled_offsets if mem_iconveha failed.
44874         * lib/unicase/u-casexfrm.h (FUNC): Update.
44875         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44876         * lib/vasnprintf.c (VASNPRINTF): Update.
44877         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44878         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44879         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44880         * NEWS: Mention the change.
44881
44882 2009-04-26  Bruno Haible  <bruno@clisp.org>
44883
44884         Avoid test failures on AIX and OSF/1.
44885         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44886         malloc(0).
44887         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44888         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44889         Likewise.
44890         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44891         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44892         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44893         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44894         * doc/posix-functions/malloc.texi: Document the portability problem
44895         related to malloc(0).
44896
44897 2009-04-26  Bruno Haible  <bruno@clisp.org>
44898
44899         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44900         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44901         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44902
44903 2009-04-25  Bruno Haible  <bruno@clisp.org>
44904
44905         Avoid link error when creating a namespace clean library.
44906         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44907         as macro with arguments if already defined as an alias.
44908         * lib/signbitf.c (gl_signbitf): Don't undefine.
44909         * lib/signbitd.c (gl_signbitd): Don't undefine.
44910         * lib/signbitl.c (gl_signbitl): Don't undefine.
44911
44912 2009-04-25  Jim Meyering  <meyering@redhat.com>
44913
44914         vc-list-files: fix another quoting bug
44915         * build-aux/vc-list-files: Avoid sed backslash expansion
44916         of pathological directory names.
44917
44918 2009-04-25  Eric Blake  <ebb9@byu.net>
44919
44920         vc-list-files: fix shell quoting error
44921         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44922         timestamp.
44923
44924 2009-04-25  Jim Meyering  <meyering@redhat.com>
44925
44926         vc-list-files: restore lost functionality with subdir argument
44927         * build-aux/vc-list-files: When given a non-"." sub-directory
44928         argument, substitute the $dir/ prefix back onto each resulting name.
44929         Otherwise, coreutils' root_tests check would fail.
44930
44931 2009-04-24  Eric Blake  <ebb9@byu.net>
44932
44933         vc-list-files: ignore git symlinks
44934         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44935         than ls-files, to ignore git symlinks.
44936
44937         maint.mk: import improvements from m4
44938         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44939         (move_if_change): Delete unused macro.
44940         (news-date-check, vc-diff-check): Support VPATH builds.
44941         (announcement): Likewise.  Split --bootstrap-tools list...
44942         (boostrap-tools): ...into separate list, which can be overridden
44943         in cfg.mk.
44944         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44945         requiring dependency on useless-if-before-free module.
44946         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44947         Support VPATH builds.
44948
44949 2009-04-24  Jim Meyering  <meyering@redhat.com>
44950
44951         maint.mk: remove coreutils-specific rules and variables
44952         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44953         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44954         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44955
44956         maint.mk: remove obsolete rule
44957         * top/maint.mk (rel-check): Remove rule.
44958         (WGET, WGETFLAGS): Remove now-unused variables.
44959
44960 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44961
44962         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44963         consistency.
44964
44965         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44966         '$(PATH_SEPARATOR)' instead of ':'.
44967
44968 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44969
44970         * lib/getopt1.c (main): Use 'const' for static array.
44971
44972 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44973
44974         * top/maint.mk: Sync with coreutils.
44975         * NEWS: Explain incompatibilities.
44976
44977 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44978             Bruno Haible  <bruno@clisp.org>
44979
44980         Fix cross-compilation results.
44981         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44982         statement, as third argument of AC_TRY_RUN.
44983         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44984         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44985         Likewise.
44986         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44987         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44988         Likewise.
44989         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44990         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44991         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44992
44993 2009-04-20  Bruno Haible  <bruno@clisp.org>
44994
44995         Avoid test failure on mingw.
44996         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44997
44998 2009-04-20  Bruno Haible  <bruno@clisp.org>
44999
45000         Avoid compilation error on mingw.
45001         * modules/localename-tests (Depends-on): Add locale.
45002
45003 2009-04-19  Bruno Haible  <bruno@clisp.org>
45004
45005         Support for building a shared library on Windows platforms.
45006         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45007         (main): Test the presence of UNINORM_NFC here.
45008         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45009         (main): Test the presence of UNINORM_NFD here.
45010         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45011         (main): Test the presence of UNINORM_NFKC here.
45012         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45013         (main): Test the presence of UNINORM_NFKD here.
45014
45015 2009-04-19  Bruno Haible  <bruno@clisp.org>
45016
45017         Avoid a compiler warning.
45018         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45019         Change type of variable 'sequence'.
45020
45021 2009-04-19  Bruno Haible  <bruno@clisp.org>
45022
45023         * modules/configmake (Makefile.am): When the contents of configmake.h
45024         does not change, arrange to preserve its modification time.
45025
45026 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45027
45028         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45029         gettext domain.
45030
45031 2009-04-16  Jim Meyering  <meyering@redhat.com>
45032
45033         useless-if-before-free: improve conversion code
45034         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45035         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45036
45037 2009-04-14  Bruno Haible  <bruno@clisp.org>
45038
45039         * modules/fcntl (Depends-on): Add extensions.
45040         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45041
45042 2009-04-12  Ben Pfaff  <blp@gnu.org>
45043
45044         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45045         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45046
45047 2009-03-20  Ben Pfaff  <blp@gnu.org>
45048
45049         Make rename replace existing destinations on Windows.
45050         * m4/rename.m4: Add test for Mingw.
45051         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45052         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45053         * doc/posix-functions/rename.texi: Document.
45054
45055 2009-04-10  Bruno Haible  <bruno@clisp.org>
45056
45057         New include file "iconveh.h".
45058         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45059         * lib/striconveh.h: Include it.
45060         (enum iconv_ilseq_handler): Remove definition.
45061         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45062         striconveh.h.
45063         * lib/striconveha.c: Include striconveh.h.
45064         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45065         * modules/striconveh (Files): Add lib/iconveh.h.
45066         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45067         lib/striconveh.h.
45068
45069 2009-04-10  Bruno Haible  <bruno@clisp.org>
45070
45071         * lib/uniconv.h: Update comment.
45072
45073 2009-04-10  Bruno Haible  <bruno@clisp.org>
45074
45075         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45076         always.
45077         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45078         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45079         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45080         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45081         "unistring-notinline.h", so that the function gets defined always.
45082         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45083         * lib/unistr/u8-uctomb.c: Likewise.
45084         * lib/unistr/u16-mbtouc.c: Likewise.
45085         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45086         * lib/unistr/u16-uctomb.c: Likewise.
45087         * lib/unistr/u32-mbtouc.c: Likewise.
45088         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45089         * lib/unistr/u32-uctomb.c: Likewise.
45090
45091 2009-04-10  Bruno Haible  <bruno@clisp.org>
45092
45093         Mark 'utime' obsolete.
45094         * modules/utime (Status, Notice): New sections.
45095         Suggested by Jim Meyering.
45096
45097         Fix cross-compile guess for utime test.
45098         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45099         autoconf.
45100         * doc/posix-functions/utime.texi: Give more precisions.
45101         Reported by Jan <ipif@ymail.com>.
45102
45103 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45104
45105         filevercmp: correct today's change
45106         * lib/filevercmp.c: Also handle coreutils' test inputs.
45107         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45108
45109         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45110         for reporting it.
45111         * lib/filevercmp.c: Special handle for "", "." and "..".
45112         * tests/test-filevercmp.c: Enlarge the set suite.
45113
45114 2009-04-07  Jim Meyering  <meyering@redhat.com>
45115
45116         useless-if-before-free: show how to remove braced useless free, too
45117         * build-aux/useless-if-before-free: still only in a comment, though.
45118
45119 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45120
45121         maint.mk: import changes to syntax-check macros from coreutils
45122         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45123         Use them in the relevant macros.
45124
45125 2009-04-06  Bruno Haible  <bruno@clisp.org>
45126
45127         Fix unportable use of bit-fields.
45128         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45129         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45130         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45131
45132 2009-04-06  Bruno Haible  <bruno@clisp.org>
45133
45134         Avoid test failures on AIX and OSF/1.
45135         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45136         that malloc(0) = NULL.
45137         * tests/unicase/test-u8-tolower.c (check): Likewise.
45138         * tests/unicase/test-u8-totitle.c (check): Likewise.
45139         * tests/unicase/test-u8-toupper.c (check): Likewise.
45140         * tests/unicase/test-u16-casefold.c (check): Likewise.
45141         * tests/unicase/test-u16-tolower.c (check): Likewise.
45142         * tests/unicase/test-u16-totitle.c (check): Likewise.
45143         * tests/unicase/test-u16-toupper.c (check): Likewise.
45144         * tests/unicase/test-u32-casefold.c (check): Likewise.
45145         * tests/unicase/test-u32-tolower.c (check): Likewise.
45146         * tests/unicase/test-u32-totitle.c (check): Likewise.
45147         * tests/unicase/test-u32-toupper.c (check): Likewise.
45148         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45149         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45150         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45151         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45152         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45153         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45154         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45155         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45156         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45157         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45158         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45159         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45160
45161 2009-04-05  Bruno Haible  <bruno@clisp.org>
45162
45163         Work around an autoconf limitation.
45164         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45165         comment line if it would be longer than 3 KB.
45166
45167 2009-04-05  Bruno Haible  <bruno@clisp.org>
45168
45169         Avoid test failure with libiconv-1.13.
45170         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45171         of the expected test results.
45172
45173 2009-04-05  Bruno Haible  <bruno@clisp.org>
45174
45175         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45176         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45177         that it should be installed.
45178
45179 2009-04-05  Bruno Haible  <bruno@clisp.org>
45180
45181         * gnulib-tool: New option --copy-file.
45182         (func_usage): Document it.
45183         (func_dest_tmpfilename): Moved out of func_import.
45184         (func_add_file, func_update_file): New functions, extracted from
45185         func_import.
45186         (func_import): Update.
45187
45188 2009-04-05  Karl Berry  <karl@gnu.org>
45189
45190         * README: prominently mention gnulib-tool.
45191         Rearrange sections so getting the code is near the top.
45192
45193 2009-04-05  Bruno Haible  <bruno@clisp.org>
45194
45195         * lib/unicase.h: Mention u*_cmp2.
45196         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45197         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45198         * lib/unicase/ulc-casecmp.c: Likewise.
45199         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45200         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45201         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45202         unistr/u8-cmp.
45203         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45204         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45205         unistr/u16-cmp.
45206         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45207         unistr/u32-cmp.
45208
45209         * lib/uninorm.h: Mention u*_cmp2.
45210         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45211         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45212         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45213         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45214         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45215         unistr/u8-cmp.
45216         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45217         unistr/u16-cmp.
45218         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45219         unistr/u32-cmp.
45220
45221         New module 'unistr/u32-cmp2'.
45222         * lib/unistr/u32-cmp2.c: New file.
45223         * modules/unistr/u32-cmp2: New file.
45224
45225         New module 'unistr/u16-cmp2'.
45226         * lib/unistr/u16-cmp2.c: New file.
45227         * modules/unistr/u16-cmp2: New file.
45228
45229         New module 'unistr/u8-cmp2'.
45230         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45231         * lib/unistr/u8-cmp2.c: New file.
45232         * lib/unistr/u-cmp2.h: New file.
45233         * modules/unistr/u8-cmp2: New file.
45234
45235 2009-04-05  Bruno Haible  <bruno@clisp.org>
45236
45237         * lib/unictype.h (uc_property_is_valid): New macro.
45238         * tests/unictype/test-pr_byname.c (main): Use it.
45239
45240         * lib/unistr.h: Doc fixes.
45241         * lib/uniconv.h: Doc fixes.
45242         * lib/unictype.h: Doc fixes.
45243
45244 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45245
45246         Port coreutils 7.2 to Solaris 8.
45247
45248         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45249         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45250         for Solaris 8.  This is a bit of a hack, as it means it's the
45251         caller's responsibility to add -lnsl if needed, but most likely it
45252         won't be needed since only getaddrinfo uses this and getaddrinfo
45253         isn't needed on Solaris 8.
45254
45255         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45256         problem to Solaris 8 encountered with coreutils 7.2, which
45257         resulted in a message "fnmatch.c:292: warning: passing argument 4
45258         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45259         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45260
45261 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45262
45263         * m4/ld-version-script.m4: Add FIXME comment.
45264
45265 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45266
45267         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45268         SOVERSION variable.
45269
45270 2009-04-02  Bruno Haible  <bruno@clisp.org>
45271
45272         * Makefile (info, html, dvi, pdf): Combine the rules.
45273         Suggested by Jim Meyering.
45274
45275 2009-04-01  Bruno Haible  <bruno@clisp.org>
45276
45277         * Makefile (info, html, dvi, pdf): New targets.
45278         Reported by Reuben Thomas <rrt@sc3d.org>.
45279
45280 2009-04-01  Bruno Haible  <bruno@clisp.org>
45281
45282         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45283         can be put into PATH.
45284         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45285
45286 2009-04-01  Bruno Haible  <bruno@clisp.org>
45287
45288         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45289
45290 2009-04-01  Bruno Haible  <bruno@clisp.org>
45291
45292         Rename module 'visibility'.
45293         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45294         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45295         * doc/gnulib.texi: Update.
45296         * MODULES.html.sh (Misc): Update.
45297         * NEWS: Mention the change.
45298
45299 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45300
45301         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45302         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45303         Eric Blake <ebb9@byu.net> for review.
45304         * MODULES.html.sh: Add lib-msvc-compat.
45305         * doc/gnulib.texi: Link to new section.
45306         * m4/ld-output-def.m4: New file.
45307         * doc/ld-output-def.texi: New file.
45308
45309 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45310
45311         Rename ld-version-script to lib-symbol-versions.  Suggested by
45312         Bruno Haible <bruno@clisp.org>.
45313         * modules/ld-version-script: Renamed to lib-symbol-versions.
45314         * doc/ld-version-script.texi: Fix module name.
45315         * MODULES.html.sh: Add lib-symbol-versions.
45316
45317 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45318
45319         * modules/u64-tests: New file.
45320         * tests/test-u64.c: New file.
45321
45322 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45323
45324         * MODULES.html.sh: Mention u64.
45325         * modules/u64: New module.
45326         * modules/crypto/sha512: Depend on u64 module instead of providing
45327         u64.h.
45328
45329 2009-03-27  Eric Blake  <ebb9@byu.net>
45330
45331         test-strerror: make debugging EAI_SYSTEM easier
45332         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45333         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45334         failure was EAI_SYSTEM.
45335
45336 2009-03-25  Bruno Haible  <bruno@clisp.org>
45337
45338         Fix a problem with --enable-relocatable on Solaris 7.
45339         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45340         since 2008-02-24.
45341
45342 2009-03-25  Eric Blake  <ebb9@byu.net>
45343
45344         test-sockets: avoid gcc warning
45345         * tests/test-sockets.c (main): Silence compiler warning.
45346
45347 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45348
45349         New modules nproc, pthread, contributed by Glen Lenker.
45350
45351         * MODULES.html.sh: Add pthread, nproc.
45352         * lib/nproc.c: New file.
45353         * lib/nproc.h: New file.
45354         * lib/pthread.in.h: New file.
45355         * m4/pthread.m4: New file.
45356         * modules/nproc: New file.
45357         * modules/pthread: New file.
45358
45359 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45360
45361         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45362         New variable.
45363
45364 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45365
45366         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45367         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45368         * tests/test-filevercmp.c: Add tests for backup suffixes.
45369
45370 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45371
45372         * modules/stdlib (Depends-on): Add stdint, needed when defining
45373         struct random_data on, for example, HP-UX 10.20.  Reported by
45374         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45375
45376 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45377
45378         * lib/readline.c (readline): Call fflush on stdout after printing
45379         prompt.
45380
45381 2009-03-20  Bruno Haible  <bruno@clisp.org>
45382
45383         Remove dependency from 'close' module to -lws2_32 on native Windows.
45384         * lib/close-hook.h: New file.
45385         * lib/close-hook.c: New file.
45386         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45387         w32sock.h.
45388         (_gl_close_fd_maybe_socket): Remove function.
45389         (rpl_close): Invoke execute_all_close_hooks instead of
45390         _gl_close_fd_maybe_socket.
45391         * lib/sockets.c: Include close-hook.h, w32sock.h.
45392         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45393         (close_sockets_hook): New variable.
45394         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45395         (gl_sockets_cleanup): Unregister it.
45396         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45397         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45398         * modules/close-hook: New file.
45399         * modules/close (Files): Remove lib/w32sock.h.
45400         (Depends-on): Add close-hook.
45401         (Link): Remove section.
45402         * modules/sockets (Files): Add lib/w32sock.h.
45403         (Depends-on): Add close-hook.
45404         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45405         invocation.
45406         * NEWS: Mention that LIB_CLOSE is gone.
45407
45408 2009-03-23  Eric Blake  <ebb9@byu.net>
45409
45410         signal-tests: test previous patch
45411         * tests/test-signal.c: New file.
45412         * modules/signal-tests: Likewise.
45413
45414         signal.h: always support 'volatile sig_atomic_t'
45415         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45416         (gl_SIGNAL_H_DEFAULTS): Add a default.
45417         * modules/signal (Makefile.am): Substitute if needed.
45418         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45419         users can blindly add volatile.
45420         * doc/posix-headers/signal.texi (signal.h): Document it.
45421         Reported by Matthew Woehlke.
45422
45423 2009-03-23  Jim Meyering  <meyering@redhat.com>
45424
45425         pathmax: PATH_MAX: use pathconf only when available
45426         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45427         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45428         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45429         This avoids a link failure in a PSP cross-compilation environment
45430         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45431
45432         * lib/vasnprintf.c (divide): Fix typo in comment.
45433
45434 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45435
45436         * gnulib-tool (func_filter_filelist): Fix comment.
45437
45438 2009-03-20  Bruno Haible  <bruno@clisp.org>
45439
45440         Make sockets.h self-contained.
45441         * lib/sockets.c: Include sockets.h first.
45442         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45443
45444 2009-03-19  Eric Blake  <ebb9@byu.net>
45445
45446         doc: mention more functions added in cygwin 1.7.0
45447         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45448         addition.
45449         * doc/posix-functions/log2f.texi: Likewise.
45450
45451 2009-03-19  Jim Meyering  <meyering@redhat.com>
45452
45453         fsusage: avoid syntax error due to statement-before-declaration
45454         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45455         after all declarations.  Reported by Matthew Woehlke in
45456         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45457
45458 2009-03-18  Eric Blake  <ebb9@byu.net>
45459
45460         build-aux/compile: sync from automake
45461         * build-aux/compile: New file, from automake.
45462         * config/srclist.txt: Mention build-aux/compile.
45463
45464 2009-03-17  Bruno Haible  <bruno@clisp.org>
45465
45466         * lib/git-merge-changelog.c: Fix typo in comment.
45467         Reported by Reuben Thomas <rrt@sc3d.org>.
45468
45469 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45470
45471         * m4/regex.m4: update and improve help for
45472         --without-included-regex.
45473
45474 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45475
45476         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45477         failure on missing include files.
45478
45479 2009-03-17  Eric Blake  <ebb9@byu.net>
45480
45481         doc: mention more functions added in cygwin 1.7.0
45482         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45483         addition.
45484         * doc/posix-functions/fwscanf.texi: Likewise.
45485         * doc/posix-functions/swprintf.texi: Likewise.
45486         * doc/posix-functions/swscanf.texi: Likewise.
45487         * doc/posix-functions/vfwprintf.texi: Likewise.
45488         * doc/posix-functions/vfwscanf.texi: Likewise.
45489         * doc/posix-functions/vswprintf.texi: Likewise.
45490         * doc/posix-functions/vswscanf.texi: Likewise.
45491         * doc/posix-functions/vwprintf.texi: Likewise.
45492         * doc/posix-functions/vwscanf.texi: Likewise.
45493         * doc/posix-functions/wcscasecmp.texi: Likewise.
45494         * doc/posix-functions/wcsdup.texi: Likewise.
45495         * doc/posix-functions/wcsftime.texi: Likewise.
45496         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45497         * doc/posix-functions/wprintf.texi: Likewise.
45498         * doc/posix-functions/wscanf.texi: Likewise.
45499         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45500
45501 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45502
45503         maint.mk: really add $(AM_MAKEFLAGS)
45504         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45505         was inadvertently omitted in the last commit.
45506         Spotted by Bruno Haible.
45507
45508         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45509         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45510         $(AM_MAKEFLAGS)' rather than plain `make'.
45511
45512         gnulib-tool: execute $MAKE not make
45513         * gnulib-tool: Default $MAKE to 'make'.
45514         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45515         than make.  Initialize $MAKE in the do-autobuild script.
45516
45517         gnulib-tool: use $MAKE not make in generated files
45518         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45519         make, in generated files.  Initialize $MAKE in the do-autobuild
45520         script.
45521
45522         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45523
45524         GNUmakefile: disable parallelism only for multiple, recursive targets
45525         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45526         additions in the Makefile.
45527         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45528         by Automake.
45529         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45530         are listed on the command line and at least one of them is
45531         listed in $(ALL_RECURSIVE_TARGETS).
45532
45533 2009-03-14  Bruno Haible  <bruno@clisp.org>
45534
45535         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45536         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45537         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45538         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45539         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45540         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45541         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45542         unistr/u8-uctomb.
45543         * modules/unistr/u8-strchr (Depends-on): Likewise.
45544         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45545         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45546         unistr/u16-uctomb.
45547         * modules/unistr/u16-strchr (Depends-on): Likewise.
45548         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45549
45550 2009-03-12  Bruno Haible  <bruno@clisp.org>
45551
45552         Work around select() bug on Interix 3.5.
45553         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45554         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45555         * m4/select.m4: New file.
45556         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45557         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45558         * modules/select (Files): Add m4/select.m4.
45559         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45560         * modules/nanosleep (Depends-on): Add select.
45561         * modules/poll (Depends-on): Likewise.
45562         * doc/posix-functions/select.texi: Mention the Interix bug.
45563         Reported by Markus Duft <mduft@gentoo.org>.
45564
45565         * lib/select.c: Renamed from lib/winsock-select.c.
45566         * modules/select (Files): Add lib/select.c, remove
45567         lib/winsock-select.c.
45568         (configure.ac): Update.
45569
45570 2009-03-12  Jim Meyering  <meyering@redhat.com>
45571
45572         avoid gcc warnings about unused macro definitions
45573         * lib/readtokens.c (STREQ): Remove unused definition.
45574         * lib/xmalloc.c (SIZE_MAX): Likewise.
45575         * lib/openat-die.c (N_): Likewise.
45576         * lib/mountlist.c (SIZE_MAX): Remove definition.
45577         Instead, include <stdint.h>.
45578         * lib/readutmp.c: Likewise.
45579         * modules/readutmp (Depends-on): Add stdint.
45580         * modules/mountlist (Depends-on): Add stdint.
45581         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45582
45583 2009-03-10  Bruno Haible  <bruno@clisp.org>
45584
45585         Tests for module 'mbmemcasecoll'.
45586         * modules/mbmemcasecoll-tests: New file.
45587         * tests/test-mbmemcasecoll1.sh: New file.
45588         * tests/test-mbmemcasecoll2.sh: New file.
45589         * tests/test-mbmemcasecoll3.sh: New file.
45590         * tests/test-mbmemcasecoll.c: New file.
45591
45592         New module 'mbmemcasecoll'.
45593         * lib/mbmemcasecoll.h: New file.
45594         * lib/mbmemcasecoll.c: New file.
45595         * modules/mbmemcasecoll: New file.
45596
45597         * tests/test-mbmemcasecmp.h: New file, extracted from
45598         tests/test-mbmemcasecmp.c.
45599         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45600         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45601         (main): Update.
45602         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45603
45604 2009-03-09  Bruno Haible  <bruno@clisp.org>
45605
45606         Tests for module 'mbmemcasecmp'.
45607         * modules/mbmemcasecmp-tests: New file.
45608         * tests/test-mbmemcasecmp1.sh: New file.
45609         * tests/test-mbmemcasecmp2.sh: New file.
45610         * tests/test-mbmemcasecmp3.sh: New file.
45611         * tests/test-mbmemcasecmp.c: New file.
45612
45613         New module 'mbmemcasecmp'.
45614         * lib/mbmemcasecmp.h: New file.
45615         * lib/mbmemcasecmp.c: New file.
45616         * modules/mbmemcasecmp: New file.
45617
45618 2009-03-09  Bruno Haible  <bruno@clisp.org>
45619
45620         Tests for module 'unicase/ulc-casecoll'.
45621         * modules/unicase/ulc-casecoll-tests: New file.
45622         * tests/unicase/test-ulc-casecoll1.sh: New file.
45623         * tests/unicase/test-ulc-casecoll2.sh: New file.
45624         * tests/unicase/test-ulc-casecoll.c: New file.
45625
45626         New module 'unicase/ulc-casecoll'.
45627         * lib/unicase.h (ulc_casecoll): New declaration.
45628         * lib/unicase/ulc-casecoll.c: New file.
45629         * modules/unicase/ulc-casecoll: New file.
45630
45631         New module 'unicase/ulc-casexfrm'.
45632         * lib/unicase.h (ulc_casexfrm): New declaration.
45633         * lib/unicase/ulc-casexfrm.c: New file.
45634         * modules/unicase/ulc-casexfrm: New file.
45635
45636 2009-03-09  Bruno Haible  <bruno@clisp.org>
45637
45638         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45639         invocations.
45640
45641         * m4/mbscasecmp.m4: Remove file.
45642         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45643         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45644
45645         * m4/mbscasestr.m4: Remove file.
45646         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45647         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45648
45649         * m4/mbschr.m4: Remove file.
45650         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45651         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45652
45653         * m4/mbscspn.m4: Remove file.
45654         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45655         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45656
45657         * m4/mbslen.m4: Remove file.
45658         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45659         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45660
45661         * m4/mbsncasecmp.m4: Remove file.
45662         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45663         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45664
45665         * m4/mbsnlen.m4: Remove file.
45666         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45667         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45668
45669         * m4/mbspbrk.m4: Remove file.
45670         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45671         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45672
45673         * m4/mbspcasecmp.m4: Remove file.
45674         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45675         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45676
45677         * m4/mbsrchr.m4: Remove file.
45678         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45679         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45680
45681         * m4/mbssep.m4: Remove file.
45682         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45683         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45684
45685         * m4/mbsspn.m4: Remove file.
45686         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45687         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45688
45689         * m4/mbsstr.m4: Remove file.
45690         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45691         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45692
45693         * m4/mbstok_r.m4: Remove file.
45694         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45695         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45696
45697         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45698
45699         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45700         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45701
45702         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45703
45704 2009-03-08  Bruno Haible  <bruno@clisp.org>
45705
45706         Tests for module 'unicase/ulc-casecmp'.
45707         * modules/unicase/ulc-casecmp-tests: New file.
45708         * tests/unicase/test-ulc-casecmp1.sh: New file.
45709         * tests/unicase/test-ulc-casecmp2.sh: New file.
45710         * tests/unicase/test-ulc-casecmp.c: New file.
45711
45712         New module 'unicase/ulc-casecmp'.
45713         * lib/unicase.h (ulc_casecmp): New declaration.
45714         * lib/unicase/ulc-casecmp.c: New file.
45715         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45716         'const SRC_UNIT *'.
45717         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45718         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45719         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45720         * modules/unicase/ulc-casecmp: New file.
45721
45722         Tests for module 'unicase/u32-is-cased'.
45723         * modules/unicase/u32-is-cased-tests: New file.
45724         * tests/unicase/test-u32-is-cased.c: New file.
45725
45726         Tests for module 'unicase/u16-is-cased'.
45727         * modules/unicase/u16-is-cased-tests: New file.
45728         * tests/unicase/test-u16-is-cased.c: New file.
45729
45730         Tests for module 'unicase/u8-is-cased'.
45731         * modules/unicase/u8-is-cased-tests: New file.
45732         * tests/unicase/test-u8-is-cased.c: New file.
45733         * tests/unicase/test-is-cased.h: New file.
45734
45735         New module 'unicase/u32-is-cased'.
45736         * lib/unicase/u32-is-cased.c: New file.
45737         * modules/unicase/u32-is-cased: New file.
45738
45739         New module 'unicase/u16-is-cased'.
45740         * lib/unicase/u16-is-cased.c: New file.
45741         * modules/unicase/u16-is-cased: New file.
45742
45743         New module 'unicase/u8-is-cased'.
45744         * lib/unicase/u8-is-cased.c: New file.
45745         * lib/unicase/u-is-cased.h: New file.
45746         * modules/unicase/u8-is-cased: New file.
45747
45748         Tests for module 'unicase/u32-is-casefolded'.
45749         * modules/unicase/u32-is-casefolded-tests: New file.
45750         * tests/unicase/test-u32-is-casefolded.c: New file.
45751
45752         Tests for module 'unicase/u16-is-casefolded'.
45753         * modules/unicase/u16-is-casefolded-tests: New file.
45754         * tests/unicase/test-u16-is-casefolded.c: New file.
45755
45756         Tests for module 'unicase/u8-is-casefolded'.
45757         * modules/unicase/u8-is-casefolded-tests: New file.
45758         * tests/unicase/test-u8-is-casefolded.c: New file.
45759         * tests/unicase/test-is-casefolded.h: New file.
45760
45761         New module 'unicase/u32-is-casefolded'.
45762         * lib/unicase/u32-is-casefolded.c: New file.
45763         * modules/unicase/u32-is-casefolded: New file.
45764
45765         New module 'unicase/u16-is-casefolded'.
45766         * lib/unicase/u16-is-casefolded.c: New file.
45767         * modules/unicase/u16-is-casefolded: New file.
45768
45769         New module 'unicase/u8-is-casefolded'.
45770         * lib/unicase/u8-is-casefolded.c: New file.
45771         * modules/unicase/u8-is-casefolded: New file.
45772
45773         Tests for module 'unicase/u32-is-titlecase'.
45774         * modules/unicase/u32-is-titlecase-tests: New file.
45775         * tests/unicase/test-u32-is-titlecase.c: New file.
45776
45777         Tests for module 'unicase/u16-is-titlecase'.
45778         * modules/unicase/u16-is-titlecase-tests: New file.
45779         * tests/unicase/test-u16-is-titlecase.c: New file.
45780
45781         Tests for module 'unicase/u8-is-titlecase'.
45782         * modules/unicase/u8-is-titlecase-tests: New file.
45783         * tests/unicase/test-u8-is-titlecase.c: New file.
45784         * tests/unicase/test-is-titlecase.h: New file.
45785
45786         New module 'unicase/u32-is-titlecase'.
45787         * lib/unicase/u32-is-titlecase.c: New file.
45788         * modules/unicase/u32-is-titlecase: New file.
45789
45790         New module 'unicase/u16-is-titlecase'.
45791         * lib/unicase/u16-is-titlecase.c: New file.
45792         * modules/unicase/u16-is-titlecase: New file.
45793
45794         New module 'unicase/u8-is-titlecase'.
45795         * lib/unicase/u8-is-titlecase.c: New file.
45796         * modules/unicase/u8-is-titlecase: New file.
45797
45798         Tests for module 'unicase/u32-is-lowercase'.
45799         * modules/unicase/u32-is-lowercase-tests: New file.
45800         * tests/unicase/test-u32-is-lowercase.c: New file.
45801
45802         Tests for module 'unicase/u16-is-lowercase'.
45803         * modules/unicase/u16-is-lowercase-tests: New file.
45804         * tests/unicase/test-u16-is-lowercase.c: New file.
45805
45806         Tests for module 'unicase/u8-is-lowercase'.
45807         * modules/unicase/u8-is-lowercase-tests: New file.
45808         * tests/unicase/test-u8-is-lowercase.c: New file.
45809         * tests/unicase/test-is-lowercase.h: New file.
45810
45811         New module 'unicase/u32-is-lowercase'.
45812         * lib/unicase/u32-is-lowercase.c: New file.
45813         * modules/unicase/u32-is-lowercase: New file.
45814
45815         New module 'unicase/u16-is-lowercase'.
45816         * lib/unicase/u16-is-lowercase.c: New file.
45817         * modules/unicase/u16-is-lowercase: New file.
45818
45819         New module 'unicase/u8-is-lowercase'.
45820         * lib/unicase/u8-is-lowercase.c: New file.
45821         * modules/unicase/u8-is-lowercase: New file.
45822
45823         Tests for module 'unicase/u32-is-uppercase'.
45824         * modules/unicase/u32-is-uppercase-tests: New file.
45825         * tests/unicase/test-u32-is-uppercase.c: New file.
45826
45827         Tests for module 'unicase/u16-is-uppercase'.
45828         * modules/unicase/u16-is-uppercase-tests: New file.
45829         * tests/unicase/test-u16-is-uppercase.c: New file.
45830
45831         Tests for module 'unicase/u8-is-uppercase'.
45832         * modules/unicase/u8-is-uppercase-tests: New file.
45833         * tests/unicase/test-u8-is-uppercase.c: New file.
45834         * tests/unicase/test-is-uppercase.h: New file.
45835
45836         New module 'unicase/u32-is-uppercase'.
45837         * lib/unicase/u32-is-uppercase.c: New file.
45838         * modules/unicase/u32-is-uppercase: New file.
45839
45840         New module 'unicase/u16-is-uppercase'.
45841         * lib/unicase/u16-is-uppercase.c: New file.
45842         * modules/unicase/u16-is-uppercase: New file.
45843
45844         New module 'unicase/u8-is-uppercase'.
45845         * lib/unicase/u8-is-uppercase.c: New file.
45846         * modules/unicase/u8-is-uppercase: New file.
45847
45848         New module 'unicase/u32-is-invariant'.
45849         * lib/unicase/u32-is-invariant.c: New file.
45850         * modules/unicase/u32-is-invariant: New file.
45851
45852         New module 'unicase/u16-is-invariant'.
45853         * lib/unicase/u16-is-invariant.c: New file.
45854         * modules/unicase/u16-is-invariant: New file.
45855
45856         New module 'unicase/u8-is-invariant'.
45857         * lib/unicase/u8-is-invariant.c: New file.
45858         * lib/unicase/invariant.h: New file.
45859         * lib/unicase/u-is-invariant.h: New file.
45860         * modules/unicase/u8-is-invariant: New file.
45861
45862         Tests for module 'unicase/u32-casecoll'.
45863         * modules/unicase/u32-casecoll-tests: New file.
45864         * tests/unicase/test-u32-casecoll.c: New file.
45865
45866         Tests for module 'unicase/u16-casecoll'.
45867         * modules/unicase/u16-casecoll-tests: New file.
45868         * tests/unicase/test-u16-casecoll.c: New file.
45869
45870         Tests for module 'unicase/u8-casecoll'.
45871         * modules/unicase/u8-casecoll-tests: New file.
45872         * tests/unicase/test-u8-casecoll.c: New file.
45873
45874         New module 'unicase/u32-casecoll'.
45875         * lib/unicase/u32-casecoll.c: New file.
45876         * modules/unicase/u32-casecoll: New file.
45877
45878         New module 'unicase/u16-casecoll'.
45879         * lib/unicase/u16-casecoll.c: New file.
45880         * modules/unicase/u16-casecoll: New file.
45881
45882         New module 'unicase/u8-casecoll'.
45883         * lib/unicase/u8-casecoll.c: New file.
45884         * lib/unicase/u-casecoll.h: New file.
45885         * modules/unicase/u8-casecoll: New file.
45886
45887         New module 'unicase/u32-casexfrm'.
45888         * lib/unicase/u32-casexfrm.c: New file.
45889         * modules/unicase/u32-casexfrm: New file.
45890
45891         New module 'unicase/u16-casexfrm'.
45892         * lib/unicase/u16-casexfrm.c: New file.
45893         * modules/unicase/u16-casexfrm: New file.
45894
45895         New module 'unicase/u8-casexfrm'.
45896         * lib/unicase/u8-casexfrm.c: New file.
45897         * lib/unicase/u-casexfrm.h: New file.
45898         * modules/unicase/u8-casexfrm: New file.
45899
45900         Tests for module 'unicase/u32-casecmp'.
45901         * modules/unicase/u32-casecmp-tests: New file.
45902         * tests/unicase/test-u32-casecmp.c: New file.
45903
45904         Tests for module 'unicase/u16-casecmp'.
45905         * modules/unicase/u16-casecmp-tests: New file.
45906         * tests/unicase/test-u16-casecmp.c: New file.
45907
45908         Tests for module 'unicase/u8-casecmp'.
45909         * modules/unicase/u8-casecmp-tests: New file.
45910         * tests/unicase/test-u8-casecmp.c: New file.
45911         * tests/unicase/test-casecmp.h: New file.
45912
45913         New module 'unicase/u32-casecmp'.
45914         * lib/unicase/u32-casecmp.c: New file.
45915         * modules/unicase/u32-casecmp: New file.
45916
45917         New module 'unicase/u16-casecmp'.
45918         * lib/unicase/u16-casecmp.c: New file.
45919         * modules/unicase/u16-casecmp: New file.
45920
45921         New module 'unicase/u8-casecmp'.
45922         * lib/unicase/u8-casecmp.c: New file.
45923         * lib/unicase/u-casecmp.h: New file.
45924         * modules/unicase/u8-casecmp: New file.
45925
45926         Tests for module 'unicase/u32-casefold'.
45927         * modules/unicase/u32-casefold-tests: New file.
45928         * tests/unicase/test-u32-casefold.c: New file.
45929
45930         Tests for module 'unicase/u16-casefold'.
45931         * modules/unicase/u16-casefold-tests: New file.
45932         * tests/unicase/test-u16-casefold.c: New file.
45933
45934         Tests for module 'unicase/u8-casefold'.
45935         * modules/unicase/u8-casefold-tests: New file.
45936         * tests/unicase/test-u8-casefold.c: New file.
45937
45938         New module 'unicase/u32-casefold'.
45939         * lib/unicase/u32-casefold.c: New file.
45940         * modules/unicase/u32-casefold: New file.
45941
45942         New module 'unicase/u16-casefold'.
45943         * lib/unicase/u16-casefold.c: New file.
45944         * modules/unicase/u16-casefold: New file.
45945
45946         New module 'unicase/u8-casefold'.
45947         * lib/unicase/u8-casefold.c: New file.
45948         * lib/unicase/u-casefold.h: New file.
45949         * modules/unicase/u8-casefold: New file.
45950
45951         New module 'unicase/tocasefold'.
45952         * lib/unicase/casefold.h: New file.
45953         * lib/unicase/tocasefold.c: New file.
45954         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45955         * modules/unicase/tocasefold: New file.
45956
45957         Tests for module 'unicase/u32-totitle'.
45958         * modules/unicase/u32-totitle-tests: New file.
45959         * tests/unicase/test-u32-totitle.c: New file.
45960
45961         Tests for module 'unicase/u16-totitle'.
45962         * modules/unicase/u16-totitle-tests: New file.
45963         * tests/unicase/test-u16-totitle.c: New file.
45964
45965         Tests for module 'unicase/u8-totitle'.
45966         * modules/unicase/u8-totitle-tests: New file.
45967         * tests/unicase/test-u8-totitle.c: New file.
45968
45969         New module 'unicase/u32-totitle'.
45970         * lib/unicase/u32-totitle.c: New file.
45971         * modules/unicase/u32-totitle: New file.
45972
45973         New module 'unicase/u16-totitle'.
45974         * lib/unicase/u16-totitle.c: New file.
45975         * modules/unicase/u16-totitle: New file.
45976
45977         New module 'unicase/u8-totitle'.
45978         * lib/unicase/u8-totitle.c: New file.
45979         * lib/unicase/u-totitle.h: New file.
45980         * modules/unicase/u8-totitle: New file.
45981
45982         Tests for module 'unicase/u32-tolower'.
45983         * modules/unicase/u32-tolower-tests: New file.
45984         * tests/unicase/test-u32-tolower.c: New file.
45985
45986         Tests for module 'unicase/u16-tolower'.
45987         * modules/unicase/u16-tolower-tests: New file.
45988         * tests/unicase/test-u16-tolower.c: New file.
45989
45990         Tests for module 'unicase/u8-tolower'.
45991         * modules/unicase/u8-tolower-tests: New file.
45992         * tests/unicase/test-u8-tolower.c: New file.
45993
45994         New module 'unicase/u32-tolower'.
45995         * lib/unicase/u32-tolower.c: New file.
45996         * modules/unicase/u32-tolower: New file.
45997
45998         New module 'unicase/u16-tolower'.
45999         * lib/unicase/u16-tolower.c: New file.
46000         * modules/unicase/u16-tolower: New file.
46001
46002         New module 'unicase/u8-tolower'.
46003         * lib/unicase/u8-tolower.c: New file.
46004         * modules/unicase/u8-tolower: New file.
46005
46006         Tests for module 'unicase/u32-toupper'.
46007         * modules/unicase/u32-toupper-tests: New file.
46008         * tests/unicase/test-u32-toupper.c: New file.
46009
46010         Tests for module 'unicase/u16-toupper'.
46011         * modules/unicase/u16-toupper-tests: New file.
46012         * tests/unicase/test-u16-toupper.c: New file.
46013
46014         Tests for module 'unicase/u8-toupper'.
46015         * modules/unicase/u8-toupper-tests: New file.
46016         * tests/unicase/test-u8-toupper.c: New file.
46017
46018         New module 'unicase/u32-toupper'.
46019         * lib/unicase/u32-toupper.c: New file.
46020         * modules/unicase/u32-toupper: New file.
46021
46022         New module 'unicase/u16-toupper'.
46023         * lib/unicase/u16-toupper.c: New file.
46024         * modules/unicase/u16-toupper: New file.
46025
46026         New module 'unicase/u8-toupper'.
46027         * lib/unicase/u8-toupper.c: New file.
46028         * modules/unicase/u8-toupper: New file.
46029
46030         New module 'unicase/u32-casemap'.
46031         * lib/unicase/u32-casemap.c: New file.
46032         * modules/unicase/u32-casemap: New file.
46033
46034         New module 'unicase/u16-casemap'.
46035         * lib/unicase/u16-casemap.c: New file.
46036         * modules/unicase/u16-casemap: New file.
46037
46038         New module 'unicase/u8-casemap'.
46039         * lib/unicase/unicasemap.h: New file.
46040         * lib/unicase/u8-casemap.c: New file.
46041         * lib/unicase/u-casemap.h: New file.
46042         * modules/unicase/u8-casemap: New file.
46043
46044         New module 'unicase/special-casing'.
46045         * lib/unicase/special-casing.h: New file.
46046         * lib/unicase/special-casing.c: New file.
46047         * lib/unicase/special-casing-table.gperf: New file, generated by
46048         gen-uni-tables.c.
46049         * modules/unicase/special-casing: New file.
46050
46051         Tests for module 'unicase/locale-language'.
46052         * modules/unicase/locale-language-tests: New file.
46053         * tests/unicase/test-locale-language.sh: New file.
46054         * tests/unicase/test-locale-language.c: New file.
46055
46056         New module 'unicase/locale-language'.
46057         * lib/unicase/locale-language.c: New file.
46058         * lib/unicase/locale-languages.gperf: New file.
46059         * modules/unicase/locale-language: New file.
46060
46061         Generate more tables for case conversion and case folding.
46062         * lib/gen-uni-tables.c (SCC_*): New enum items.
46063         (struct special_casing_rule): New type.
46064         (casing_rules, num_casing_rules, allocated_casing_rules): New
46065         variables.
46066         (add_casing_rule, fill_casing_rules): New functions.
46067         (struct casefold_rule): New type.
46068         (casefolding_rules, num_casefolding_rules,
46069         allocated_casefolding_rules): New variables.
46070         (fill_casefolding_rules): New function.
46071         (unicode_casefold): New variable.
46072         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46073         sort_casing_rules, output_casing_rules): New functions.
46074         (main): Accept to more arguments: SpecialCasing.txt and
46075         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46076         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46077         Output mapping for casefolding.
46078
46079         * lib/unicase.h: Include stdbool.h, uninorm.h.
46080         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46081         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46082         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46083         arguments.
46084         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46085         resultp arguments.
46086         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46087         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46088         resultp arguments.
46089         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46090         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46091         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46092         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46093         declarations.
46094         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46095
46096 2009-03-08  Bruno Haible  <bruno@clisp.org>
46097
46098         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46099         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46100         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46101         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46102
46103 2009-03-07  Bruno Haible  <bruno@clisp.org>
46104
46105         Adjust u*_normcmp, u*_normcoll API.
46106         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46107         u16_normcoll, u32_normcoll): Change failure conventions.
46108         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46109         errno and return -1.
46110         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46111
46112 2009-03-07  Bruno Haible  <bruno@clisp.org>
46113
46114         Tests for module 'uninorm/u32-normcoll'.
46115         * modules/uninorm/u32-normcoll-tests: New file.
46116         * tests/uninorm/test-u32-normcoll.c: New file.
46117
46118         Tests for module 'uninorm/u16-normcoll'.
46119         * modules/uninorm/u16-normcoll-tests: New file.
46120         * tests/uninorm/test-u16-normcoll.c: New file.
46121
46122         Tests for module 'uninorm/u8-normcoll'.
46123         * modules/uninorm/u8-normcoll-tests: New file.
46124         * tests/uninorm/test-u8-normcoll.c: New file.
46125
46126 2009-03-07  Bruno Haible  <bruno@clisp.org>
46127
46128         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46129         tests/uninorm/test-u32-normcmp.c.
46130         * tests/uninorm/test-u32-normcmp.c: Include it.
46131         (test_nonascii): New function, extracted from main. Add some more
46132         tests.
46133         (main): Invoke test_ascii and test_nonascii.
46134         * modules/uninorm/u32-normcmp-tests (Files): Add
46135         tests/uninorm/test-u32-normcmp.h.
46136         (Depends-on): Remove uninorm/u32-normcmp.
46137
46138         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46139         tests/uninorm/test-u16-normcmp.c.
46140         * tests/uninorm/test-u16-normcmp.c: Include it.
46141         (test_nonascii): New function, extracted from main. Add some more
46142         tests.
46143         (main): Invoke test_ascii and test_nonascii.
46144         * modules/uninorm/u16-normcmp-tests (Files): Add
46145         tests/uninorm/test-u16-normcmp.h.
46146         (Depends-on): Remove uninorm/u16-normcmp.
46147
46148         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46149         tests/uninorm/test-u8-normcmp.c.
46150         * tests/uninorm/test-u8-normcmp.c: Include it.
46151         (test_nonascii): New function, extracted from main. Add some more
46152         tests.
46153         (main): Invoke test_ascii and test_nonascii.
46154         * modules/uninorm/u8-normcmp-tests (Files): Add
46155         tests/uninorm/test-u8-normcmp.h.
46156         (Depends-on): Remove uninorm/u8-normcmp.
46157
46158 2009-03-07  Bruno Haible  <bruno@clisp.org>
46159
46160         New module 'uninorm/u32-normcoll'.
46161         * lib/uninorm/u32-normcoll.c: New file.
46162         * modules/uninorm/u32-normcoll: New file.
46163
46164         New module 'uninorm/u16-normcoll'.
46165         * lib/uninorm/u16-normcoll.c: New file.
46166         * modules/uninorm/u16-normcoll: New file.
46167
46168         New module 'uninorm/u8-normcoll'.
46169         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46170         declarations.
46171         * lib/uninorm/u8-normcoll.c: New file.
46172         * lib/uninorm/u-normcoll.h: New file.
46173         * modules/uninorm/u8-normcoll: New file.
46174
46175         New module 'uninorm/u32-normxfrm'.
46176         * lib/uninorm/u32-normxfrm.c: New file.
46177         * modules/uninorm/u32-normxfrm: New file.
46178
46179         New module 'uninorm/u16-normxfrm'.
46180         * lib/uninorm/u16-normxfrm.c: New file.
46181         * modules/uninorm/u16-normxfrm: New file.
46182
46183         New module 'uninorm/u8-normxfrm'.
46184         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46185         declarations.
46186         * lib/uninorm/u8-normxfrm.c: New file.
46187         * lib/uninorm/u-normxfrm.h: New file.
46188         * modules/uninorm/u8-normxfrm: New file.
46189
46190 2009-03-07  Bruno Haible  <bruno@clisp.org>
46191
46192         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46193         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46194         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46195
46196 2009-03-07  Bruno Haible  <bruno@clisp.org>
46197
46198         New module 'memxfrm'.
46199         * lib/memxfrm.h: New file.
46200         * lib/memxfrm.c: New file.
46201         * modules/memxfrm: New file.
46202
46203 2009-03-07  Bruno Haible  <bruno@clisp.org>
46204
46205         New module 'memcmp2'.
46206         * lib/memcmp2.h: New file.
46207         * lib/memcmp2.c: New file.
46208         * modules/memcmp2: New file.
46209
46210 2009-03-07  Bruno Haible  <bruno@clisp.org>
46211
46212         Tests for module 'uninorm/decomposing-form'.
46213         * modules/uninorm/decomposing-form-tests: New file.
46214         * tests/uninorm/test-decomposing-form.c: New file.
46215
46216         New module 'uninorm/decomposing-form'.
46217         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46218         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46219         Add 'decomposing_variant' field.
46220         * lib/uninorm/decomposing-form.c: New file.
46221         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46222         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46223         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46224         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46225         * modules/uninorm/decomposing-form: New file.
46226         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46227         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46228
46229 2009-03-07  Bruno Haible  <bruno@clisp.org>
46230
46231         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46232         strings.
46233
46234 2009-03-06  Bruno Haible  <bruno@clisp.org>
46235
46236         Tests for module 'uninorm/u32-normcmp'.
46237         * tests/uninorm/test-u32-normcmp.c: New file.
46238         * modules/uninorm/u32-normcmp-tests: New file.
46239
46240         Tests for module 'uninorm/u16-normcmp'.
46241         * tests/uninorm/test-u16-normcmp.c: New file.
46242         * modules/uninorm/u16-normcmp-tests: New file.
46243
46244         Tests for module 'uninorm/u8-normcmp'.
46245         * tests/uninorm/test-u8-normcmp.c: New file.
46246         * modules/uninorm/u8-normcmp-tests: New file.
46247
46248         New module 'uninorm/u32-normcmp'.
46249         * lib/uninorm/u32-normcmp.c: New file.
46250         * modules/uninorm/u32-normcmp: New file.
46251
46252         New module 'uninorm/u16-normcmp'.
46253         * lib/uninorm/u16-normcmp.c: New file.
46254         * modules/uninorm/u16-normcmp: New file.
46255
46256         New module 'uninorm/u8-normcmp'.
46257         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46258         declarations.
46259         * lib/uninorm/u8-normcmp.c: New file.
46260         * lib/uninorm/u-normcmp.h: New file.
46261         * modules/uninorm/u8-normcmp: New file.
46262
46263 2009-03-06  Bruno Haible  <bruno@clisp.org>
46264
46265         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46266         Reported by Eric Blake.
46267
46268 2009-03-06  Eric Blake  <ebb9@byu.net>
46269             Bruno Haible  <bruno@clisp.org>
46270
46271         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46272         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46273         condition.
46274         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46275         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46276         condition.
46277         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46278
46279 2009-03-06  Eric Blake  <ebb9@byu.net>
46280
46281         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46282         to avoid compiler warnings.
46283         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46284
46285 2009-03-05  Bruno Haible  <bruno@clisp.org>
46286
46287         * tests/test-ftell.c (main): Disable test beyond end of file on
46288         FreeMiNT.
46289         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46290
46291 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46292
46293         * lib/filevercmp.c: Move hidden files up in ordering.
46294         * tests/test-filevercmp.c: Add tests for hidden files.
46295
46296 2009-03-04  Bruno Haible  <bruno@clisp.org>
46297
46298         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46299         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46300         AM_CFLAGS.
46301         Reported by Simon Josefsson.
46302
46303 2009-03-03  Bruno Haible  <bruno@clisp.org>
46304
46305         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46306         Reported by Simon Josefsson.
46307
46308         * doc/ld-version-script.texi: Update node reference.
46309
46310 2009-03-03  Bruno Haible  <bruno@clisp.org>
46311
46312         * modules/visibility (License): Change to 'unlimited'.
46313         Suggested by Simon Josefsson.
46314
46315 2009-03-03  Jim Meyering  <meyering@redhat.com>
46316
46317         unlinkdir: cannot_unlink_dir may modify process state
46318         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46319         it's neither thread-safe nor appropriate for use in a library.
46320
46321 2009-03-03  Eric Blake  <ebb9@byu.net>
46322
46323         test-closein: silence test under Darwin
46324         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46325         care if it dies from EPIPE or EBADF.
46326
46327 2009-03-03  Bruno Haible  <bruno@clisp.org>
46328
46329         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46330         earlier.
46331         * doc/visibility.texi: Fix @node and @section.
46332
46333 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46334
46335         * doc/gnulib.texi: Link to sections for ld version script and
46336         visibility.
46337         * doc/visibility.texi: Add @node and @section.
46338         * modules/ld-version-script: New module.
46339         * m4/ld-version-script.m4: New file.
46340         * doc/ld-version-script.texi: New file.
46341
46342 2009-03-02  David Lutterkort  <lutter@redhat.com>
46343
46344         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46345         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46346
46347 2009-03-02  Bruno Haible  <bruno@clisp.org>
46348
46349         * doc/visibility.texi: Mention libtool's -export-symbols option.
46350
46351 2009-03-02  Jim Meyering  <meyering@redhat.com>
46352
46353         announce-gen: new option: --no-print-checksums
46354         * build-aux/announce-gen (usage): Describe it.
46355         (print_checksums): Print a newline here, not in the [*] footnote.
46356         (main): Honor it.
46357
46358 2009-03-01  Bruno Haible  <bruno@clisp.org>
46359
46360         Use socklen_t in the native Windows replacements prototypes.
46361         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46362         instead of 'int'.
46363         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46364         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46365         * modules/getsockopt (Depends-on): Add socklen.
46366         * modules/setsockopt (Depends-on): Add socklen.
46367
46368 2009-03-01  Bruno Haible  <bruno@clisp.org>
46369
46370         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46371         least 4.2.
46372
46373 2009-03-01  Eric Blake  <ebb9@byu.net>
46374             Bruno Haible  <bruno@clisp.org>
46375
46376         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46377         error messages.
46378         * lib/wait-process.c (wait_subprocess): Omit error message about
46379         deadly signal sent to the child of termsigp != NULL.
46380
46381 2009-03-01  Eric Blake  <ebb9@byu.net>
46382
46383         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46384
46385 2009-03-01  Bruno Haible  <bruno@clisp.org>
46386
46387         Avoid a gcc warning.
46388         * tests/test-sched.c (b): Make global.
46389         Reported by Eric Blake.
46390
46391 2009-01-19  Martin Lambers  <marlam@marlam.de>
46392
46393         Provide POSIX semantics for socket timeout options on W32.
46394         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46395         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46396         * modules/setsockopt: Depend on sys_time module for struct timeval.
46397         * modules/getsockopt: Depend on sys_time module for struct timeval.
46398
46399 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46400
46401         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46402         __USE_GNU, for consistency with netdb.in.h.
46403         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46404
46405 2009-03-01  Bruno Haible  <bruno@clisp.org>
46406
46407         More support for FreeMiNT.
46408         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46409         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46410
46411 2009-03-01  Bruno Haible  <bruno@clisp.org>
46412
46413         More support for FreeMiNT.
46414         * lib/fpurge.c (fpurge): Correct last commit.
46415         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46416
46417 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46418
46419         Fix unportable awk script in vc-list-files.
46420         * build-aux/vc-list-files: In the replacement awk script, use
46421         substr with a second argument of 1, not zero.
46422         Report by Simon Josefsson.
46423
46424 2009-02-28  Bruno Haible  <bruno@clisp.org>
46425
46426         More support for FreeMiNT.
46427         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46428         to FreeMiNT today.
46429         * lib/fwriting.c (fwriting): Likewise.
46430         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46431
46432 2009-02-28  Bruno Haible  <bruno@clisp.org>
46433
46434         * tests/test-freadseek.c (main): Disable test beyond end of file on
46435         FreeMiNT.
46436         * tests/test-ftello.c (main): Likewise.
46437         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46438
46439 2009-02-28  Bruno Haible  <bruno@clisp.org>
46440
46441         Add tentative support for FreeMiNT.
46442         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46443         * lib/fpurge.c (fpurge): Likewise.
46444         * lib/freadable.c (freadable): Likewise.
46445         * lib/freading.c (freading): Likewise.
46446         * lib/freadptr.c (freadptr): Likewise.
46447         * lib/freadseek.c (freadptrinc): Likewise.
46448         * lib/fseeko.c (rpl_fseeko): Likewise.
46449         * lib/fseterr.c (fseterr): Likewise.
46450         * lib/fwritable.c (fwritable): Likewise.
46451         * lib/fwriting.c (fwriting): Likewise.
46452         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46453         Hourihane.
46454         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46455
46456 2009-02-28  Bruno Haible  <bruno@clisp.org>
46457
46458         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46459         SIGCHLD.
46460         Reported by Jim Meyering.
46461
46462 2009-02-28  Bruno Haible  <bruno@clisp.org>
46463
46464         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46465         Mention the results of these tests on various platforms.
46466         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46467         order.
46468         * doc/posix-functions/printf.texi: Likewise.
46469         * doc/posix-functions/snprintf.texi: Likewise.
46470         * doc/posix-functions/sprintf.texi: Likewise.
46471         * doc/posix-functions/vfprintf.texi: Likewise.
46472         * doc/posix-functions/vprintf.texi: Likewise.
46473         * doc/posix-functions/vsnprintf.texi: Likewise.
46474         * doc/posix-functions/vsprintf.texi: Likewise.
46475         * doc/glibc-functions/obstack_printf.texi: Likewise.
46476         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46477
46478 2009-02-28  Bruno Haible  <bruno@clisp.org>
46479
46480         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46481         Reported by Loïc Minier <lool@dooz.org>.
46482
46483 2009-02-27  Bruno Haible  <bruno@clisp.org>
46484
46485         * gnulib-tool (func_import): Make the sed expression used to create the
46486         sed script for updating the .gitignore file POSIX compliant.
46487         Reported by Eric Blake.
46488
46489 2009-02-27  Bruno Haible  <bruno@clisp.org>
46490
46491         * gnulib-tool (sed): Don't alias as "sed --posix".
46492         Reported by Eric Blake.
46493
46494 2009-02-27  Bruno Haible  <bruno@clisp.org>
46495
46496         Avoid test link errors.
46497         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46498         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46499         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46500         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46501         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46502
46503 2009-02-27  Bruno Haible  <bruno@clisp.org>
46504
46505         Avoid spurious "(cached)" in configure output.
46506         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46507         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46508         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46509         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46510         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46511         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46512         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46513         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46514         Reported by Eric Blake.
46515
46516 2009-02-27  Eric Blake  <ebb9@byu.net>
46517
46518         printf: fix regression in previous patch
46519         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46520
46521 2009-02-27  Bruno Haible  <bruno@clisp.org>
46522
46523         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46524         value.
46525         * lib/stdint.in.h: Likewise.
46526         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46527
46528 2009-02-27  Eric Blake  <ebb9@byu.net>
46529
46530         doc: mention more functions added in cygwin 1.7.0
46531         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46532         addition.
46533         * doc/posix-functions/open_wmemstream.texi: Likewise.
46534         * doc/posix-functions/wcsnlen.texi: Likewise.
46535         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46536         * doc/posix-functions/wcstod.texi: Likewise.
46537         * doc/posix-functions/wcstof.texi: Likewise.
46538         * doc/posix-functions/wcstoimax.texi: Likewise.
46539         * doc/posix-functions/wcstok.texi: Likewise.
46540         * doc/posix-functions/wcstoumax.texi: Likewise.
46541
46542         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46543         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46544         * doc/posix-functions/fprintf.texi: Update.
46545         * doc/posix-functions/printf.texi: Update.
46546         * doc/posix-functions/snprintf.texi: Update.
46547         * doc/posix-functions/sprintf.texi: Update.
46548         * doc/posix-functions/vfprintf.texi: Update.
46549         * doc/posix-functions/vprintf.texi: Update.
46550         * doc/posix-functions/vsnprintf.texi: Update.
46551         * doc/posix-functions/vsprintf.texi: Update.
46552         * doc/glibc-functions/obstack_printf.texi: Update.
46553         * doc/glibc-functions/obstack_vprintf.texi: Update.
46554
46555 2009-02-26  Eric Blake  <ebb9@byu.net>
46556
46557         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46558         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46559         compilation bug by using runtime conversion.
46560         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46561         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46562         * modules/ceill-tests (Files): Use nan.h.
46563         * modules/floorl-tests (Files): Likewise.
46564         * modules/frexpl-tests (Files): Likewise.
46565         * modules/isnanl-tests (Files): Likewise.
46566         * modules/ldexpl-tests (Files): Likewise.
46567         * modules/roundl-tests (Files): Likewise.
46568         * modules/truncl-tests (Files): Likewise.
46569         * tests/test-ceill.c (main): Use a working NaN.
46570         * tests/test-floorl.c (main): Likewise.
46571         * tests/test-frexpl.c (main): Likewise.
46572         * tests/test-isnan.c (test_long_double): Likewise.
46573         * tests/test-isnanl.h (main): Likewise.
46574         * tests/test-ldexpl.h (main): Likewise.
46575         * tests/test-roundl.h (main): Likewise.
46576         * tests/test-truncl.h (main): Likewise.
46577         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46578
46579 2009-02-26  Eric Blake  <ebb9@byu.net>
46580             Bruno Haible  <bruno@clisp.org>
46581
46582         Work around a *printf bug with %ls on Solaris.
46583         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46584         precision is specified, sprintf stops converting the wide string
46585         argument when the number of bytes that have been produced by this
46586         conversion equals or exceeds the precision.
46587         * doc/posix-functions/fprintf.texi: Update.
46588         * doc/posix-functions/printf.texi: Update.
46589         * doc/posix-functions/snprintf.texi: Update.
46590         * doc/posix-functions/sprintf.texi: Update.
46591         * doc/posix-functions/vfprintf.texi: Update.
46592         * doc/posix-functions/vprintf.texi: Update.
46593         * doc/posix-functions/vsnprintf.texi: Update.
46594         * doc/posix-functions/vsprintf.texi: Update.
46595         * doc/glibc-functions/obstack_printf.texi: Update.
46596         * doc/glibc-functions/obstack_vprintf.texi: Update.
46597
46598 2009-02-26  Eric Blake  <ebb9@byu.net>
46599
46600         stdlib: favor compiler check of random.h
46601         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46602         to avoid an ObjC random.h installed by Swarm.
46603
46604 2009-02-26  Bruno Haible  <bruno@clisp.org>
46605
46606         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46607         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46608         Reported by Gary V. Vaughan <gary@gnu.org>.
46609
46610 2009-02-26  Bruno Haible  <bruno@clisp.org>
46611
46612         Fix *printf behaviour regarding the %ls directive.
46613         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46614         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46615         NEED_PRINTF_DIRECTIVE_LS.
46616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46617         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46619         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46620         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46621         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46622         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46623         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46624         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46625         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46627         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46630         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46631         * doc/posix-functions/fprintf.texi: Update.
46632         * doc/posix-functions/printf.texi: Update.
46633         * doc/posix-functions/snprintf.texi: Update.
46634         * doc/posix-functions/sprintf.texi: Update.
46635         * doc/posix-functions/vfprintf.texi: Update.
46636         * doc/posix-functions/vprintf.texi: Update.
46637         * doc/posix-functions/vsnprintf.texi: Update.
46638         * doc/posix-functions/vsprintf.texi: Update.
46639         * doc/glibc-functions/obstack_printf.texi: Update.
46640         * doc/glibc-functions/obstack_vprintf.texi: Update.
46641         Reported by Eric Blake.
46642
46643 2009-02-25  Bruno Haible  <bruno@clisp.org>
46644
46645         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46646         with known value.
46647         Reported by Gary V. Vaughan <gary@gnu.org>.
46648
46649 2009-02-25  Bruno Haible  <bruno@clisp.org>
46650
46651         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46652         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46653         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46654         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46655         Reported by Gary V. Vaughan <gary@gnu.org>.
46656
46657 2009-02-25  Bruno Haible  <bruno@clisp.org>
46658
46659         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46660         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46661         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46662         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46663         Reported by Gary V. Vaughan <gary@gnu.org>.
46664
46665 2009-02-25  Eric Blake  <ebb9@byu.net>
46666
46667         tests: skip fseek/ftell tests if ungetc is broken
46668         * m4/ungetc.m4: New file.
46669         * modules/fseek-tests: Split test, so ungetc dependency is
46670         separate from rest of test.
46671         * modules/fseeko-tests: Likewise.
46672         * modules/ftell-tests: Likewise.
46673         * modules/ftello-tests: Likewise.
46674         * tests/test-fseek.c (main): Isolate ungetc dependency.
46675         * tests/test-fseeko.c (main): Likewise.
46676         * tests/test-ftell.c (main): Likewise.
46677         * tests/test-ftello.c (main): Likewise.
46678         * tests/test-fseek2.sh: New file.
46679         * tests/test-fseeko2.sh: Likewise.
46680         * tests/test-ftell2.sh: Likewise.
46681         * tests/test-ftello2.sh: Likewise.
46682
46683 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46684
46685         test-getaddrinfo: fix usage of skip return code 77
46686         * tests/test-gettaddrinfo.c: Return skip code 77 only
46687         for first occurance of skip (4x77 is not 77)
46688
46689 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46690
46691         strtod: avoid C99 decl-after-statement
46692         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46693
46694 2009-02-24  Eric Blake  <ebb9@byu.net>
46695
46696         strtod: detect HP-UX 11.31 bug
46697         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46698         Reported by Gary V. Vaughan.
46699
46700 2009-02-23  Bruno Haible  <bruno@clisp.org>
46701
46702         Fix invalid read past end of memory block.
46703         * lib/vasnprintf.c (DCHAR_SET): Define.
46704         (local_wcslen): Define only when needed.
46705         (local_strnlen, local_wcsnlen): New functions.
46706         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46707         directives that involve a conversion ourselves.
46708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46709         wcsnlen, mbrtowc, wcrtomb.
46710         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46711         * tests/test-vasprintf-posix.c (test_function): Likewise.
46712         * tests/test-snprintf-posix.h (test_function): Likewise.
46713         * tests/test-sprintf-posix.h (test_function): Likewise.
46714         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46715
46716 2009-02-22  Bruno Haible  <bruno@clisp.org>
46717
46718         Implement new clarified decomposition of Hangul syllables.
46719         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46720         of type LTV, return only a pairwise decomposition.
46721         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46722         Likewise.
46723         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46724         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46725         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46726
46727 2009-02-22  Bruno Haible  <bruno@clisp.org>
46728
46729         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46730         zero-length results and shrink excess allocated memory.
46731         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46732         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46733         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46734         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46735         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46736         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46737         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46738         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46739         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46740         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46741         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46742         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46743
46744 2009-02-21  Bruno Haible  <bruno@clisp.org>
46745
46746         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46747         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46748         spaces after a period. Put a space between a macro name and its
46749         argument list. Trivial rewordings.
46750         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46751         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46752         (main): Return 0 explicitly.
46753
46754 2009-02-21  Bruno Haible  <bruno@clisp.org>
46755
46756         Tests for module 'uninorm/filter'.
46757         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46758         * modules/uninorm/filter-tests: New file.
46759
46760         New module 'uninorm/filter'.
46761         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46762         uninorm_filter_flush, uninorm_filter_free): New declarations.
46763         * lib/uninorm/uninorm-filter.c: New file.
46764         * modules/uninorm/filter: New file.
46765
46766 2009-02-21  Bruno Haible  <bruno@clisp.org>
46767
46768         Tests for module 'uninorm/nfkc'.
46769         * tests/uninorm/test-nfkc.c: New file.
46770         * tests/uninorm/test-u8-nfkc.c: New file.
46771         * tests/uninorm/test-u16-nfkc.c: New file.
46772         * tests/uninorm/test-u32-nfkc.c: New file.
46773         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46774         * tests/uninorm/test-u32-nfkc-big.c: New file.
46775         * modules/uninorm/nfkc-tests: New file.
46776
46777         New module 'uninorm/nfkc'.
46778         * lib/uninorm/nfkc.c: New file.
46779         * modules/uninorm/nfkc: New file.
46780
46781         Tests for module 'uninorm/nfkd'.
46782         * tests/uninorm/test-nfkd.c: New file.
46783         * tests/uninorm/test-u8-nfkd.c: New file.
46784         * tests/uninorm/test-u16-nfkd.c: New file.
46785         * tests/uninorm/test-u32-nfkd.c: New file.
46786         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46787         * tests/uninorm/test-u32-nfkd-big.c: New file.
46788         * modules/uninorm/nfkd-tests: New file.
46789
46790         New module 'uninorm/nfkd'.
46791         * lib/uninorm/nfkd.c: New file.
46792         * modules/uninorm/nfkd: New file.
46793
46794         Tests for module 'uninorm/nfc'.
46795         * tests/uninorm/test-nfc.c: New file.
46796         * tests/uninorm/test-u8-nfc.c: New file.
46797         * tests/uninorm/test-u16-nfc.c: New file.
46798         * tests/uninorm/test-u32-nfc.c: New file.
46799         * tests/uninorm/test-u32-nfc-big.sh: New file.
46800         * tests/uninorm/test-u32-nfc-big.c: New file.
46801         * modules/uninorm/nfc-tests: New file.
46802
46803         New module 'uninorm/nfc'.
46804         * lib/uninorm/nfc.c: New file.
46805         * modules/uninorm/nfc: New file.
46806
46807         Tests for module 'uninorm/nfd'.
46808         * tests/uninorm/test-nfd.c: New file.
46809         * tests/uninorm/test-u8-nfd.c: New file.
46810         * tests/uninorm/test-u16-nfd.c: New file.
46811         * tests/uninorm/test-u32-nfd.c: New file.
46812         * tests/uninorm/test-u32-nfd-big.sh: New file.
46813         * tests/uninorm/test-u32-nfd-big.c: New file.
46814         * tests/uninorm/test-u32-normalize-big.h: New file.
46815         * tests/uninorm/test-u32-normalize-big.c: New file.
46816         * tests/uninorm/NormalizationTest.txt: New file, created from
46817         Unicode 5.1.0 NormalizationTest.txt.
46818         * modules/uninorm/nfd-tests: New file.
46819
46820         New module 'uninorm/nfd'.
46821         * lib/uninorm/nfd.c: New file.
46822         * modules/uninorm/nfd: New file.
46823
46824         New module 'uninorm/u32-normalize'.
46825         * lib/uninorm/u32-normalize.c: New file.
46826         * modules/uninorm/u32-normalize: New file.
46827
46828         New module 'uninorm/u16-normalize'.
46829         * lib/uninorm/u16-normalize.c: New file.
46830         * modules/uninorm/u16-normalize: New file.
46831
46832         New module 'uninorm/u8-normalize'.
46833         * lib/uninorm/u8-normalize.c: New file.
46834         * lib/uninorm/normalize-internal.h: New file.
46835         * lib/uninorm/u-normalize-internal.h: New file.
46836         * modules/uninorm/u8-normalize: New file.
46837
46838         New module 'uninorm/decompose-internal'.
46839         * lib/uninorm/decompose-internal.c: New file.
46840         * modules/uninorm/decompose-internal: New file.
46841
46842         Tests for module 'uninorm/composition'.
46843         * tests/uninorm/test-composition.c: New file.
46844         * modules/uninorm/composition-tests: New file.
46845
46846         New module 'uninorm/composition'.
46847         * lib/uninorm/composition.c: New file.
46848         * lib/uninorm/composition-table.gperf: New file, generated by
46849         gen-uni-tables.
46850         * modules/uninorm/composition: New file.
46851
46852         Tests for module 'uninorm/compat-decomposition'.
46853         * tests/uninorm/test-compat-decomposition.c: New file.
46854         * modules/uninorm/compat-decomposition-tests: New file.
46855
46856         New module 'uninorm/compat-decomposition'.
46857         * lib/uninorm/decompose-internal.h: New file.
46858         * lib/uninorm/compat-decomposition.c: New file.
46859         * modules/uninorm/compat-decomposition: New file.
46860
46861         Tests for module 'uninorm/canonical-decomposition'.
46862         * tests/uninorm/test-canonical-decomposition.c: New file.
46863         * modules/uninorm/canonical-decomposition-tests: New file.
46864
46865         New module 'uninorm/canonical-decomposition'.
46866         * lib/uninorm/canonical-decomposition.c: New file.
46867         * modules/uninorm/canonical-decomposition: New file.
46868
46869         Tests for module 'uninorm/decomposition'.
46870         * tests/uninorm/test-decomposition.c: New file.
46871         * modules/uninorm/decomposition-tests: New file.
46872
46873         New module 'uninorm/decomposition'.
46874         * lib/uninorm/decomposition.c: New file.
46875         * modules/uninorm/decomposition: New file.
46876
46877         New module 'uninorm/decomposition-table'.
46878         * lib/uninorm/decomposition-table.h: New file.
46879         * lib/uninorm/decomposition-table.c: New file.
46880         * lib/uninorm/decomposition-table1.h: New file, generated by
46881         gen-uni-tables.
46882         * lib/uninorm/decomposition-table2.h: New file, generated by
46883         gen-uni-tables.
46884         * modules/uninorm/decomposition-table: New file.
46885
46886         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46887         (UC_DECOMP_*): New enumeration items.
46888         (get_decomposition): New function.
46889         (struct decomp_table): New type.
46890         (output_decomposition, output_decomposition_tables): New functions.
46891         (unicode_composition_exclusions): New variable.
46892         (fill_composition_exclusions, debug_output_composition_tables): New
46893         functions.
46894         (main): Accept one more argument. Invoke fill_composition_exclusions.
46895         Output decomposition and composition tables.
46896
46897         New module 'uninorm/base'.
46898         * lib/uninorm.h: New file.
46899         * lib/unictype.h: Update comment.
46900         * modules/uninorm/base: New file.
46901
46902 2009-02-21  David Lutterkort  <lutter@redhat.com>
46903
46904         Tests for module 'safe-alloc'.
46905         * tests/test-safe-alloc.c: New file.
46906         * modules/safe-alloc-tests: New file.
46907
46908         New module 'safe-alloc'.
46909         * lib/safe-alloc.h: New file.
46910         * lib/safe-alloc.c: New file.
46911         * m4/safe-alloc.m4: New file.
46912         * modules/safe-alloc: New file.
46913         * doc/safe-alloc.texi: New file.
46914         * doc/gnulib.texi: Include it.
46915         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46916         safe-alloc.
46917
46918 2009-02-18  Bruno Haible  <bruno@clisp.org>
46919
46920         Fix link error on non-glibc systems.
46921         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46922         variable.
46923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46924
46925 2009-02-18  Jim Meyering  <meyering@redhat.com>
46926
46927         fts: avoid used-uninitialized error due to recent change
46928         * lib/fts.c (fts_read): Guard uses of the new member,
46929         parent->fts_n_dirs_remaining, since it's not relevant for
46930         the parent of a directory specified on the command-line.
46931
46932 2009-02-17  James Youngman  <jay@gnu.org>
46933             Bruno Haible  <bruno@clisp.org>
46934
46935         * m4/include_next.m4: Reformulate comment.
46936
46937 2009-02-16  Jim Meyering  <meyering@redhat.com>
46938
46939         fts: add #if guards so that the fts_lgpl module still builds
46940         * lib/fts.c: Guard just-added hash-table-using parts with
46941         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46942         Reported by Simon Josefsson.
46943
46944 2009-02-15  Bruno Haible  <bruno@clisp.org>
46945
46946         * modules/array-mergesort-tests: New file.
46947         * tests/test-array-mergesort.c: New file.
46948
46949         New module 'array-mergesort'.
46950         * modules/array-mergesort: New file.
46951         * lib/array-mergesort.h: New file.
46952
46953 2009-02-15  Bruno Haible  <bruno@clisp.org>
46954
46955         Fix 2009-02-07 commit.
46956         * lib/gen-uni-tables.c (output_predicate, output_category,
46957         output_combclass, output_bidi_category, output_decimal_digit,
46958         output_digit, output_numeric, output_mirror, output_scripts,
46959         output_ident_category, output_simple_mapping): Fix format directives.
46960         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46961
46962 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46963
46964         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46965         fixes are available from IBM.
46966
46967 2009-02-13  Jim Meyering  <meyering@redhat.com>
46968
46969         fts: arrange not to stat non-directories in more cases
46970         This makes GNU find (when it doesn't need to stat each file)
46971         *much* more efficient at traversing reiserfs file systems.
46972         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46973         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46974         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46975         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46976         (leaf_optimization_applies): New function.
46977         (LCO_hash, LCO_compare): New helper functions.
46978         (link_count_optimize_ok): New function.
46979         (fts_stat): Initialize new member (if dir).
46980         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46981         we've just stat'ed a directory.  Skip the stat call when possible.
46982         ---
46983         Note this AFS-related exchange:
46984         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46985         and note find's pioctl call in find/fstype.c.
46986         But that is necessary only if you want to enable the
46987         optimization for AFS, and for now, I don't.
46988
46989         fts: move a function definition "up" (no semantic change)
46990         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46991         "up" to precede upcoming use of a related function.
46992
46993 2009-02-11  Jim Meyering  <meyering@redhat.com>
46994
46995         fts: correct internal computation of nlinks (optimization-related)
46996         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46997         whether the current entry is a directory, so don't test it.
46998
46999 2009-02-10  Bruno Haible  <bruno@clisp.org>
47000
47001         Tests for module 'uniwbrk/ulc-wordbreaks'.
47002         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47003         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47004         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47005
47006         Tests for module 'uniwbrk/u32-wordbreaks'.
47007         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47008         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47009
47010         Tests for module 'uniwbrk/u16-wordbreaks'.
47011         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47012         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47013
47014         Tests for module 'uniwbrk/u8-wordbreaks'.
47015         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47016         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47017
47018 2009-02-10  Bruno Haible  <bruno@clisp.org>
47019
47020         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47021         property.
47022         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47023         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47024         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47025
47026 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47027
47028         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47029         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47030
47031 2009-02-10  Bruno Haible  <bruno@clisp.org>
47032
47033         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47034         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47035         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47036         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47037         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47038         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47039
47040 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47041
47042         * lib/sockets.h (gl_fd_to_handle): New function.
47043
47044         * tests/test-sockets.c: Call gl_fd_to_handle.
47045
47046 2009-02-09  Bruno Haible  <bruno@clisp.org>
47047
47048         * doc/havelib.texi: Document the conventions on bi-arch systems.
47049
47050 2009-02-08  Bruno Haible  <bruno@clisp.org>
47051
47052         Document the AC_LIB_LINKFLAGS macro.
47053         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47054         * doc/gnulib.texi: Include it.
47055
47056 2009-02-08  Bruno Haible  <bruno@clisp.org>
47057
47058         Fix wrong order of sections, compared to TOC.
47059         * doc/gnulib.texi: Include relocatable-maint.texi after the
47060         "Regular expressions" node, not before.
47061
47062 2009-02-08  Bruno Haible  <bruno@clisp.org>
47063
47064         Tests for module 'unicase/totitle'.
47065         * modules/unicase/totitle-tests: New file.
47066
47067         Tests for module 'unicase/tolower'.
47068         * modules/unicase/tolower-tests: New file.
47069
47070         Tests for module 'unicase/toupper'.
47071         * modules/unicase/toupper-tests: New file.
47072         * tests/unicase/test-mapping-part1.h: New file.
47073         * tests/unicase/test-mapping-part2.h: New file.
47074
47075         New module 'unicase/totitle'.
47076         * modules/unicase/totitle: New file.
47077         * lib/unicase/totitle.c: New file.
47078
47079         New module 'unicase/tolower'.
47080         * modules/unicase/tolower: New file.
47081         * lib/unicase/tolower.c: New file.
47082
47083         New module 'unicase/toupper'.
47084         * modules/unicase/toupper: New file.
47085         * lib/unicase/toupper.c: New file.
47086         * lib/unicase/simple-mapping.h: New file.
47087
47088         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47089         (mapping_table): New structure.
47090         (output_simple_mapping): New function.
47091         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47092         * modules/gen-uni-tables (Description): Update.
47093         * lib/unicase/toupper.h: New file, automatically generated by
47094         gen-uni-tables.
47095         * lib/unicase/tolower.h: New file, automatically generated by
47096         gen-uni-tables.
47097         * lib/unicase/totitle.h: New file, automatically generated by
47098         gen-uni-tables.
47099         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47100         gen-uni-tables.
47101         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47102         gen-uni-tables.
47103         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47104         gen-uni-tables.
47105
47106         New module 'unicase/base'.
47107         * modules/unicase/base: New file.
47108         * lib/unicase.h: New file.
47109
47110 2009-02-08  Bruno Haible  <bruno@clisp.org>
47111
47112         New module 'uniwbrk/ulc-wordbreaks'.
47113         * modules/uniwbrk/ulc-wordbreaks: New file.
47114         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47115
47116         New module 'uniwbrk/u32-wordbreaks'.
47117         * modules/uniwbrk/u32-wordbreaks: New file.
47118         * lib/uniwbrk/u32-wordbreaks.c: New file.
47119
47120         New module 'uniwbrk/u16-wordbreaks'.
47121         * modules/uniwbrk/u16-wordbreaks: New file.
47122         * lib/uniwbrk/u16-wordbreaks.c: New file.
47123
47124         New module 'uniwbrk/u8-wordbreaks'.
47125         * modules/uniwbrk/u8-wordbreaks: New file.
47126         * lib/uniwbrk/u8-wordbreaks.c: New file.
47127         * lib/uniwbrk/u-wordbreaks.h: New file.
47128
47129         New module 'uniwbrk/table'.
47130         * modules/uniwbrk/table: New file.
47131         * lib/uniwbrk/wbrktable.h: New file.
47132         * lib/uniwbrk/wbrktable.c: New file.
47133
47134         New module 'uniwbrk/wordbreak-property'.
47135         * modules/uniwbrk/wordbreak-property: New file.
47136         * lib/uniwbrk/wordbreak-property.c: New file.
47137
47138         * lib/gen-uni-tables.c (WBP_*): New enum items.
47139         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47140         (unicode_org_wbp): New variable.
47141         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47142         New functions.
47143         (wbp_table): New structure.
47144         (output_wbp, output_wbrk_tables): New functions.
47145         (main): Accept additional argument. Invoke fill_org_wbp,
47146         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47147         output_wbrk_tables.
47148         * modules/gen-uni-tables (Description): Update.
47149         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47150         gen-uni-tables.
47151
47152         New module 'uniwbrk/base'.
47153         * modules/uniwbrk/base: New file.
47154         * lib/uniwbrk.h: New file.
47155
47156 2009-02-08  Bruno Haible  <bruno@clisp.org>
47157
47158         Update to Unicode 5.1.0.
47159         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47160         U+2185..U+2188.
47161         (is_property_default_ignorable_code_point): Don't include characters
47162         of category Cc or Cs and not-a-characters.
47163         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47164         U+0D79, U+109E, U+109F, U+A60C.
47165         * lib/unictype/bidi_of.h: Regenerated.
47166         * lib/unictype/blocks.h: Regenerated.
47167         * lib/unictype/categ_C.h: Regenerated.
47168         * lib/unictype/categ_Cf.h: Regenerated.
47169         * lib/unictype/categ_Cn.h: Regenerated.
47170         * lib/unictype/categ_L.h: Regenerated.
47171         * lib/unictype/categ_Ll.h: Regenerated.
47172         * lib/unictype/categ_Lm.h: Regenerated.
47173         * lib/unictype/categ_Lo.h: Regenerated.
47174         * lib/unictype/categ_Lu.h: Regenerated.
47175         * lib/unictype/categ_M.h: Regenerated.
47176         * lib/unictype/categ_Mc.h: Regenerated.
47177         * lib/unictype/categ_Me.h: Regenerated.
47178         * lib/unictype/categ_Mn.h: Regenerated.
47179         * lib/unictype/categ_N.h: Regenerated.
47180         * lib/unictype/categ_Nd.h: Regenerated.
47181         * lib/unictype/categ_Nl.h: Regenerated.
47182         * lib/unictype/categ_No.h: Regenerated.
47183         * lib/unictype/categ_P.h: Regenerated.
47184         * lib/unictype/categ_Pd.h: Regenerated.
47185         * lib/unictype/categ_Pe.h: Regenerated.
47186         * lib/unictype/categ_Pf.h: Regenerated.
47187         * lib/unictype/categ_Pi.h: Regenerated.
47188         * lib/unictype/categ_Po.h: Regenerated.
47189         * lib/unictype/categ_Ps.h: Regenerated.
47190         * lib/unictype/categ_S.h: Regenerated.
47191         * lib/unictype/categ_Sk.h: Regenerated.
47192         * lib/unictype/categ_Sm.h: Regenerated.
47193         * lib/unictype/categ_So.h: Regenerated.
47194         * lib/unictype/categ_of.h: Regenerated.
47195         * lib/unictype/combining.h: Regenerated.
47196         * lib/unictype/ctype_alnum.h: Regenerated.
47197         * lib/unictype/ctype_alpha.h: Regenerated.
47198         * lib/unictype/ctype_graph.h: Regenerated.
47199         * lib/unictype/ctype_lower.h: Regenerated.
47200         * lib/unictype/ctype_print.h: Regenerated.
47201         * lib/unictype/ctype_punct.h: Regenerated.
47202         * lib/unictype/ctype_upper.h: Regenerated.
47203         * lib/unictype/decdigit.h: Regenerated.
47204         * lib/unictype/digit.h: Regenerated.
47205         * lib/unictype/mirror.h: Regenerated.
47206         * lib/unictype/numeric.h: Regenerated.
47207         * lib/unictype/pr_alphabetic.h: Regenerated.
47208         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47209         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47210         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47211         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47212         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47213         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47214         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47215         * lib/unictype/pr_combining.h: Regenerated.
47216         * lib/unictype/pr_dash.h: Regenerated.
47217         * lib/unictype/pr_decimal_digit.h: Regenerated.
47218         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47219         * lib/unictype/pr_deprecated.h: Regenerated.
47220         * lib/unictype/pr_diacritic.h: Regenerated.
47221         * lib/unictype/pr_extender.h: Regenerated.
47222         * lib/unictype/pr_format_control.h: Regenerated.
47223         * lib/unictype/pr_grapheme_base.h: Regenerated.
47224         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47225         * lib/unictype/pr_grapheme_link.h: Regenerated.
47226         * lib/unictype/pr_id_continue.h: Regenerated.
47227         * lib/unictype/pr_id_start.h: Regenerated.
47228         * lib/unictype/pr_ideographic.h: Regenerated.
47229         * lib/unictype/pr_ignorable_control.h: Regenerated.
47230         * lib/unictype/pr_lowercase.h: Regenerated.
47231         * lib/unictype/pr_math.h: Regenerated.
47232         * lib/unictype/pr_numeric.h: Regenerated.
47233         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47234         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47235         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47236         * lib/unictype/pr_other_id_continue.h: Regenerated.
47237         * lib/unictype/pr_other_lowercase.h: Regenerated.
47238         * lib/unictype/pr_other_math.h: Regenerated.
47239         * lib/unictype/pr_punctuation.h: Regenerated.
47240         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47241         * lib/unictype/pr_soft_dotted.h: Regenerated.
47242         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47243         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47244         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47245         * lib/unictype/pr_uppercase.h: Regenerated.
47246         * lib/unictype/pr_xid_continue.h: Regenerated.
47247         * lib/unictype/pr_xid_start.h: Regenerated.
47248         * lib/unictype/pr_zero_width.h: Regenerated.
47249         * lib/unictype/scripts.h: Regenerated.
47250         * lib/unictype/scripts_byname.gperf: Regenerated.
47251         * lib/unictype/sy_java_ident.h: Regenerated.
47252         * lib/unilbrk/lbrkprop1.h: Regenerated.
47253         * lib/unilbrk/lbrkprop2.h: Regenerated.
47254         * tests/unictype/test-categ_C.c: Regenerated.
47255         * tests/unictype/test-categ_Cf.c: Regenerated.
47256         * tests/unictype/test-categ_Cn.c: Regenerated.
47257         * tests/unictype/test-categ_L.c: Regenerated.
47258         * tests/unictype/test-categ_Ll.c: Regenerated.
47259         * tests/unictype/test-categ_Lm.c: Regenerated.
47260         * tests/unictype/test-categ_Lo.c: Regenerated.
47261         * tests/unictype/test-categ_Lu.c: Regenerated.
47262         * tests/unictype/test-categ_M.c: Regenerated.
47263         * tests/unictype/test-categ_Mc.c: Regenerated.
47264         * tests/unictype/test-categ_Me.c: Regenerated.
47265         * tests/unictype/test-categ_Mn.c: Regenerated.
47266         * tests/unictype/test-categ_N.c: Regenerated.
47267         * tests/unictype/test-categ_Nd.c: Regenerated.
47268         * tests/unictype/test-categ_Nl.c: Regenerated.
47269         * tests/unictype/test-categ_No.c: Regenerated.
47270         * tests/unictype/test-categ_P.c: Regenerated.
47271         * tests/unictype/test-categ_Pd.c: Regenerated.
47272         * tests/unictype/test-categ_Pe.c: Regenerated.
47273         * tests/unictype/test-categ_Pf.c: Regenerated.
47274         * tests/unictype/test-categ_Pi.c: Regenerated.
47275         * tests/unictype/test-categ_Po.c: Regenerated.
47276         * tests/unictype/test-categ_Ps.c: Regenerated.
47277         * tests/unictype/test-categ_S.c: Regenerated.
47278         * tests/unictype/test-categ_Sk.c: Regenerated.
47279         * tests/unictype/test-categ_Sm.c: Regenerated.
47280         * tests/unictype/test-categ_So.c: Regenerated.
47281         * tests/unictype/test-ctype_alnum.c: Regenerated.
47282         * tests/unictype/test-ctype_alpha.c: Regenerated.
47283         * tests/unictype/test-ctype_graph.c: Regenerated.
47284         * tests/unictype/test-ctype_lower.c: Regenerated.
47285         * tests/unictype/test-ctype_print.c: Regenerated.
47286         * tests/unictype/test-ctype_punct.c: Regenerated.
47287         * tests/unictype/test-ctype_upper.c: Regenerated.
47288         * tests/unictype/test-decdigit.h: Regenerated.
47289         * tests/unictype/test-digit.h: Regenerated.
47290         * tests/unictype/test-numeric.h: Regenerated.
47291         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47292         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47293         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47294         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47295         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47296         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47297         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47298         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47299         * tests/unictype/test-pr_combining.c: Regenerated.
47300         * tests/unictype/test-pr_dash.c: Regenerated.
47301         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47302         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47303         * tests/unictype/test-pr_deprecated.c: Regenerated.
47304         * tests/unictype/test-pr_diacritic.c: Regenerated.
47305         * tests/unictype/test-pr_extender.c: Regenerated.
47306         * tests/unictype/test-pr_format_control.c: Regenerated.
47307         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47308         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47309         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47310         * tests/unictype/test-pr_id_continue.c: Regenerated.
47311         * tests/unictype/test-pr_id_start.c: Regenerated.
47312         * tests/unictype/test-pr_ideographic.c: Regenerated.
47313         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47314         * tests/unictype/test-pr_lowercase.c: Regenerated.
47315         * tests/unictype/test-pr_math.c: Regenerated.
47316         * tests/unictype/test-pr_numeric.c: Regenerated.
47317         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47318         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47319         Regenerated.
47320         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47321         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47322         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47323         * tests/unictype/test-pr_other_math.c: Regenerated.
47324         * tests/unictype/test-pr_punctuation.c: Regenerated.
47325         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47326         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47327         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47328         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47329         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47330         * tests/unictype/test-pr_uppercase.c: Regenerated.
47331         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47332         * tests/unictype/test-pr_xid_start.c: Regenerated.
47333         * tests/unictype/test-pr_zero_width.c: Regenerated.
47334
47335         Update to Unicode 5.1.0.
47336         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47337         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47338         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47339         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47340         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47341         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47342         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47343         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47344         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47345         (nonspacing_table_ind): Update.
47346         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47347
47348         Update to Unicode 5.1.0.
47349         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47350         code transform.
47351         * lib/uniname/uniname.c (unicode_character_name,
47352         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47353         * lib/uniname/uninames.h: Regenerated.
47354         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47355
47356 2009-02-07  Bruno Haible  <bruno@clisp.org>
47357
47358         Merge gen-ctype and gen-lbrk into a single program.
47359         * lib/gen-uni-tables.c: New file, incorporating
47360         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47361         Add directory prefixes to the names of the generated files.
47362         * lib/unictype/gen-ctype.c: Remove file.
47363         * lib/unilbrk/gen-lbrk.c: Remove file.
47364         * modules/gen-uni-tables: New file.
47365         * modules/unictype/gen-ctype: Remove file.
47366         * modules/unilbrk/gen-lbrk: Remove file.
47367
47368 2009-02-07  Bruno Haible  <bruno@clisp.org>
47369
47370         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47371
47372         New module 'unistr/u32-strcoll'.
47373         * modules/unistr/u32-strcoll: New file.
47374         * lib/unistr/u32-strcoll.c: New file.
47375
47376         New module 'unistr/u16-strcoll'.
47377         * modules/unistr/u16-strcoll: New file.
47378         * lib/unistr/u16-strcoll.c: New file.
47379
47380         New module 'unistr/u8-strcoll'.
47381         * modules/unistr/u8-strcoll: New file.
47382         * lib/unistr/u8-strcoll.c: New file.
47383         * lib/unistr/u-strcoll.h: New file.
47384
47385 2009-02-07  Bruno Haible  <bruno@clisp.org>
47386
47387         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47388         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47389         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47390         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47391         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47392         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47393
47394 2009-02-07  Bruno Haible  <bruno@clisp.org>
47395
47396         Make 64-bit clean.
47397         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47398         output_combclass, output_bidi_category, output_decimal_digit,
47399         output_digit, output_numeric, output_mirror, output_scripts,
47400         output_ident_category): Use proper width specifier in format strings.
47401
47402 2009-02-07  Bruno Haible  <bruno@clisp.org>
47403
47404         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47405         failure behaviour.
47406
47407 2009-02-07  Jim Meyering  <meyering@redhat.com>
47408
47409         regex: avoid compilation failure with upcoming gcc-4.4
47410         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47411         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47412         "... error: integer overflow in preprocessor expression".
47413
47414 2009-02-05  Ben Pfaff  <blp@gnu.org>
47415
47416         Fix link errors on Windows when close module is used.
47417         * modules/close: Add $(LIB_CLOSE) to Link section.
47418         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47419         $(LIB_CLOSE) on Windows.
47420
47421 2009-02-05  Jim Meyering  <meyering@redhat.com>
47422
47423         still avoid unused-parameter warnings, but do it cleanly
47424         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47425         (get_fs_usage): Cast to void instead.
47426         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47427         (dev_from_mount_options, read_file_system_list): Cast to void.
47428         Prompted by Bruno Haible.
47429
47430 2009-02-04  Jim Meyering  <meyering@redhat.com>
47431
47432         fsusage.c: correct copyright year
47433         * lib/fsusage.c: Reflect year in which the change is pushed into
47434
47435         avoid misc. warnings
47436         * lib/fsusage.c (UNUSED_PARAM): Define.
47437         (get_fs_usage): Mark parameter "disk" as unused.
47438         * lib/getugroups.c (getgrent): Use "void" in prototype.
47439         * lib/mountlist.c: Mark unused parameters.
47440         (read_file_system_list): Declare a local with "const".
47441         * lib/nanosleep.c (getnow): Declare static.
47442         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47443
47444         dirfd: set errno upon failure
47445         * lib/dirfd.c: Include <errno.h>.
47446         Set errno to ENOTSUP when returning -1.
47447         * modules/dirfd (Depends-on): Add errno.
47448         Suggested by John Kodis <kodis@comcast.net>.
47449
47450 2009-02-01  Bruno Haible  <bruno@clisp.org>
47451
47452         Don't assume sizeof (long) >= sizeof (void *).
47453         * lib/memcmp.c: Include stdint.h.
47454         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47455         srcp2 to 'const byte *'.
47456         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47457         types to uintptr_t.
47458         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47459         * modules/memcmp (Depends-on): Add stdint.
47460         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47461
47462 2009-01-30  Eric Blake  <ebb9@byu.net>
47463
47464         fix more require-before-expand issues
47465         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47466         expand, AC_PROG_AWK.
47467         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47468
47469 2009-01-28  Eric Blake  <ebb9@byu.net>
47470
47471         version-etc: use consistent URL formatting
47472         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47473         Improve formatting.  Use fputs for string without %.
47474
47475 2009-01-28  Jim Meyering  <meyering@redhat.com>
47476
47477         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47478         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47479         "underquoted definition of NAME" from autoconf-2.59.
47480
47481 2009-01-28  Bruno Haible  <bruno@clisp.org>
47482
47483         * doc/gnulib.texi: Add "Obsolete modules" to index.
47484
47485 2009-01-28  Jim Meyering  <meyering@redhat.com>
47486
47487         useless-if-before-free: recognize more variants
47488         * build-aux/useless-if-before-free: Also recognize e.g.,
47489         if (NULL != p) free (p);
47490
47491 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47492
47493         test-getaddrinfo: skip (don't fail) this test when there's no network
47494         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47495         on the presumption that it means you lack network access.
47496
47497 2009-01-26  Jim Meyering  <meyering@redhat.com>
47498
47499         fflush: avoid warnings on modern systems
47500         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47501         pos and result, into scopes where they're used.
47502
47503 2009-01-26  Eric Blake  <ebb9@byu.net>
47504
47505         Silence warning reintroduced by recent extensions patch.
47506         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47507         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47508         autoconf.
47509
47510         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47511         * m4/00gnulib.m4: New file.
47512         * gnulib-tool (func_get_filelist): Always use it.
47513         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47514         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47515
47516 2009-01-25  Bruno Haible  <bruno@clisp.org>
47517
47518         Make test-quotearg work on MacOS X and AIX.
47519         * tests/test-quotearg.sh: New file.
47520         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47521         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47522         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47523         include <libintl.h>.
47524         (fake_locale): Remove variable.
47525         (gettext, dgettext, dcgettext): Remove functions.
47526         (main): Instead of setting a fake locale, set a real locale. Call
47527         textdomain and bindtextdomain.
47528         * modules/quotearg-tests (Files): Add the new files.
47529         (Depends-on): Add gettext, setenv, unsetenv.
47530         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47531         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47532         Augment TESTS_ENVIRONMENT.
47533
47534 2009-01-25  Bruno Haible  <bruno@clisp.org>
47535
47536         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47537         fr_FR.ISO8859-1 locale on MacOS X.
47538         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47539         ja_JP.eucJP locale on MacOS X.
47540         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47541         zh_CN.GB18030 locale on MacOS X.
47542
47543 2009-01-25  Bruno Haible  <bruno@clisp.org>
47544
47545         Avoid link errors on MacOS X 10.3.
47546         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47547         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47548
47549 2009-01-25  Bruno Haible  <bruno@clisp.org>
47550
47551         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47552         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47553         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47554         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47555         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47556         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47557         posix_spawnattr_init, posix_spawnattr_setsigmask,
47558         posix_spawnattr_setflags, posix_spawnattr_destroy.
47559
47560         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47561         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47562         * modules/execute (Files): Remove m4/posix_spawn.m4.
47563         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47564         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47565         posix_spawnattr_init, posix_spawnattr_setsigmask,
47566         posix_spawnattr_setflags, posix_spawnattr_destroy.
47567
47568 2009-01-25  Bruno Haible  <bruno@clisp.org>
47569
47570         * lib/glthread/threadlib.c: Include <stdlib.h>.
47571
47572 2009-01-25  Bruno Haible  <bruno@clisp.org>
47573
47574         * lib/glthread/threadlib.c (dummy): New declaration.
47575
47576 2009-01-25  Bruno Haible  <bruno@clisp.org>
47577
47578         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47579         multibyte characters also for the GB18030 encoding. Don't crash when
47580         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47581
47582 2009-01-25  Bruno Haible  <bruno@clisp.org>
47583
47584         Avoid redefining 'struct random_data' on OSF/1 5.1.
47585         * lib/stdlib.in.h: Include <random.h> if it exists.
47586         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47587         HAVE_RANDOM_H. Include <random.h> when testing whether
47588         'struct random_data' exists.
47589         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47590
47591 2009-01-25  Bruno Haible  <bruno@clisp.org>
47592
47593         Don't install charset.alias on MacOS X >= 10.3.
47594         * lib/localcharset.c (DARWIN7): New macro.
47595         (get_charset_aliases): Hardcode the result for Darwin7.
47596         * modules/localcharset (install-exec-local): Don't install
47597         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47598
47599 2009-01-25  Bruno Haible  <bruno@clisp.org>
47600
47601         Don't install charset.alias on mingw and Cygwin.
47602         * modules/localcharset (install-exec-local): Don't install
47603         charset.alias on mingw and Cygwin, if the file does not yet exist.
47604         The result for these platforms is hardcoded in localcharset.c.
47605
47606 2009-01-25  Bruno Haible  <bruno@clisp.org>
47607
47608         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47610         before requiring AC_USE_SYSTEM_EXTENSIONS.
47611
47612 2009-01-25  Jim Meyering  <meyering@redhat.com>
47613
47614         c-strtod: avoid warnings
47615         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47616         "assignment discards qualifiers from pointer target type" warnings.
47617
47618 2009-01-24  Bruno Haible  <bruno@clisp.org>
47619
47620         Add support for non-UTF-8 locales on MacOS X.
47621         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47622         canonical encodings. For Darwin 7 and newer, don't map traditional
47623         encodings to UTF-8.
47624         Reported by Vincent Lefevre <vincent@vinc17.org>
47625         at <http://savannah.gnu.org/bugs/?25235>.
47626
47627 2009-01-24  Bruno Haible  <bruno@clisp.org>
47628
47629         * doc/gnulib.texi (Obsolete modules): New section.
47630         Reported by Mike Frysinger <vapier@gentoo.org>.
47631
47632 2009-01-24  Bruno Haible  <bruno@clisp.org>
47633
47634         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47635         (%.dvi): New rule.
47636
47637 2009-01-24  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47640         Reported by Eric Blake.
47641
47642 2009-01-24  Bruno Haible  <bruno@clisp.org>
47643
47644         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47645         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47646         Reported by Gary V. Vaughan <gary@gnu.org>.
47647
47648 2009-01-24  Bruno Haible  <bruno@clisp.org>
47649
47650         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47651
47652 2009-01-23  Bruno Haible  <bruno@clisp.org>
47653
47654         Make c-strtod, c-strtold usable in libraries.
47655         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47656         (C_STRTOD): Call strdup instead of xstrdup.
47657         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47658         * modules/c-strtold (Depends-on): Likewise.
47659         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47660         * NEWS: Mention the change.
47661         Reported by Michael Gold <mgold@ncf.ca>.
47662
47663 2009-01-23  Jim Meyering  <meyering@redhat.com>
47664
47665         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47666         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47667         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47668
47669 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47670
47671         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47672         GNU CoreUtils.
47673         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47674         * modules/version-etc (Description): Update.
47675
47676 2009-01-22  Bruno Haible  <bruno@clisp.org>
47677
47678         Cache the C locale object.
47679         * lib/c-strtod.c (c_locale_cache): New variable.
47680         (c_locale): New function.
47681         (C_STRTOD): Use it, and don't call freelocale.
47682         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47683         Suggested by Paolo Bonzini.
47684
47685 2009-01-21  Bruno Haible  <bruno@clisp.org>
47686
47687         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47688         conditions other than overflow.
47689
47690 2009-01-21  Bruno Haible  <bruno@clisp.org>
47691
47692         * lib/c-strtod.c: Include errno.h.
47693         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47694         value from STRTOD_L and STRTOD.
47695
47696 2009-01-21  Bruno Haible  <bruno@clisp.org>
47697         and Jim Meyering  <meyering@redhat.com>
47698
47699         nanosleep: skip configure test (fail it) for apple universal builds
47700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47701         universal builds, assume that nanosleep does not work.
47702         * modules/nanosleep (Depends-on): Add multiarch.
47703
47704         mktime: skip configure test (fail it) for apple universal builds
47705         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47706         universal builds, assume that mktime does not work.
47707         * modules/mktime (Depends-on): Add multiarch.
47708
47709 2009-01-21  Eric Blake  <ebb9@byu.net>
47710
47711         multiarch: avoid expand-before-require warning
47712         * modules/multiarch (configure.ac): Require, rather than expand,
47713         gl_MULTIARCH.
47714         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47715         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47716         enforce that all clients require it.  Partial reversion of
47717         2008-12-29 patch.
47718
47719         error: avoid expand-before-require warning
47720         * modules/errno (configure.ac): Require, rather than expand,
47721         gl_HEADER_ERRNO_H.
47722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47723         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47724         enforce that all clients require it.
47725
47726         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47727         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47728         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47729         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47730
47731 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47732
47733         Revert:
47734         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47735
47736         regex: do not depend on obsolete modules.
47737         * modules/regex: Remove memcmp and memmove.
47738
47739 2009-01-20  Bruno Haible  <bruno@clisp.org>
47740
47741         Make the 'link' module link on Windows NT 4.
47742         * lib/link.c (_WIN32_WINNT): Don't define.
47743         (CreateHardLinkFuncType): New type.
47744         (CreateHardLinkFunc, initialized): New variables.
47745         (initialize): New function.
47746         (link): Invoke CreateHardLink indirectly through the function pointer.
47747
47748 2009-01-20  Bruno Haible  <bruno@clisp.org>
47749
47750         Fix compilation failure on mingw.
47751         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47752
47753 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47754
47755         * doc/c-strtod.texi: Mention a couple of restrictions.
47756
47757 2009-01-20  Jim Meyering  <meyering@redhat.com>
47758
47759         gettimeofday: move more declarations out of functions
47760         * lib/gettimeofday.c: Move extern declarations of tzset and
47761         gmtime out of containing functions.  Prompted by Bruno Haible.
47762
47763 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47764
47765         regex: do not depend on obsolete modules.
47766         * modules/regex: Remove memcmp and memmove.
47767
47768 2009-01-19  Bruno Haible  <bruno@clisp.org>
47769
47770         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47771         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47772         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47773         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47774         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47775
47776 2009-01-19  Bruno Haible  <bruno@clisp.org>
47777
47778         * tests/test-link.c: Include <errno.h>.
47779         (main): Exit with code 77 when a hard link cannot be created due to
47780         the file system.
47781         * tests/test-link.sh: Skip test when a hard link cannot be created due
47782         to the file system.
47783         Suggested by Eric Blake.
47784
47785 2009-01-19  Martin Lambers  <marlam@marlam.de>
47786
47787         * modules/link-tests: New file.
47788         * tests/test-link.sh: New file.
47789         * tests/test-link.c: New file.
47790
47791 2009-01-19  Eric Blake  <ebb9@byu.net>
47792
47793         doc: mention another function added in cygwin 1.7.0
47794         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47795         Another new function in cygwin 1.7.
47796
47797 2009-01-19  Bruno Haible  <bruno@clisp.org>
47798
47799         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47800         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47801         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47802         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47803         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47804         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47805         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47806         * m4/md4.m4 (gl_MD4): Likewise.
47807         * m4/md5.m4 (gl_MD5): Likewise.
47808         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47809         * m4/sha1.m4 (gl_SHA1): Likewise.
47810         * m4/sha256.m4 (gl_SHA256): Likewise.
47811         * m4/sha512.m4 (gl_SHA512): Likewise.
47812
47813 2009-01-19  Bruno Haible  <bruno@clisp.org>
47814
47815         * modules/uniname/uniname-tests (Depends-on): Add progname.
47816         * tests/uniname/test-uninames.c: Include progname.h.
47817         (main): Call set_program_name.
47818
47819         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47820         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47821         (main): Call set_program_name.
47822
47823         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47824         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47825         (main): Call set_program_name.
47826
47827         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47828         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47829         (main): Call set_program_name.
47830
47831         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47832         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47833         (main): Call set_program_name.
47834
47835         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47836         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47837         (main): Call set_program_name.
47838
47839         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47840         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47841         (main): Call set_program_name.
47842
47843         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47844         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47845         (main): Call set_program_name.
47846
47847         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47848         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47849         (main): Call set_program_name.
47850
47851 2009-01-19  Eric Blake  <ebb9@byu.net>
47852
47853         test-unistd: test previous patch
47854         * tests/test-unistd.c: Test *_FILENO macros.
47855
47856         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47857         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47858         Guarantee a definition.
47859         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47860         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47861         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47862         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47863         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47864         Likewise.
47865         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47866         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47867         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47868         Likewise.
47869         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47870         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47871         (STDERR_FILENO): Likewise.
47872         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47873         (STDERR_FILENO): Likewise.
47874         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47875         (STDERR_FILENO): Likewise.
47876         Reported by Elbert Pol.
47877
47878 2009-01-19  Eric Blake  <ebb9@byu.net>
47879
47880         doc: mention more functions added in cygwin 1.7.0
47881         * doc/posix-functions/abort.texi (abort): Update wording related
47882         to cygwin.
47883         * doc/posix-functions/daylight.texi (daylight): Likewise.
47884         * doc/posix-functions/optarg.texi (optarg): Likewise.
47885         * doc/posix-functions/optarg.texi (opterr): Likewise.
47886         * doc/posix-functions/optarg.texi (optind): Likewise.
47887         * doc/posix-functions/optarg.texi (optopt): Likewise.
47888         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47889         worked in 1.5.x, and was withdrawn in 1.7.
47890         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47891         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47892         cygwin versions.
47893         * doc/posix-functions/perror.texi (perror): Likewise.
47894         * doc/posix-functions/printf.texi (printf): Likewise.
47895         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47896         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47897         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47898         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47899         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47900         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47901         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47902         Likewise.
47903         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47904         Likewise.
47905         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47906         this function.
47907         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47908         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47909         Likewise.
47910         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47911         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47912         * doc/posix-functions/confstr.texi (confstr): Likewise.
47913         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47914         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47915         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47916         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47917         * doc/posix-functions/fputws.texi (fputws): Likewise.
47918         * doc/posix-functions/fwide.texi (fwide): Likewise.
47919         * doc/posix-functions/getwc.texi (getwc): Likewise.
47920         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47921         * doc/posix-functions/putwc.texi (putwc): Likewise.
47922         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47923         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47924         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47925         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47926         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47927         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47928         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47929         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47930         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47931         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47932         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47933
47934 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47935
47936         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47937         * lib/ioctl.c: Include <sys/ioctl.h>.
47938
47939 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47940
47941         * modules/getdate-tests (Depends-on): Add progname.
47942         * tests/test-getdate.c: Use progname module, to avoid link errors
47943         on non-glibc systems.
47944
47945 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47946
47947         * modules/filenamecat-tests (Depends-on): Add progname.
47948         * modules/fstrcmp-tests (Depends-on): Likewise.
47949
47950         * tests/test-filenamecat.c: Use progname module, to avoid link
47951         errors on non-glibc systems.
47952         * tests/test-fstrcmp.c: Likewise.
47953
47954 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47955
47956         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47957         * lib/gettimeofday.c: Move extern declaration out of function.
47958
47959 2009-01-18  Bruno Haible  <bruno@clisp.org>
47960
47961         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47962         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47963         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47964
47965 2009-01-18  Bruno Haible  <bruno@clisp.org>
47966
47967         * lib/strftime.c (MEMPCPY): Remove unused macro.
47968         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47969
47970 2009-01-18  Martin Lambers  <marlam@marlam.de>
47971
47972         New module 'link'.
47973         * lib/unistd.in.h (link): New declaration.
47974         * lib/link.c: New file.
47975         * m4/link.m4: New file.
47976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47977         HAVE_LINK.
47978         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47979         * modules/link: New file.
47980         * doc/posix-functions/link.texi: Mention the new module.
47981
47982 2009-01-18  Bruno Haible  <bruno@clisp.org>
47983
47984         * tests/test-avltree_list.c (main): Call set_program_name.
47985         * tests/test-avltree_oset.c (main): Likewise.
47986         * tests/test-obstack-printf.c: Include progname.h.
47987         (main): Call set_program_name.
47988         * tests/test-quotearg.c: Include progname.h.
47989         (main): Call set_program_name.
47990         * tests/test-xmemdup0.c: Include progname.h.
47991         (main): Call set_program_name.
47992
47993 2009-01-18  Bruno Haible  <bruno@clisp.org>
47994
47995         New module 'alphasort'.
47996         * lib/dirent.in.h (alphasort): New declaration.
47997         * lib/alphasort.c: New file, from glibc with modifications.
47998         * m4/alphasort.m4: New file.
47999         * modules/alphasort: New file.
48000         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48001         HAVE_ALPHASORT.
48002         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48003         HAVE_ALPHASORT.
48004         * doc/posix-functions/alphasort.texi: Mention the new module and the
48005         portability problems.
48006
48007 2009-01-18  Bruno Haible  <bruno@clisp.org>
48008
48009         New module 'scandir'.
48010         * lib/dirent.in.h (scandir): New declaration.
48011         * lib/scandir.c: New file, from glibc with modifications.
48012         * m4/scandir.m4: New file.
48013         * modules/scandir: New file.
48014         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48015         HAVE_SCANDIR.
48016         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48017         HAVE_SCANDIR.
48018         * doc/posix-functions/scandir.texi: Mention the new module and the
48019         portability problems.
48020
48021 2009-01-17  Bruno Haible  <bruno@clisp.org>
48022
48023         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48024         Update documentation.
48025         (func_remove_suffix): Escape all dots in the suffix. Update
48026         documentation.
48027         (func_filter_filelist): Update documentation.
48028         Reported by Ralf Wildenhues.
48029
48030 2009-01-17  Bruno Haible  <bruno@clisp.org>
48031
48032         * modules/dprintf-posix-tests: New file.
48033         * tests/test-dprintf-posix.sh: New file.
48034         * tests/test-dprintf-posix.c: New file.
48035
48036         New modules 'dprintf', 'dprintf-posix'.
48037         * lib/stdio.in.h (dprintf): New declaration.
48038         * lib/dprintf.c: New file.
48039         * m4/dprintf.m4: New file.
48040         * m4/dprintf-posix.m4: New file.
48041         * modules/dprintf: New file.
48042         * modules/dprintf-posix: New file.
48043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48044         HAVE_DPRINTF, REPLACE_DPRINTF.
48045         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48046         HAVE_DPRINTF, REPLACE_DPRINTF.
48047         * doc/posix-functions/dprintf.texi: Mention the new modules.
48048
48049 2009-01-17  Bruno Haible  <bruno@clisp.org>
48050
48051         * modules/vdprintf-posix-tests: New file.
48052         * tests/test-vdprintf-posix.sh: New file.
48053         * tests/test-vdprintf-posix.c: New file.
48054
48055         New modules 'vdprintf', 'vdprintf-posix'.
48056         * lib/stdio.in.h (vdprintf): New declaration.
48057         * lib/vdprintf.c: New file.
48058         * m4/vdprintf.m4: New file.
48059         * m4/vdprintf-posix.m4: New file.
48060         * modules/vdprintf: New file.
48061         * modules/vdprintf-posix: New file.
48062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48063         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48064         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48065         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48066         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48067
48068 2009-01-17  Bruno Haible  <bruno@clisp.org>
48069
48070         Fix replacement of fopen on mingw.
48071         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48072         mingw.
48073
48074 2009-01-17  Bruno Haible  <bruno@clisp.org>
48075
48076         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48077         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48078
48079 2009-01-17  Bruno Haible  <bruno@clisp.org>
48080
48081         Avoid test-fflush2.sh failure on mingw.
48082         * tests/test-fflush2.c: Include binary-io.h.
48083         (main): Put standard input into binary mode.
48084         * modules/fflush-tests (Depends-on): Add binary-io.
48085
48086 2009-01-17  Bruno Haible  <bruno@clisp.org>
48087
48088         * lib/wchar.in.h: In another particular situation, include only the
48089         system's <wchar.h> file.
48090         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48091         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48092         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48093
48094 2009-01-17  Bruno Haible  <bruno@clisp.org>
48095
48096         Support for stripping executables in --enable-relocatable.
48097         * build-aux/install-reloc: Expect one more argument, or an environment
48098         variable RELOC_STRIP_PROG. If set, strip the destination program and
48099         its wrapper.
48100         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48101         RELOC_STRIP_PROG.
48102         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48103         to set RELOCATABLE_STRIP.
48104         * NEWS: Mention the new Makefile requirement.
48105
48106 2009-01-17  Bruno Haible  <bruno@clisp.org>
48107
48108         * build-aux/install-reloc: Remove debugging information left over by
48109         C compiler on MacOS X.
48110
48111 2009-01-17  Bruno Haible  <bruno@clisp.org>
48112
48113         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48114         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48115         _NSGetExecutablePath.
48116
48117 2009-01-16  Jim Meyering  <meyering@redhat.com>
48118
48119         strerror: avoid warnings about discarding "const"
48120         * lib/strerror.c (rpl_strerror): Instead of returning a const
48121         string from each and every "case", use a variable, and add a single
48122         cast after the switch.
48123
48124 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48125
48126         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48127
48128 2009-01-16  Bruno Haible  <bruno@clisp.org>
48129
48130         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48131         array initializer syntax that also works in C++ mode.
48132         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48133
48134 2009-01-16  Jim Meyering  <meyering@redhat.com>
48135
48136         poll: suppress a warning
48137         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48138         to ignore "...unsigned expression < 0 is always false" warnings.
48139
48140 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48141
48142         poll: remove declarations of unused variables
48143         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48144         sockbuf and optlen.
48145
48146 2009-01-15  Bruno Haible  <bruno@clisp.org>
48147
48148         Make fflush-after-ungetc POSIX compliant on BSD systems.
48149         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48150         (clear_ungetc_buffer): Implement also for other systems.
48151         (rpl_fflush): On glibc systems, invoke
48152         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48153         clear_ungetc_buffer after fetching the stream's position, not before.
48154
48155 2009-01-15  Bruno Haible  <bruno@clisp.org>
48156
48157         Make fflush-after-ungetc POSIX compliant on glibc systems.
48158         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48159         after ungetc.
48160         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48161         (rpl_fflush): On glibc systems, simply call the system's fflush
48162         function after clearing the ungetc buffer.
48163         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48164         Instead, lseek only to the end of file, then use the system's fseeko
48165         for the rest. On glibc systems, reset the EOF indicator bit.
48166
48167 2009-01-15  Jim Meyering  <meyering@redhat.com>
48168
48169         openmp.m4: revert quote-adding change, for portability to older autoconf
48170         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48171         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48172         Simon Josefsson noticed the problem when using autoconf-2.61.
48173
48174 2009-01-15  Bruno Haible  <bruno@clisp.org>
48175
48176         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48177         * tests/test-fflush2.c (ASSERT): Always fail.
48178         (main): Add two tests for fflush() after ungetc(), taking into account
48179         the Austin Group's clarification.
48180         Suggested by Eric Blake.
48181
48182 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48183
48184         mktime.m4: remove K&R-style function prototypes
48185         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48186         for the Sun C++ compiler.
48187
48188 2009-01-14  Bruno Haible  <bruno@clisp.org>
48189
48190         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48191         while including <wchar.h>.
48192         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48193         the system's <wchar.h> file.
48194         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48195
48196 2009-01-14  Bruno Haible  <bruno@clisp.org>
48197
48198         * m4/csharp.m4: Don't mention gettext on the serial number line.
48199         * m4/csharpexec.m4: Likewise.
48200         * m4/eaccess.m4: Likewise.
48201         * m4/javaexec.m4: Likewise.
48202         * m4/sig_atomic_t.m4: Likewise.
48203         * m4/tmpdir.m4: Likewise.
48204         * m4/intldir.m4: Bump gettext version.
48205         * m4/lib-ld.m4: Likewise.
48206
48207 2009-01-14  Bruno Haible  <bruno@clisp.org>
48208
48209         * lib/progname.c (set_program_name): Add more comments.
48210         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48211
48212 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48213
48214         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48215         were sys/stat.h does not define it.
48216
48217 2009-01-14  Jim Meyering  <meyering@redhat.com>
48218
48219         many *.m4 files: improve m4 quoting
48220         99% of this change was performed by running the following commands:
48221         git ls-files | grep '\.m4$' | xargs perl -pi \
48222           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48223           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48224           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48225           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48226         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48227         The remainder were to add Copyright dates, increment serial numbers,
48228         undo some changes in comments, exclude m4/intl.m4, and add quotes
48229         around the "1" in ",1" where the unusual spacing prohibited the
48230         above regexps from doing the job.  For more details, see
48231         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48232         * m4/acl.m4: Modified.
48233         * m4/afs.m4: Likewise.
48234         * m4/alloca.m4: Likewise.
48235         * m4/argp.m4: Likewise.
48236         * m4/argz.m4: Likewise.
48237         * m4/atexit.m4: Likewise.
48238         * m4/bison-i18n.m4: Likewise.
48239         * m4/bison.m4: Likewise.
48240         * m4/byteswap.m4: Likewise.
48241         * m4/c-stack.m4: Likewise.
48242         * m4/c-strtod.m4: Likewise.
48243         * m4/calloc.m4: Likewise.
48244         * m4/canonicalize-lgpl.m4: Likewise.
48245         * m4/chown.m4: Likewise.
48246         * m4/clock_time.m4: Likewise.
48247         * m4/codeset.m4: Likewise.
48248         * m4/copy-file.m4: Likewise.
48249         * m4/csharp.m4: Likewise.
48250         * m4/csharpcomp.m4: Likewise.
48251         * m4/csharpexec.m4: Likewise.
48252         * m4/d-ino.m4: Likewise.
48253         * m4/d-type.m4: Likewise.
48254         * m4/dirfd.m4: Likewise.
48255         * m4/double-slash-root.m4: Likewise.
48256         * m4/eaccess.m4: Likewise.
48257         * m4/eealloc.m4: Likewise.
48258         * m4/environ.m4: Likewise.
48259         * m4/errno_h.m4: Likewise.
48260         * m4/euidaccess.m4: Likewise.
48261         * m4/execute.m4: Likewise.
48262         * m4/fatal-signal.m4: Likewise.
48263         * m4/fchdir.m4: Likewise.
48264         * m4/fcntl_h.m4: Likewise.
48265         * m4/fileblocks.m4: Likewise.
48266         * m4/filenamecat.m4: Likewise.
48267         * m4/findprog.m4: Likewise.
48268         * m4/flexmember.m4: Likewise.
48269         * m4/fnmatch.m4: Likewise.
48270         * m4/fopen.m4: Likewise.
48271         * m4/fpending.m4: Likewise.
48272         * m4/fprintf-posix.m4: Likewise.
48273         * m4/free.m4: Likewise.
48274         * m4/frexp.m4: Likewise.
48275         * m4/frexpl.m4: Likewise.
48276         * m4/fsusage.m4: Likewise.
48277         * m4/ftruncate.m4: Likewise.
48278         * m4/gc-camellia.m4: Likewise.
48279         * m4/gc-random.m4: Likewise.
48280         * m4/gc.m4: Likewise.
48281         * m4/getaddrinfo.m4: Likewise.
48282         * m4/getcwd-abort-bug.m4: Likewise.
48283         * m4/getcwd-path-max.m4: Likewise.
48284         * m4/getdate.m4: Likewise.
48285         * m4/getdomainname.m4: Likewise.
48286         * m4/getgroups.m4: Likewise.
48287         * m4/gethostname.m4: Likewise.
48288         * m4/gethrxtime.m4: Likewise.
48289         * m4/getline.m4: Likewise.
48290         * m4/getloadavg.m4: Likewise.
48291         * m4/getndelim2.m4: Likewise.
48292         * m4/getpass.m4: Likewise.
48293         * m4/gettext.m4: Likewise.
48294         * m4/gettime.m4: Likewise.
48295         * m4/gettimeofday.m4: Likewise.
48296         * m4/gnulib-common.m4: Likewise.
48297         * m4/group-member.m4: Likewise.
48298         * m4/host-os.m4: Likewise.
48299         * m4/iconv.m4: Likewise.
48300         * m4/iconv_open.m4: Likewise.
48301         * m4/inet_ntop.m4: Likewise.
48302         * m4/inet_pton.m4: Likewise.
48303         * m4/inline.m4: Likewise.
48304         * m4/intldir.m4: Likewise.
48305         * m4/intlmacosx.m4: Likewise.
48306         * m4/intmax.m4: Likewise.
48307         * m4/intmax_t.m4: Likewise.
48308         * m4/inttypes.m4: Likewise.
48309         * m4/inttypes_h.m4: Likewise.
48310         * m4/inttypes-pri.m4: Likewise.
48311         * m4/isapipe.m4: Likewise.
48312         * m4/isnand.m4: Likewise.
48313         * m4/isnanf.m4: Likewise.
48314         * m4/isnanl.m4: Likewise.
48315         * m4/javacomp.m4: Likewise.
48316         * m4/javaexec.m4: Likewise.
48317         * m4/jm-winsz1.m4: Likewise.
48318         * m4/jm-winsz2.m4: Likewise.
48319         * m4/lchown.m4: Likewise.
48320         * m4/lcmessage.m4: Likewise.
48321         * m4/ldexpl.m4: Likewise.
48322         * m4/lib-ld.m4: Likewise.
48323         * m4/lib-link.m4: Likewise.
48324         * m4/libsigsegv.m4: Likewise.
48325         * m4/link-follow.m4: Likewise.
48326         * m4/localcharset.m4: Likewise.
48327         * m4/locale-fr.m4: Likewise.
48328         * m4/locale-ja.m4: Likewise.
48329         * m4/locale-tr.m4: Likewise.
48330         * m4/locale-zh.m4: Likewise.
48331         * m4/lock.m4: Likewise.
48332         * m4/longlong.m4: Likewise.
48333         * m4/ls-mntd-fs.m4: Likewise.
48334         * m4/lstat.m4: Likewise.
48335         * m4/malloc.m4: Likewise.
48336         * m4/mathl.m4: Likewise.
48337         * m4/mbrtowc.m4: Likewise.
48338         * m4/mbstate_t.m4: Likewise.
48339         * m4/mbswidth.m4: Likewise.
48340         * m4/memchr.m4: Likewise.
48341         * m4/memcmp.m4: Likewise.
48342         * m4/memcpy.m4: Likewise.
48343         * m4/memmem.m4: Likewise.
48344         * m4/memmove.m4: Likewise.
48345         * m4/mempcpy.m4: Likewise.
48346         * m4/memrchr.m4: Likewise.
48347         * m4/memset.m4: Likewise.
48348         * m4/minmax.m4: Likewise.
48349         * m4/mkdir-slash.m4: Likewise.
48350         * m4/mkdtemp.m4: Likewise.
48351         * m4/mktime.m4: Likewise.
48352         * m4/mmap-anon.m4: Likewise.
48353         * m4/mountlist.m4: Likewise.
48354         * m4/nanosleep.m4: Likewise.
48355         * m4/nls.m4: Likewise.
48356         * m4/nocrash.m4: Likewise.
48357         * m4/open.m4: Likewise.
48358         * m4/openat.m4: Likewise.
48359         * m4/openmp.m4: Likewise.
48360         * m4/pathmax.m4: Likewise.
48361         * m4/perl.m4: Likewise.
48362         * m4/physmem.m4: Likewise.
48363         * m4/pipe.m4: Likewise.
48364         * m4/po.m4: Likewise.
48365         * m4/poll.m4: Likewise.
48366         * m4/posixtm.m4: Likewise.
48367         * m4/posixver.m4: Likewise.
48368         * m4/printf-frexp.m4: Likewise.
48369         * m4/printf-frexpl.m4: Likewise.
48370         * m4/printf-posix.m4: Likewise.
48371         * m4/printf-posix-rpl.m4: Likewise.
48372         * m4/printf.m4: Likewise.
48373         * m4/progtest.m4: Likewise.
48374         * m4/putenv.m4: Likewise.
48375         * m4/readline.m4: Likewise.
48376         * m4/readlink.m4: Likewise.
48377         * m4/readutmp.m4: Likewise.
48378         * m4/realloc.m4: Likewise.
48379         * m4/regex.m4: Likewise.
48380         * m4/relocatable.m4: Likewise.
48381         * m4/relocatable-lib.m4: Likewise.
48382         * m4/rename-dest-slash.m4: Likewise.
48383         * m4/rename.m4: Likewise.
48384         * m4/rmdir-errno.m4: Likewise.
48385         * m4/rmdir.m4: Likewise.
48386         * m4/roundf.m4: Likewise.
48387         * m4/roundl.m4: Likewise.
48388         * m4/rpmatch.m4: Likewise.
48389         * m4/save-cwd.m4: Likewise.
48390         * m4/selinux-selinux-h.m4: Likewise.
48391         * m4/setenv.m4: Likewise.
48392         * m4/settime.m4: Likewise.
48393         * m4/sig2str.m4: Likewise.
48394         * m4/sig_atomic_t.m4: Likewise.
48395         * m4/signalblocking.m4: Likewise.
48396         * m4/signbit.m4: Likewise.
48397         * m4/sigpipe.m4: Likewise.
48398         * m4/sockets.m4: Likewise.
48399         * m4/sockpfaf.m4: Likewise.
48400         * m4/st_dm_mode.m4: Likewise.
48401         * m4/stat-time.m4: Likewise.
48402         * m4/stdbool.m4: Likewise.
48403         * m4/stdint.m4: Likewise.
48404         * m4/stdint_h.m4: Likewise.
48405         * m4/stpcpy.m4: Likewise.
48406         * m4/stpncpy.m4: Likewise.
48407         * m4/strcase.m4: Likewise.
48408         * m4/strchrnul.m4: Likewise.
48409         * m4/strcspn.m4: Likewise.
48410         * m4/strdup.m4: Likewise.
48411         * m4/strftime.m4: Likewise.
48412         * m4/strndup.m4: Likewise.
48413         * m4/strnlen.m4: Likewise.
48414         * m4/strpbrk.m4: Likewise.
48415         * m4/strptime.m4: Likewise.
48416         * m4/strsep.m4: Likewise.
48417         * m4/strtod.m4: Likewise.
48418         * m4/strtoimax.m4: Likewise.
48419         * m4/strtok_r.m4: Likewise.
48420         * m4/strtol.m4: Likewise.
48421         * m4/strtoll.m4: Likewise.
48422         * m4/strtoul.m4: Likewise.
48423         * m4/strtoull.m4: Likewise.
48424         * m4/strtoumax.m4: Likewise.
48425         * m4/strverscmp.m4: Likewise.
48426         * m4/threadlib.m4: Likewise.
48427         * m4/timegm.m4: Likewise.
48428         * m4/tm_gmtoff.m4: Likewise.
48429         * m4/tmpdir.m4: Likewise.
48430         * m4/tmpfile.m4: Likewise.
48431         * m4/tzset.m4: Likewise.
48432         * m4/uintmax_t.m4: Likewise.
48433         * m4/unlinkdir.m4: Likewise.
48434         * m4/unlocked-io.m4: Likewise.
48435         * m4/uptime.m4: Likewise.
48436         * m4/userspec.m4: Likewise.
48437         * m4/utimbuf.m4: Likewise.
48438         * m4/utime.m4: Likewise.
48439         * m4/utimes-null.m4: Likewise.
48440         * m4/utimes.m4: Likewise.
48441         * m4/vararrays.m4: Likewise.
48442         * m4/vasnprintf.m4: Likewise.
48443         * m4/vfprintf-posix.m4: Likewise.
48444         * m4/vprintf-posix.m4: Likewise.
48445         * m4/wait-process.m4: Likewise.
48446         * m4/wchar_t.m4: Likewise.
48447         * m4/wint_t.m4: Likewise.
48448         * m4/write-any-file.m4: Likewise.
48449         * m4/yield.m4: Likewise.
48450
48451 2009-01-13  Bruno Haible  <bruno@clisp.org>
48452
48453         Avoid test-copy-file.sh failures when ACL support insufficient.
48454         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48455         TESTS_ENVIRONMENT.
48456         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48457         Reported by Jim Meyering.
48458
48459 2009-01-13  Bruno Haible  <bruno@clisp.org>
48460
48461         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48462         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48463         * modules/unistdio/u8-printf-parse (Files): Likewise.
48464         * modules/unistdio/u32-printf-parse (Files): Likewise.
48465         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48466
48467 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48468
48469         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48470         and m4/inttypes_h.m4 too.
48471
48472 2009-01-12  Eric Blake  <ebb9@byu.net>
48473
48474         tests: IRIX 6.2 cc can't compile -0.0 into .data
48475         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48476         rather than at compile-time.
48477         * tests/test-floorl.c (minus_zero): Likewise.
48478         * tests/test-frexpl.c (minus_zero): Likewise.
48479         * tests/test-isnan.c (minus_zerol): Likewise.
48480         * tests/test-isnanl.h (minus_zero): Likewise.
48481         * tests/test-ldexpl.c (minus_zero): Likewise.
48482         * tests/test-roundl.c (minus_zero): Likewise.
48483         * tests/test-signbit.c (minus_zerol): Likewise.
48484         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48485         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48486         * tests/test-truncl.c (minus_zero): Likewise.
48487         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48488         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48489         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48490
48491 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48492
48493         regex: fix glibc bug 9697
48494         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48495         handling.
48496
48497 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48498
48499         regex: fix glibc bug 697
48500         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48501         being NULL also if there are no backreferences.
48502
48503 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48504
48505         regex: merge glibc changes
48506         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48507         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48508         re_string_skip_chars, re_string_reconstruct): Likewise.
48509         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48510
48511 2009-01-07  Jim Meyering  <meyering@redhat.com>
48512
48513         poll: filter through cppi
48514         * lib/poll.c: Indent cpp directives to reflect nesting.
48515
48516 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48517
48518         poll: don't return uninitialized
48519         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48520
48521 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48522
48523         avoid compile failure on AIX 6.1
48524         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48525         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48526
48527 2009-01-04  Jim Meyering  <meyering@redhat.com>
48528
48529         remove duplicate inclusion of <stdio.h>
48530         * tests/test-fprintf-posix.c: Likewise.
48531         * tests/test-printf-posix.c: Likewise.
48532         * tests/test-snprintf-posix.c: Likewise.
48533         * tests/test-sprintf-posix.c: Likewise.
48534         * tests/test-vasprintf-posix.c: Likewise.
48535         * tests/test-vfprintf-posix.c: Likewise.
48536         * tests/test-vprintf-posix.c: Likewise.
48537         * tests/test-vsnprintf-posix.c: Likewise.
48538         * tests/test-vsprintf-posix.c: Likewise.
48539
48540 2009-01-03  Jim Meyering  <meyering@redhat.com>
48541
48542         gnulib-tool: fix sed-based filtering
48543         * gnulib-tool (func_filter_filelist): Remove extra backslash
48544         in sed_fff_filter definition.
48545
48546 2009-01-02  Jim Meyering  <meyering@redhat.com>
48547
48548         strftime: avoid compilation failure on Solaris 2.6
48549         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48550         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48551         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48552         be available.  Reported by Tom G. Christensen.  Details in
48553         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48554
48555 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48556             Bruno Haible  <bruno@clisp.org>
48557
48558         Speed up gnulib-tool by doing more string processing through shell
48559         built-ins.
48560         * gnulib-tool (fast_func_append): New variable.
48561         (func_remove_prefix, func_remove_suffix): New functions.
48562         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48563         (func_filter_filelist): New function.
48564         (func_get_dependencies): Use func_remove_suffix instead of sed.
48565         (func_get_automake_snippet): Use func_filter_filelist instead of a
48566         subshell and sed invocation.
48567
48568 2009-01-01  Bruno Haible  <bruno@clisp.org>
48569
48570         Fix a security bug.
48571         * gnulib-tool (func_import, import, update): Don't allow the characters
48572         '"', '$', '`', '\' in macro arguments that become part of commands that
48573         are evaluated.
48574
48575 2009-01-01  Bruno Haible  <bruno@clisp.org>
48576
48577         * gnulib-tool (func_reset_sigpipe): Add more comments.
48578
48579 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48580
48581         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48582         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48583         already know the answer.
48584
48585 2009-01-01  Jim Meyering  <meyering@redhat.com>
48586
48587         * lib/version-etc.c (version_etc_va): Update copyright year.
48588
48589 2008-12-30  Bruno Haible  <bruno@clisp.org>
48590
48591         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48592         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48593         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48594
48595 2008-12-29  Eric Blake  <ebb9@byu.net>
48596
48597         multiarch: avoid autoconf AC_REQUIRE bug
48598         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48599         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48600         2.63 and older.
48601         Reported by Bruno Haible, and analyzed in
48602         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48603
48604 2008-12-29  Bruno Haible  <bruno@clisp.org>
48605
48606         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48607         files in subdirectories correctly.
48608         Reported by Ralf Wildenhues.
48609
48610 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48611
48612         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48613         rather than 'join FILE -', for Solaris join.
48614
48615 2008-12-29  Bruno Haible  <bruno@clisp.org>
48616
48617         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48618         quoting.
48619         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48620         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48621         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48622         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48623         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48624         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48625         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48626         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48627         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48628         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48629         * m4/nls.m4 (AM_NLS): Likewise.
48630         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48631         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48632         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48633         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48634         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48635         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48636         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48637         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48638         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48639         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48640         * m4/xsize.m4 (gl_XSIZE): Likewise.
48641         Suggested by Jim Meyering.
48642
48643 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48644
48645         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48646         * lib/parse-duration.c: use a switch instead of cascading if's.
48647
48648 2008-12-29  Eric Blake  <ebb9@byu.net>
48649
48650         wchar.h: supply WEOF on Irix 5.3
48651         * lib/wchar.in.h (wint_t): Also supply WEOF.
48652         * lib/wctype.in.h (wint_t): Likewise.
48653         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48654         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48655         Reported by Tom G. Christensen.
48656
48657 2008-12-26  Bruno Haible  <bruno@clisp.org>
48658
48659         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48660         i486, i586, i686.
48661
48662 2008-12-26  Bruno Haible  <bruno@clisp.org>
48663
48664         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48665
48666 2008-12-26  Bruno Haible  <bruno@clisp.org>
48667
48668         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48669         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48670         not __STDC_CONSTANT_MACROS.
48671         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48672
48673 2008-12-25  Bruno Haible  <bruno@clisp.org>
48674
48675         Add support for universal builds to vasnprintf.
48676         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48677         universal builds, guess no.
48678         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48679         * modules/vasprintf-posix (Depends-on): Likewise.
48680         * modules/fprintf-posix (Depends-on): Likewise.
48681         * modules/vfprintf-posix (Depends-on): Likewise.
48682         * modules/snprintf-posix (Depends-on): Likewise.
48683         * modules/vsnprintf-posix (Depends-on): Likewise.
48684         * modules/sprintf-posix (Depends-on): Likewise.
48685         * modules/vsprintf-posix (Depends-on): Likewise.
48686         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48687         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48688         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48689         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48690         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48691         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48692         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48693
48694         Add support for universal builds to <inttypes.h>.
48695         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48696         _SCNu64_PREFIX): In Apple
48697         universal builds, define directly, using _LP64.
48698         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48699         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48700         * modules/inttypes (Depends-on): Add multiarch.
48701         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48702
48703         Add support for universal builds to <stdint.h>.
48704         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48705         universal builds, define directly, using _LP64.
48706         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48707         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48708         and size_t.
48709         * modules/stdint (Depends-on): Add multiarch.
48710         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48711
48712         New module 'multiarch'.
48713         * modules/multiarch: New file.
48714         * m4/multiarch.m4: New file.
48715
48716 2008-12-25  Bruno Haible  <bruno@clisp.org>
48717
48718         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48719
48720 2008-12-25  Bruno Haible  <bruno@clisp.org>
48721
48722         * modules/btowc (License): Relicense under LGPLv2+.
48723         * modules/mbsinit (License): Likewise.
48724         * modules/mbrtowc (License): Likewise.
48725         * modules/wcrtomb (License): Likewise.
48726         * modules/streq (License): Likewise.
48727         Reported by David Lutterkort <lutter@redhat.com>.
48728
48729 2008-12-23  Bruno Haible  <bruno@clisp.org>
48730
48731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48732
48733 2008-12-23  Bruno Haible  <bruno@clisp.org>
48734
48735         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48736         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48737         GETADDRINFO_LIB, not in LIBS.
48738         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48739         * modules/canon-host (Link): Likewise.
48740         * NEWS: Mention the change.
48741         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48742         GETADDRINFO_LIB.
48743
48744 2008-12-22  Bruno Haible  <bruno@clisp.org>
48745
48746         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48747         * doc/posix-functions/iswalpha_l.texi: Likewise.
48748         * doc/posix-functions/iswblank_l.texi: Likewise.
48749         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48750         * doc/posix-functions/iswctype_l.texi: Likewise.
48751         * doc/posix-functions/iswdigit_l.texi: Likewise.
48752         * doc/posix-functions/iswgraph_l.texi: Likewise.
48753         * doc/posix-functions/iswlower_l.texi: Likewise.
48754         * doc/posix-functions/iswprint_l.texi: Likewise.
48755         * doc/posix-functions/iswpunct_l.texi: Likewise.
48756         * doc/posix-functions/iswspace_l.texi: Likewise.
48757         * doc/posix-functions/iswupper_l.texi: Likewise.
48758         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48759         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48760         * doc/posix-functions/open_wmemstream.texi: Likewise.
48761         * doc/posix-functions/swscanf.texi: Likewise.
48762         * doc/posix-functions/towctrans_l.texi: Likewise.
48763         * doc/posix-functions/towlower.texi: Likewise.
48764         * doc/posix-functions/towlower_l.texi: Likewise.
48765         * doc/posix-functions/towupper.texi: Likewise.
48766         * doc/posix-functions/towupper_l.texi: Likewise.
48767         * doc/posix-functions/vfwprintf.texi: Likewise.
48768         * doc/posix-functions/vfwscanf.texi: Likewise.
48769         * doc/posix-functions/vswscanf.texi: Likewise.
48770         * doc/posix-functions/vwprintf.texi: Likewise.
48771         * doc/posix-functions/vwscanf.texi: Likewise.
48772         * doc/posix-functions/wcpcpy.texi: Likewise.
48773         * doc/posix-functions/wcpncpy.texi: Likewise.
48774         * doc/posix-functions/wcscasecmp.texi: Likewise.
48775         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48776         * doc/posix-functions/wcscoll_l.texi: Likewise.
48777         * doc/posix-functions/wcsdup.texi: Likewise.
48778         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48779         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48780         * doc/posix-functions/wcsnlen.texi: Likewise.
48781         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48782         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48783         * doc/posix-functions/wctrans_l.texi: Likewise.
48784         * doc/posix-functions/wctype_l.texi: Likewise.
48785         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48786         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48787         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48788         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48789         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48790         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48791         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48792         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48793         * doc/glibc-functions/wcschrnul.texi: Likewise.
48794         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48795         * doc/glibc-functions/wcstod_l.texi: Likewise.
48796         * doc/glibc-functions/wcstof_l.texi: Likewise.
48797         * doc/glibc-functions/wcstol_l.texi: Likewise.
48798         * doc/glibc-functions/wcstold_l.texi: Likewise.
48799         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48800         * doc/glibc-functions/wcstoq.texi: Likewise.
48801         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48802         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48803         * doc/glibc-functions/wcstouq.texi: Likewise.
48804         * doc/glibc-functions/wmempcpy.texi: Likewise.
48805
48806 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48807             Eric Blake  <ebb9@byu.net>
48808             Paolo Bonzini  <bonzini@gnu.org>
48809             Bruno Haible  <bruno@clisp.org>
48810
48811         Make c-stack work on Haiku.
48812         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48813         (c_stack_action): Use SA_ONSTACK flag.
48814
48815 2008-12-22  Bruno Haible  <bruno@clisp.org>
48816
48817         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48818
48819 2008-12-22  Bruno Haible  <bruno@clisp.org>
48820
48821         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48822         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48823         being overridden.
48824         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48825         New macros.
48826         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48828         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48829         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48830
48831 2008-12-22  Bruno Haible  <bruno@clisp.org>
48832
48833         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48834         from test code.
48835
48836 2008-12-22  Eric Blake  <ebb9@byu.net>
48837
48838         Avoid gcc warnings on cygwin.
48839         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48840         Avoid unused variable.
48841         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48842         Likewise.
48843
48844 2008-12-22  Bruno Haible  <bruno@clisp.org>
48845
48846         Remove HAVE_MBRTOWC conditionals.
48847         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48848         (mbscasecmp): Assume mbrtowc function.
48849         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48850         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48851         * lib/mbschr.c: Include mbuiter.h unconditionally.
48852         (mbschr): Assume mbrtowc function.
48853         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48854         (mbscspn): Assume mbrtowc function.
48855         * lib/mbslen.c: Include mbuiter.h unconditionally.
48856         (mbslen): Assume mbrtowc function.
48857         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48858         (mbsncasecmp): Assume mbrtowc function.
48859         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48860         (mbsnlen): Assume mbrtowc function.
48861         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48862         (mbspbrk): Assume mbrtowc function.
48863         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48864         (mbspcasecmp): Assume mbrtowc function.
48865         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48866         (mbsrchr): Assume mbrtowc function.
48867         * lib/mbssep.c: Include mbuiter.h unconditionally.
48868         (mbssep): Assume mbrtowc function.
48869         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48870         (mbsspn): Assume mbrtowc function.
48871         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48872         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48873         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48874         (mbstok_r): Assume mbrtowc function.
48875         * lib/propername.c: Include mbuiter.h unconditionally.
48876         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48877         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48878         (trim2): Assume mbrtowc function.
48879         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48880         (mbsnwidth): Assume mbrtowc function.
48881         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48882         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48883         fallback definitions.
48884         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48885
48886 2008-12-22  Bruno Haible  <bruno@clisp.org>
48887
48888         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48889
48890 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48891
48892         * modules/regex: Request emulations for the mb*/wc* functions we need.
48893         * m4/regex.m4: Don't look for those functions here.
48894         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48895
48896 2008-12-22  Bruno Haible  <bruno@clisp.org>
48897
48898         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48899
48900 2008-12-21  Bruno Haible  <bruno@clisp.org>
48901
48902         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48903         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48904         (Include): Remove conditionalization.
48905         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48906         (Include): Remove conditionalization.
48907         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48908         (Include): Remove conditionalization.
48909         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48910         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48911         * NEWS: Mention the change.
48912         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48913         via Sergey Poznyakoff <gray@gnu.org.ua>.
48914
48915 2008-12-21  Bruno Haible  <bruno@clisp.org>
48916
48917         * MODULES.html.sh (Extended multibyte and wide character utilities
48918         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48919         wcrtomb, wcsrtombs.
48920         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48921         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48922         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48923         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48924
48925 2008-12-21  Bruno Haible  <bruno@clisp.org>
48926
48927         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48928
48929 2008-12-21  Bruno Haible  <bruno@clisp.org>
48930
48931         * modules/wcsnrtombs-tests: New file.
48932         * tests/test-wcsnrtombs1.sh: New file.
48933         * tests/test-wcsnrtombs2.sh: New file.
48934         * tests/test-wcsnrtombs3.sh: New file.
48935         * tests/test-wcsnrtombs4.sh: New file.
48936         * tests/test-wcsnrtombs.c: New file.
48937
48938         New module 'wcsnrtombs'.
48939         * lib/wchar.in.h (wcsnrtombs): New declaration.
48940         * lib/wcsnrtombs.c: New file.
48941         * lib/wcsrtombs-state.c: New file.
48942         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48943         (internal_state): Remove variable.
48944         * m4/wcsnrtombs.m4: New file.
48945         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48946         compilation units.
48947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48948         HAVE_WCSNRTOMBS.
48949         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48950         HAVE_WCSNRTOMBS.
48951         * modules/wcsnrtombs: New file.
48952         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48953         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48954
48955 2008-12-21  Bruno Haible  <bruno@clisp.org>
48956
48957         * modules/wcsrtombs-tests: New file.
48958         * tests/test-wcsrtombs1.sh: New file.
48959         * tests/test-wcsrtombs2.sh: New file.
48960         * tests/test-wcsrtombs3.sh: New file.
48961         * tests/test-wcsrtombs4.sh: New file.
48962         * tests/test-wcsrtombs.c: New file.
48963
48964         New module 'wcsrtombs'.
48965         * lib/wchar.in.h (wcsrtombs): New declaration.
48966         * lib/wcsrtombs.c: New file.
48967         * m4/wcsrtombs.m4: New file.
48968         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48969         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48971         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48972         * modules/wcsrtombs: New file.
48973         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48974         bugs.
48975
48976 2008-12-21  Bruno Haible  <bruno@clisp.org>
48977
48978         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48979         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48980         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48981         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48982         if not correct.
48983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48984         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48985         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48986         m4/locale-zh.m4, m4/codeset.m4.
48987         * doc/posix-functions/wcrtomb.texi: Document the bug.
48988
48989 2008-12-21  Bruno Haible  <bruno@clisp.org>
48990
48991         Work around a btowc() bug on IRIX 6.5.
48992         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48993         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48994         REPLACE_WTOBC if not.
48995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48996         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48997         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48998
48999 2008-12-21  Bruno Haible  <bruno@clisp.org>
49000
49001         * modules/wcrtomb-tests: New file.
49002         * tests/test-wcrtomb.sh: New file.
49003         * tests/test-wcrtomb.c: New file.
49004
49005         New module 'wcrtomb'.
49006         * lib/wchar.in.h (wcrtomb): New declaration.
49007         * lib/wcrtomb.c: New file.
49008         * m4/wcrtomb.m4: New file.
49009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49010         HAVE_WCRTOMB.
49011         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49012         HAVE_WCRTOMB.
49013         * modules/wcrtomb: New file.
49014         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49015
49016 2008-12-21  Bruno Haible  <bruno@clisp.org>
49017
49018         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49019         * modules/mbsrtowcs (Files): Likewise.
49020         * modules/wctob (Files): Likewise.
49021         * modules/c-strcase-tests (Files): Likewise.
49022         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49023         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49024         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49025         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49026         * modules/vasnprintf-posix-tests (Files): Likewise.
49027
49028 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49029
49030         gitlog-to-changelog: pass all command-line arguments to git-log
49031         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49032         it is sometimes convenient to filter the commits in various ways.
49033         gitlog-to-changelog only allows --since to specify a start date,
49034         but git-log itself supports many other filtering mechanisms.
49035         At the moment, I want to filter by branch name.  Rather than
49036         adding a --branch option to gitlog-to-changelog, it seems more
49037         flexible to simply pass all options directly to git-log and let
49038         git do the work.  Notice that this effectively makes --since a
49039         redundant option for gitlog-to-changelog, but removing it would
49040         require current usage to change since calls would then require
49041         an additional '--'.
49042
49043 2008-12-21  Bruno Haible  <bruno@clisp.org>
49044
49045         * modules/mbsnrtowcs-tests: New file.
49046         * tests/test-mbsnrtowcs1.sh: New file.
49047         * tests/test-mbsnrtowcs2.sh: New file.
49048         * tests/test-mbsnrtowcs3.sh: New file.
49049         * tests/test-mbsnrtowcs4.sh: New file.
49050         * tests/test-mbsnrtowcs.c: New file.
49051
49052         New module 'mbsnrtowcs'.
49053         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49054         * lib/mbsnrtowcs.c: New file.
49055         * lib/mbsrtowcs-state.c: New file.
49056         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49057         (internal_state): Remove variable.
49058         * m4/mbsnrtowcs.m4: New file.
49059         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49060         compilation units.
49061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49062         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49063         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49064         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49065         * modules/mbsnrtowcs: New file.
49066         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49067         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49068         portability problem.
49069
49070 2008-12-21  Bruno Haible  <bruno@clisp.org>
49071
49072         Work around mbsrtowcs bug.
49073         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49074         (gl_FUNC_MBSRTOWCS): Invoke it.
49075         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49076         m4/locale-zh.m4.
49077         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49078
49079 2008-12-21  Bruno Haible  <bruno@clisp.org>
49080
49081         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49082
49083 2008-12-21  Bruno Haible  <bruno@clisp.org>
49084
49085         Update doc for AIX.
49086         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49087         16-bit wchar_t type.
49088         * doc/posix-functions/btowc.texi: Likewise.
49089         * doc/posix-functions/fgetwc.texi: Likewise.
49090         * doc/posix-functions/fgetws.texi: Likewise.
49091         * doc/posix-functions/fputwc.texi: Likewise.
49092         * doc/posix-functions/fputws.texi: Likewise.
49093         * doc/posix-functions/fwide.texi: Likewise.
49094         * doc/posix-functions/fwprintf.texi: Likewise.
49095         * doc/posix-functions/fwscanf.texi: Likewise.
49096         * doc/posix-functions/getwchar.texi: Likewise.
49097         * doc/posix-functions/getwc.texi: Likewise.
49098         * doc/posix-functions/iswalnum.texi: Likewise.
49099         * doc/posix-functions/iswalpha.texi: Likewise.
49100         * doc/posix-functions/iswblank.texi: Likewise.
49101         * doc/posix-functions/iswcntrl.texi: Likewise.
49102         * doc/posix-functions/iswctype.texi: Likewise.
49103         * doc/posix-functions/iswdigit.texi: Likewise.
49104         * doc/posix-functions/iswgraph.texi: Likewise.
49105         * doc/posix-functions/iswlower.texi: Likewise.
49106         * doc/posix-functions/iswprint.texi: Likewise.
49107         * doc/posix-functions/iswpunct.texi: Likewise.
49108         * doc/posix-functions/iswspace.texi: Likewise.
49109         * doc/posix-functions/iswupper.texi: Likewise.
49110         * doc/posix-functions/iswxdigit.texi: Likewise.
49111         * doc/posix-functions/mbrtowc.texi: Likewise.
49112         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49113         * doc/posix-functions/mbstowcs.texi: Likewise.
49114         * doc/posix-functions/mbtowc.texi: Likewise.
49115         * doc/posix-functions/putwchar.texi: Likewise.
49116         * doc/posix-functions/putwc.texi: Likewise.
49117         * doc/posix-functions/swprintf.texi: Likewise.
49118         * doc/posix-functions/tolower.texi: Likewise.
49119         * doc/posix-functions/toupper.texi: Likewise.
49120         * doc/posix-functions/towctrans.texi: Likewise.
49121         * doc/posix-functions/ungetwc.texi: Likewise.
49122         * doc/posix-functions/vswprintf.texi: Likewise.
49123         * doc/posix-functions/wcrtomb.texi: Likewise.
49124         * doc/posix-functions/wcscat.texi: Likewise.
49125         * doc/posix-functions/wcschr.texi: Likewise.
49126         * doc/posix-functions/wcscmp.texi: Likewise.
49127         * doc/posix-functions/wcscoll.texi: Likewise.
49128         * doc/posix-functions/wcscpy.texi: Likewise.
49129         * doc/posix-functions/wcscspn.texi: Likewise.
49130         * doc/posix-functions/wcsftime.texi: Likewise.
49131         * doc/posix-functions/wcslen.texi: Likewise.
49132         * doc/posix-functions/wcsncat.texi: Likewise.
49133         * doc/posix-functions/wcsncmp.texi: Likewise.
49134         * doc/posix-functions/wcsncpy.texi: Likewise.
49135         * doc/posix-functions/wcspbrk.texi: Likewise.
49136         * doc/posix-functions/wcsrchr.texi: Likewise.
49137         * doc/posix-functions/wcsrtombs.texi: Likewise.
49138         * doc/posix-functions/wcsspn.texi: Likewise.
49139         * doc/posix-functions/wcsstr.texi: Likewise.
49140         * doc/posix-functions/wcstod.texi: Likewise.
49141         * doc/posix-functions/wcstof.texi: Likewise.
49142         * doc/posix-functions/wcstoimax.texi: Likewise.
49143         * doc/posix-functions/wcstok.texi: Likewise.
49144         * doc/posix-functions/wcstold.texi: Likewise.
49145         * doc/posix-functions/wcstoll.texi: Likewise.
49146         * doc/posix-functions/wcstol.texi: Likewise.
49147         * doc/posix-functions/wcstombs.texi: Likewise.
49148         * doc/posix-functions/wcstoull.texi: Likewise.
49149         * doc/posix-functions/wcstoul.texi: Likewise.
49150         * doc/posix-functions/wcstoumax.texi: Likewise.
49151         * doc/posix-functions/wcswidth.texi: Likewise.
49152         * doc/posix-functions/wcsxfrm.texi: Likewise.
49153         * doc/posix-functions/wctob.texi: Likewise.
49154         * doc/posix-functions/wctomb.texi: Likewise.
49155         * doc/posix-functions/wctrans.texi: Likewise.
49156         * doc/posix-functions/wctype.texi: Likewise.
49157         * doc/posix-functions/wcwidth.texi: Likewise.
49158         * doc/posix-functions/wmemchr.texi: Likewise.
49159         * doc/posix-functions/wmemcmp.texi: Likewise.
49160         * doc/posix-functions/wmemcpy.texi: Likewise.
49161         * doc/posix-functions/wmemmove.texi: Likewise.
49162         * doc/posix-functions/wmemset.texi: Likewise.
49163         * doc/posix-functions/wprintf.texi: Likewise.
49164         * doc/posix-functions/wscanf.texi: Likewise.
49165
49166 2008-12-21  Bruno Haible  <bruno@clisp.org>
49167
49168         Update doc for HP-UX 11.11.
49169         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49170         in HP-UX version 11.00, not in all versions of HP-UX 11.
49171         * doc/posix-functions/fwide.texi: Likewise.
49172         * doc/posix-functions/fwprintf.texi: Likewise.
49173         * doc/posix-functions/fwscanf.texi: Likewise.
49174         * doc/posix-functions/inet_ntop.texi: Likewise.
49175         * doc/posix-functions/inet_pton.texi: Likewise.
49176         * doc/posix-functions/mbrlen.texi: Likewise.
49177         * doc/posix-functions/mbrtowc.texi: Likewise.
49178         * doc/posix-functions/mbsinit.texi: Likewise.
49179         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49180         * doc/posix-functions/swprintf.texi: Likewise.
49181         * doc/posix-functions/swscanf.texi: Likewise.
49182         * doc/posix-functions/towctrans.texi: Likewise.
49183         * doc/posix-functions/vfwprintf.texi: Likewise.
49184         * doc/posix-functions/vswprintf.texi: Likewise.
49185         * doc/posix-functions/vwprintf.texi: Likewise.
49186         * doc/posix-functions/wcrtomb.texi: Likewise.
49187         * doc/posix-functions/wcsrtombs.texi: Likewise.
49188         * doc/posix-functions/wcsstr.texi: Likewise.
49189         * doc/posix-functions/wctob.texi: Likewise.
49190         * doc/posix-functions/wctrans.texi: Likewise.
49191         * doc/posix-functions/wmemchr.texi: Likewise.
49192         * doc/posix-functions/wmemcmp.texi: Likewise.
49193         * doc/posix-functions/wmemcpy.texi: Likewise.
49194         * doc/posix-functions/wmemmove.texi: Likewise.
49195         * doc/posix-functions/wmemset.texi: Likewise.
49196         * doc/posix-functions/wprintf.texi: Likewise.
49197         * doc/posix-functions/wscanf.texi: Likewise.
49198
49199 2008-12-21  Bruno Haible  <bruno@clisp.org>
49200
49201         Work around a portability problem.
49202         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49203         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49204
49205 2008-12-20  Bruno Haible  <bruno@clisp.org>
49206
49207         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49208         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49209         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49210         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49211         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49212
49213         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49214         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49215         set.
49216         (GNULIB_defined_mbstate_t): New macro.
49217         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49218         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49219         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49220         reuses the system's mbrtowc function but works around the bugs.
49221         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49222         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49223         macros.
49224         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49225         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49226         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49227         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49228         REPLACE_MBSINIT if mbsinit needs to be overridden.
49229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49230         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49231         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49232         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49233         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49234         m4/locale-zh.m4.
49235         (Depends): Add mbsinit.
49236         * modules/mbsinit (Depends): Add mbrtowc.
49237         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49238
49239 2008-12-20  Bruno Haible  <bruno@clisp.org>
49240
49241         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49242         so that there are no conversion errors on AIX.
49243         * tests/test-mbsrtowcs.c (main): LIkewise.
49244
49245 2008-12-20  Bruno Haible  <bruno@clisp.org>
49246
49247         Work around wctob bug on Solaris <= 9.
49248         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49249         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49250         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49251         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49252         * modules/wctob (Files): Add m4/locale-fr.m4.
49253         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49254
49255 2008-12-20  Bruno Haible  <bruno@clisp.org>
49256
49257         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49258         /dev/null.
49259         * tests/test-select-in.sh: Likewise.
49260         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49261
49262 2008-12-20  Bruno Haible  <bruno@clisp.org>
49263
49264         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49265         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49266         Cygwin 1.5.x.
49267
49268 2008-12-20  Bruno Haible  <bruno@clisp.org>
49269
49270         Ensure mbstate_t is defined on HP-UX 11.11.
49271         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49272         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49273         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49274         AC_USE_SYSTEM_EXTENSIONS.
49275         * modules/fnmatch (Depends-on): Add extensions.
49276         * modules/mbrlen (Depends-on): Likewise.
49277         * modules/mbrtowc (Depends-on): Likewise.
49278         * modules/mbsinit (Depends-on): Likewise.
49279         * modules/mbsrtowcs (Depends-on): Likewise.
49280         * modules/mbswidth (Depends-on): Likewise.
49281         * modules/quotearg (Depends-on): Likewise.
49282         * modules/strftime (Depends-on): Likewise.
49283
49284 2008-12-20  Bruno Haible  <bruno@clisp.org>
49285
49286         Ensure wctob is declared on IRIX 6.5.
49287         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49288         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49289         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49290         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49291         of HAVE_WCTOB.
49292         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49293         HAVE_WCTOB.
49294         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49295
49296 2008-12-19  Bruno Haible  <bruno@clisp.org>
49297
49298         * modules/mbsrtowcs-tests: New file.
49299         * tests/test-mbsrtowcs1.sh: New file.
49300         * tests/test-mbsrtowcs2.sh: New file.
49301         * tests/test-mbsrtowcs3.sh: New file.
49302         * tests/test-mbsrtowcs4.sh: New file.
49303         * tests/test-mbsrtowcs.c: New file.
49304
49305         New module 'mbsrtowcs'.
49306         * lib/wchar.in.h (mbsrtowcs): New declaration.
49307         * lib/mbsrtowcs.c: New file.
49308         * m4/mbsrtowcs.m4: New file.
49309         * modules/mbsrtowcs: New file.
49310         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49311         HAVE_MBSRTOWCS.
49312         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49313         HAVE_MBSRTOWCS.
49314         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49315
49316 2008-12-19  Bruno Haible  <bruno@clisp.org>
49317
49318         New module 'mbrlen'.
49319         * lib/wchar.in.h (mbrlen): New declaration.
49320         * lib/mbrlen.c: New file.
49321         * m4/mbrlen.m4: New file.
49322         * modules/mbrlen: New file.
49323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49324         HAVE_MBRLEN.
49325         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49326         HAVE_MBRLEN.
49327         * doc/posix-functions/mbrlen.texi: Document the new module.
49328
49329 2008-12-19  Bruno Haible  <bruno@clisp.org>
49330
49331         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49332         * modules/mbrtowc (Depends-on): Add verify.
49333         Suggested by Paul Eggert.
49334
49335 2008-12-18  Bruno Haible  <bruno@clisp.org>
49336
49337         * modules/mbsinit-tests: New file.
49338         * tests/test-mbsinit.sh: New file.
49339         * tests/test-mbsinit.c: New file.
49340
49341 2008-12-18  Bruno Haible  <bruno@clisp.org>
49342
49343         * modules/mbrtowc-tests: New file.
49344         * tests/test-mbrtowc1.sh: New file.
49345         * tests/test-mbrtowc2.sh: New file.
49346         * tests/test-mbrtowc3.sh: New file.
49347         * tests/test-mbrtowc4.sh: New file.
49348         * tests/test-mbrtowc.c: New file.
49349
49350         New module 'mbrtowc'.
49351         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49352         mbsinit and mbrtowc.
49353         (mbrtowc): New declaration.
49354         * lib/mbrtowc.c: New file.
49355         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49356         * modules/mbrtowc: New file.
49357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49358         HAVE_MBRTOWC.
49359         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49360         HAVE_MBRTOWC.
49361         * doc/posix-functions/mbrtowc.texi: Document the new module.
49362
49363 2008-12-18  Bruno Haible  <bruno@clisp.org>
49364
49365         New module 'wctob'.
49366         * lib/wchar.in.h (wctob): New declaration.
49367         * lib/wctob.c: New file.
49368         * m4/wctob.m4: New file.
49369         * modules/wctob: New file.
49370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49371         HAVE_WCTOB.
49372         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49373         * doc/posix-functions/wctob.texi: Document the new module.
49374
49375 2008-12-18  Bruno Haible  <bruno@clisp.org>
49376
49377         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49378         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49379
49380 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49381
49382         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49383         G. Christensen" <tgc@jupiterrise.com>.
49384
49385         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49386         G. Christensen" <tgc@jupiterrise.com>.
49387
49388         * lib/flock.c: Need to include string.h.  Reported by "Tom
49389         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49390         <ebb9@byu.net>.
49391
49392 2008-12-18  Bruno Haible  <bruno@clisp.org>
49393
49394         * m4/locale-ja.m4: New file, from GNU gettext.
49395
49396 2008-12-17  Bruno Haible  <bruno@clisp.org>
49397
49398         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49399         Suggested by Eric Blake.
49400
49401 2008-12-17  Bruno Haible  <bruno@clisp.org>
49402
49403         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49404
49405 2008-12-17  Bruno Haible  <bruno@clisp.org>
49406
49407         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49408         * modules/mbsinit (Depends-on): Add verify.
49409         Suggested by Paul Eggert.
49410
49411 2008-12-17  Bruno Haible  <bruno@clisp.org>
49412
49413         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49414         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49415         gl_FUNC_MBRTOWC.
49416         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49417         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49418         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49419         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49420         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49421         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49422         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49423         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49424         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49425         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49426         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49427         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49428         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49429         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49430         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49431         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49432         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49433         * modules/trim (configure.ac): Likewise.
49434
49435 2008-12-17  Bruno Haible  <bruno@clisp.org>
49436
49437         * modules/btowc-tests: New file.
49438         * tests/test-btowc1.sh: New file.
49439         * tests/test-btowc2.sh: New file.
49440         * tests/test-btowc.c: New file.
49441
49442         New module 'btowc'.
49443         * lib/wchar.in.h (btowc): New declaration.
49444         * lib/btowc.c: New file.
49445         * m4/btowc.m4: New file.
49446         * modules/btowc: New file.
49447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49448         HAVE_BTOWC.
49449         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49450         * doc/posix-functions/btowc.texi: Document the new module.
49451
49452 2008-12-17  Bruno Haible  <bruno@clisp.org>
49453
49454         New module 'mbsinit'.
49455         * lib/wchar.in.h (mbsinit): New declaration.
49456         * lib/mbsinit.c: New file.
49457         * m4/mbsinit.m4: New file.
49458         * modules/mbsinit: New file.
49459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49460         HAVE_MBSINIT.
49461         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49462         HAVE_MBSINIT.
49463         * doc/posix-functions/mbsinit.texi: Document the new module.
49464
49465 2008-12-16  Bruno Haible  <bruno@clisp.org>
49466
49467         * lib/unistd.in.h: Add comment.
49468         * tests/test-environ.c: Don't include <stdlib.h>.
49469
49470 2008-12-16  Bruno Haible  <bruno@clisp.org>
49471
49472         * lib/parse-duration.h (parse_duration): Document return value
49473         convention.
49474         * lib/parse-duration.c: Include specification header first. Add
49475         comments.
49476         (_): Remove macro.
49477         (parse_year_month_day, parse_hour_minute_second): Move side effects
49478         outside of strchr call.
49479         (parse_non_iso8601): Move side effects outside of isspace call.
49480         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49481         call.
49482
49483 2008-12-16  Bruno Haible  <bruno@clisp.org>
49484
49485         * tests/test-parse-duration.sh: Produce no output when the test
49486         succeeds.
49487
49488 2008-12-16  Bruno Haible  <bruno@clisp.org>
49489
49490         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49491         expressions.
49492
49493 2008-12-15  Bruno Haible  <bruno@clisp.org>
49494
49495         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49496         * doc/glibc-functions/flistxattr.texi: Likewise.
49497         * doc/glibc-functions/fopencookie.texi: Likewise.
49498         * doc/glibc-functions/fremovexattr.texi: Likewise.
49499         * doc/glibc-functions/fsetxattr.texi: Likewise.
49500         * doc/glibc-functions/getxattr.texi: Likewise.
49501         * doc/glibc-functions/lgetxattr.texi: Likewise.
49502         * doc/glibc-functions/listxattr.texi: Likewise.
49503         * doc/glibc-functions/llistxattr.texi: Likewise.
49504         * doc/glibc-functions/lremovexattr.texi: Likewise.
49505         * doc/glibc-functions/lsetxattr.texi: Likewise.
49506         * doc/glibc-functions/removexattr.texi: Likewise.
49507         * doc/glibc-functions/setxattr.texi: Likewise.
49508         * doc/posix-functions/open_memstream.texi: Likewise.
49509
49510 2008-12-15  Eric Blake  <ebb9@byu.net>
49511
49512         Update doc for cygwin 1.7.
49513         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49514         functions.
49515         * doc/posix-functions/fchmodat.texi: Likewise.
49516         * doc/posix-functions/fchownat.texi: Likewise.
49517         * doc/posix-functions/fdopendir.texi: Likewise.
49518         * doc/posix-functions/fmemopen.texi: Likewise.
49519         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49520         * doc/posix-functions/fstatat.texi: Likewise.
49521         * doc/posix-functions/futimens.texi: Likewise.
49522         * doc/posix-functions/gai_strerror.texi: Likewise.
49523         * doc/posix-functions/getaddrinfo.texi: Likewise.
49524         * doc/posix-functions/getnameinfo.texi: Likewise.
49525         * doc/posix-functions/if_freenameindex.texi: Likewise.
49526         * doc/posix-functions/if_indextoname.texi: Likewise.
49527         * doc/posix-functions/if_nameindex.texi: Likewise.
49528         * doc/posix-functions/if_nametoindex.texi: Likewise.
49529         * doc/posix-functions/insque.texi: Likewise.
49530         * doc/posix-functions/linkat.texi: Likewise.
49531         * doc/posix-functions/llrint.texi: Likewise.
49532         * doc/posix-functions/llrintf.texi: Likewise.
49533         * doc/posix-functions/llrintl.texi: Likewise.
49534         * doc/posix-functions/lockf.texi: Likewise.
49535         * doc/posix-functions/lrintl.texi: Likewise.
49536         * doc/posix-functions/mkdirat.texi: Likewise.
49537         * doc/posix-functions/mkfifoat.texi: Likewise.
49538         * doc/posix-functions/mknodat.texi: Likewise.
49539         * doc/posix-functions/mq_close.texi: Likewise.
49540         * doc/posix-functions/mq_getattr.texi: Likewise.
49541         * doc/posix-functions/mq_notify.texi: Likewise.
49542         * doc/posix-functions/mq_open.texi: Likewise.
49543         * doc/posix-functions/mq_receive.texi: Likewise.
49544         * doc/posix-functions/mq_send.texi: Likewise.
49545         * doc/posix-functions/mq_setattr.texi: Likewise.
49546         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49547         * doc/posix-functions/mq_timedsend.texi: Likewise.
49548         * doc/posix-functions/mq_unlink.texi: Likewise.
49549         * doc/posix-functions/open_memstream.texi: Likewise.
49550         * doc/posix-functions/openat.texi: Likewise.
49551         * doc/posix-functions/posix_fadvise.texi: Likewise.
49552         * doc/posix-functions/posix_fallocate.texi: Likewise.
49553         * doc/posix-functions/posix_madvise.texi: Likewise.
49554         * doc/posix-functions/posix_memalign.texi: Likewise.
49555         * doc/posix-functions/posix_openpt.texi: Likewise.
49556         * doc/posix-functions/readlinkat.texi: Likewise.
49557         * doc/posix-functions/remque.texi: Likewise.
49558         * doc/posix-functions/renameat.texi: Likewise.
49559         * doc/posix-functions/rintl.texi: Likewise.
49560         * doc/posix-functions/sem_unlink.texi: Likewise.
49561         * doc/posix-functions/shm_open.texi: Likewise.
49562         * doc/posix-functions/shm_unlink.texi: Likewise.
49563         * doc/posix-functions/signgam.texi: Likewise.
49564         * doc/posix-functions/sigset.texi: Likewise.
49565         * doc/posix-functions/stpcpy.texi: Likewise.
49566         * doc/posix-functions/stpncpy.texi: Likewise.
49567         * doc/posix-functions/strerror.texi: Likewise.
49568         * doc/posix-functions/strtod.texi: Likewise.
49569         * doc/posix-functions/symlinkat.texi: Likewise.
49570         * doc/posix-functions/unlinkat.texi: Likewise.
49571         * doc/posix-functions/utimensat.texi: Likewise.
49572         * doc/glibc-functions/bindresvport.texi: Likewise.
49573         * doc/glibc-functions/dn_expand.texi: Likewise.
49574         * doc/glibc-functions/exp10.texi: Likewise.
49575         * doc/glibc-functions/exp10f.texi: Likewise.
49576         * doc/glibc-functions/fgetxattr.texi: Likewise.
49577         * doc/glibc-functions/flistxattr.texi: Likewise.
49578         * doc/glibc-functions/fopencookie.texi: Likewise.
49579         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49580         * doc/glibc-functions/fremovexattr.texi: Likewise.
49581         * doc/glibc-functions/fsetxattr.texi: Likewise.
49582         * doc/glibc-functions/getifaddrs.texi: Likewise.
49583         * doc/glibc-functions/getxattr.texi: Likewise.
49584         * doc/glibc-functions/lgetxattr.texi: Likewise.
49585         * doc/glibc-functions/listxattr.texi: Likewise.
49586         * doc/glibc-functions/llistxattr.texi: Likewise.
49587         * doc/glibc-functions/lremovexattr.texi: Likewise.
49588         * doc/glibc-functions/lsetxattr.texi: Likewise.
49589         * doc/glibc-functions/pow10.texi: Likewise.
49590         * doc/glibc-functions/pow10f.texi: Likewise.
49591         * doc/glibc-functions/rcmd_af.texi: Likewise.
49592         * doc/glibc-functions/removexattr.texi: Likewise.
49593         * doc/glibc-functions/res_init.texi: Likewise.
49594         * doc/glibc-functions/res_mkquery.texi: Likewise.
49595         * doc/glibc-functions/res_query.texi: Likewise.
49596         * doc/glibc-functions/res_querydomain.texi: Likewise.
49597         * doc/glibc-functions/res_send.texi: Likewise.
49598         * doc/glibc-functions/rresvport_af.texi: Likewise.
49599         * doc/glibc-functions/setxattr.texi: Likewise.
49600         * doc/glibc-functions/strcasestr.texi: Likewise.
49601
49602 2008-12-15  Bruno Haible  <bruno@clisp.org>
49603
49604         Fix compilation error on OSF/1 4.0.
49605         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49606         <sys/time.h>, simply delegate to the system header.
49607         Reported by Daniel Richard G. <oss@teragram.com>.
49608
49609 2008-12-15  Bruno Haible  <bruno@clisp.org>
49610
49611         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49612         * doc/posix-functions/fchmodat.texi: Likewise.
49613         * doc/posix-functions/fchownat.texi: Likewise.
49614         * doc/posix-functions/fdopendir.texi: Likewise.
49615         * doc/posix-functions/fstatat.texi: Likewise.
49616         * doc/posix-functions/mkdirat.texi: Likewise.
49617         * doc/posix-functions/unlinkat.texi: Likewise.
49618
49619 2008-12-14  Bruno Haible  <bruno@clisp.org>
49620
49621         Update doc for POSIX:2008.
49622         * doc/posix-functions/faccessat.texi: New file.
49623         * doc/posix-functions/fchmodat.texi: New file.
49624         * doc/posix-functions/fchownat.texi: New file.
49625         * doc/posix-functions/fdopendir.texi: New file.
49626         * doc/posix-functions/fstatat.texi: New file.
49627         * doc/posix-functions/futimens.texi: New file.
49628         * doc/posix-functions/linkat.texi: New file.
49629         * doc/posix-functions/mkdirat.texi: New file.
49630         * doc/posix-functions/mkfifoat.texi: New file.
49631         * doc/posix-functions/mknodat.texi: New file.
49632         * doc/posix-functions/open_wmemstream.texi: New file.
49633         * doc/posix-functions/openat.texi: New file.
49634         * doc/posix-functions/psiginfo.texi: New file.
49635         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49636         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49637         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49638         * doc/posix-functions/readlinkat.texi: New file.
49639         * doc/posix-functions/renameat.texi: New file.
49640         * doc/posix-functions/strerror_l.texi: New file.
49641         * doc/posix-functions/symlinkat.texi: New file.
49642         * doc/posix-functions/unlinkat.texi: New file.
49643         * doc/posix-functions/utimensat.texi: New file.
49644         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49645
49646 2008-12-14  Bruno Haible  <bruno@clisp.org>
49647
49648         Update doc for POSIX:2008.
49649         * doc/posix-functions/alphasort.texi: Renamed from
49650         doc/glibc-functions/alphasort.texi.
49651         * doc/posix-functions/dirfd.texi: Renamed from
49652         doc/glibc-functions/dirfd.texi.
49653         * doc/posix-functions/dprintf.texi: Renamed from
49654         doc/glibc-functions/dprintf.texi.
49655         * doc/posix-functions/duplocale.texi: Renamed from
49656         doc/glibc-functions/duplocale.texi.
49657         * doc/posix-functions/fexecve.texi: Renamed from
49658         doc/glibc-functions/fexecve.texi.
49659         * doc/posix-functions/fmemopen.texi: Renamed from
49660         doc/glibc-functions/fmemopen.texi.
49661         * doc/posix-functions/freelocale.texi: Renamed from
49662         doc/glibc-functions/freelocale.texi.
49663         * doc/posix-functions/getdate_err.texi: Renamed from
49664         doc/glibc-functions/getdate_err.texi.
49665         * doc/posix-functions/isalnum_l.texi: Renamed from
49666         doc/glibc-functions/isalnum_l.texi.
49667         * doc/posix-functions/isalpha_l.texi: Renamed from
49668         doc/glibc-functions/isalpha_l.texi.
49669         * doc/posix-functions/isblank_l.texi: Renamed from
49670         doc/glibc-functions/isblank_l.texi.
49671         * doc/posix-functions/iscntrl_l.texi: Renamed from
49672         doc/glibc-functions/iscntrl_l.texi.
49673         * doc/posix-functions/isdigit_l.texi: Renamed from
49674         doc/glibc-functions/isdigit_l.texi.
49675         * doc/posix-functions/isgraph_l.texi: Renamed from
49676         doc/glibc-functions/isgraph_l.texi.
49677         * doc/posix-functions/islower_l.texi: Renamed from
49678         doc/glibc-functions/islower_l.texi.
49679         * doc/posix-functions/isprint_l.texi: Renamed from
49680         doc/glibc-functions/isprint_l.texi.
49681         * doc/posix-functions/ispunct_l.texi: Renamed from
49682         doc/glibc-functions/ispunct_l.texi.
49683         * doc/posix-functions/isspace_l.texi: Renamed from
49684         doc/glibc-functions/isspace_l.texi.
49685         * doc/posix-functions/isupper_l.texi: Renamed from
49686         doc/glibc-functions/isupper_l.texi.
49687         * doc/posix-functions/iswalnum_l.texi: Renamed from
49688         doc/glibc-functions/iswalnum_l.texi.
49689         * doc/posix-functions/iswalpha_l.texi: Renamed from
49690         doc/glibc-functions/iswalpha_l.texi.
49691         * doc/posix-functions/iswblank_l.texi: Renamed from
49692         doc/glibc-functions/iswblank_l.texi.
49693         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49694         doc/glibc-functions/iswcntrl_l.texi.
49695         * doc/posix-functions/iswctype_l.texi: Renamed from
49696         doc/glibc-functions/iswctype_l.texi.
49697         * doc/posix-functions/iswdigit_l.texi: Renamed from
49698         doc/glibc-functions/iswdigit_l.texi.
49699         * doc/posix-functions/iswgraph_l.texi: Renamed from
49700         doc/glibc-functions/iswgraph_l.texi.
49701         * doc/posix-functions/iswlower_l.texi: Renamed from
49702         doc/glibc-functions/iswlower_l.texi.
49703         * doc/posix-functions/iswprint_l.texi: Renamed from
49704         doc/glibc-functions/iswprint_l.texi.
49705         * doc/posix-functions/iswpunct_l.texi: Renamed from
49706         doc/glibc-functions/iswpunct_l.texi.
49707         * doc/posix-functions/iswspace_l.texi: Renamed from
49708         doc/glibc-functions/iswspace_l.texi.
49709         * doc/posix-functions/iswupper_l.texi: Renamed from
49710         doc/glibc-functions/iswupper_l.texi.
49711         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49712         doc/glibc-functions/iswxdigit_l.texi.
49713         * doc/posix-functions/isxdigit_l.texi: Renamed from
49714         doc/glibc-functions/isxdigit_l.texi.
49715         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49716         doc/glibc-functions/mbsnrtowcs.texi.
49717         * doc/posix-functions/mkdtemp.texi: Renamed from
49718         doc/glibc-functions/mkdtemp.texi.
49719         * doc/posix-functions/newlocale.texi: Renamed from
49720         doc/glibc-functions/newlocale.texi.
49721         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49722         doc/glibc-functions/nl_langinfo_l.texi.
49723         * doc/posix-functions/open_memstream.texi: Renamed from
49724         doc/glibc-functions/open_memstream.texi.
49725         * doc/posix-functions/opterr.texi: Renamed from
49726         doc/glibc-functions/opterr.texi.
49727         * doc/posix-functions/optind.texi: Renamed from
49728         doc/glibc-functions/optind.texi.
49729         * doc/posix-functions/optopt.texi: Renamed from
49730         doc/glibc-functions/optopt.texi.
49731         * doc/posix-functions/psignal.texi: Renamed from
49732         doc/glibc-functions/psignal.texi.
49733         * doc/posix-functions/scandir.texi: Renamed from
49734         doc/glibc-functions/scandir.texi.
49735         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49736         doc/glibc-functions/sched_get_priority_min.texi.
49737         * doc/posix-functions/signgam.texi: Renamed from
49738         doc/glibc-functions/signgam.texi.
49739         * doc/posix-functions/stpcpy.texi: Renamed from
49740         doc/glibc-functions/stpcpy.texi.
49741         * doc/posix-functions/stpncpy.texi: Renamed from
49742         doc/glibc-functions/stpncpy.texi.
49743         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49744         doc/glibc-functions/strcasecmp_l.texi.
49745         * doc/posix-functions/strcoll_l.texi: Renamed from
49746         doc/glibc-functions/strcoll_l.texi.
49747         * doc/posix-functions/strfmon_l.texi: Renamed from
49748         doc/glibc-functions/strfmon_l.texi.
49749         * doc/posix-functions/strftime_l.texi: Renamed from
49750         doc/glibc-functions/strftime_l.texi.
49751         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49752         doc/glibc-functions/strncasecmp_l.texi.
49753         * doc/posix-functions/strndup.texi: Renamed from
49754         doc/glibc-functions/strndup.texi.
49755         * doc/posix-functions/strnlen.texi: Renamed from
49756         doc/glibc-functions/strnlen.texi.
49757         * doc/posix-functions/strsignal.texi: Renamed from
49758         doc/glibc-functions/strsignal.texi.
49759         * doc/posix-functions/strxfrm_l.texi: Renamed from
49760         doc/glibc-functions/strxfrm_l.texi.
49761         * doc/posix-functions/timer_gettime.texi: Renamed from
49762         doc/glibc-functions/timer_gettime.texi.
49763         * doc/posix-functions/tolower_l.texi: Renamed from
49764         doc/glibc-functions/tolower_l.texi.
49765         * doc/posix-functions/toupper_l.texi: Renamed from
49766         doc/glibc-functions/toupper_l.texi.
49767         * doc/posix-functions/towctrans_l.texi: Renamed from
49768         doc/glibc-functions/towctrans_l.texi.
49769         * doc/posix-functions/towlower_l.texi: Renamed from
49770         doc/glibc-functions/towlower_l.texi.
49771         * doc/posix-functions/towupper_l.texi: Renamed from
49772         doc/glibc-functions/towupper_l.texi.
49773         * doc/posix-functions/uselocale.texi: Renamed from
49774         doc/glibc-functions/uselocale.texi.
49775         * doc/posix-functions/vdprintf.texi: Renamed from
49776         doc/glibc-functions/vdprintf.texi.
49777         * doc/posix-functions/wcpcpy.texi:
49778         Renamed from doc/glibc-functions/wcpcpy.texi.
49779         * doc/posix-functions/wcpncpy.texi: Renamed from
49780         doc/glibc-functions/wcpncpy.texi.
49781         * doc/posix-functions/wcscasecmp.texi: Renamed from
49782         doc/glibc-functions/wcscasecmp.texi.
49783         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49784         doc/glibc-functions/wcscasecmp_l.texi.
49785         * doc/posix-functions/wcscoll_l.texi: Renamed from
49786         doc/glibc-functions/wcscoll_l.texi.
49787         * doc/posix-functions/wcsdup.texi: Renamed from
49788         doc/glibc-functions/wcsdup.texi.
49789         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49790         doc/glibc-functions/wcsncasecmp.texi.
49791         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49792         doc/glibc-functions/wcsncasecmp_l.texi.
49793         * doc/posix-functions/wcsnlen.texi: Renamed from
49794         doc/glibc-functions/wcsnlen.texi.
49795         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49796         doc/glibc-functions/wcsnrtombs.texi.
49797         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49798         doc/glibc-functions/wcsxfrm_l.texi.
49799         * doc/posix-functions/wctrans_l.texi: Renamed from
49800         doc/glibc-functions/wctrans_l.texi.
49801         * doc/posix-functions/wctype_l.texi: Renamed from
49802         doc/glibc-functions/wctype_l.texi.
49803         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49804         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49805         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49806         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49807         these subsections.
49808         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49809         Remove sections.
49810
49811 2008-12-14  Bruno Haible  <bruno@clisp.org>
49812
49813         Update doc for POSIX:2008.
49814         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49815
49816 2008-12-14  Bruno Haible  <bruno@clisp.org>
49817
49818         Update doc for POSIX:2008.
49819         * doc/pastposix-functions/bcmp.texi: Renamed from
49820         doc/posix-functions/bcmp.texi.
49821         * doc/pastposix-functions/bcopy.texi: Renamed from
49822         doc/posix-functions/bcopy.texi.
49823         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49824         doc/posix-functions/bsd_signal.texi.
49825         * doc/pastposix-functions/bzero.texi: Renamed from
49826         doc/posix-functions/bzero.texi.
49827         * doc/pastposix-functions/ecvt.texi: Renamed from
49828         doc/posix-functions/ecvt.texi.
49829         * doc/pastposix-functions/fcvt.texi: Renamed from
49830         doc/posix-functions/fcvt.texi.
49831         * doc/pastposix-functions/ftime.texi: Renamed from
49832         doc/posix-functions/ftime.texi.
49833         * doc/pastposix-functions/gcvt.texi: Renamed from
49834         doc/posix-functions/gcvt.texi.
49835         * doc/pastposix-functions/getcontext.texi: Renamed from
49836         doc/posix-functions/getcontext.texi.
49837         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49838         doc/posix-functions/gethostbyaddr.texi.
49839         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49840         doc/posix-functions/gethostbyname.texi.
49841         * doc/pastposix-functions/getwd.texi: Renamed from
49842         doc/posix-functions/getwd.texi.
49843         * doc/pastposix-functions/h_errno.texi: Renamed from
49844         doc/posix-functions/h_errno.texi.
49845         * doc/pastposix-functions/index.texi: Renamed from
49846         doc/posix-functions/index.texi.
49847         * doc/pastposix-functions/makecontext.texi: Renamed from
49848         doc/posix-functions/makecontext.texi.
49849         * doc/pastposix-functions/mktemp.texi: Renamed from
49850         doc/posix-functions/mktemp.texi.
49851         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49852         doc/posix-functions/pthread_attr_getstackaddr.texi.
49853         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49854         doc/posix-functions/pthread_attr_setstackaddr.texi.
49855         * doc/pastposix-functions/rindex.texi: Renamed from
49856         doc/posix-functions/rindex.texi.
49857         * doc/pastposix-functions/scalb.texi: Renamed from
49858         doc/posix-functions/scalb.texi.
49859         * doc/pastposix-functions/setcontext.texi: Renamed from
49860         doc/posix-functions/setcontext.texi.
49861         * doc/pastposix-functions/swapcontext.texi: Renamed from
49862         doc/posix-functions/swapcontext.texi.
49863         * doc/pastposix-functions/ualarm.texi: Renamed from
49864         doc/posix-functions/ualarm.texi.
49865         * doc/pastposix-functions/usleep.texi: Renamed from
49866         doc/posix-functions/usleep.texi.
49867         * doc/pastposix-functions/vfork.texi: Renamed from
49868         doc/posix-functions/vfork.texi.
49869         * doc/pastposix-functions/wcswcs.texi: Renamed from
49870         doc/posix-functions/wcswcs.texi.
49871         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49872         (Function Substitutes): Update.
49873
49874 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49875
49876         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49877         m4/strerror.m4.
49878
49879 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49880             Bruno Haible  <bruno@clisp.org>
49881
49882         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49883
49884 2008-12-13  Bruno Haible  <bruno@clisp.org>
49885
49886         * modules/strtoull (Depends-on): Remove unistd.
49887
49888 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49889
49890         * modules/strtoull (Depends-on): Add stdlib.
49891
49892 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49893
49894         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49895
49896 2008-12-10  Jim Meyering  <meyering@redhat.com>
49897
49898         gl_ASSERT: don't say assertions are disabled when they're not
49899         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49900         "checking whether to enable assertions... no", when they are in
49901         fact enabled.  This is solely a bug in the output of configure.
49902         In spite of saying "no", NDEBUG was not defined in that case.
49903         Also, as noted by Eric Blake, leave assertions enabled upon
49904         --enable-assert=INVALID.
49905
49906 2008-12-10  Bruno Haible  <bruno@clisp.org>
49907
49908         Change MODULES.html to refer to POSIX:2008 where possible.
49909         * MODULES.html.sh (POSIX2008_URL): New variable.
49910         (posix_headers): Remove sys/timeb, ucontext.
49911         (posix2001_headers): New variable.
49912         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49913         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49914         index, makecontext, mktemp, pthread_attr_getstackaddr,
49915         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49916         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49917         (posix2001_functions): New variable.
49918         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49919         otherwise.
49920
49921 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49922
49923         add missing include to parse-duration.c
49924         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49925         * modules/parse-duration (Depends-on): Add xalloc.
49926
49927         fix sed script reading maint.mk
49928         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49929         (syntax-check-rules): Use it.
49930
49931 2008-12-09  Bruno Haible  <bruno@clisp.org>
49932
49933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49934         MacOS X 10.4/PowerPC.
49935         Reported by Simon Josefsson.
49936
49937 2008-12-08  Jim Meyering  <meyering@redhat.com>
49938
49939         work around mingw's lack of some S_IF definitions
49940         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49941         Reported by Simon Josefsson.
49942
49943 2008-12-08  Bruno Haible  <bruno@clisp.org>
49944
49945         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49946         applied to variables. Needed on MacOS X 10.4/PowerPC.
49947         Reported by Simon Josefsson.
49948
49949 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49950         and Eric Blake  <ebb9@byu.net>
49951
49952         assert: honor --enable-assert
49953         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49954         order to honor --enable-assert, rather than treating it as a
49955         synonym for --disable-assert.
49956
49957 2008-12-08  Jim Meyering  <meyering@redhat.com>
49958
49959         * lib/posixtm.c: Remove now-useless declaration of mktime.
49960
49961         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49962
49963 2008-12-07  Bruno Haible  <bruno@clisp.org>
49964
49965         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49966         test_once): Mark functions as static.
49967         * tests/test-tls.c (test_tls): Likewise.
49968
49969 2008-12-07  Bruno Haible  <bruno@clisp.org>
49970
49971         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49972         iconv_register_autodetect.
49973
49974 2008-12-07  Jim Meyering  <meyering@redhat.com>
49975
49976         posixtm.c: avoid a warning
49977         * lib/posixtm.c (posixtime): Don't initialize tm0.
49978         It's no longer needed to placate gcc4's -Wuninitialized,
49979         and the attempt to placate would elicit a new warning.
49980
49981         unicodeio.c: mark unused parameters
49982         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49983         (fallback_failure_callback): Likewise.
49984
49985 2008-12-07  Bruno Haible  <bruno@clisp.org>
49986
49987         * gnulib-tool (func_create_testdir): When building the tests
49988         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49989         Reported by Simon Josefsson.
49990
49991 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49992
49993         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49994
49995 2008-12-06  Bruno Haible  <bruno@clisp.org>
49996
49997         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49998         Suggested by Eric Blake.
49999
50000 2008-12-06  Bruno Haible  <bruno@clisp.org>
50001
50002         Fix a c-stack test failure on MacOS X.
50003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50004         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50005         handler for SIGBUS as well.
50006         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50007         install a signal handler for SIGBUS as well.
50008         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50009
50010 2008-12-06  Bruno Haible  <bruno@clisp.org>
50011
50012         Advocacy documentation.
50013         * doc/gnulib-intro.texi (Benefits): New section.
50014         * doc/gnulib.texi: Update.
50015
50016 2008-12-06  Bruno Haible  <bruno@clisp.org>
50017
50018         Document the 'manywarnings' module.
50019         * doc/manywarnings.texi: New file.
50020         * doc/gnulib.texi: Include it.
50021
50022 2008-12-05  Eric Blake  <ebb9@byu.net>
50023
50024         tests: silence some gcc warnings
50025         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50026         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50027         type mismatches.
50028
50029 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50030             Bruno Haible  <bruno@clisp.org>
50031
50032         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50033
50034 2008-11-29  Jim Meyering  <meyering@redhat.com>
50035
50036         unicodeio.c: mark unused parameters
50037         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50038         (fallback_failure_callback): Likewise.
50039
50040         fts: fix a thinko
50041         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50042         (set_stat_type): Return S_IF*-valued "type" directly.
50043         Prompted by James Youngman's spotting a related bug.
50044         Confirmed by further testing through find.
50045
50046         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50047         * lib/fts.c (D_TYPE): Define.
50048         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50049         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50050         (s_ifmt_shift_bits): New function.
50051         (set_stat_type): New function.
50052         (fts_build): When not calling fts_stat, call set_stat_type
50053         to propagate dirent.d_type info to fts_read caller.
50054         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50055         fts_statp->st_mode type information may be valid.
50056
50057 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50058
50059         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50060         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50061         <sds@gnu.org>.
50062
50063 2008-11-20  Bruno Haible  <bruno@clisp.org>
50064
50065         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50066         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50067         INCLUDE_NEXT.
50068         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50069         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50070         * modules/math (Makefile.am): Substitute
50071         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50072         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50073
50074 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50075             Bruno Haible  <bruno@clisp.org>
50076
50077         * lib/stdint.in.h: Define all type macros so that their expansion is
50078         a single typedef'ed token. Fixes a compilation failure in Boost which
50079         does "using ::int8_t;".
50080
50081 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50082
50083         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50084         gl_MANYWARN_ALL_GCC.
50085         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50086         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50087         * modules/manywarnings: New file.
50088         * MODULES.html.sh: Mention manywarnings module.
50089
50090 2008-11-18  Bruno Haible  <bruno@clisp.org>
50091
50092         * doc/gnulib-tool.texi (Unit tests): New section.
50093
50094 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50095
50096         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50097         paths like 'lib/po/foo.po'.
50098
50099 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50100
50101         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50102         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50103
50104 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50105
50106         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50107         parameter works.
50108
50109 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50110
50111         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50112
50113 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50114
50115         * modules/parse-duration-tests: New file.
50116         * tests/test-parse-duration.sh: New file.
50117         * tests/test-parse-duration.c: New file.
50118
50119         New module 'parse-duration'.
50120         * lib/parse-duration.h: New file.
50121         * lib/parse-duration.c: New file.
50122         * modules/parse-duration: New file.
50123
50124 2008-11-17  Bruno Haible  <bruno@clisp.org>
50125
50126         * tests/test-select-out.sh: Comment out the first pipe test.
50127         Reported by Simon Josefsson.
50128
50129 2008-11-17  Bruno Haible  <bruno@clisp.org>
50130
50131         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50132         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50133         gl_HOSTENT.
50134
50135 2008-11-17  Bruno Haible  <bruno@clisp.org>
50136
50137         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50138         -lnetwork and -lnet. Needed for Haiku and BeOS.
50139
50140 2008-11-16  Bruno Haible  <bruno@clisp.org>
50141
50142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50143
50144 2008-11-16  Bruno Haible  <bruno@clisp.org>
50145
50146         Avoid test failure on Haiku.
50147         * tests/test-fsync.c: Include <errno.h>.
50148         (main): Don't require that fsync (0) fails.
50149
50150 2008-11-15  Bruno Haible  <bruno@clisp.org>
50151
50152         New module 'hostent'.
50153         * modules/hostent: New file.
50154         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50155
50156 2008-11-15  Bruno Haible  <bruno@clisp.org>
50157
50158         New module 'servent'.
50159         * modules/servent: New file.
50160         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50161
50162 2008-11-15  Bruno Haible  <bruno@clisp.org>
50163
50164         Avoid generating same test program with two different rules.
50165         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50166         test-frexp to test-frexp-nolibm.
50167         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50168         test-frexpl to test-frexpl-nolibm.
50169
50170 2008-11-15  Bruno Haible  <bruno@clisp.org>
50171
50172         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50173         $(FREXPL_LIBM).
50174
50175 2008-11-15  Bruno Haible  <bruno@clisp.org>
50176
50177         * lib/netdb.in.h: Activate the definitions also when the system's
50178         <netdb.h> has 'struct addrinfo'.
50179         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50180         EAI_OVERFLOW or AI_NUMERICSERV.
50181         * doc/posix-headers/netdb.texi: Document the problem.
50182
50183 2008-11-15  Bruno Haible  <bruno@clisp.org>
50184
50185         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50186
50187         Make the 'sched' module work on platforms where <sched.h> exists but
50188         is incomplete (such as Haiku).
50189         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50190         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50191         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50192         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50193         HAVE_STRUCT_SCHED_PARAM.
50194         * modules/sched (Depends-on): Add include_next.
50195         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50196         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50197         * doc/posix-headers/sched.texi: Document the issue.
50198
50199 2008-11-13  Jim Meyering  <meyering@redhat.com>
50200
50201         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50202         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50203         test would fail due to the difference in the Report bugs to ...
50204         line.  The expected address is empty, "<>", while the actual
50205         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50206
50207 2008-11-12  Bruno Haible  <bruno@clisp.org>
50208
50209         lstat: don't compile lstat.c on systems lacking lstat
50210         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50211         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50212         Reported by Daniel P. Berrange via Jim Meyering.
50213
50214 2008-11-12  Jim Meyering  <meyering@redhat.com>
50215
50216         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50217
50218 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50219
50220         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50221         instead.
50222
50223 2008-11-12  Bruno Haible  <bruno@clisp.org>
50224
50225         * lib/unicodeio.c: Include unistr.h.
50226         (utf8_wctomb): Remove function.
50227         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50228
50229 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50230
50231         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50232         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50233         <bruno@clisp.org>.
50234         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50235
50236 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50237
50238         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50239         * doc/gnulib.texi: Add section for warnings.
50240
50241 2008-11-11  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/sockets.h: Add a comment.
50244
50245 2008-11-11  Karl Berry  <karl@gnu.org>
50246
50247         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50248
50249 2008-11-11  Eric Blake  <ebb9@byu.net>
50250
50251         fdl.texi: avoid git symlinks
50252         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50253
50254 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50255
50256         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50257
50258 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50259
50260         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50261         (gl_WARN_ADD): Substitute $2 if literal.
50262
50263 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50264
50265         * m4/warning.m4: Remove.
50266
50267 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50268
50269         * m4/warnings.m4: Almost complete rewrite. :-)
50270
50271 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50272
50273         * modules/warnings: New module.
50274         * m4/warnings.m4: New file.
50275         * MODULES.html.sh: Mention warnings module.
50276         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50277         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50278
50279 2008-11-10  Eric Blake  <ebb9@byu.net>
50280
50281         fdl.texi: make a symlink to the latest version
50282         * doc/standards.texi: Revert today's earlier change.
50283         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50284         * doc/fdl.texi: ...and replace this with a symlink to the newer
50285         fdl-1.3.texi.
50286
50287 2008-11-10  Bruno Haible  <bruno@clisp.org>
50288
50289         * tests/test-select-fd.c (main): Accept the result file name as fourth
50290         argument.
50291         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50292         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50293
50294 2008-11-10  Bruno Haible  <bruno@clisp.org>
50295
50296         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50297         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50298         as autoconf-substituted macros.
50299         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50301         gl_NETDB_H_DEFAULTS. Set these variables.
50302         * modules/netdb (Makefile.am): Substitute these variables.
50303
50304 2008-11-10  Eric Blake  <ebb9@byu.net>
50305
50306         standards.texi: include correct file for FDL 1.3
50307         * doc/standards.texi (GNU Free Documentation License): Change
50308         include file to pull in FDL 1.3, not 1.2.
50309
50310         fdl.texi: revert accidental change to license
50311         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50312
50313 2008-11-10  Bruno Haible  <bruno@clisp.org>
50314
50315         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50316         cross-compiling guesses also when the native compile gives no result.
50317
50318 2008-11-10  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/spawni.c (__spawni): Force variable into the stack.
50321
50322 2008-11-10  Bruno Haible  <bruno@clisp.org>
50323
50324         Add support for Haiku.
50325         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50326         glibc and BeOS, but also on Haiku.
50327         * lib/fpurge.c (fpurge): Likewise.
50328         * lib/freadable.c (freadable): Likewise.
50329         * lib/freadahead.c (freadahead): Likewise.
50330         * lib/freading.c (freading): Likewise.
50331         * lib/freadptr.c (freadptr): Likewise.
50332         * lib/freadseek.c (freadptrinc): Likewise.
50333         * lib/fseeko.c (rpl_fseeko): Likewise.
50334         * lib/fseterr.c (fseterr): Likewise.
50335         * lib/fwritable.c (fwritable): Likewise.
50336         * lib/fwriting.c (fwriting): Likewise.
50337         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50338
50339 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50340
50341         * lib/config.charset: Treat Haiku like BeOS.
50342
50343 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50344
50345         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50346         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50347
50348 2008-11-08  Bruno Haible  <bruno@clisp.org>
50349
50350         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50351         AC_CACHE_CHECK.
50352
50353 2008-11-08  Bruno Haible  <bruno@clisp.org>
50354
50355         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50356
50357 2008-11-08  Bruno Haible  <bruno@clisp.org>
50358
50359         * tests/test-select-fd.c: New file.
50360         * tests/test-select-in.sh: New file.
50361         * tests/test-select-out.sh: New file.
50362         * tests/test-select-stdin.c: New file.
50363         * modules/select-tests (Files): Add the new files.
50364         (Depends-on): Add gettimeofday.
50365         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50366         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50367         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50368
50369 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50370             Bruno Haible  <bruno@clisp.org>
50371
50372         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50373
50374 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50375
50376         * build-aux/pmccabe2html: Added support for C++ source files.
50377
50378 2008-11-05  Ben Pfaff  <blp@gnu.org>
50379
50380         Fix lib/close.c build on Windows.
50381         * modules/close (Files): Add lib/w32sock.h.
50382
50383 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50384
50385         Accept Bison's NEWS format.
50386         * build-aux/announce-gen (print_news_deltas): Tweak
50387         $re_prefix.
50388
50389 2008-11-04  Bruno Haible  <bruno@clisp.org>
50390
50391         * modules/random_r (Maintainer): Add glibc.
50392
50393 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50394
50395         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50396         by karl@freefriends.org (Karl Berry).
50397         * doc/alloca.texi: Likewise.
50398         * doc/c-ctype.texi: Likewise.
50399         * doc/c-strcase.texi: Likewise.
50400         * doc/c-strcaseeq.texi: Likewise.
50401         * doc/c-strcasestr.texi: Likewise.
50402         * doc/c-strstr.texi: Likewise.
50403         * doc/c-strtod.texi: Likewise.
50404         * doc/c-strtold.texi: Likewise.
50405         * doc/ctime.texi: Likewise.
50406         * doc/error.texi: Likewise.
50407         * doc/fdl.texi: Likewise.
50408         * doc/gcd.texi: Likewise.
50409         * doc/getdate.texi: Likewise.
50410         * doc/gnulib-intro.texi: Likewise.
50411         * doc/gnulib-tool.texi: Likewise.
50412         * doc/gnulib.texi: Likewise.
50413         * doc/inet_ntoa.texi: Likewise.
50414         * doc/maintain.texi: Likewise.
50415         * doc/make-stds.texi: Likewise.
50416         * doc/quote.texi: Likewise.
50417         * doc/regexprops-generic.texi: Likewise.
50418         * doc/standards.texi: Likewise.
50419         * doc/verify.texi: Likewise.
50420         * doc/visibility.texi: Likewise.
50421         * doc/gnulib.texi (GNU Free Documentation License): Include
50422         fdl-1.3.texi instead of fdl.texi.
50423
50424 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50425
50426         * doc/fdl-1.3.texi: New file, from
50427         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50428         * modules/fdl-1.3: Add.
50429         * MODULES.html.sh: Add fdl-1.3.
50430
50431 2008-11-03  Bruno Haible  <bruno@clisp.org>
50432
50433         Make determination of absolute name of header file work with AIX xlc.
50434         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50435         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50436         preprocessing.
50437         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50438         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50439
50440 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50441
50442         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50443         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50444         <ludo@gnu.org>.
50445
50446 2008-11-02  Bruno Haible  <bruno@clisp.org>
50447
50448         Mark 'strpbrk' obsolete.
50449         * modules/strpbrk (Status, Notice): New sections.
50450         * modules/strtok_r (Depends-on): Add strpbrk.
50451
50452 2008-11-02  Bruno Haible  <bruno@clisp.org>
50453
50454         Mark 'strdup' obsolete.
50455         * modules/strdup (Status, Notice): New sections.
50456         * modules/findprog (Depends-on): Add strdup.
50457         * modules/getaddrinfo (Depends-on): Likewise.
50458         * modules/localename (Depends-on): Likewise.
50459         * modules/relocatable-lib (Depends-on): Likewise.
50460         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50461         * modules/relocatable-prog (Depends-on): Likewise.
50462         * modules/trim (Depends-on): Likewise.
50463         * modules/unictype/gen-ctype (Depends-on): Likewise.
50464         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50465
50466 2008-11-02  Bruno Haible  <bruno@clisp.org>
50467
50468         Mark 'strcspn' obsolete.
50469         * modules/strcspn (Status, Notice): New sections.
50470
50471 2008-11-02  Bruno Haible  <bruno@clisp.org>
50472
50473         Mark 'rmdir' obsolete.
50474         * modules/rmdir (Status, Notice): New sections.
50475         * modules/clean-temp (Depends-on): Add rmdir.
50476         * modules/openat (Depends-on): Likewise.
50477
50478 2008-11-02  Bruno Haible  <bruno@clisp.org>
50479
50480         Mark 'raise' obsolete.
50481         * modules/raise (Status, Notice): New sections.
50482         (Include): Specify <signal.h>.
50483         * modules/stdio (Depends-on): Add raise.
50484         * modules/write (Depends-on): Likewise.
50485
50486 2008-11-02  Bruno Haible  <bruno@clisp.org>
50487
50488         Mark 'memset' obsolete.
50489         * modules/memset (Status, Notice): New sections.
50490
50491 2008-11-02  Bruno Haible  <bruno@clisp.org>
50492
50493         Mark 'memmove' obsolete.
50494         * modules/memmove (Status, Notice): New sections.
50495         * modules/argp (Depends-on): Add memmove.
50496         * modules/argz (Depends-on): Likewise.
50497         * modules/canonicalize (Depends-on): Likewise.
50498         * modules/canonicalize-lgpl (Depends-on): Likewise.
50499         * modules/fts (Depends-on): Likewise.
50500         * modules/getcwd (Depends-on): Likewise.
50501         * modules/human (Depends-on): Likewise.
50502         * modules/regex (Depends-on): Likewise.
50503         * modules/striconveh (Depends-on): Likewise.
50504         * modules/trim (Depends-on): Likewise.
50505         * modules/unistr/u8-move (Depends-on): Likewise.
50506         * modules/unistr/u16-move (Depends-on): Likewise.
50507         * modules/unistr/u32-move (Depends-on): Likewise.
50508
50509 2008-11-02  Bruno Haible  <bruno@clisp.org>
50510
50511         Mark 'memcpy' obsolete.
50512         * modules/memcpy (Status, Notice): New sections.
50513
50514 2008-11-02  Bruno Haible  <bruno@clisp.org>
50515
50516         Mark 'memcmp' obsolete.
50517         * modules/memcmp (Status, Notice): New sections.
50518         * modules/argmatch (Depends-on): Add memchr.
50519         * modules/backupfile (Depends-on): Likewise.
50520         * modules/c-strcasestr (Depends-on): Likewise.
50521         * modules/crypto/des (Depends-on): Likewise.
50522         * modules/csharpcomp (Depends-on): Likewise.
50523         * modules/fnmatch (Depends-on): Likewise.
50524         * modules/git-merge-changelog (Depends-on): Likewise.
50525         * modules/isnand (Depends-on): Likewise.
50526         * modules/isnand-nolibm (Depends-on): Likewise.
50527         * modules/isnanf (Depends-on): Likewise.
50528         * modules/isnanf-nolibm (Depends-on): Likewise.
50529         * modules/isnanl (Depends-on): Likewise.
50530         * modules/isnanl-nolibm (Depends-on): Likewise.
50531         * modules/mbchar (Depends-on): Likewise.
50532         * modules/memcoll (Depends-on): Likewise.
50533         * modules/quotearg (Depends-on): Likewise.
50534         * modules/regex (Depends-on): Likewise.
50535         * modules/relocatable-prog (Depends-on): Likewise.
50536         * modules/same (Depends-on): Likewise.
50537         * modules/signbit (Depends-on): Likewise.
50538         * modules/strcasestr-simple (Depends-on): Likewise.
50539         * modules/unictype/gen-ctype (Depends-on): Likewise.
50540         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50541         * modules/uniname/uniname (Depends-on): Likewise.
50542         * modules/unistr/u8-cmp (Depends-on): Likewise.
50543
50544 2008-11-02  Bruno Haible  <bruno@clisp.org>
50545
50546         Mark 'memchr' obsolete.
50547         * modules/memchr (Status, Notice): New sections.
50548         * modules/argp (Depends-on): Add memchr.
50549         * modules/base64 (Depends-on): Likewise.
50550         * modules/c-strcasestr (Depends-on): Likewise.
50551         * modules/chdir-long (Depends-on): Likewise.
50552         * modules/fnmatch (Depends-on): Likewise.
50553         * modules/getsubopt (Depends-on): Likewise.
50554         * modules/git-merge-changelog (Depends-on): Likewise.
50555         * modules/glob (Depends-on): Likewise.
50556         * modules/strcasestr-simple (Depends-on): Likewise.
50557         * modules/strnlen (Depends-on): Likewise.
50558
50559 2008-11-02  Bruno Haible  <bruno@clisp.org>
50560
50561         Mark 'atexit' obsolete.
50562         * modules/atexit (Status, Notice): New sections.
50563         * modules/chdir-long (Depends-on): Add atexit.
50564         * modules/wait-process (Depends-on): Likewise.
50565
50566 2008-11-02  Bruno Haible  <bruno@clisp.org>
50567
50568         * gnulib-tool: New option --with-obsolete.
50569         (func_usage): Document it.
50570         (func_modules_transitive_closure): Drop obsolete dependencies if
50571         incobsolete is not true.
50572         (func_import): Read and save the incobsolete variable to the cache.
50573
50574 2008-11-02  Bruno Haible  <bruno@clisp.org>
50575
50576         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50577         * gnulib-tool: New option --extract-status.
50578         (func_usage): Document it.
50579         (sed_extract_prog): Recognize it.
50580         (func_get_status): New function.
50581
50582 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50583
50584         * modules/sockets (License): Change from LGPL to LGPLv2+.
50585
50586 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50587
50588         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50589
50590 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50591
50592         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50593         Mention times and sys_times.
50594         * modules/sys_times, modules/sys_times-tests: New modules.
50595         * modules/times, modules/times-tests: Likewise
50596         * m4/sys_times_h.m4: New file.
50597         * lib/sys_times.in.h: Likewise
50598         * lib/times.c: Likewise.
50599         * tests/test-sys_times.c: Likewise.
50600         * tests/test-times.c: Likewise.
50601         * doc/posix-headers/sys_times.texi: Update.
50602         * doc/posix-functions/times.texi: Update.
50603
50604 2008-10-28  Jim Meyering  <meyering@redhat.com>
50605
50606         * modules/tempname (Depends-on): Add lstat.
50607
50608         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50609
50610 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50611
50612         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50613         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50614         using idiom used elsewhere in gnulib.
50615
50616 2008-10-27  Jim Meyering  <meyering@redhat.com>
50617
50618         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50619
50620 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50621
50622         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50623         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50624         programs.
50625         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50626
50627 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50628
50629         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50630
50631 2008-10-27  Bruno Haible  <bruno@clisp.org>
50632
50633         * tests/test-lstat.c: Include <stdio.h>.
50634
50635 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50636
50637         * modules/lstat-tests: New module.
50638         * tests/test-lstat.c: New file.
50639
50640 2008-10-26  Jim Meyering  <meyering@redhat.com>
50641
50642         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50643
50644 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50645             Bruno Haible  <bruno@clisp.org>
50646
50647         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50648         * modules/configmake (Include): Add a note that the include must come
50649         after all system headers.
50650         * lib/javaversion.c: Include configmake.h after all other includes.
50651
50652 2008-10-26  Bruno Haible  <bruno@clisp.org>
50653
50654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50655         HAVE_STRUCT_RANDOM_DATA to 1.
50656         (gl_STDLIB_H): Simplify.
50657
50658 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50659
50660         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50661         substitute HAVE_STRUCT_RANDOM_DATA.
50662         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50663         random_data.
50664         * modules/stdlib (Makefile.am): Substitute
50665         HAVE_STRUCT_RANDOM_DATA.
50666
50667 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50668
50669         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50670         * doc/gnulib-intro.texi (Copyright): Likewise.
50671
50672 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50673
50674         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50675         findings.
50676
50677 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50678             Bruno Haible  <bruno@clisp.org>
50679
50680         * lib/unistd.in.h: Include <winsock2.h>.
50681         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50682         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50683         Provide dummy declarations.
50684         (gethostname): Override.
50685         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50686         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50687         gl_PREREQ_SYS_H_WINSOCK2.
50688         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50689         * doc/posix-functions/gethostname.texi: More details.
50690
50691 2008-10-25  Bruno Haible  <bruno@clisp.org>
50692
50693         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50694         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50695         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50696
50697         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50698         here ...
50699         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50700         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50701         gl_UNISTD_H_DEFAULTS.
50702
50703 2008-10-25  Eric Blake  <ebb9@byu.net>
50704
50705         signbit: avoid spurious compiler failure
50706         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50707         declarations inside function.
50708
50709 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50710             Bruno Haible  <bruno@clisp.org>
50711
50712         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50713         * modules/random_r (Depends-on): Add stdint.
50714
50715 2008-10-24  Bruno Haible  <bruno@clisp.org>
50716
50717         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50718         Eggert.
50719         * modules/strerror (License): Likewise.
50720
50721 2008-10-24  Jim Meyering  <meyering@redhat.com>
50722
50723         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50724         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50725
50726 2008-10-24  Eric Blake  <ebb9@byu.net>
50727
50728         getgroups: fix compilation when getgroups is available
50729         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50730         but with <config.h> override of getgroups disabled.
50731
50732 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50733
50734         * doc/gnulib.texi (Header files): Add note about C++ problems.
50735         Explained by Bruno Haible <bruno@clisp.org>.
50736
50737 2008-10-23  Bruno Haible  <bruno@clisp.org>
50738
50739         Define a dummy SA_NODEFER macro on Interix.
50740         * lib/signal.in.h (SA_NODEFER): Define fallback.
50741         Reported by Aleksey Cheusov <cheusov@tut.by> via
50742         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50743
50744 2008-10-23  Bruno Haible  <bruno@clisp.org>
50745
50746         * modules/freadahead (License): Change to LGPLv2+.
50747         Suggested by Simon Josefsson.
50748
50749 2008-10-23  Jim Meyering  <meyering@redhat.com>
50750
50751         random_r: new module
50752         * modules/random_r: New file.
50753         * m4/random_r.m4: New file.
50754         * lib/random_r.c: New file, from glibc.
50755         * modules/random_r-tests: New file.
50756         * tests/test-random_r.c: New file.
50757         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50758          Declare.
50759         (RAND_MAX): Define.
50760         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50761         * modules/stdlib: Substitute them, too.
50762         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50763         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50764         * doc/glibc-functions/random_r.texi: Likewise.
50765         * doc/glibc-functions/setstate_r.texi: Likewise.
50766         * doc/glibc-functions/srandom_r.texi: Likewise.
50767         * config/srclist.txt: Mention it.
50768
50769 2008-10-23  David Lutterkort  <lutter@redhat.com>
50770
50771         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50772         link requirement
50773
50774 2008-10-23  Jim Meyering  <meyering@redhat.com>
50775
50776         selinux-h: mark parameters of stub functions as intentionally unused
50777         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50778         * lib/se-context.in.h: Likewise.
50779
50780 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50781
50782         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50783
50784 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50785
50786         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50787
50788 2008-10-22  Eric Blake  <ebb9@byu.net>
50789
50790         glthread/thread: avoid compiler warning
50791         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50792         Add unreachable abort to silence compiler.
50793
50794 2008-10-22  Eric Blake  <ebb9@byu.net>
50795
50796         netdb: also supply struct addrinfo for cygwin 1.5.x
50797         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50798         older cygwin.
50799         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50800         cygwin.
50801         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50802
50803 2008-10-22  Bruno Haible  <bruno@clisp.org>
50804
50805         * users.txt: Update entry about pspp.
50806
50807 2008-10-21  Bruno Haible  <bruno@clisp.org>
50808
50809         Simplification.
50810         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50811         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50812
50813         Simplification.
50814         * lib/ioctl.c (ioctl): Don't undefine.
50815         * lib/socket.c (socket): Don't undefine.
50816
50817         Remove unused module indicator macros.
50818         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50819         GNULIB_$1 as a C macro.
50820
50821         * doc/posix-functions/close.texi: Undo last change.
50822         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50823         Windows platforms.
50824
50825 2008-10-21  Bruno Haible  <bruno@clisp.org>
50826
50827         Add gethostname() declaration to <unistd.h>.
50828         * lib/unistd.in.h (gethostname): New declaration.
50829         * lib/gethostname.c: Include <unistd.h>.
50830         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50831         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50833         and HAVE_GETHOSTNAME.
50834         * modules/gethostname (Depends-on): Add unistd.
50835         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50836         (Include): Specify <unistd.h>.
50837         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50838         HAVE_GETHOSTNAME.
50839         * tests/test-gethostname.c: Include <unistd.h> first.
50840
50841 2008-10-21  Bruno Haible  <bruno@clisp.org>
50842
50843         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50844         * modules/select-tests (Depends-on): Likewise.
50845         Reported by Simon Josefsson.
50846
50847 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50848
50849         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50850         * lib/accept.c: New file, based on winsock.c.
50851         * lib/bind.c: New file, based on winsock.c.
50852         * lib/connect.c: New file, based on winsock.c.
50853         * lib/getpeername.c: New file, based on winsock.c.
50854         * lib/getsockname.c: New file, based on winsock.c.
50855         * lib/getsockopt.c: New file, based on winsock.c.
50856         * lib/ioctl.c: New file, based on winsock.c.
50857         * lib/listen.c: New file, based on winsock.c.
50858         * lib/recv.c: New file, based on winsock.c.
50859         * lib/recvfrom.c: New file, based on winsock.c.
50860         * lib/send.c: New file, based on winsock.c.
50861         * lib/sendto.c: New file, based on winsock.c.
50862         * lib/setsockopt.c: New file, based on winsock.c.
50863         * lib/shutdown.c: New file, based on winsock.c.
50864         * lib/socket.c: New file, based on winsock.c.
50865         * lib/w32sock.h: New file, based on winsock.c.
50866         * lib/winsock.c: Remove file.
50867         * modules/accept: Likewise.
50868         * modules/bind: Likewise.
50869         * modules/connect: Likewise.
50870         * modules/getpeername: Likewise.
50871         * modules/getsockname: Likewise.
50872         * modules/getsockopt: Likewise.
50873         * modules/ioctl: Likewise.
50874         * modules/listen: Likewise.
50875         * modules/recv: Likewise.
50876         * modules/recvfrom: Likewise.
50877         * modules/send: Likewise.
50878         * modules/sendto: Likewise.
50879         * modules/setsockopt: Likewise.
50880         * modules/shutdown: Likewise.
50881         * modules/socket: Use socket.c instead of winsock.c.
50882         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50883         * doc/posix-functions/accept.texi: Doc fix.
50884         * doc/posix-functions/bind.texi: Doc fix.
50885         * doc/posix-functions/close.texi: Doc fix.
50886         * doc/posix-functions/connect.texi: Doc fix.
50887         * doc/posix-functions/getpeername.texi: Doc fix.
50888         * doc/posix-functions/getsockname.texi: Doc fix.
50889         * doc/posix-functions/getsockopt.texi: Doc fix.
50890         * doc/posix-functions/ioctl.texi: Doc fix.
50891         * doc/posix-functions/listen.texi: Doc fix.
50892         * doc/posix-functions/recv.texi: Doc fix.
50893         * doc/posix-functions/recvfrom.texi: Doc fix.
50894         * doc/posix-functions/send.texi: Doc fix.
50895         * doc/posix-functions/sendto.texi: Doc fix.
50896         * doc/posix-functions/setsockopt.texi: Doc fix.
50897         * doc/posix-functions/shutdown.texi: Doc fix.
50898         * doc/posix-functions/socket.texi: Doc fix.
50899
50900 2008-10-20  Bruno Haible  <bruno@clisp.org>
50901
50902         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50903         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50904         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50905         as an alias for SIGABRT.
50906         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50907         (sigaction): Map it to SIGABRT.
50908         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50909
50910 2008-10-20  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/fts.c: Don't include lstat.h.
50913         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50914
50915         Move the lstat() declaration to <sys/stat.h>.
50916         * lib/lstat.h: Remove file.
50917         * lib/sys_stat.in.h: Add special invocation convention.
50918         (lstat): New declaration.
50919         * lib/lstat.c (orig_lstat): New function.
50920         (rpl_lstat): Use orig_lstat instead of lstat.
50921         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50922         AC_C_INLINE. Set REPLACE_LSTAT.
50923         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50924         and REPLACE_LSTAT.
50925         * modules/lstat (Files): Remove lib/lstat.h.
50926         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50927         (Include): Specify <sys/stat.h> instead of lstat.h.
50928         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50929         REPLACE_LSTAT.
50930         * NEWS: Mention the change.
50931
50932 2008-10-20  Bruno Haible  <bruno@clisp.org>
50933
50934         * modules/posix_spawn-tests: New file.
50935         * tests/test-posix_spawn3.c: New file.
50936
50937 2008-10-20  Bruno Haible  <bruno@clisp.org>
50938
50939         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50940         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50941         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50942         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50943         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50944
50945 2008-10-20  Bruno Haible  <bruno@clisp.org>
50946
50947         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50948         of posix_spawn on AIX 5.3.
50949
50950 2008-10-20  Bruno Haible  <bruno@clisp.org>
50951
50952         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50953
50954 2008-10-20  Bruno Haible  <bruno@clisp.org>
50955
50956         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50957         of AC_LANG_PROGRAM.
50958
50959 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50960
50961         * lib/netdb.in.h: Don't define GNU specific constants until they
50962         are supported or needed.  Reported by Bruno Haible
50963         <bruno@clisp.org>.
50964
50965 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50966
50967         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50968
50969 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50970
50971         * lib/getaddrinfo.h: Remove file.
50972         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50973         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50974         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50975         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50976         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50977         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50978         * tests/test-getaddrinfo.c: Likewise.
50979         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50980         * NEWS: Mention change.
50981
50982 2008-10-19  Bruno Haible  <bruno@clisp.org>
50983
50984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50985
50986 2008-10-19  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/wait-process.c: Include simply <sys/wait.h>.
50989         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50990         WIFSTOPPED): Remove fallback definitions.
50991         * modules/wait-process (Depends-on): Add sys_wait.
50992
50993         New module 'sys_wait'.
50994         * modules/sys_wait: New file.
50995         * lib/sys_wait.in.h: New file, partially copied from
50996         lib/wait-process.c.
50997         * m4/sys_wait_h.m4: New file.
50998         * doc/posix-headers/sys_wait.texi: Mention the new module.
50999
51000 2008-10-19  Bruno Haible  <bruno@clisp.org>
51001
51002         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51003
51004 2008-10-19  Bruno Haible  <bruno@clisp.org>
51005
51006         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51007         * lib/wait-process.c (WAIT_T): Remove type.
51008         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51009         (wait_subprocess): Update.
51010
51011 2008-10-19  Bruno Haible  <bruno@clisp.org>
51012
51013         New module 'atoll'.
51014         * modules/atoll: New file.
51015         * lib/stdlib.in.h (atoll): New declaration.
51016         * lib/atoll.c: New file, from glibc with modifications.
51017         * m4/atoll.m4: New file.
51018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51019         HAVE_ATOLL.
51020         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51021         * doc/posix-functions/atoll.texi: Mention the new module.
51022
51023 2008-10-19  Bruno Haible  <bruno@clisp.org>
51024
51025         Add strtoull() declaration to <stdlib.h>.
51026         * lib/stdlib.in.h (strtoull): New declaration.
51027         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51028         Set HAVE_STRTOULL.
51029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51030         HAVE_STRTOULL.
51031         * modules/strtoull (Depends-on): Add stdlib.
51032         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51033         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51034         HAVE_STRTOULL.
51035
51036 2008-10-19  Bruno Haible  <bruno@clisp.org>
51037
51038         Add strtoll() declaration to <stdlib.h>.
51039         * lib/stdlib.in.h (strtoll): New declaration.
51040         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51041         Set HAVE_STRTOLL.
51042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51043         HAVE_STRTOLL.
51044         * modules/strtoll (Depends-on): Add stdlib.
51045         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51046         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51047
51048 2008-10-19  Bruno Haible  <bruno@clisp.org>
51049
51050         * modules/bcopy (Depends-on): Add strings.
51051         (Include): Specify <strings.h>.
51052
51053 2008-10-19  Bruno Haible  <bruno@clisp.org>
51054
51055         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51056
51057 2008-10-19  Bruno Haible  <bruno@clisp.org>
51058
51059         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51060         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51061         mingw.
51062
51063 2008-10-19  Bruno Haible  <bruno@clisp.org>
51064
51065         * lib/atanl.c: Don't include isnanl.h.
51066         * lib/cosl.c: Likewise.
51067         * lib/ldexpl.c: Likewise.
51068         * lib/logl.c: Likewise.
51069         * lib/sinl.c: Likewise.
51070         * lib/sqrtl.c: Likewise.
51071         * lib/tanl.c: Likewise.
51072
51073         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51074         * lib/isnanf.h: Remove file.
51075         * lib/isnand.h: Remove file.
51076         * lib/isnanl.h: Remove file.
51077         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51078         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51079         macros.
51080         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51081         HAVE_ISNANF, don't define it as a C macro.
51082         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51083         HAVE_ISNAND, don't define it as a C macro.
51084         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51085         HAVE_ISNANL, don't define it as a C macro.
51086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51087         HAVE_ISNAN[FDL].
51088         * modules/isnanf (Files): Remove lib/isnanf.h.
51089         (Depends-on): Add math.
51090         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51091         (Include): Specify <math.h> instead of isnanf.h.
51092         * modules/isnand (Files): Remove lib/isnand.h.
51093         (Depends-on): Add math.
51094         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51095         (Include): Specify <math.h> instead of isnand.h.
51096         * modules/isnanl (Files): Remove lib/isnanl.h.
51097         (Depends-on): Add math.
51098         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51099         (Include): Specify <math.h> instead of isnanl.h.
51100         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51101         HAVE_ISNAN[FDL].
51102         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51103         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51104         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51105         * NEWS: Mention the change.
51106
51107 2008-10-18  Bruno Haible  <bruno@clisp.org>
51108
51109         Add getusershell(), setusershell(), endusershell() declarations to
51110         <unistd.h>.
51111         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51112         declarations.
51113         * lib/getusershell.c: Include unistd.h.
51114         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51115         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51116         HAVE_GETUSERSHELL.
51117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51118         and HAVE_GETUSERSHELL.
51119         * modules/getusershell (Depends-on): Add unistd, extensions.
51120         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51121         (Include): Specify <unistd.h>.
51122         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51123         HAVE_GETUSERSHELL.
51124
51125 2008-10-18  Bruno Haible  <bruno@clisp.org>
51126
51127         Add a getloadavg() declaration to <stdlib.h>.
51128         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51129         getloadavg declaration.
51130         (getloadavg): New declaration.
51131         * lib/getloadavg.c: Include <stdlib.h> first.
51132         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51133         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51134         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51136         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51137         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51138         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51139         (Include): Specify <stdlib.h>.
51140         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51141         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51142
51143 2008-10-18  Bruno Haible  <bruno@clisp.org>
51144
51145         * lib/dirchownmod.c: Don't include lchmod.h.
51146
51147         Move the lchmod() declaration to <sys/stat.h>.
51148         * lib/lchmod.h: Remove file.
51149         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51150         (lchmod): New declaration, moved here from lib/lchown.h.
51151         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51152         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51153         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51154         and HAVE_LCHMOD.
51155         * modules/lchmod (Files): Remove lib/lchmod.h.
51156         (Depends-on): Add sys_stat, extensions.
51157         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51158         (Include): Specify <sys/stat.h> instead of lchmod.h.
51159         * modules/sys_stat (Depends-on): Add link-warning.
51160         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51161         definition of GL_LINK_WARNING.
51162         * NEWS: Mention the change.
51163
51164 2008-10-18  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/fchdir.c: Don't include dirfd.h.
51167         * lib/fts.c: Likewise.
51168         * lib/getcwd.c: Likewise.
51169         * lib/glob.c: Likewise.
51170
51171         Move the dirfd() declaration to <dirent.h>.
51172         * lib/dirfd.h: Remove file.
51173         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51174         (dirfd): New declaration.
51175         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51176         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51177         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51178         HAVE_DECL_DIRFD.
51179         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51180         HAVE_DECL_DIRFD.
51181         * modules/dirfd (Files): Remove lib/dirfd.h.
51182         (Depends-on): Add dirent, extensions.
51183         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51184         (Include): Specify <dirent.h> instead of dirfd.h.
51185         * modules/dirent (Depends-on): Add link-warning.
51186         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51187         definition of GL_LINK_WARNING.
51188         * NEWS: Mention the change.
51189
51190 2008-10-18  Bruno Haible  <bruno@clisp.org>
51191
51192         Move the euidaccess() declaration to <unistd.h>.
51193         * lib/euidaccess.h: Remove file.
51194         * lib/unistd.in.h (euidaccess): New declaration.
51195         * lib/euidaccess.c: Don't include euidaccess.h.
51196         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51197         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51199         and HAVE_EUIDACCESS.
51200         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51201         (Depends-on): Add unistd.
51202         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51203         (Include): Specify <unistd.h> instead of euidaccess.h.
51204         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51205         HAVE_EUIDACCESS.
51206         * NEWS: Mention the change.
51207
51208 2008-10-18  Bruno Haible  <bruno@clisp.org>
51209
51210         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51211
51212         Move the getdomainname() declaration to <unistd.h>.
51213         * lib/getdomainname.h: Remove file.
51214         * lib/unistd.in.h (getdomainname): New declaration.
51215         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51216         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51217         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51218         HAVE_GETDOMAINNAME.
51219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51220         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51221         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51222         (Depends-on): Add unistd, extensions.
51223         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51224         (Includes): Specify <unistd.h> instead of getdomainname.h.
51225         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51226         HAVE_GETDOMAINNAME.
51227         * NEWS: Mention the change.
51228
51229 2008-10-18  Bruno Haible  <bruno@clisp.org>
51230
51231         * modules/dirent: New file.
51232         * m4/dirent_h.m4: New file.
51233         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51234         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51235         * modules/fchdir (Files): Remove lib/dirent.in.h.
51236         (Depends-on): Add dirent.
51237         (Makefile.am): Move rules to modules/dirent.
51238         * doc/posix-headers/dirent.texi: Mention the new module.
51239
51240 2008-10-18  Bruno Haible  <bruno@clisp.org>
51241
51242         Avoid -Wunused-parameter warnings in public gnulib header files.
51243         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51244         macro.
51245         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51246
51247 2008-10-18  Bruno Haible  <bruno@clisp.org>
51248
51249         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51250         * doc/glibc-functions/error.texi: Mention the module 'error'.
51251         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51252         * doc/glibc-functions/getdomainname.texi: Mention the module
51253         'getdomainname'.
51254         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51255         * doc/glibc-functions/getpagesize.texi: Mention the module
51256         'getpagesize'.
51257         * doc/glibc-functions/getusershell.texi: Mention the module
51258         'getusershell'.
51259         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51260         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51261         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51262         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51263         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51264         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51265         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51266         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51267         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51268         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51269         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51270         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51271         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51272         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51273
51274 2008-10-17  Bruno Haible  <bruno@clisp.org>
51275
51276         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51277         HP-UX and IRIX, use -0.0L.
51278         * tests/test-ceill.c (minus_zero): Likewise.
51279         * tests/test-floorl.c (minus_zero): Likewise.
51280         * tests/test-frexpl.c (minus_zero): Likewise.
51281         * tests/test-isnan.c (minus_zerol): Likewise.
51282         * tests/test-isnanl.h (minus_zero): Likewise.
51283         * tests/test-ldexpl.c (minus_zero): Likewise.
51284         * tests/test-roundl.c (minus_zero): Likewise.
51285         * tests/test-signbit.c (minus_zerol): Likewise.
51286         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51287         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51288         * tests/test-truncl.c (minus_zero): Likewise.
51289         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51290         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51291         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51292         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51293
51294 2008-10-17  Bruno Haible  <bruno@clisp.org>
51295
51296         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51297         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51298         that it gets activated only for gcc >= 3.0.
51299         * lib/dirent.in.h: Likewise.
51300         * lib/errno.in.h: Likewise.
51301         * lib/fcntl.in.h: Likewise.
51302         * lib/float.in.h: Likewise.
51303         * lib/iconv.in.h: Likewise.
51304         * lib/inttypes.in.h: Likewise.
51305         * lib/locale.in.h: Likewise.
51306         * lib/math.in.h: Likewise.
51307         * lib/netdb.in.h: Likewise.
51308         * lib/netinet_in.in.h: Likewise.
51309         * lib/search.in.h: Likewise.
51310         * lib/signal.in.h: Likewise.
51311         * lib/spawn.in.h: Likewise.
51312         * lib/stdarg.in.h: Likewise.
51313         * lib/stdint.in.h: Likewise.
51314         * lib/stdio.in.h: Likewise.
51315         * lib/stdlib.in.h: Likewise.
51316         * lib/string.in.h: Likewise.
51317         * lib/strings.in.h: Likewise.
51318         * lib/sys_file.in.h: Likewise.
51319         * lib/sys_ioctl.in.h: Likewise.
51320         * lib/sys_select.in.h: Likewise.
51321         * lib/sys_socket.in.h: Likewise.
51322         * lib/sys_stat.in.h: Likewise.
51323         * lib/sys_time.in.h: Likewise.
51324         * lib/sysexits.in.h: Likewise.
51325         * lib/time.in.h: Likewise.
51326         * lib/unistd.in.h: Likewise.
51327         * lib/wchar.in.h: Likewise.
51328         * lib/wctype.in.h: Likewise.
51329         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51330
51331 2008-10-17  Jim Meyering  <meyering@redhat.com>
51332
51333         ignore-value: don't depend on inline module
51334         * modules/ignore-value (Depends-on): Remove 'inline'.
51335         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51336         Suggestion from Bruno Haible.
51337
51338 2008-10-17  Bruno Haible  <bruno@clisp.org>
51339
51340         New implementation of condition variables for Win32.
51341         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51342         (gl_linked_waitqueue_t): New type.
51343         (gl_cond_t): Use it.
51344         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51345         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51346         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51347         (glthread_cond_init_func, glthread_cond_wait_func,
51348         glthread_cond_timedwait_func, glthread_cond_signal_func,
51349         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51350         Reimplemented on the basis of gl_linked_waitqueue_t.
51351         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51352         gl_waitqueue_t.
51353         (gl_rwlock_t): Update.
51354         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51355
51356 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51357
51358         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51359         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51360
51361 2008-10-17  Jim Meyering  <meyering@redhat.com>
51362
51363         ignore-value: new module
51364         * modules/ignore-value: New file.
51365         * lib/ignore-value.h: New file.
51366         * MODULES.html.sh (Compiler warning management): New section,
51367         just for this module.  More to come.
51368
51369 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51370
51371         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51372         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51373         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51374
51375 2008-10-16  Jim Meyering  <meyering@redhat.com>
51376
51377         openat-die.c: avoid 'no previous prototype' warning
51378         * lib/openat-die.c: Include "openat.h".
51379         Reported by Reuben Thomas <rrt@sc3d.org>.
51380
51381 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51382
51383         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51384         * lib/netdb.in.h: Fix typo.
51385         Reported by Bruno Haible  <bruno@clisp.org>
51386
51387         * lib/netdb.in.h: Include sys/socket.h for platforms without
51388         netdb.h, to get structures like hostent on MinGW.
51389         * modules/netdb (Depends-on): Add sys_socket.
51390
51391 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51392
51393         * modules/netdb, modules/netdb-tests: New file.
51394         * m4/netdb_h.m4: New file.
51395         * lib/netdb.in.h: Add, currently just an empty file pending
51396         definitions.
51397         * tests/test-netdb.c: New file.
51398         * doc/posix-headers/netdb.texi: Mention that we replace it if
51399         needed.
51400         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51401         netdb.
51402
51403 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51404
51405         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51406         with code.
51407
51408 2008-10-13  Bruno Haible  <bruno@clisp.org>
51409
51410         * lib/glthread/cond.c (glthread_cond_wait_func,
51411         glthread_cond_timedwait_func): Add a comment.
51412
51413 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51414
51415         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51416         * tests/test-select.c: Likewise,
51417
51418 2008-10-13  Bruno Haible  <bruno@clisp.org>
51419
51420         * lib/glthread/cond.c (glthread_cond_wait_func,
51421         glthread_cond_timedwait_func): Fix variable name.
51422         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51423
51424 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51425
51426         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51428         struct sockaddr.sa_len.
51429         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51430
51431 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51432
51433         * build-aux/pmccabe2html: Add css and css_url parameters.
51434
51435 2008-10-12  Bruno Haible  <bruno@clisp.org>
51436
51437         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51438         calling aclx_get.
51439         Reported by Rainer Tammer <tammer@tammer.net>.
51440
51441 2008-10-12  Bruno Haible  <bruno@clisp.org>
51442
51443         Use msvcrt aware primitives for creation/termination of Win32 threads.
51444         * lib/glthread/thread.c: Include <process.h>.
51445         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51446         (wrapper_func): Update signature.
51447         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51448
51449 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51450             Bruno Haible  <bruno@clisp.org>
51451
51452         Provide a Win32 implementation of the 'cond' module.
51453         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51454         * lib/glthread/cond.c (glthread_cond_init_func,
51455         glthread_cond_wait_func, glthread_cond_timedwait_func,
51456         glthread_cond_signal_func, glthread_cond_broadcast_func,
51457         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51458         * modules/cond (Dependencies): Add gettimeofday.
51459
51460 2008-10-11  Bruno Haible  <bruno@clisp.org>
51461
51462         Make sleep work on older versions of mingw.
51463         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51464         only whether it exists.
51465         * doc/posix-functions/sleep.texi: Mention the problem with older
51466         versions of mingw.
51467
51468 2008-10-11  Bruno Haible  <bruno@clisp.org>
51469
51470         New module 'shutdown'.
51471         * modules/shutdown: New file.
51472         * lib/sys_socket.in.h (shutdown): New declaration.
51473         * lib/winsock.c (shutdown): New function.
51474         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51475         GNULIB_SHUTDOWN.
51476         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51477         * doc/posix-functions/shutdown.texi: Document the new module.
51478
51479 2008-10-11  Jim Meyering  <meyering@redhat.com>
51480
51481         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51482
51483 2008-10-11  Bruno Haible  <bruno@clisp.org>
51484
51485         New module 'fclose'.
51486         * modules/fclose: New file.
51487         * lib/stdio.in.h (fclose): New declaration.
51488         * lib/fclose.c: New file.
51489         * m4/fclose.m4: New file.
51490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51491         REPLACE_FCLOSE.
51492         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51493         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51494         REPLACE_FCLOSE.
51495         * modules/close (Depends-on): fclose.
51496         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51497
51498 2008-10-11  Bruno Haible  <bruno@clisp.org>
51499
51500         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51501         set errno and don't call _close.
51502
51503 2008-10-10  Bruno Haible  <bruno@clisp.org>
51504
51505         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51506         ACL, not afterwards. Fixes test failure on Cygwin.
51507
51508 2008-10-09  Ben Pfaff  <blp@gnu.org>
51509
51510         * build-aux/announce-gen: Fix gnulib version related part of usage
51511         message.  Die with a useful error message if no tarballs are
51512         found.
51513
51514 2008-10-10  Jim Meyering  <meyering@redhat.com>
51515
51516         bootstrap: use git's --depth=N option only if it's supported
51517         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51518         recognize the --depth option.  Reported by Pádraig Brady.
51519
51520 2008-10-09  Bruno Haible  <bruno@clisp.org>
51521
51522         New module 'ioctl'.
51523         * modules/ioctl: New file.
51524         * lib/sys_socket.in.h (ioctl): Remove declaration.
51525         * lib/winsock.c: Include <sys/ioctl.h>.
51526         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51527         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51528         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51529         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51530         * doc/posix-functions/ioctl.texi: Mention the new module.
51531
51532 2008-10-09  Bruno Haible  <bruno@clisp.org>
51533
51534         New module 'sys_ioctl'.
51535         * lib/sys_ioctl.in.h: New file.
51536         * m4/sys_ioctl_h.m4: New file.
51537         * modules/sys_ioctl: New file.
51538         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51539
51540 2008-10-09  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51543         * lib/winsock.c: Include <stdarg.h>.
51544         (rpl_ioctl): Change to second argument 'int' and then varargs.
51545
51546 2008-10-09  Bruno Haible  <bruno@clisp.org>
51547
51548         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51549         when the sys_socket module is present and the system has <winsock2.h>.
51550
51551 2008-10-09  Bruno Haible  <bruno@clisp.org>
51552
51553         * doc/posix-functions/close.texi: Mention module 'close' instead of
51554         module 'sys_socket'.
51555
51556 2008-10-09  Bruno Haible  <bruno@clisp.org>
51557
51558         * doc/glibc-headers/sys_ioctl.texi: New file.
51559         * doc/gnulib.texi: Include it.
51560
51561 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51562             Bruno Haible  <bruno@clisp.org>
51563
51564         Combine the two replacements of 'close'.
51565         * lib/sys_socket.in.h (close): Define to a reminder to include
51566         <unistd.h>.
51567         (_gl_close_fd_maybe_socket): New declaration.
51568         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51569         * lib/winsock.c (close): Remove undefinition.
51570         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51571         needed for the gnulib module 'close'.
51572         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51573         define to an error symbol or to a warning, if suitable.
51574         * lib/close.c: Include <sys/socket.h>.
51575         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51576         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51577         UNISTD_H_HAVE_WINSOCK2_H.
51578         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51580         UNISTD_H_HAVE_WINSOCK2_H.
51581         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51582         (configure.ac): Set a module indicator.
51583         (Makefile.am): Substitute GNULIB_CLOSE.
51584         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51585         * modules/poll-tests (Depends-on): Add close.
51586         * modules/select-tests (Depends-on): Likewise.
51587
51588 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51589             Bruno Haible  <bruno@clisp.org>
51590
51591         New module 'close'.
51592         * modules/close: New file.
51593         * lib/unistd.in.h (close): Move declaration out of the
51594         FCHDIR_REPLACEMENT scope.
51595         (_gl_unregister_fd): New declaration.
51596         * lib/close.c: New file.
51597         * lib/fchdir.c (rpl_close): Remove function.
51598         * m4/close.m4: New file.
51599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51600         close.
51601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51602         REPLACE_CLOSE.
51603         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51604         REPLACE_CLOSE.
51605         * modules/fchdir (Depends-on): Add close.
51606
51607 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51608             Bruno Haible  <bruno@clisp.org>
51609
51610         * lib/fcntl.in.h (open): Simplify conditionals.
51611         (_gl_register_fd): New declaration.
51612         * lib/fchdir.c (rpl_open): Remove function.
51613         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51614         also.
51615         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51617         open.
51618
51619 2008-10-09  Jim Meyering  <meyering@redhat.com>
51620
51621         GNUmakefile: use the more name-space-friendly "_version"
51622         * top/GNUmakefile (_dummy): Update.
51623         (_version): Rename from "version".
51624
51625 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51626             Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51629         rpl_close.
51630         (_gl_register_fd): New function, extracted from rpl_open.
51631         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51632         (rpl_open, rpl_opendir): Use _gl_register_fd.
51633
51634 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51635
51636         Fix organization of 'open' replacement.
51637         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51638         (gl_FUNC_OPEN): Use it.
51639         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51640
51641 2008-10-08  Bruno Haible  <bruno@clisp.org>
51642
51643         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51644
51645 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51646
51647         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51648         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51649         listen).
51650
51651 2008-10-08  Eric Blake  <ebb9@byu.net>
51652
51653         GNUmakefile: add 'make version' target
51654         * top/GNUmakefile (_curr-ver): Split version update rules...
51655         (version): ...into a target.
51656
51657 2008-10-07  Bruno Haible  <bruno@clisp.org>
51658
51659         Use a more portable replacement expression for -0.0L.
51660         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51661         instead of -0.0L. Fix m4 quotation.
51662
51663         * tests/test-signbit.c: Include <float.h>.
51664         (minus_zero): New variable.
51665         (test_signbitl): Use minus_zero instead of -zero.
51666         * modules/signbit-tests (Depends-on): Add float.
51667
51668         * tests/test-ceill.c: Include <float.h>.
51669         (zero): Remove variable.
51670         (minus_zero): New variable.
51671         (main): Use minus_zero instead of -zero.
51672         * modules/ceill-tests (Depends-on): Add float.
51673
51674         * tests/test-floorl.c: Include <float.h>.
51675         (zero): Remove variable.
51676         (minus_zero): New variable.
51677         (main): Use minus_zero instead of -zero.
51678         * modules/floorl-tests (Depends-on): Add float.
51679
51680         * tests/test-roundl.c: Include <float.h>.
51681         (zero): Remove variable.
51682         (minus_zero): New variable.
51683         (main): Use minus_zero instead of -zero.
51684         * modules/roundl-tests (Depends-on): Add float.
51685
51686         * tests/test-truncl.c: Include <float.h>.
51687         (zero): Remove variable.
51688         (minus_zero): New variable.
51689         (main): Use minus_zero instead of -zero.
51690         * modules/truncl-tests (Depends-on): Add float.
51691
51692         * tests/test-frexpl.c (zero): Remove variable.
51693         (minus_zero): New variable.
51694         (main): Use minus_zero instead of -zero.
51695         * modules/frexpl-tests (Depends-on): Add float.
51696
51697         * tests/test-isnan.c (zerol): Remove variable.
51698         (minus_zerol): New variable.
51699         (test_long_double): Use minus_zerol instead of -zerol.
51700         * modules/isnan-tests (Depends-on): Add float.
51701
51702         * tests/test-isnanl.h (zero): Remove variable.
51703         (minus_zero): New variable.
51704         (main): Use minus_zero instead of -zero.
51705         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51706         * modules/isnanl-tests (Depends-on): Add float.
51707
51708         * tests/test-ldexpl.c (zero): Remove variable.
51709         (minus_zero): New variable.
51710         (main): Use minus_zero instead of -zero.
51711         * modules/ldexpl-tests (Depends-on): Add float.
51712
51713         * tests/test-snprintf-posix.h (zerol): Remove variable.
51714         (minus_zerol): New variable.
51715         (test_function): Use minus_zerol instead of -zerol.
51716         * modules/snprintf-posix-tests (Depends-on): Add float.
51717         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51718
51719         * tests/test-sprintf-posix.h (zerol): Remove variable.
51720         (minus_zerol): New variable.
51721         (test_function): Use minus_zerol instead of -zerol.
51722         * modules/sprintf-posix-tests (Depends-on): Add float.
51723         * modules/vsprintf-posix-tests (Depends-on): Add float.
51724
51725         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51726         (minus_zerol): New variable.
51727         (test_function): Use minus_zerol instead of -zerol.
51728         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51729
51730         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51731         (minus_zerol): New variable.
51732         (test_function): Use minus_zerol instead of -zerol.
51733         * modules/vasprintf-posix-tests (Depends-on): Add float.
51734
51735 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51736
51737         * MODULES.html.sh (Support for building documentation): Mention
51738         pmccabe2html.  Sort entries.
51739
51740         Add pmccabe2html module, from gnupdf.
51741         * build-aux/pmccabe.css: New file.
51742         * build-aux/pmccabe2html: New file.
51743         * m4/pmccabe2html.m4: New file.
51744         * modules/pmccabe2html: New file.
51745
51746 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51747
51748         flock: new module
51749         * MODULES.html.sh: Add to list of modules.
51750         * lib/flock.c: flock implementation for Windows and Unix systems
51751         which have fcntl.
51752         * doc/glibc-functions/flock.texi: Update documentation.
51753         * lib/sys_file.in.h: <sys/file.h> header file.
51754         * m4/flock.m4: M4 macros.
51755         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51756         * modules/flock: flock module.
51757         * modules/flock-tests: flock tests module.
51758         * modules/sys_file: sys/file.h module.
51759         * tests/test-flock.c: test suite for flock.
51760
51761 2008-10-06  Jim Meyering  <meyering@redhat.com>
51762
51763         bootstrap: check for LT_INIT more portably still ;-)
51764         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51765         Spotted by Bruno Haible.
51766
51767 2008-10-06  Eric Blake  <ebb9@byu.net>
51768
51769         test-signbit: avoid tripping Irix cc bug on -0.0L
51770         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51771         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51772         entire testsuite consistent and avoids an Irix 6.2 bug.
51773
51774 2008-10-05  Bruno Haible  <bruno@clisp.org>
51775             Jim Meyering  <jim@meyering.net>
51776
51777         Add an option for ignoring EPIPE during close_stdout.
51778         * lib/closeout.h: Include <stdbool.h>.
51779         (close_stdout_set_ignore_EPIPE): New declaration.
51780         * lib/closeout.c: Include <stdbool.h>.
51781         (ignore_EPIPE): New variable.
51782         (close_stdout_set_ignore_EPIPE): New function.
51783         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51784         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51785         failure.
51786         * modules/closeout (Depends-on): Add stdbool.
51787
51788 2008-10-05  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/accept: New file.
51791         * modules/bind: New file.
51792         * modules/connect: New file.
51793         * modules/getpeername: New file.
51794         * modules/getsockname: New file.
51795         * modules/getsockopt: New file.
51796         * modules/listen: New file.
51797         * modules/recv: New file.
51798         * modules/recvfrom: New file.
51799         * modules/send: New file.
51800         * modules/sendto: New file.
51801         * modules/setsockopt: New file.
51802         * modules/socket: New file.
51803         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51804         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51805         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51806         the particular module is requested. Add a link warning when the
51807         particular module is not requested.
51808         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51809         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51810         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51811         the particular module is requested.
51812         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51813         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51814         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51815         * modules/sys_socket (Depends-on): Add link-warning.
51816         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51817         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51818         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51819         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51820         GL_LINK_WARNING.
51821         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51822         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51823         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51824         * doc/posix-functions/getpeername.texi: Mention the new module
51825         'getpeername'.
51826         * doc/posix-functions/getsockname.texi: Mention the new module
51827         'getsockname'.
51828         * doc/posix-functions/getsockopt.texi: Mention the new module
51829         'getsockopt'.
51830         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51831         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51832         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51833         * doc/posix-functions/send.texi: Mention the new module 'send'.
51834         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51835         * doc/posix-functions/setsockopt.texi: Mention the new module
51836         'setsockopt'.
51837         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51838         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51839         listen, connect, accept.
51840         * modules/select-tests (Depends-on): Likewise.
51841
51842 2008-10-05  Bruno Haible  <bruno@clisp.org>
51843
51844         * lib/winsock.c (strerror): Remove unused #undef.
51845         (rpl_close): Remove unused local variable.
51846
51847         * modules/sys_socket (Depends-on); Add errno.
51848
51849 2008-10-05  Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51852         (select): Add a link warning when the 'select' module is not used.
51853         * modules/sys_select (Depends-on): Add link-warning.
51854         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51855         Suggested by Paolo Bonzini.
51856
51857 2008-10-05  Jim Meyering  <meyering@redhat.com>
51858
51859         bootstrap: check for LT_INIT more portably
51860         * build-aux/bootstrap: Avoid using grep -E, since it's not
51861         portable enough.  Suggestion from Bruno Haible.
51862
51863 2008-10-05  Bruno Haible  <bruno@clisp.org>
51864
51865         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51866         as being fixed by gnulib.
51867
51868 2008-10-05  Bruno Haible  <bruno@clisp.org>
51869
51870         * modules/select-tests: New file, mostly copied from
51871         modules/sys_select-tests.
51872         * tests/test-select.c: New file, mostly copied from
51873         tests/test-sys_select.c.
51874         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51875         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51876         (Makefile.am): Remove test_sys_select_LDADD.
51877
51878         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51879         to an undefined symbol, for an error message.
51880         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51881         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51882         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51883         winsock-select.c here.
51884         * modules/sys_select (Files): Remove lib/winsock-select.c.
51885         (Depends-on): Remove alloca.
51886         (Makefile.am): Substitute GNULIB_SELECT.
51887         * modules/select: New file.
51888         * doc/posix-functions/select.texi: Update.
51889
51890 2008-10-05  Bruno Haible  <bruno@clisp.org>
51891
51892         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51893         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51894         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51895         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51896         getdtablesize.
51897         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51898         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51899
51900 2008-10-05  Bruno Haible  <bruno@clisp.org>
51901
51902         * modules/getdtablesize-tests: New file.
51903         * tests/test-getdtablesize.c: New file.
51904
51905         New module 'getdtablesize'.
51906         * lib/unistd.in.h (getdtablesize): New declaration.
51907         * lib/getdtablesize.c: New file.
51908         * m4/getdtablesize.m4: New file.
51909         * modules/getdtablesize: New file.
51910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51911         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51912         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51913         HAVE_GETDTABLESIZE.
51914         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51915
51916 2008-10-05  Bruno Haible  <bruno@clisp.org>
51917
51918         * modules/sched (Makefile.am): Fix typo.
51919         Reported by Simon Josefsson.
51920
51921 2008-10-05  Jim Meyering  <meyering@redhat.com>
51922
51923         bootstrap: check for LT_INIT, too
51924         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51925         are deprecated.  Suggestion from Ralf Wildenhues.
51926
51927 2008-10-05  Bruno Haible  <bruno@clisp.org>
51928
51929         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51930         overriding them by ours.
51931         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51932
51933 2008-10-05  Jim Meyering  <meyering@redhat.com>
51934
51935         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51936         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51937         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51938
51939 2008-10-04  Bruno Haible  <bruno@clisp.org>
51940
51941         * modules/dup2 (License): Change to LGPLv2+.
51942         * modules/sleep (License): Likewise.
51943         * modules/perror (License): Likewise.
51944         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51945         Blake.
51946         * modules/signal (License): Likewise.
51947         * modules/sigprocmask (License): Likewise.
51948         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51949         Meyering.
51950
51951 2008-10-04  Bruno Haible  <bruno@clisp.org>
51952
51953         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51954         Reported by Rainer Tammer <tammer@tammer.net>.
51955
51956 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51957             Bruno Haible  <bruno@clisp.org>
51958
51959         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51960         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51961         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51962
51963 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51964
51965         filevercmp: new module
51966         * lib/filevercmp.h: New function filevercmp comparing version strings.
51967         * lib/filevercmp.c: Implementation of filevercmp function.
51968         * modules/filevercmp: Module metadata.
51969         * tests/test-filevercmp.c: Unit test for new module.
51970         * modules/filevercmp-tests: Unit test metadata.
51971         * MODULES.html.sh: Add filevercmp module.
51972
51973 2008-10-03  Bruno Haible  <bruno@clisp.org>
51974
51975         * lib/c-ctype.h: Add comment.
51976         Reported by Jim Meyering.
51977
51978 2008-10-02  Bruno Haible  <bruno@clisp.org>
51979
51980         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51981
51982 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51983
51984         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51985         name of bootstrap.conf accordingly.
51986
51987 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51988
51989         * build-aux/bootstrap: Install git-merge-changelog configuration
51990         items into .gitconfig if needed.
51991
51992 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51993
51994         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51995         git repository, and initialize/update it accordingly.
51996
51997 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51998
51999         * modules/fsync-tests: New file.
52000         * tests/test-fsync.c: New file.
52001
52002         New module 'fsync'.
52003         * lib/fsync.c: New file.
52004         * m4/fsync.m4: New file.
52005         * modules/fsync: New file.
52006         * lib/unistd.in.h (fsync): New declaration.
52007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52008         GNULIB_FSYNC and HAVE_FSYNC.
52009         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52010         * MODULES.html.sh (posix_functions): Add fsync.
52011         * doc/posix-functions/fsync.texi: Mention the new module.
52012
52013 2008-10-02  Jim Meyering  <meyering@redhat.com>
52014
52015         fts.c: sync with similar code from coreutils' remove.c
52016         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52017         Guard also with "#if defined __linux__", since for now at least,
52018         this code is Linux-kernel-specific.
52019
52020 2008-10-02  Jim Meyering  <meyering@redhat.com>
52021
52022         fts: bug fixes
52023         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52024         Include <sys/vfs.h>, not <sys/statfs.h>.
52025
52026         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52027         Include <sys/vfs.h>, not <sys/statfs.h>.
52028
52029 2008-10-01  Bruno Haible  <bruno@clisp.org>
52030
52031         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52032         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52033         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52034         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52035         * doc/posix-functions/posix_spawnp.texi: Likewise.
52036         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52037         whether posix_spawn actually works.
52038         * m4/pipe.m4 (gl_PIPE): Likewise.
52039         * modules/execute (Files): Add m4/posix_spawn.m4.
52040         * modules/pipe (Files): Add m4/posix_spawn.m4.
52041         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52042
52043 2008-10-01  Jim Meyering  <meyering@redhat.com>
52044
52045         remove trailing spaces
52046         * NEWS: Likewise.
52047         * lib/poll.c (poll): Likewise.
52048         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52049         * lib/winsock.c (rpl_close): Likewise.
52050         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52051         * modules/yield: Likewise.
52052         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52053         * tests/test-sys_select.c (connect_to_socket): Likewise.
52054
52055         fts.c: adjust a new interface to be more generally useful
52056         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52057         (fts_build): Adjust caller.
52058
52059 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52060
52061         * modules/cond-tests: New file.
52062         * tests/test-cond.c: New file.
52063
52064 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52065             Bruno Haible  <bruno@clisp.org>
52066
52067         * modules/cond (Dependencies): Add errno, time.
52068         * lib/glthread/cond.h: Include <time.h>.
52069         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52070         across platforms.
52071
52072 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52073             Bruno Haible  <bruno@clisp.org>
52074
52075         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52076
52077 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52078             Bruno Haible  <bruno@clisp.org>
52079
52080         * modules/tls-tests (Depends-on): Add thread, yield.
52081         (configure.ac): Remove all checks.
52082         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52083         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52084         gl_thread_self): Remove definitions. Include glthread/thread.h and
52085         glthread/yield.h instead.
52086         (test_tls): Pass an additional NULL argument to gl_thread_join.
52087
52088 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52089             Bruno Haible  <bruno@clisp.org>
52090
52091         * modules/lock-tests (Depends-on): Add thread, yield.
52092         (configure.ac): Remove all checks.
52093         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52094         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52095         gl_thread_self): Remove definitions. Include glthread/thread.h and
52096         glthread/yield.h instead.
52097         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52098         additional NULL argument to gl_thread_join.
52099
52100 2008-09-30  Bruno Haible  <bruno@clisp.org>
52101
52102         Fix the Win32 implementation of the 'thread' module.
52103         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52104         pointer type.
52105         (gl_thread_self): Invoke gl_thread_self_func.
52106         (gl_thread_self_func): New declaration.
52107         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52108         (do_init_self_key, init_self_key): New functions.
52109         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52110         Remove some fields.
52111         (running_threads, running_lock): Remove variables.
52112         (get_current_thread_handle): New function.
52113         (gl_thread_self_func, wrapper_func, glthread_create_func,
52114         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52115         simplified.
52116
52117 2008-09-30  Bruno Haible  <bruno@clisp.org>
52118
52119         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52120         files.
52121
52122 2008-09-30  Jim Meyering  <meyering@redhat.com>
52123
52124         fts.m4: correct the test for statfs.f_type
52125         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52126         when checking for statfs.f_type.
52127
52128 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52129
52130         tests: avoid some compiler warnings
52131         * tests/test-memchr.c (main): Pass NULL indirectly.
52132         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52133
52134 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52135
52136         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52137         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52138         exactly specified dayshifts.
52139         (dayshift): New rule.
52140         (rel): Add dayshift.
52141         (relative_time_table) [tomorrow, yesterday, today, now]:
52142         Use tDAY_SHIFT in place of tDAY_UNIT.
52143         * tests/test-getdate.c: Add tests for now-disallowed countable
52144         dayshifts, e.g., "4 yesterday ago".
52145
52146 2008-09-29  Bruno Haible  <bruno@clisp.org>
52147
52148         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52149         * tests/test-posix_spawn1.in.sh: Renamed from
52150         tests/test-posix_spawn.in.sh.
52151         * tests/test-posix_spawn2.c: New file.
52152         * tests/test-posix_spawn2.in.sh: New file.
52153         * modules/posix_spawnp-tests (Files): Update.
52154         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52155
52156 2008-09-29  Bruno Haible  <bruno@clisp.org>
52157
52158         Propagate effects of putenv/setenv/unsetenv to child processes.
52159         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52160         * lib/pipe.c (create_pipe): Likewise.
52161
52162 2008-09-29  Bruno Haible  <bruno@clisp.org>
52163
52164         Enable use of shell scripts as executables in mingw.
52165         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52166         run the program as a shell script.
52167         * lib/pipe.c (create_pipe): Likewise.
52168         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52169         resulting array.
52170
52171 2008-09-29  Eric Blake  <ebb9@byu.net>
52172
52173         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52174
52175 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52176
52177         * doc/posix-functions/accept.texi: Update mingw problems.
52178         * doc/posix-functions/bind.texi: Update mingw problems.
52179         * doc/posix-functions/close.texi: Update mingw problems.
52180         * doc/posix-functions/connect.texi: Update mingw problems.
52181         * doc/posix-functions/getpeername.texi: Update mingw problems.
52182         * doc/posix-functions/getsockname.texi: Update mingw problems.
52183         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52184         * doc/posix-functions/ioctl.texi: Update mingw problems.
52185         * doc/posix-functions/listen.texi: Update mingw problems.
52186         * doc/posix-functions/recv.texi: Update mingw problems.
52187         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52188         * doc/posix-functions/select.texi: Update mingw problems.
52189         * doc/posix-functions/send.texi: Update mingw problems.
52190         * doc/posix-functions/sendto.texi: Update mingw problems.
52191         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52192         * doc/posix-functions/socket.texi: Update mingw problems.
52193
52194 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52195             Bruno Haible  <bruno@clisp.org>
52196
52197         * lib/sys_select.in.h: Include sys/time.h.
52198         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52199         * modules/sys_select: Depend on sys_time.
52200         * tests/test-sys_select.c: Test that sys/select.h defines struct
52201         timeval fully.
52202
52203 2008-09-29  Bruno Haible  <bruno@clisp.org>
52204
52205         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52206         * lib/sys_select.in.h: Likewise.
52207
52208 2008-09-29  Bruno Haible  <bruno@clisp.org>
52209
52210         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52211
52212 2008-09-29  Bruno Haible  <bruno@clisp.org>
52213
52214         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52215         Set LIBSOCKET instead of augmenting LIBS.
52216         * modules/sockets (Link): New section.
52217         * modules/sockets-tests (test_sockets_LDADD): New variable.
52218         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52219         * modules/poll-tests (test_poll_LDADD): New variable.
52220         * NEWS: Document the change.
52221
52222 2008-09-29  Bruno Haible  <bruno@clisp.org>
52223
52224         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52225         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52226         ARPA_INET_H directly.
52227         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52228
52229 2008-09-28  Bruno Haible  <bruno@clisp.org>
52230
52231         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52232         from gl_HEADER_SYS_SOCKET.
52233         (gl_HEADER_SYS_SOCKET): Invoke it.
52234         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52235
52236 2008-09-28  Bruno Haible  <bruno@clisp.org>
52237
52238         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52239         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52240         Needed on OSF/1 4.0.
52241
52242 2008-09-28  Bruno Haible  <bruno@clisp.org>
52243
52244         Override open more carefully.
52245         * lib/open.c (orig_open): New function.
52246         (rpl_open): Use orig_open instead of open.
52247         * lib/fcntl.in.h: Add special invocation convention.
52248         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52249         (gl_FUNC_OPEN): Invoke it.
52250
52251         Override freopen more carefully.
52252         * lib/freopen.c (orig_freopen): New function.
52253         (rpl_freopen): Use orig_freopen instead of freopen.
52254         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52255         (gl_FUNC_FREOPEN): Invoke it.
52256
52257         Override fopen more carefully.
52258         * lib/fopen.c (orig_fopen): New function.
52259         (rpl_fopen): Use orig_fopen instead of fopen.
52260         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52261         (gl_FUNC_FOPEN): Invoke it.
52262         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52263
52264 2008-09-28  Bruno Haible  <bruno@clisp.org>
52265
52266         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52267         SIGPIPE.
52268
52269 2008-09-28  Bruno Haible  <bruno@clisp.org>
52270
52271         * tests/test-sigaction.c (handler, main): Disable the check whether
52272         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52273         glibc systems with LinuxThreads.
52274
52275 2008-09-28  Bruno Haible  <bruno@clisp.org>
52276
52277         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52278
52279         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52280         with AIX xlc.
52281         * lib/fcntl.in.h (open): Likewise.
52282         Reported by Rainer Tammer <tammer@tammer.net>.
52283
52284 2008-09-28  Bruno Haible  <bruno@clisp.org>
52285
52286         * modules/posix_spawnp-tests: New file.
52287         * tests/test-posix_spawn.c: New file.
52288         * tests/test-posix_spawn.in.sh: New file.
52289
52290         New module 'posix_spawnp'.
52291         * modules/posix_spawnp: New file.
52292         * lib/spawnp.c: New file, from GNU libc with modifications.
52293         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52294
52295         New module 'posix_spawn'.
52296         * modules/posix_spawn: New file.
52297         * lib/spawn.c: New file, from GNU libc with modifications.
52298         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52299
52300         New module 'posix_spawnattr_destroy'.
52301         * modules/posix_spawnattr_destroy: New file.
52302         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52303         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52304         module.
52305
52306         New module 'posix_spawnattr_setsigmask'.
52307         * modules/posix_spawnattr_setsigmask: New file.
52308         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52309         modifications.
52310         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52311         new module.
52312
52313         New module 'posix_spawnattr_getsigmask'.
52314         * modules/posix_spawnattr_getsigmask: New file.
52315         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52316         modifications.
52317         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52318         new module.
52319
52320         New module 'posix_spawnattr_setsigdefault'.
52321         * modules/posix_spawnattr_setsigdefault: New file.
52322         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52323         modifications.
52324         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52325         new module.
52326
52327         New module 'posix_spawnattr_getsigdefault'.
52328         * modules/posix_spawnattr_getsigdefault: New file.
52329         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52330         modifications.
52331         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52332         new module.
52333
52334         New module 'posix_spawnattr_setschedpolicy'.
52335         * modules/posix_spawnattr_setschedpolicy: New file.
52336         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52337         modifications.
52338         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52339         new module.
52340
52341         New module 'posix_spawnattr_getschedpolicy'.
52342         * modules/posix_spawnattr_getschedpolicy: New file.
52343         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52344         modifications.
52345         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52346         new module.
52347
52348         New module 'posix_spawnattr_setschedparam'.
52349         * modules/posix_spawnattr_setschedparam: New file.
52350         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52351         modifications.
52352         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52353         new module.
52354
52355         New module 'posix_spawnattr_getschedparam'.
52356         * modules/posix_spawnattr_getschedparam: New file.
52357         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52358         modifications.
52359         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52360         new module.
52361
52362         New module 'posix_spawnattr_setpgroup'.
52363         * modules/posix_spawnattr_setpgroup: New file.
52364         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52365         modifications.
52366         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52367         module.
52368
52369         New module 'posix_spawnattr_getpgroup'.
52370         * modules/posix_spawnattr_getpgroup: New file.
52371         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52372         modifications.
52373         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52374         module.
52375
52376         New module 'posix_spawnattr_setflags'.
52377         * modules/posix_spawnattr_setflags: New file.
52378         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52379         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52380         module.
52381
52382         New module 'posix_spawnattr_getflags'.
52383         * modules/posix_spawnattr_getflags: New file.
52384         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52385         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52386         module.
52387
52388         New module 'posix_spawnattr_init'.
52389         * modules/posix_spawnattr_init: New file.
52390         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52391         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52392         module.
52393
52394         New module 'posix_spawn_file_actions_destroy'.
52395         * modules/posix_spawn_file_actions_destroy: New file.
52396         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52397         modifications.
52398         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52399         the new module.
52400
52401         New module 'posix_spawn_file_actions_addopen'.
52402         * modules/posix_spawn_file_actions_addopen: New file.
52403         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52404         modifications.
52405         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52406         the new module.
52407
52408         New module 'posix_spawn_file_actions_adddup2'.
52409         * modules/posix_spawn_file_actions_adddup2: New file.
52410         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52411         modifications.
52412         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52413         the new module.
52414
52415         New module 'posix_spawn_file_actions_addclose'.
52416         * modules/posix_spawn_file_actions_addclose: New file.
52417         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52418         modifications.
52419         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52420         the new module.
52421
52422         New module 'posix_spawn_file_actions_init'.
52423         * modules/posix_spawn_file_actions_init: New file.
52424         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52425         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52426         new module.
52427
52428         New module 'posix_spawn-internal'.
52429         * modules/posix_spawn-internal: New file.
52430         * lib/spawn_int.h: New file, from GNU libc with modifications.
52431         * lib/spawni.c: New file, from GNU libc with modifications.
52432         * m4/posix_spawn.m4: New file.
52433
52434         New module 'spawn'.
52435         * modules/spawn: New file.
52436         * lib/spawn.in.h: New file, from GNU libc with modifications.
52437         * m4/spawn_h.m4: New file.
52438         * doc/posix-headers/spawn.texi: Mention the new module.
52439
52440 2008-09-28  Bruno Haible  <bruno@clisp.org>
52441
52442         * modules/sched-tests: New file.
52443         * tests/test-sched.c: New file.
52444
52445         New module 'sched'.
52446         * modules/sched: New file.
52447         * lib/sched.in.h: New file.
52448         * m4/sched_h.m4: New file.
52449         * doc/posix-headers/sched.texi: Mention the new module.
52450
52451 2008-09-27  Eric Blake  <ebb9@byu.net>
52452
52453         Fix previous patch, and tweak references to $0.
52454         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52455         (func_version, func_gnulib_dir): Don't call this program
52456         gnulib-tool.
52457         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52458         with using $0 in function.
52459         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52460         (func_fatal_error): Reuse the name the user invoked us with.
52461
52462 2008-09-27  Bruno Haible  <bruno@clisp.org>
52463
52464         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52465         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52466         (gl_ICONV_H): Not here.
52467         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52468         instead of assigning ICONV_H directly.
52469
52470         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52472         WCHAR_H directly.
52473
52474 2008-09-27  Bruno Haible  <bruno@clisp.org>
52475
52476         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52477         * modules/arpa_inet (Depends-on): Add link-warning.
52478         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52479         * modules/unistd (Makefile.am): Likewise.
52480
52481 2008-09-26  Bruno Haible  <bruno@clisp.org>
52482
52483         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52484         variables.
52485         (func_version): Essentially copied from gnulib-tool.
52486         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52487         func_readlink): Copied from gnulib-tool.
52488
52489 2008-09-26  Bruno Haible  <bruno@clisp.org>
52490
52491         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52492         invoking git-version-gen.
52493
52494 2008-09-26  Bruno Haible  <bruno@clisp.org>
52495
52496         * posix-modules: Update to directory names changed on 2008-01-19.
52497         Remove commas in output before splitting into words. No more need to
52498         avoid 'ftruncate' since 2007-02-19.
52499
52500 2008-09-26  Bruno Haible  <bruno@clisp.org>
52501
52502         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52503
52504 2008-09-26  Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52507         * modules/fwriteerror (Depends-on): Add errno.
52508
52509 2008-09-26  Bruno Haible  <bruno@clisp.org>
52510
52511         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52512         * tests/test-vc-list-files-cvs.sh: Likewise.
52513
52514 2008-09-26  Bruno Haible  <bruno@clisp.org>
52515
52516         * doc/posix-headers/sys_resource.texi: Reorder items.
52517
52518 2008-09-26  Jim Meyering  <meyering@redhat.com>
52519
52520         fts: tweak inode comparison function
52521         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52522         inode numbers, as documented.
52523
52524         fts: sort dirent entries on inode number before traversing
52525         This avoids a quadratic, seek-related performance penalty when
52526         operating on a directory containing many entries (measurable at 10k;
52527         3.5 hours at 2 million entries with a cold cache) on certain types
52528         of file systems, including ext3 and ext4, but not tmpfs.
52529         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52530         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52531         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52532         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52533         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52534         (fts_build): Set the stat.st_ino member from D_INO.
52535         If it is likely to be useful, sort dirent entries on inode number.
52536
52537         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52538         and the struct statfs.f_type member.
52539         * modules/fts (Depends-on): Add d-ino.
52540
52541 2008-09-26  Bruno Haible  <bruno@clisp.org>
52542
52543         * modules/sigpipe-die (Depends-on): Add sigpipe.
52544
52545         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52546         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52547         and GNULIB_STDIO_H_SIGPIPE are set.
52548         * lib/stdio-write.c: New file.
52549         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52550         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52551         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52552         REPLACE_STDIO_WRITE_FUNCS.
52553         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52554         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52555         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52556         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52557         * modules/stdio (Files): Add lib/stdio-write.c.
52558         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52559         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52560         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52561         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52562         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52563         REPLACE_FPRINTF_POSIX.
52564         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52565         REPLACE_PRINTF_POSIX.
52566         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52567         REPLACE_VFPRINTF_POSIX.
52568         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52569         REPLACE_VPRINTF_POSIX.
52570         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52571         SIGPIPE issue.
52572         * doc/posix-functions/fputc.texi: Likewise.
52573         * doc/posix-functions/fputs.texi: Likewise.
52574         * doc/posix-functions/fwrite.texi: Likewise.
52575         * doc/posix-functions/printf.texi: Likewise.
52576         * doc/posix-functions/putc.texi: Likewise.
52577         * doc/posix-functions/putchar.texi: Likewise.
52578         * doc/posix-functions/puts.texi: Likewise.
52579         * doc/posix-functions/vfprintf.texi: Likewise.
52580         * doc/posix-functions/vprintf.texi: Likewise.
52581
52582         * modules/safe-write (Depends-on): Add write.
52583
52584         * modules/sigpipe-tests: New file.
52585         * tests/test-sigpipe.c: New file.
52586         * tests/test-sigpipe.sh: New file.
52587
52588         * modules/write: New file.
52589         * lib/unistd.in.h: Include <sys/types.h>.
52590         (write): New declaration.
52591         * lib/write.c: New file.
52592         * m4/write.m4: New file.
52593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52594         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52595         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52596         GNULIB_WRITE, REPLACE_WRITE.
52597         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52598         and the SIGPIPE issue.
52599
52600         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52601         (raise): New declaration.
52602         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52603         (ext_signal): New function.
52604         (rpl_raise): New function.
52605         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52606         GNULIB_SIGNAL_H_SIGPIPE.
52607         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52608         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52609
52610         * modules/sigpipe: New file.
52611         * m4/sigpipe.m4: New file.
52612
52613 2008-09-25  Derek Price  <derek@ximbiot.com>
52614             Bruno Haible  <bruno@clisp.org>
52615
52616         * gnulib-tool (func_import): Report all license incompatibilities, not
52617         just the first one.
52618
52619 2008-09-25  Bruno Haible  <bruno@clisp.org>
52620
52621         * gnulib-tool (func_import): When computing the edits, consider not
52622         only the Makefile.ams that exist but also those that will be generated.
52623
52624 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52625
52626         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52627         fixes gnulib-tool --test warning about duplicate dependency.
52628
52629 2008-09-25  Bruno Haible  <bruno@clisp.org>
52630
52631         * gnulib-tool: Don't ask the user to perform edits in the generated
52632         Makefile.ams.
52633         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52634         apply to the Makefile.am being generated.
52635         (func_emit_tests_Makefile_am): Execute edits that apply to the
52636         Makefile.am being generated.
52637         (func_import): Setup list of Makefile.am edits before emitting the
52638         Makefile.ams, not at the end.
52639         (func_create_testdir): Update.
52640         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52641
52642 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52643
52644         * gnulib-tool (func_import): Store the --tests-base option in the
52645         comment in gnulib-cache.m4.
52646
52647 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52648
52649         * NEWS: Document increased portability that sys_select now provides.
52650
52651         * lib/sys_select.in.h: Install select wrapper.
52652         * lib/sys_socket.in.h: Use more descriptive name when there is no
52653         select wrapper.
52654         * lib/winsock-select.c: New.
52655         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52656         Require gl_HEADER_SYS_SOCKET.
52657         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52658         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52659         * tests/test-sys_select.c: Add functional tests.
52660
52661 2008-09-24  Eric Blake  <ebb9@byu.net>
52662
52663         open, fopen: close fd leak in last patch
52664         * lib/open.c (rpl_open): Close fd before returning error.
52665         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52666         * doc/posix-functions/open.texi (open): Document that Irix also
52667         has the bug.
52668         * doc/posix-functions/fopen.texi (fopen): Likewise.
52669         Reported by Paolo Bonzini.
52670
52671 2008-09-24  Bruno Haible  <bruno@clisp.org>
52672
52673         Ensure that a filename ending in a slash cannot be used to access a
52674         non-directory.
52675         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52676         to check whether it's really a directory.
52677         * lib/fopen.c: Include fcntl.h, unistd.h.
52678         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52679         and fdopen().
52680         * modules/fopen (Depends-on): Add unistd.
52681         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52682         * tests/test-fopen.c (main): Likewise.
52683         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52684         * doc/posix-functions/fopen.texi: Likewise.
52685         Reported by Eric Blake.
52686
52687 2008-09-23  Eric Blake  <ebb9@byu.net>
52688
52689         c-stack: avoid compiler optimizations when provoking overflow
52690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52691         recursion harder to optimize, to ensure a stack overflow occurs.
52692         * tests/test-c-stack.c (recurse): Likewise.
52693         Borrowed from libsigsegv.
52694
52695         c-stack: work around Irix sigaltstack bug
52696         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52697         whether sigaltstack uses wrong end of stack_t (copied in part from
52698         libsigsegv).
52699         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52700         Irix bug, without requiring an over-allocation.
52701         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52702         bug.
52703
52704         fopen: document mingw bug on directories
52705         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52706         not allowing a stream visiting a directory, even though reading
52707         from such a stream is not portable.
52708
52709 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52710
52711         * lib/poll.c: Rewrite.
52712         * modules/poll: Depend on alloca.
52713
52714 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52715
52716         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52717         instead define prototypes for a full set of wrappers.  Ensure
52718         that Cygwin does not use the compatibility code, which is only
52719         for MinGW.
52720         * lib/winsock.c: New.
52721         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52722         * modules/sys_socket: Add lib/winsock.c.
52723
52724         * modules/poll-tests: Add errno and perror.
52725         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52726
52727 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52728
52729         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52730
52731 2008-09-23  Bruno Haible  <bruno@clisp.org>
52732
52733         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52734         * doc/glibc-functions/*: Likewise.
52735
52736 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52737
52738         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52739         success.
52740
52741 2008-09-22  Eric Blake  <ebb9@byu.net>
52742             Bruno Haible  <bruno@clisp.org>
52743
52744         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52745         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52746         supply %A but mishandle pseudo-NaN.
52747         Reported by Simon Josefsson.
52748
52749 2008-09-21  Bruno Haible  <bruno@clisp.org>
52750
52751         * tests/test-lock.c (main): Tweak skip message.
52752         * tests/test-tls.c (main): Likewise.
52753
52754 2008-09-21  Bruno Haible  <bruno@clisp.org>
52755
52756         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52757         whether 'struct sigaction' has sa_sigaction here...
52758         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52759         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52760
52761 2008-09-21  Bruno Haible  <bruno@clisp.org>
52762
52763         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52764         section.
52765         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52766         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52767         the new section.
52768         (Support for obsolete systems lacking POSIX:2001): New section.
52769         (String handling <string.h>): Move strdup to the new section.
52770         Suggested by Simon Josefsson and Paolo Bonzini.
52771
52772 2008-09-21  Bruno Haible  <bruno@clisp.org>
52773
52774         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52775         exponents in %e and %g results on 'long double'. Needed for mingw's
52776         improved *printf functions.
52777         * tests/test-vasprintf-posix.c (test_function): Likewise.
52778         * tests/test-snprintf-posix.h (test_function): Likewise.
52779         * tests/test-sprintf-posix.h (test_function): Likewise.
52780         Reported by Eric Blake.
52781
52782 2008-09-21  Bruno Haible  <bruno@clisp.org>
52783
52784         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52785         * tests/test-sprintf-posix.h (test_function): Likewise.
52786
52787 2008-09-21  Bruno Haible  <bruno@clisp.org>
52788
52789         * modules/getpass (Depends-on): Add strdup-posix.
52790
52791         New module 'strdup-posix'.
52792         * modules/strdup-posix: New file.
52793         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52794         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52796         REPLACE_STRDUP.
52797         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52798         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52799         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52800         strdup-posix.
52801
52802         * modules/strdup (Depends-on): Remove malloc-posix.
52803
52804 2008-09-20  Bruno Haible  <bruno@clisp.org>
52805
52806         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52807         Wildenhues.
52808
52809 2008-09-20  Bruno Haible  <bruno@clisp.org>
52810
52811         Ensure that wint_t gets defined on IRIX 5.3.
52812         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52813         * lib/wctype.in.h (wint_t): Likewise.
52814         (__wctype_wint_t): Remove type.
52815         (isw*): Use wint_t instead of __wctype_wint_t.
52816         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52817         * modules/wchar (Files): Add m4/wint_t.m4.
52818         (Makefile.am): Substitute HAVE_WINT_T.
52819         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52820         * tests/test-wctype.c: Check that wint_t is defined.
52821         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52822         * doc/posix-headers/wctype.texi: Likewise.
52823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52824
52825 2008-09-18  Bruno Haible  <bruno@clisp.org>
52826
52827         * gnulib-tool (func_exit): Update comment.
52828
52829 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52830
52831         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52832         assumes strdup exists and does not depend on strdup to return
52833         ENOMEM on out of memory conditions.
52834
52835 2008-09-18  Bruno Haible  <bruno@clisp.org>
52836
52837         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52838         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52839         digits for the exponent.
52840
52841 2008-09-18  Jim Meyering  <meyering@redhat.com>
52842             Bruno Haible  <bruno@clisp.org>
52843
52844         * lib/vasnprintf.c (decimal_point_char): Define also if
52845         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52846
52847 2008-09-16  Bruno Haible  <bruno@clisp.org>
52848         and Eric Blake  <ebb9@byu.net>
52849
52850         vasnprintf: support Irix 5.3
52851         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52852         that mishandle long double infinity.
52853         Reported by Tom G. Christensen.
52854
52855 2008-09-16  Bruno Haible  <bruno@clisp.org>
52856
52857         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52858         Solaris 9.
52859         * doc/glibc-functions/alphasort.texi: Likewise.
52860         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52861
52862 2008-09-16  Jim Meyering  <meyering@redhat.com>
52863
52864         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52865         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52866         a umask modification leak out of a subshell.  Otherwise, the
52867         opensolaris /bin/sh would be accepted and thus cause unwarranted
52868         failures in the coreutils test suite.
52869
52870 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52871
52872         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52873         to succeed.
52874
52875 2008-09-16  Jim Meyering  <meyering@redhat.com>
52876
52877         avoid spurious test failure when library is built without ACL support
52878         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52879         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52880         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52881         * tests/test-copy-acl.sh: Likewise.
52882
52883 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52884
52885         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52886         based on character occurrence counts.
52887
52888 2008-09-15  Eric Blake  <ebb9@byu.net>
52889
52890         tests: avoid some compiler warnings
52891         * tests/test-memchr.c (main): Pass NULL indirectly.
52892         * tests/test-closein.c (main): Avoid unused variable.
52893
52894 2008-09-15  Bruno Haible  <bruno@clisp.org>
52895
52896         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52897         are missing on OpenBSD 4.0 individually.
52898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52899
52900 2008-09-15  Bruno Haible  <bruno@clisp.org>
52901
52902         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52903         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52904         * doc/posix-functions/perror.texi: Likewise.
52905         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52906         is missing.
52907         Reported by Eric Blake.
52908
52909         * lib/errno.in.h: Use replacement values >= 2000.
52910         Reported by Eric Blake.
52911
52912 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52913
52914         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52915         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52916         limit.
52917         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52918         compareseq was aborted.
52919
52920 2008-09-14  Bruno Haible  <bruno@clisp.org>
52921
52922         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52923         yvec_edit_count.
52924         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52925         (fstrcmp_bounded): Simplify result computation accordingly.
52926
52927 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52928
52929         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52930         (fstrcmp): Define in terms of fstrcmp_bounded.
52931         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52932         lower_bound argument.
52933         Return quickly if the result is certainly < lower_bound.
52934         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52935
52936 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52937
52938         * lib/diffseq.h (EARLY_ABORT): New macro.
52939         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52940         evaluates to true.
52941
52942 2008-09-14  Bruno Haible  <bruno@clisp.org>
52943
52944         * modules/perror-tests: New file.
52945         * tests/test-perror.sh: New file.
52946         * tests/test-perror.c: New file.
52947
52948         New module 'perror'.
52949         * lib/stdio.in.h (perror): New declaration.
52950         * lib/perror.c: New file.
52951         * m4/perror.m4: New file.
52952         * modules/perror: New file.
52953         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52954         * doc/posix-functions/perror.texi: Mention the perror module.
52955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52956         REPLACE_PERROR.
52957         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52958         REPLACE_PERROR.
52959
52960 2008-09-14  Bruno Haible  <bruno@clisp.org>
52961
52962         * modules/stdio (Makefile.am): Reorder to match the order in
52963         lib/stdio.in.h.
52964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52965
52966 2008-09-13  Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52969
52970 2008-09-13  Bruno Haible  <bruno@clisp.org>
52971
52972         Extend strerror to cover the added errno values.
52973         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52974         (rpl_strerror): Provide error messages for the added errno values and
52975         for the WSA* values.
52976         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52977         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52978         strerror.
52979         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52980         * modules/strerror (Depends-on): Add errno.
52981         * doc/posix-functions/strerror.texi: Document the change.
52982         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52983         and EOVERFLOW.
52984
52985 2008-09-13  Bruno Haible  <bruno@clisp.org>
52986
52987         * modules/EOVERFLOW: Remove file.
52988         * m4/eoverflow.m4: Remove file.
52989         * modules/EOVERFLOW-tests: Remove file.
52990         * tests/test-EOVERFLOW.c: Remove file.
52991         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52992         * modules/ftell (Depends-on): Likewise.
52993         * modules/getdelim (Depends-on): Likewise.
52994         * modules/getugroups (Depends-on): Likewise.
52995         * modules/poll (Depends-on): Likewise.
52996         * modules/snprintf (Depends-on): Likewise.
52997         * modules/sprintf-posix (Depends-on): Likewise.
52998         * modules/vasnprintf (Depends-on): Likewise.
52999         * modules/vasprintf (Depends-on): Likewise.
53000         * modules/vfprintf-posix (Depends-on): Likewise.
53001         * modules/vsnprintf (Depends-on): Likewise.
53002         * modules/vsprintf-posix (Depends-on): Likewise.
53003         * modules/xvasprintf (Depends-on): Likewise.
53004         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53005         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53006         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53007         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53008         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53009         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53010         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53011         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53012         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53013         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53014         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53015         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53016         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53017         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53018         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53019         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53020         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53021         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53022         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53023         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53024         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53025         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53026         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53027         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53028         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53029         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53030         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53031         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53032         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53033         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53034         * MODULES.html.sh: Remove EOVERFLOW.
53035         * NEWS: Mention the change.
53036
53037 2008-09-13  Bruno Haible  <bruno@clisp.org>
53038
53039         * modules/errno-tests: New file.
53040         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53041
53042         * lib/errno.in.h: New file.
53043         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53044         * modules/errno: New file.
53045         * doc/posix-headers/errno.texi: Update documentation.
53046         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53047
53048 2008-09-13  Bruno Haible  <bruno@clisp.org>
53049
53050         * tests/test-poll.c: Use #if for native Windows, rather than testing
53051         __MSVCRT__.
53052
53053 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53054             Bruno Haible  <bruno@clisp.org>
53055
53056         * lib/glob.c: Don't include <pwd.h> on native Windows.
53057         (WINDOWS32): New macro.
53058         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53059
53060 2008-09-13  Bruno Haible  <bruno@clisp.org>
53061
53062         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53063         (ETIMEDOUT): Remove macro.
53064         (glthread_cond_timedwait_multithreaded): New declaration.
53065         (glthread_cond_timedwait): Use it.
53066         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53067         (glthread_cond_timedwait_multithreaded): New function.
53068
53069 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53070
53071         * modules/poll-tests: Do not check for io.h.
53072         * tests/test-poll.c: Check for __MSVCRT__ instead.
53073
53074 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53075
53076         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53077         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53078         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53079
53080 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53081
53082         * modules/poll-tests: New.
53083         * tests/test-poll.c: New.
53084
53085 2008-09-12  Eric Blake  <ebb9@byu.net>
53086
53087         frexp: test for NetBSD failure on -0.0
53088         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53089         not all, bugs from NetBSD 3.0 have been fixed.
53090         * doc/posix-functions/frexp.texi (frexp): Document bug.
53091         Reported by Thomas Klausner.
53092
53093         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53094         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53095         literal -0.0.
53096         Reported by Jonathan C. Patschke <jp@centtech.com>.
53097
53098 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53099
53100         * lib/glthread/cond.h: Use dummy implementation also if
53101         USE_WIN32_THREADS.
53102
53103 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53104
53105         * modules/fnmatch-posix (License): Change to LGPLv2+.
53106         * modules/fnmatch-gnu (License): Likewise.
53107
53108 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53109
53110         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53111
53112 2008-09-11  Jim Meyering  <meyering@redhat.com>
53113
53114         * users.txt: Add gtk-vnc.
53115
53116 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53117
53118         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53119         rotate amounts.
53120
53121         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53122         required for 16-bit and 8-bit rotates.
53123         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53124         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53125         UINT8_MAX instead of hard-coded constants.
53126         Suggested by Paul Eggert.
53127
53128 2008-09-07  Bruno Haible  <bruno@clisp.org>
53129
53130         * tests/test-striconveh.c (main): Check behaviour when converting from
53131         UTF-7.
53132
53133         Make striconveh work better with stateful encodings.
53134         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53135         that iconv does not increment the inptr when returning -1/EINVAL.
53136
53137 2008-09-07  Bruno Haible  <bruno@clisp.org>
53138
53139         * build-aux/config.rpath: Update according to libtool-2.2.6.
53140         * build-aux/config.libpath: Likewise.
53141
53142 2008-09-06  Bruno Haible  <bruno@clisp.org>
53143
53144         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53145         * lib/freadptr.c (freadptr): Likewise.
53146         * lib/freadseek.c (freadptrinc): Likewise.
53147         Reported by Simon Josefsson.
53148
53149 2008-09-06  Bruno Haible  <bruno@clisp.org>
53150
53151         * modules/freadptr (License): Change to LGPLv2+.
53152         * modules/freadseek (License): Likewise.
53153         Suggested by Eric Blake.
53154
53155         * modules/memchr2 (License): Change to LGPLv2+.
53156         Approved by Eric Blake.
53157
53158 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53159             Bruno Haible  <bruno@clisp.org>
53160
53161         Make gnulib-tool work with native 'sed' on AIX.
53162         * gnulib-tool (sed_noop): New variable.
53163         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53164         func_add_or_update, func_create_testdir): Use it to initialize sed
53165         script variables.
53166         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53167
53168 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53169             Bruno Haible  <bruno@clisp.org>
53170
53171         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53172         also works after #include directives.
53173
53174 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53175
53176         getdate.y: reject an out-of-range timezone value
53177         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53178         the range [-24...+24].  When specified with only one or two digits,
53179         * tests/test-getdate.c: Tests for the fix.
53180         * doc/getdate.texi: Document this change.
53181
53182 2008-09-03  Bruno Haible  <bruno@clisp.org>
53183
53184         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53185
53186 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53187
53188         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53189         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53190         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53191         Blake <ebb9@byu.net>.
53192
53193         * tests/test-bitrotate.c: Add more test vectors.
53194
53195 2008-09-02  Eric Blake  <ebb9@byu.net>
53196
53197         vasnprintf-posix: handle large precision via %.*d
53198         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53199         when handling it ourselves.
53200         * tests/test-vasnprintf-posix.c (test_function): Add test.
53201         * tests/test-snprintf-posix.h (test_function): Likewise.
53202         * tests/test-sprintf-posix.h (test_function): Likewise.
53203         * tests/test-vasprintf-posix.c (test_function): Likewise.
53204         Reported by Alain Guibert.
53205
53206 2008-09-01  Eric Blake  <ebb9@byu.net>
53207
53208         c-stack: make configure-time check more robust
53209         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53210         successful sigaction call.
53211         Reported by Tom G. Christensen.
53212
53213 2008-09-01  Bruno Haible  <bruno@clisp.org>
53214
53215         New module 'findprog-lgpl'.
53216         * modules/findprog-lgpl: New file.
53217         * lib/findprog-lgpl.c: New file.
53218         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53219         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53220         to decide whether to use strdup or xstrdup, concatenated_filename or
53221         xconcatenated_filename.
53222
53223 2008-09-01  Bruno Haible  <bruno@clisp.org>
53224
53225         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53226         'xconcat-filename' (GPL).
53227         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53228         (License): Change to LGPLv2+.
53229         * modules/xconcat-filename: New file.
53230         * lib/concat-filename.h (concatenated_filename): Change specification.
53231         (xconcatenated_filename): New declaration.
53232         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53233         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53234         memory situations.
53235         * lib/xconcat-filename.c: New file.
53236         * NEWS: Mention the change.
53237         * lib/findprog.c: Include concat-filename.h, not filename.h.
53238         (find_in_path): Use xconcatenated_filename instead of
53239         concatenated_filename.
53240         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53241         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53242         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53243         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53244         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53245         instead of concatenated_filename.
53246         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53247         (execute_java_class): Use xconcatenated_filename instead of
53248         concatenated_filename.
53249         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53250         * modules/javacomp (Depends-on): Likewise.
53251         * modules/javaexec (Depends-on): Likewise.
53252
53253 2008-09-01  Bruno Haible  <bruno@clisp.org>
53254
53255         Split module 'filename' into 'filename' and 'concat-filename'.
53256         * modules/filename: Keep only lib/filename.h.
53257         (License): Change to LGPLv2+.
53258         * modules/concat-filename: New file, extracted from modules/filename.
53259         * lib/filename.h (concatenated_filename): Remove declaration.
53260         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53261         * lib/concat-filename.c: Include concat-filename.h.
53262         * NEWS: Mention the change.
53263
53264 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53265
53266         * lib/bitrotate.h (rotl8, rotr8): Add.
53267
53268         * modules/bitrotate (configure.ac): Need
53269         AC_REQUIRE([AC_C_INLINE]).
53270         (Description): Mention stdint.h.  Reported by Bruno Haible
53271         <bruno@clisp.org>.
53272
53273         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53274         Paolo Bonzini <bonzini@gnu.org>.
53275
53276 2008-08-31  Bruno Haible  <bruno@clisp.org>
53277
53278         Assume Solaris specific bi-arch conventions on Solaris systems.
53279         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53280         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53281         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53282         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53283         like acl_libdirstem.
53284         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53285         acl_libdirstem.
53286         * NEWS: Mention the change.
53287         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53288
53289 2008-08-31  Jim Meyering  <meyering@redhat.com>
53290
53291         * lib/strftime.h: Add comments describing the two added arguments.
53292
53293         remove duplicate #include directives
53294         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53295         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53296
53297 2008-08-31  Bruno Haible  <bruno@clisp.org>
53298
53299         New module 'sigpipe-die'.
53300         * modules/sigpipe-die: New file.
53301         * lib/sigpipe-die.h: New file.
53302         * lib/sigpipe-die.c: New file.
53303         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53304
53305 2008-08-31  Bruno Haible  <bruno@clisp.org>
53306
53307         Don't override previously installed signal handlers.
53308         * lib/fatal-signal.c (saved_sigactions): New variable.
53309         (uninstall_handlers): Reset the signal to the saved handler, not
53310         to SIG_DFL (except when ignored).
53311         (install_handlers): Save the previous handlers.
53312
53313 2008-08-30  Bruno Haible  <bruno@clisp.org>
53314
53315         * gnulib-tool (func_reset_sigpipe): New function.
53316         (func_get_automake_snippet, func_modules_transitive_closure,
53317         func_import): Invoke it before a join command that reads from stdin,
53318         to avoid "echo: write error: Broken pipe" error messages on stderr.
53319         Reported by Sam Steingold <sds@gnu.org>.
53320
53321 2008-08-30  Bruno Haible  <bruno@clisp.org>
53322
53323         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53324         Code copied from m4/open.m4.
53325         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53326         access and the filename ends in a slash. Code copied from lib/open.c.
53327         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53328         * tests/test-fopen.c (main): Check against bug with trailing slash.
53329
53330 2008-08-29  Bruno Haible  <bruno@clisp.org>
53331
53332         Avoid some "gcc -pedantic" warnings.
53333         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53334         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53335         * lib/dirent.in.h: Likewise.
53336         * lib/fcntl.in.h: Likewise.
53337         * lib/float.in.h: Likewise.
53338         * lib/iconv.in.h: Likewise.
53339         * lib/inttypes.in.h: Likewise.
53340         * lib/locale.in.h: Likewise.
53341         * lib/math.in.h: Likewise.
53342         * lib/netinet_in.in.h: Likewise.
53343         * lib/search.in.h: Likewise.
53344         * lib/signal.in.h: Likewise.
53345         * lib/stdarg.in.h: Likewise.
53346         * lib/stdint.in.h: Likewise.
53347         * lib/stdio.in.h: Likewise.
53348         * lib/stdlib.in.h: Likewise.
53349         * lib/string.in.h: Likewise.
53350         * lib/strings.in.h: Likewise.
53351         * lib/sys_select.in.h: Likewise.
53352         * lib/sys_socket.in.h: Likewise.
53353         * lib/sys_stat.in.h: Likewise.
53354         * lib/sys_time.in.h: Likewise.
53355         * lib/sysexits.in.h: Likewise.
53356         * lib/time.in.h: Likewise.
53357         * lib/unistd.in.h: Likewise.
53358         * lib/wchar.in.h: Likewise.
53359         * lib/wctype.in.h: Likewise.
53360         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53361         * modules/fchdir (Makefile.am): Likewise.
53362         * modules/fcntl (Makefile.am): Likewise.
53363         * modules/float (Makefile.am): Likewise.
53364         * modules/iconv_open (Makefile.am): Likewise.
53365         * modules/inttypes (Makefile.am): Likewise.
53366         * modules/locale (Makefile.am): Likewise.
53367         * modules/math (Makefile.am): Likewise.
53368         * modules/netinet_in (Makefile.am): Likewise.
53369         * modules/search (Makefile.am): Likewise.
53370         * modules/signal (Makefile.am): Likewise.
53371         * modules/stdarg (Makefile.am): Likewise.
53372         * modules/stdint (Makefile.am): Likewise.
53373         * modules/stdio (Makefile.am): Likewise.
53374         * modules/stdlib (Makefile.am): Likewise.
53375         * modules/string (Makefile.am): Likewise.
53376         * modules/strings (Makefile.am): Likewise.
53377         * modules/sys_select (Makefile.am): Likewise.
53378         * modules/sys_socket (Makefile.am): Likewise.
53379         * modules/sys_stat (Makefile.am): Likewise.
53380         * modules/sys_time (Makefile.am): Likewise.
53381         * modules/sysexits (Makefile.am): Likewise.
53382         * modules/time (Makefile.am): Likewise.
53383         * modules/unistd (Makefile.am): Likewise.
53384         * modules/wchar (Makefile.am): Likewise.
53385         * modules/wctype (Makefile.am): Likewise.
53386         Reported by Reuben Thomas <rrt@sc3d.org>.
53387
53388 2008-08-29  Bruno Haible  <bruno@clisp.org>
53389
53390         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53391         any more.
53392
53393 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53394
53395         * MODULES.html.sh (Misc): Add bitrotate.
53396
53397         * modules/bitrotate: New file.
53398
53399         * lib/bitrotate.h: New file.
53400
53401         * modules/bitrotate-tests: New file.
53402
53403         * tests/test-bitrotate.c: New file.
53404
53405         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53406         on the bitrotate module.
53407
53408         * lib/arctwo.c: Use new bitrotate module.
53409
53410 2008-08-29  Jim Meyering  <meyering@redhat.com>
53411
53412         bootstrap: merge changes from coreutils
53413         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53414         of copied files.  Remove a kludge, now that this is fixed.
53415         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53416         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53417         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53418
53419 2008-08-29  Bruno Haible  <bruno@clisp.org>
53420
53421         * MODULES.html.sh: Remove --cvs-urls option.
53422
53423 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53424
53425         maint.mk: adjust to file name change
53426         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53427
53428 2008-08-28  Jim Meyering  <meyering@redhat.com>
53429
53430         * modules/getndelim2 (License): Relicense to LGPLv2+.
53431         Approved by Richard Stallman for the version of 1995, and by
53432         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53433
53434 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53435
53436         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53437         dummy if one is not available.  Do not touch them if
53438         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53439         (getc_maybe_unlocked): New.
53440         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53441
53442 2008-08-26  Eric Blake  <ebb9@byu.net>
53443
53444         doc/INSTALL: resync from autoconf
53445         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53446         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53447         moving...
53448         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53449         * INSTALL: Regenerate.
53450         * INSTALL.ISO: New file.
53451         * INSTALL.UTF-8: Likewise.
53452
53453 2008-08-26  Jim Meyering  <meyering@redhat.com>
53454
53455         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53456         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53457         these definitions conditional, so that they may be overridden, too.
53458
53459 2008-08-26  Bruno Haible  <bruno@clisp.org>
53460
53461         Generate INSTALL file variants with prettier quotes.
53462         * doc/Makefile (INSTALL_PRELUDE): New macro.
53463         (INSTALL): Use it.
53464         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53465
53466 2008-08-26  Bruno Haible  <bruno@clisp.org>
53467
53468         Run makeinfo in an English locale.
53469         * doc/Makefile (MAKEINFO): New variable.
53470
53471 2008-08-26  Bruno Haible  <bruno@clisp.org>
53472
53473         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53474         Suggested by Eric Blake.
53475
53476 2008-08-25  Bruno Haible  <bruno@clisp.org>
53477
53478         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53479
53480 2008-08-25  Eric Blake  <ebb9@byu.net>
53481
53482         c-stack: test that stack overflow can be caught
53483         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53484         that platform allows handling stack overflow; at least OS/2 EMX
53485         has sigaltstack, but crashes before transferring control to
53486         handler on stack overflow.
53487         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53488         check for HAVE_STACK_OVERFLOW_HANDLING.
53489         Reported by Elbert Pol.
53490
53491 2008-08-25  Bruno Haible  <bruno@clisp.org>
53492
53493         * doc/posix-functions/strftime.texi: Fix description of strftime
53494         module.
53495
53496 2008-08-24  Bruno Haible  <bruno@clisp.org>
53497
53498         * tests/uniwidth/test-uc_width2.c: New file.
53499         * tests/uniwidth/test-uc_width2.sh: New file.
53500         * modules/uniwidth/width-tests (Files): Add the new files.
53501         (TESTS): Add uniwidth/test-uc_width2.sh.
53502         (TESTS_ENVIRONMENT): New variable.
53503         (check_PROGRAMS): Add test-uc_width2.
53504         (test_uc_width2_SOURCES): New variable.
53505
53506         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53507         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53508         not 0x00AB.
53509         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53510
53511 2008-08-22  Eric Blake  <ebb9@byu.net>
53512
53513         test-lock, test-tls: mention why a test is skipped
53514         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53515         skipped.
53516         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53517
53518         count-one-bits: relax license
53519         * modules/count-one-bits (License): Relicense to LGPLv2+.
53520         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53521
53522 2008-08-22  Andreas Schwab  <schwab@suse.de>
53523
53524         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53525         Remove spurious space in assignment.
53526
53527 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53528
53529         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53530         Paul Eggert <eggert@CS.UCLA.EDU>.
53531
53532 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53533
53534         * modules/gettext: Add m4/threadlib.m4.
53535
53536 2008-08-19  Eric Blake  <ebb9@byu.net>
53537
53538         test-c-stack: fix compilation failure on FreeBSD 5.0
53539         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53540         headers before <sys/resource.h>.
53541         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53542         the bug.
53543         Reported by Nelson H. F. Beebe.
53544
53545         strverscmp: migrate from "strverscmp.h" to <string.h>
53546         * modules/string (Makefile.am): Add new hooks.
53547         * modules/strverscmp (Files): Remove strverscmp.h.
53548         (Depends-on): Add string.
53549         (configure.ac): Add indicator.
53550         (Include): Mention new header.
53551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53552         defaults.
53553         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53554         results.
53555         * lib/strverscmp.h: Delete.
53556         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53557         * tests/test-strverscmp.c (includes): Adjust client.
53558         * lib/check-version.c (includes): Likewise.
53559         * NEWS: Document the change.
53560
53561         strverscmp: add unit test
53562         * modules/strverscmp-tests: New file.
53563         * tests/test-strverscmp.c: Likewise.
53564
53565 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53566
53567         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53568         regarding Windows crypto stuff, from Mono.
53569
53570 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53571
53572         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53573         if present, for intel RND.  Return error on failures.
53574
53575 2008-08-18  Ben Pfaff  <blp@gnu.org>
53576
53577         gitlog-to-changelog: give better diagnostic for failed pipe-open
53578         * build-aux/gitlog-to-changelog: Improve error message: suggest
53579         that the version of Git may be too old.
53580
53581 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53582
53583         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53584         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53585
53586 2008-08-18  Bruno Haible  <bruno@clisp.org>
53587
53588         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53589         pthread_in_use().
53590
53591 2008-08-18  Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/glthread/threadlib.c: Include <pthread.h>.
53594
53595 2008-08-18  Bruno Haible  <bruno@clisp.org>
53596
53597         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53598         glthread_recursive_lock_* macros.
53599         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53600         Fix syntax error.
53601
53602 2008-08-18  Bruno Haible  <bruno@clisp.org>
53603
53604         * lib/glthread/thread.c: Avoid forcing a context switch right after
53605         thread creation.
53606
53607 2008-08-17  Bruno Haible  <bruno@clisp.org>
53608
53609         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53610         * lib/glthread/thread.h: Provide Win32 specific implementation.
53611         * modules/thread (Files): Add lib/glthread/thread.c.
53612         (Depends-on): Add lock.
53613         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53614
53615 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53616
53617         New module 'yield'.
53618         * modules/yield: New file.
53619         * lib/glthread/yield.h: New file.
53620         * m4/yield.m4: New file.
53621         * MODULES.html.sh (Multithreading): Add yield.
53622
53623 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53624
53625         New module 'thread'.
53626         * modules/thread: New file.
53627         * lib/glthread/thread.h: New file.
53628         * m4/thread.m4: New file.
53629         * MODULES.html.sh (Multithreading): Add thread.
53630
53631 2008-08-17  Bruno Haible  <bruno@clisp.org>
53632
53633         * lib/glthread/lock.h: Include <stdlib.h> always.
53634         * lib/glthread/tls.h: Likewise.
53635         * lib/glthread/cond.h: Likewise.
53636
53637 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53638
53639         New module 'cond'.
53640         * modules/cond: New file.
53641         * lib/glthread/cond.h: New file.
53642         * lib/glthread/cond.c: New file.
53643         * m4/cond.m4: New file.
53644         * MODULES.html.sh (Multithreading): Add cond.
53645
53646 2008-08-16  Eric Blake  <ebb9@byu.net>
53647
53648         c-stack: fix regression on Irix 5.3 from 2008-06-21
53649         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53650         sa_sigaction...
53651         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53652         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53653         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53654         * modules/signal (Makefile.am): Use the value.
53655         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53656         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53657         * doc/posix-headers/signal.texi (signal.h): Document this
53658         portability issue.
53659         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53660         Reported by Tom G. Christensen.
53661
53662 2008-08-17  Bruno Haible  <bruno@clisp.org>
53663
53664         New module 'threadlib'.
53665         * modules/threadlib: New file.
53666         * lib/glthread/threadlib.c: New file, extracted from
53667         lib/glthread/lock.c.
53668         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53669         functions.
53670         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53671         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53672         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53673         macros.
53674         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53675         (gl_DISABLE_THREADS): Remove macro.
53676         * modules/lock (Files): Remove build-aux/config.rpath.
53677         (Depends-on): Remove havelib. Add threadlib.
53678         (configure.ac-early): Remove section.
53679         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53680         * modules/tls (Depends-on): Remove lock. Add threadlib.
53681         (Link): New section, copied from threadlib.
53682         * MODULES.html.sh (Multithreading): Add threadlib.
53683
53684 2008-08-14  Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53687         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53688         glthread_rwlock_unlock, glthread_rwlock_destroy,
53689         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53690         glthread_recursive_lock_destroy): Define as macros always.
53691         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53692         glthread_lock_lock.
53693         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53694         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53695         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53696         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53697         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53698         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53699         (glthread_recursive_lock_lock_func): Renamed from
53700         glthread_recursive_lock_lock.
53701         (glthread_recursive_lock_unlock_func): Renamed from
53702         glthread_recursive_lock_unlock.
53703         (glthread_recursive_lock_destroy_func): Renamed from
53704         glthread_recursive_lock_destroy.
53705
53706 2008-08-14  Bruno Haible  <bruno@clisp.org>
53707
53708         * lib/glthread/lock.h: Renamed from lib/lock.h.
53709         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53710         * lib/glthread/tls.h: Renamed from lib/tls.h.
53711         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53712         * lib/fstrcmp.c: Update includes.
53713         * lib/strsignal.c: Update includes.
53714         * modules/lock (Files, Makefile.am): Update.
53715         (Include): Change to "glthread/lock.h".
53716         * modules/tls (Files, Makefile.am): Update.
53717         (Include): Change to "glthread/tls.h".
53718         * tests/test-lock.c: Update includes.
53719         * tests/test-tls.c: Update includes.
53720         * NEWS: Mention the renamed header files.
53721
53722 2008-08-11  Jim Meyering  <meyering@redhat.com>
53723
53724         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53725
53726 2008-08-11  Eric Blake  <ebb9@byu.net>
53727
53728         test-c-stack: avoid C99-ism
53729         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53730         before statement.
53731         Reported by Alain Guibert.
53732
53733 2008-08-10  Jim Meyering  <meyering@redhat.com>
53734
53735         ensure that return value of uinttostr et al are not ignored
53736         * lib/inttostr.h (__GNUC_PREREQ): Define.
53737         (__attribute_warn_unused_result__): Define.
53738         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53739
53740 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53741
53742         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53743         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53744
53745 2008-08-07  Jim Meyering  <meyering@redhat.com>
53746
53747         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53748
53749         * modules/mkstemp (License): Relicense under LGPLv2+.
53750         * modules/tempname (License): Likewise.
53751
53752 2008-08-06  Bruno Haible  <bruno@clisp.org>
53753
53754         * lib/poll.c (poll): Further micro-optimization.
53755
53756 2008-08-06  Jim Meyering  <meyering@redhat.com>
53757
53758         inet_pton.c: use locale-independent tolower
53759         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53760         (inet_pton6): Use c_tolower rather than tolower.
53761         * modules/inet_pton (Depends-on): Add c-ctype.
53762
53763 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53764
53765         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53766         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53767
53768 2008-08-06  Jim Meyering  <meyering@redhat.com>
53769
53770         * modules/inet_pton (License): Relicense under LGPLv2+.
53771
53772 2008-08-03  Bruno Haible  <bruno@clisp.org>
53773
53774         Additional non-aborting API for lock and tls.
53775         * lib/lock.h: Include <errno.h>.
53776         (glthread_lock_init): New macro/function.
53777         (gl_lock_init): Define as wrapper around glthread_lock_init.
53778         (glthread_lock_lock): New macro/function.
53779         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53780         (glthread_lock_unlock): New macro/function.
53781         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53782         (glthread_lock_destroy): New macro/function.
53783         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53784         (glthread_rwlock_init): New macro/function.
53785         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53786         (glthread_rwlock_rdlock): New macro/function.
53787         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53788         (glthread_rwlock_wrlock): New macro/function.
53789         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53790         (glthread_rwlock_unlock): New macro/function.
53791         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53792         (glthread_rwlock_destroy): New macro/function.
53793         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53794         (glthread_recursive_lock_init): New macro/function.
53795         (gl_recursive_lock_init): Define as wrapper around
53796         glthread_recursive_lock_init.
53797         (glthread_recursive_lock_lock): New macro/function.
53798         (gl_recursive_lock_lock): Define as wrapper around
53799         glthread_recursive_lock_lock.
53800         (glthread_recursive_lock_unlock): New macro/function.
53801         (gl_recursive_lock_unlock): Define as wrapper around
53802         glthread_recursive_lock_unlock.
53803         (glthread_recursive_lock_destroy): New macro/function.
53804         (gl_recursive_lock_destroy): Define as wrapper around
53805         glthread_recursive_lock_destroy.
53806         (glthread_once): New macro/function.
53807         (gl_once): Define as wrapper around glthread_once.
53808         Update function declarations.
53809         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53810         glthread_rwlock_init. Return error code.
53811         (glthread_rwlock_rdlock_multithreaded): Renamed from
53812         glthread_rwlock_rdlock. Return error code.
53813         (glthread_rwlock_wrlock_multithreaded): Renamed from
53814         glthread_rwlock_wrlock. Return error code.
53815         (glthread_rwlock_unlock_multithreaded): Renamed from
53816         glthread_rwlock_unlock. Return error code.
53817         (glthread_rwlock_destroy_multithreaded): Renamed from
53818         glthread_rwlock_destroy. Return error code.
53819         (glthread_recursive_lock_init_multithreaded): Renamed from
53820         glthread_recursive_lock_init. Return error code.
53821         (glthread_recursive_lock_lock_multithreaded): Renamed from
53822         glthread_recursive_lock_lock. Return error code.
53823         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53824         glthread_recursive_lock_unlock. Return error code.
53825         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53826         glthread_recursive_lock_destroy. Return error code.
53827         (glthread_once_call): Make static.
53828         (glthread_once_multithreaded): Renamed from glthread_once.
53829         * lib/tls.h: Include <errno.h>.
53830         (glthread_tls_key_init): New macro/function.
53831         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53832         (glthread_tls_set): New macro/function.
53833         (gl_tls_set): Define as wrapper around glthread_tls_set.
53834         (glthread_tls_key_destroy): New macro/function.
53835         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53836         Update function declarations.
53837         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53838         glthread_tls_get.
53839         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53840
53841 2008-08-04  Eric Blake  <ebb9@byu.net>
53842
53843         gnumakefile: use space, not TAB, outside of targets
53844         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53845
53846 2008-08-02  Jim Meyering  <meyering@redhat.com>
53847
53848         getdate.y: avoid locale-dependent date parsing failure
53849         In Turkish locales, getdate would fail to recognize keywords
53850         containing a lowercase "i".  The solution is not to rely on
53851         locale-sensitive case-conversion.
53852         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53853         (lookup_word): Use c_toupper in place of toupper.
53854         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53855         Reported by Vefa Bicakci <bicave@superonline.com> in
53856         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53857         * modules/getdate (Depends-on): Add c-ctype.
53858
53859 2008-08-02  Bruno Haible  <bruno@clisp.org>
53860
53861         * gnulib-tool (func_import): When updating or creating a .gitignore
53862         file, prepend each added line with a slash, and ignore leading slashes
53863         from the existing lines.
53864         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53865
53866 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53867
53868         Portability fix for GNU make 3.79.1.
53869         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53870         versions do not understand.
53871
53872 2008-08-01  Bruno Haible  <bruno@clisp.org>
53873
53874         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53875         * tests/test-isnanf.h (zero): New variable.
53876         (main): Avoid literal -0.0f.
53877         * tests/test-isnand.h (zero): New variable.
53878         (main): Avoid literal -0.0.
53879         * tests/test-isnanl.h (zero): New variable.
53880         (main): Avoid literal -0.0L.
53881         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53882         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53883         -0.0, -0.0L.
53884         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53885         (test_signbitd): Avoid literal -0.0.
53886         (test_signbitl): Avoid literal -0.0L.
53887         * tests/test-ceilf1.c (zero): New variable.
53888         (main): Avoid literal -0.0f.
53889         * tests/test-ceill.c (zero): New variable.
53890         (main): Avoid literal -0.0L.
53891         * tests/test-floorf1.c (zero): New variable.
53892         (main): Avoid literal -0.0f.
53893         * tests/test-floorl.c (zero): New variable.
53894         (main): Avoid literal -0.0L.
53895         * tests/test-roundf1.c (zero): New variable.
53896         (main): Avoid literal -0.0f.
53897         * tests/test-round1.c (zero): New variable.
53898         (main): Avoid literal -0.0.
53899         * tests/test-roundl.c (zero): New variable.
53900         (main): Avoid literal -0.0L.
53901         * tests/test-truncf1.c (zero): New variable.
53902         (main): Avoid literal -0.0f.
53903         * tests/test-trunc1.c (zero): New variable.
53904         (main): Avoid literal -0.0.
53905         * tests/test-truncl.c (zero): New variable.
53906         (main): Avoid literal -0.0L.
53907         * tests/test-frexp.c (zero): New variable.
53908         (main): Avoid literal -0.0.
53909         * tests/test-frexpl.c (zero): New variable.
53910         (main): Avoid literal -0.0L.
53911         * tests/test-ldexpl.c (zero): New variable.
53912         (main): Avoid literal -0.0L.
53913         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53914         (zerod, zerol): New variables.
53915         (test_function): Avoid literals -0.0, -0.0L.
53916         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53917         (zerod, zerol): New variables.
53918         (test_function): Avoid literals -0.0, -0.0L.
53919         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53920         (zerod, zerol): New variables.
53921         (test_function): Avoid literals -0.0, -0.0L.
53922         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53923         (zerod, zerol): New variables.
53924         (test_function): Avoid literals -0.0, -0.0L.
53925         * tests/test-strtod.c (zero): New variable.
53926         (main): Avoid literal -0.0.
53927         Reported by Jonathan C. Patschke <jp@centtech.com>.
53928
53929 2008-07-31  Jim Meyering  <meyering@redhat.com>
53930
53931         sha256.h: correct definition of SHA224_DIGEST_SIZE
53932         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53933         Reported by Paulie Pena IV <paulie4@gmail.com>.
53934         Define as 224 / 8, rather than as a literal.
53935         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53936         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53937         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53938
53939 2008-07-31  Bruno Haible  <bruno@clisp.org>
53940
53941         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53942         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53943         Reported by Jonathan Patschke <jp@centtech.com>.
53944
53945 2008-07-31  Bruno Haible  <bruno@clisp.org>
53946
53947         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53948         Reported by Paolo Bonzini <bonzini@gnu.org>.
53949
53950 2008-07-30  Eric Blake  <ebb9@byu.net>
53951
53952         test-strtod: allow compilation without -lm
53953         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53954         Reported by Dennis Clarke <blastwave@gmail.com>.
53955
53956 2008-07-28  Jim Meyering  <meyering@redhat.com>
53957
53958         bootstrap: work also when there are no .po files in po/
53959         * build-aux/bootstrap (update_po_files): Complete the change
53960         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53961
53962 2008-07-27  Jim Meyering  <meyering@redhat.com>
53963
53964         * users.txt: Add zile.
53965
53966 2008-07-26  Ben Pfaff  <blp@gnu.org>
53967
53968         Add missing dependencies on new m4/exponent[fdl].m4 files.
53969         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53970         * modules/isnand-nolibm: Add m4/exponentd.m4.
53971         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53972         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53973         m4/isnan[fdl].m4, because the macros actually used moved.
53974         Reported by Jim Meyering.
53975
53976 2008-07-14  Ben Pfaff  <blp@gnu.org>
53977
53978         Add isinf module.
53979         * lib/isinf.c: New file.
53980         * lib/math.in.h: Define isinf macro if we have decided to replace
53981         it.
53982         * m4/isinf.m4: New file.
53983         * m4/math_h.m4: Initialize and substitute variables for isinf
53984         module.
53985         * modules/isinf: New file.
53986         * modules/isinf-tests: New file.
53987         * modules/math: Add substitutions for new module.
53988         * tests/test-isinf.c: New file.
53989         * doc/posix-functions/isinf.texi: Mention new module.
53990         * MODULES.html.sh: Mention new module.
53991
53992 2008-07-14  Ben Pfaff  <blp@gnu.org>
53993
53994         Factor out some macros for use by additional modules.
53995         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53996         exponentf.m4.
53997         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53998         exponentd.m4.
53999         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54000         file exponentl.m4.
54001         * m4/exponentf.m4: New file.
54002         * m4/exponentd.m4: New file.
54003         * m4/exponentl.m4: New file.
54004         * modules/isnanf: Use new file m4/exponentf.m4.
54005         * modules/isnand: Use new file m4/exponentd.m4.
54006         * modules/isnanl: Use new file m4/exponentl.m4.
54007
54008 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54009
54010         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54011         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54012         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54013         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54014
54015         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54016         readlink on platforms without PATH_MAX.
54017
54018 2008-07-21  Eric Blake  <ebb9@byu.net>
54019
54020         Warn, not fail, on stale version.
54021         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54022
54023         Don't allow installation with stale devel version number.
54024         * top/GNUmakefile (_is-install-target): New macro.
54025         (_curr-ver): Forbid installation with stale version number.
54026
54027 2008-07-20  Bruno Haible  <bruno@clisp.org>
54028
54029         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54030         TESTS_ENVIRONMENT.
54031         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54032
54033 2008-07-20  Bruno Haible  <bruno@clisp.org>
54034
54035         * lib/c-stack.h (c_stack_action): Add documentation.
54036         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54037
54038 2008-07-20  Bruno Haible  <bruno@clisp.org>
54039
54040         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54041         * modules/readlink (License): Likewise.
54042
54043 2008-07-17  Eric Blake  <ebb9@byu.net>
54044
54045         * modules/c-stack (Link): Fix typo.
54046
54047         Make c-stack use libsigsegv, when available.
54048         * modules/c-stack (Depends-on): Add libsigsegv.
54049         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54050         needed.
54051         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54052         (segv_handler, overflow_handler, c_stack_action)
54053         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54054         implementation when libsigsegv is available, but only when using
54055         the library is necessary.
54056         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54057         comment, explaining why XSI check fails on Linux.
54058         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54059         * tests/test-c-stack2.sh: Tweak skip message.
54060         * NEWS: Document new link-time requirements.
54061
54062 2008-07-16  Eric Blake  <ebb9@byu.net>
54063
54064         c-stack: Expose false positives when not using libsigsegv.
54065         * modules/c-stack-tests (Files): Expand test.
54066         * tests/test-c-stack.c (main): Add means to conditionally trigger
54067         non-overflow SIGSEGV.
54068         * tests/test-c-stack2.sh: New file.
54069
54070 2008-07-14  Bruno Haible  <bruno@clisp.org>
54071
54072         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54073         Reported by Eric Blake.
54074
54075 2008-07-14  Sam Steingold  <sds@gnu.org>
54076             Bruno Haible  <bruno@clisp.org>
54077
54078         New module libsigsegv.
54079         * modules/libsigsegv: New file.
54080         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54081         modifications.
54082         * MODULES.html.sh (Signal handling): New section.
54083
54084 2008-07-14  Bruno Haible  <bruno@clisp.org>
54085
54086         * modules/unictype/ctype-* (Description): Add the word "function".
54087         Improves the resulting doc in MODULES.html.
54088
54089 2008-07-12  Ben Pfaff  <blp@gnu.org>
54090
54091         Add longlong module.
54092         * modules/longlong: New file.
54093
54094 2008-07-12  Bruno Haible  <bruno@clisp.org>
54095
54096         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54097         to empty.
54098
54099 2008-07-10  Ben Pfaff  <blp@gnu.org>
54100
54101         Add isnan module.
54102         * doc/posix-functions/isnan.texi: Mention new module.
54103         * lib/math.in.h: Define isnan macro if we have decided to replace
54104         it.
54105         * m4/isnan.m4: New file.
54106         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54107         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54108         also.
54109         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54110         redundancy.
54111         * m4/math_h.m4: Initialize and substitute variables for isnan
54112         module.
54113         * modules/isnan: New file.
54114         * modules/isnan-tests: New file.
54115         * modules/math: Add substitutions for new module.
54116         * tests/test-isnan.c: New file.
54117         * MODULES.html.sh: Mention new module.
54118
54119 2008-07-10  Ben Pfaff  <blp@gnu.org>
54120
54121         Add isnanf module.
54122         * lib/isnanf.m4: New file.
54123         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54124         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54125         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54126         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54127         * modules/isnanf: New file.
54128         * modules/isnanf-tests: New file.
54129         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54130         files.
54131         * tests/test-isnanf-nolibm.c: factored most of its contents into
54132         new file tests/test-isnanf.h.
54133         * tests/test-isnanf.h: New file.
54134         * tests/test-isnanf.c: New file.
54135         * MODULES.html.sh: Mention new module.
54136         * doc/glibc-functions/isnanf.texi: Mention new module.
54137
54138 2008-07-10  Ben Pfaff  <blp@gnu.org>
54139
54140         Add isnand module.
54141         * lib/isnand.h: New file.
54142         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54143         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54144         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54145         functionality also.
54146         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54147         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54148         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54149         * modules/isnand: New file.
54150         * modules/isnand-tests: New file.
54151         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54152         files.
54153         * tests/test-isnand-nolibm.c: factored most of its contents into
54154         new file tests/test-isnand.h.
54155         * tests/test-isnand.h: New file.
54156         * tests/test-isnand.c: New file.
54157         * MODULES.html.sh: Mention new module.
54158
54159 2008-07-10  Ben Pfaff  <blp@gnu.org>
54160
54161         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54162         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54163         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54164         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54165         * modules/isnanf-nolibm: Update references to renamed files.
54166         * modules/isnand-nolibm: Likewise.
54167         * modules/isnanf-nolibm-tests: Likewise.
54168         * modules/isnand-nolibm-tests: Likewise.
54169         * lib/frexp.c: Likewise.
54170         * lib/isfinite.c: Likewise.
54171         * lib/signbitd.c: Likewise.
54172         * lib/signbitf.c: Likewise.
54173         * lib/vasnprintf.c: Likewise.
54174         * tests/test-ceilf1.c: Likewise.
54175         * tests/test-ceilf2.c: Likewise.
54176         * tests/test-floorf1.c: Likewise.
54177         * tests/test-floorf2.c: Likewise.
54178         * tests/test-frexp.c: Likewise.
54179         * tests/test-round1.c: Likewise.
54180         * tests/test-round2.c: Likewise.
54181         * tests/test-roundf1.c: Likewise.
54182         * tests/test-strtod.c: Likewise.
54183         * tests/test-trunc1.c: Likewise.
54184         * tests/test-trunc2.c: Likewise.
54185         * tests/test-truncf1.c: Likewise.
54186         * tests/test-truncf2.c: Likewise.
54187         * NEWS: Mention the renamed header files.
54188
54189 2008-07-11  Jim Meyering  <meyering@redhat.com>
54190
54191         vc-list-files: make the last-resort awk code more portable
54192         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54193         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54194         does not support it.
54195
54196 2008-07-10  Eric Blake  <ebb9@byu.net>
54197
54198         Work with tar's bootstrap.
54199         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54200         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54201         an m4 comment.
54202
54203 2008-07-09  Jim Meyering  <meyering@redhat.com>
54204
54205         posix-shell.m4: fix typo that made this test malfunction
54206         * m4/posix-shell.m4: Remove capitalization in variable name.
54207
54208 2008-07-08  Bruno Haible  <bruno@clisp.org>
54209
54210         * m4/onceonly.m4: Update comments.
54211         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54212
54213 2008-07-04  Jim Meyering  <meyering@redhat.com>
54214
54215         * users.txt: Add vc-dwim.
54216         (bison, coreutils): Use the gitweb URL.
54217
54218 2008-07-03  Jim Meyering  <meyering@redhat.com>
54219
54220         * users.txt: Add libffcall.  From Sam Steingold.
54221
54222 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54223
54224         getdate.y: do not ignore TZ with relative day, month or year offset
54225         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54226         relative-date-handling, since otherwise, the latter would clobber the
54227         sole output (an updated Start value) of the tz-handling block.
54228         * tests/test-getdate.c: Tests for the fix
54229
54230 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54231
54232         Recognize 'foo_LIBRARIES += libgnu.a'.
54233         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54234         makefile snippet has already specified an installation location,
54235         also using '+='.
54236
54237 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54238
54239         getdate.y: factor out common actions
54240         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54241         Use them in place of open-coded actions.
54242
54243 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54244
54245         Add self-test for getdate module.
54246         * modules/getdate-tests: New file.
54247         * tests/test-getdate.c: New file.
54248
54249 2008-06-29  Bruno Haible  <bruno@clisp.org>
54250
54251         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54252         .gitignore.
54253         Reported by Sylvain Beucler <beuc@beuc.net>.
54254
54255 2008-06-29  Bruno Haible  <bruno@clisp.org>
54256
54257         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54258         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54259
54260 2008-06-29  Bruno Haible  <bruno@clisp.org>
54261
54262         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54263         EXTRA_DIST.
54264         Reported by Sylvain Beucler <beuc@beuc.net>.
54265
54266 2008-06-26  Jim Meyering  <meyering@redhat.com>
54267
54268         make several modules depend on the "open" module
54269         This provides slightly increased consistency when opening-for-write
54270         the name of a non-directory spelled with a trailing slash.
54271         * modules/chdir-safer: Likewise.
54272         * modules/chown: Likewise.
54273         * modules/clean-temp: Likewise.
54274         * modules/copy-file: Likewise.
54275         * modules/fchdir: Likewise.
54276         * modules/fcntl-safer: Likewise.
54277         * modules/pipe: Likewise.
54278         * modules/utime: Likewise.
54279         Prompted by Eric Blake and Bruno Haible.
54280
54281 2008-06-24  Andreas Schwab  <schwab@suse.de>
54282
54283         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54284         literals can be used as initializers for global variables.
54285
54286 2008-06-23  Eric Blake  <ebb9@byu.net>
54287
54288         Make gnulib-cache.m4 easier to diff.
54289         * gnulib-tool (func_import): Allow newlines when reading cached
54290         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54291
54292 2008-06-23  Bruno Haible  <bruno@clisp.org>
54293
54294         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54295         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54296         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54297         m4/signalblocking.m4.
54298         (gl_PREREQ_SIGACTION): Don't invoke it.
54299         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54300         gl_PREREQ_SIG_HANDLER_H.
54301         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54302         Don't check for sigaction here.
54303
54304 2008-06-23  Bruno Haible  <bruno@clisp.org>
54305
54306         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54307         (install_handlers): Don't set the SA_RESETHAND flag.
54308
54309 2008-06-23  Bruno Haible  <bruno@clisp.org>
54310
54311         * m4/sigaction.m4: Comment fixes.
54312         * lib/signal.in.h: Likewise.
54313
54314 2008-06-23  Eric Blake  <ebb9@byu.net>
54315
54316         Fix typo.
54317         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54318
54319         Avoid SA_ namespace.
54320         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54321         Reported by Ralf Wildenhues.
54322
54323         Avoid test failure due to SA_RESTORER.
54324         * tests/test-sigaction.c (SA_MASK): New macro.
54325         (main): Avoid failing due to extension flags being set.
54326         Reported by Jim Meyering.
54327
54328         Revert use of sig-handler.h in sigprocmask.c.
54329         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54330         it requires the existence of struct sigaction.
54331         * lib/sigprocmask.c (handler_t): Restore typedef.
54332         (rpl_signal, old_handlers): Use local type.
54333
54334 2008-06-22  Bruno Haible  <bruno@clisp.org>
54335
54336         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54337         conditionally.
54338         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54339
54340 2008-06-22  Bruno Haible  <bruno@clisp.org>
54341
54342         * doc/posix-functions/siginterrupt.texi: Move note.
54343
54344         * lib/signal.in.h (SA_RESTART): New macro.
54345         * lib/sigaction.c: Update comment.
54346
54347         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54348
54349         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54350         (gl_PREREQ_SIGPROCMASK): Invoke it.
54351         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54352
54353         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54354
54355         * lib/sigprocmask.c: Update a comment.
54356
54357 2008-06-21  Eric Blake  <ebb9@byu.net>
54358
54359         Use sigaction module rather than signal().
54360         * modules/c-stack (Depends-on): Add sigaction.
54361         * modules/fatal-signal (Depends-on): Likewise.
54362         * modules/nanosleep (Depends-on): Likewise.
54363         * modules/sigprocmask (Files): Add sig-handler.h.
54364         * modules/sigaction (Files): Likewise.
54365         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54366         Eggert.
54367         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54368         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54369         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54370         (init_fatal_signals): Likewise.
54371         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54372         (siginterrupt): Delete fallback.
54373         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54374         instead.
54375         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54376         siginterrupt.
54377
54378         New module sigaction, for mingw.
54379         * modules/sigaction: New module...
54380         * modules/sigaction-tests: ...and its test.
54381         * m4/sigaction.m4: New file.
54382         * lib/sigaction.c: Likewise.
54383         * tests/test-sigaction.c: Likewise.
54384         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54385         * modules/signal (Makefile.am): Likewise.
54386         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54387         needed.
54388         * doc/posix-headers/signal.texi (signal.h): Mention provided
54389         types.
54390         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54391         that sigaction is preferable.
54392         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54393         module.
54394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54395         sigaction.
54396
54397         Improve robustness of sigprocmask by overriding signal.
54398         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54399         is in use.
54400         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54401         (SIGKILL, SIGSTOP): Provide fallbacks.
54402         (rpl_signal): Implement.
54403         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54404         signal can be called inside handlers.
54405
54406         Fix nanosleep module on mingw.
54407         * modules/nanosleep (Depends-on): Add sys_select.
54408         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54409
54410         Fix licensing of sigprocmask.
54411         * modules/raise (License): Relicense as LGPL.
54412
54413 2008-06-21  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54416         result if it contains question marks.
54417         Reported by Michael Geng <linux@michaelgeng.de>.
54418
54419 2008-06-19  Bruno Haible  <bruno@clisp.org>
54420
54421         Fix CVS-ism.
54422         * doc/gnulib.texi: Include updated-stamp.texi.
54423         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54424         (updated-stamp.texi): New rule.
54425         (gnulib.info): Depend on it.
54426         * doc/.gitignore: Add updated-stamp.texi.
54427         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54428
54429 2008-06-19  Bruno Haible  <bruno@clisp.org>
54430
54431         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54432         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54433
54434 2008-06-19  Eric Blake  <ebb9@byu.net>
54435
54436         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54437         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54438         Reported by Stepan Kasal.
54439
54440 2008-06-18  Bruno Haible  <bruno@clisp.org>
54441
54442         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54443         Reported by Eric Blake.
54444
54445 2008-06-18  Eric Blake  <ebb9@byu.net>
54446
54447         Work around cygwin 1.5.25 strsignal bug.
54448         * tests/test-strsignal.c: Allow for const char *.
54449         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54450
54451 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54452
54453         * users.txt: Update URL to article and add author/date
54454         information.
54455
54456 2008-06-17  Bruno Haible  <bruno@clisp.org>
54457
54458         New macro gl_DISABLE_THREADS.
54459         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54460         if the user did not pass --enable-threads or --disable-threads option.
54461         (gl_DISABLE_THREADS): New macro.
54462         Reported by Eric Blake <ebb9@byu.net>.
54463
54464 2008-06-17  Bruno Haible  <bruno@clisp.org>
54465
54466         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54467         when the macro ignores it.
54468         Based on a patch by Eric Blake <ebb9@byu.net>.
54469
54470 2008-06-17  Bruno Haible  <bruno@clisp.org>
54471
54472         * modules/tls (License): Change to LGPLv2+.
54473         Reported by Eric Blake.
54474
54475 2008-06-17  Eric Blake  <ebb9@byu.net>
54476
54477         Simplify c-stack prerequisites.
54478         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54480         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54481         check.
54482         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54483         <sys/resource.h>.
54484
54485         Move c-stack test into testsuite.
54486         * modules/c-stack-tests: New file.
54487         * lib/c-stack.c [DEBUG]: Move test program...
54488         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54489         fail test if sigaltstack is lacking.
54490         * tests/test-c-stack.sh: New driver file.
54491
54492 2008-06-16  Eric Blake  <ebb9@byu.net>
54493
54494         Use raise module consistently.
54495         * modules/fatal-signal (Depends-on): Add raise.
54496         * modules/sigprocmask (Depends-on): Likewise.
54497         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54498         * lib/sigprocmask.c (sigprocmask): Likewise.
54499         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54500         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54501
54502         Fix compliance bug in sigpending.
54503         * lib/sigprocmask.c (sigpending): Return pending array via
54504         parameter, not return value.
54505
54506 2008-06-14  Eric Blake  <ebb9@byu.net>
54507
54508         Improve obstack-printf test code.
54509         * tests/test-obstack-printf.c (test_function): Fix comment, and
54510         simplify usage of obstack_* in macros.  Add a test for coverage.
54511         Reported by Bruno Haible.
54512
54513 2008-06-14  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54516         array size as a constant, not as a const variable.
54517         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54518         AC_USE_SYSTEM_EXTENSIONS.
54519         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54520         Test whether the obstack_printf function actually exists.
54521         * modules/obstack-printf (Depends-on): Add extensions.
54522         (Include): Remove obstack.h.
54523         * modules/obstack-printf-posix (Depends-on): Add extensions.
54524         (Include): Remove obstack.h.
54525
54526 2008-06-13  Eric Blake  <ebb9@byu.net>
54527
54528         Add obstack-printf and obstack-printf-posix modules.
54529         * modules/obstack-printf: New file.
54530         * modules/obstack-printf-posix: Likewise.
54531         * MODULES.html.sh (Misc): Mention them.
54532         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54533         Likewise.
54534         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54535         Likewise.
54536         * modules/stdio (Makefile.am): Accomodate new modules.
54537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54538         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54539         Declare.
54540         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54541         functions.
54542         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54543         (gl_REPLACE_OBSTACK_PRINTF): New macros
54544         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54545         * tests/test-obstack-printf.c: New file.
54546         * modules/obstack-printf-tests: Likewise.
54547         * modules/obstack-printf-posix-tests: Likewise.
54548
54549 2008-06-11  Bruno Haible  <bruno@clisp.org>
54550
54551         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54552         * lib/open.c: Include errno.h.
54553         (open): Fail when attempting to write to a file that has a trailing
54554         slash.
54555         * tests/test-open.c (main): Test against trailing slash bug.
54556         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54557
54558 2008-06-10  Bruno Haible  <bruno@clisp.org>
54559
54560         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54561         for $? to work inside the trap command, with various /bin/sh-s.
54562         * tests/test-vc-list-files-cvs.sh: Likewise.
54563
54564 2008-06-10  Bruno Haible  <bruno@clisp.org>
54565
54566         * lib/acl-internal.h: Don't include gettext.h here.
54567         * lib/set-mode-acl.c: Include gettext.h here.
54568         * lib/copy-acl.c: Likewise.
54569
54570 2008-06-10  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54573         * lib/wait-process.c (wait_subprocess): Likewise.
54574         * lib/execute.h (execute): Add termsigp argument.
54575         * lib/execute.c (execute): Likewise.
54576         * lib/csharpcomp.c (compile_csharp_using_pnet,
54577         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54578         * lib/csharpexec.c (execute_csharp_using_pnet,
54579         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54580         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54581         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54582         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54583         is_jikes_present): Update.
54584         * lib/javaexec.c (execute_java_class): Update.
54585         * lib/javaversion.c (execute_and_read_line): Update.
54586         * NEWS: Document the changes.
54587         Reported by Eric Blake.
54588
54589 2008-06-10  Eric Blake  <ebb9@byu.net>
54590
54591         Add missing include.
54592         * tests/test-strstr.c (includes): Add <signal.h>.
54593         * tests/test-strcasestr.c (includes): Likewise.
54594         * tests/test-memmem.c (includes): Likewise.
54595
54596 2008-06-10  Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/wait-process.c (wait_subprocess): Add an assertion.
54599
54600 2008-06-10  Bruno Haible  <bruno@clisp.org>
54601
54602         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54603
54604 2008-06-10  Bruno Haible  <bruno@clisp.org>
54605
54606         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54607         using alarm().
54608         * tests/test-strcasestr.c (main): Likewise.
54609         * tests/test-strstr.c (main): Likewise.
54610
54611 2008-06-09  Bruno Haible  <bruno@clisp.org>
54612
54613         Work around the Solaris 10 ACE ACLs ABI change.
54614         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54615         declare if ACL_NO_TRIVIAL is present.
54616         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54617         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54618         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54619         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54620         define if ACL_NO_TRIVIAL is present.
54621         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54622         and use the current ABI.
54623         (file_has_acl): Use same #if condition as elsewhere.
54624         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54625         in use, and use the current ABI.
54626         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54627         Reported by Jim Meyering.
54628
54629 2008-06-09  Eric Blake  <ebb9@byu.net>
54630
54631         Work around environments that (stupidly) ignore SIGALRM.
54632         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54633         before using alarm().
54634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54635         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54636         Reported by Ian Beckwith <ianb@erislabs.net>.
54637
54638         Produce autobuild blurb earlier in log.
54639         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54640
54641 2008-06-09  Jim Meyering  <meyering@redhat.com>
54642         and OndÅ™ej Vašík  <ovasik@redhat.com>
54643
54644         utimens.c: correct kernel bug work-around
54645         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54646         failure, not success, and the kernel bug we're trying to work
54647         around affects not just the utimensat call, but also the fallback
54648         futimens call.
54649         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54650         not success.
54651         [HAVE_FUTIMENS]: Use the same work-around, here.
54652
54653 2008-06-09  Jim Meyering  <meyering@redhat.com>
54654
54655         add more guards around definition of ACE_-related code
54656         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54657         ALLOW and ACE_OWNER are also defined.
54658
54659 2008-06-08  Bruno Haible  <bruno@clisp.org>
54660
54661         * lib/acl-internal.h: Add me as co-author.
54662         * lib/file-has-acl.c: Likewise.
54663         * lib/set-mode-acl.c: Likewise.
54664         * lib/copy-acl.c: Likewise.
54665
54666 2008-06-08  Bruno Haible  <bruno@clisp.org>
54667
54668         Add support for AIX ACLs.
54669         * lib/acl-internal.h (acl_nontrivial): New declaration.
54670         * lib/file-has-acl.c (acl_nontrivial): New function.
54671         (file_has_acl): Add implementation using AIX 4 ACL API.
54672         * lib/set-mode-acl.c (qset_acl): Likewise.
54673         * lib/copy-acl.c (qcopy_acl): Likewise.
54674
54675 2008-06-08  Bruno Haible  <bruno@clisp.org>
54676
54677         Add support for HP-UX ACLs.
54678         * lib/acl-internal.h (acl_nontrivial): New declaration.
54679         * lib/file-has-acl.c (acl_nontrivial): New function.
54680         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54681         * lib/set-mode-acl.c (qset_acl): Likewise.
54682         * lib/copy-acl.c (qcopy_acl): Likewise.
54683
54684 2008-06-08  Bruno Haible  <bruno@clisp.org>
54685
54686         Add support for Cygwin ACLs.
54687         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54688         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54689         the chmod_or_fchmod call.
54690         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54691
54692 2008-06-08  Bruno Haible  <bruno@clisp.org>
54693
54694         Fix bug with setuid modes in Solaris 10+ code.
54695         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54696         succeeded, when the mode contains some special bits.
54697
54698 2008-06-08  Bruno Haible  <bruno@clisp.org>
54699
54700         Add support for Solaris 7..10 ACLs.
54701         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54702         declarations.
54703         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54704         functions.
54705         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54706         * lib/set-mode-acl.c (qset_acl): Likewise.
54707         * lib/copy-acl.c (qcopy_acl): Likewise.
54708
54709 2008-06-08  Bruno Haible  <bruno@clisp.org>
54710
54711         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54712         declaration.
54713         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54714         (acl_access_nontrivial): Remove MacOS X case.
54715         (file_has_acl): Use acl_extended_nontrivial.
54716         * lib/copy-acl.c (qcopy_acl): Likewise.
54717
54718 2008-06-08  Bruno Haible  <bruno@clisp.org>
54719
54720         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54721
54722 2008-06-08  Jim Meyering  <meyering@redhat.com>
54723
54724         * modules/acl (Maintainer): Add Bruno Haible.
54725
54726 2008-06-07  Bruno Haible  <bruno@clisp.org>
54727
54728         Improve support for Tru64 ACLs.
54729         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54730         ACL on OSF/1.
54731
54732 2008-06-07  Bruno Haible  <bruno@clisp.org>
54733
54734         Add support for MacOS X ACLs.
54735         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54736         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54737         * lib/set-mode-acl.c (qset_acl): Likewise.
54738         * lib/copy-acl.c (qcopy_acl): Likewise.
54739
54740 2008-06-07  Bruno Haible  <bruno@clisp.org>
54741
54742         Fix memory leak introduced on 2008-05-22.
54743         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54744         use.
54745
54746 2008-06-07  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54749         to construct an empty ACL.
54750
54751 2008-06-07  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54754         precisely.
54755         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54756
54757 2008-06-07  Bruno Haible  <bruno@clisp.org>
54758
54759         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54760         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54761
54762 2008-06-07  Bruno Haible  <bruno@clisp.org>
54763
54764         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54765         regardless of POSIX.
54766         * doc/posix-functions/_longjmp.texi: Likewise.
54767         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54768         SystemV platform in this case.
54769
54770 2008-06-06  Eric Blake  <ebb9@byu.net>
54771
54772         Document abort() bugs.
54773         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54774
54775         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54776         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54777         sigsetjmp.
54778         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54779         siglongjmp, but only as a macro.
54780         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54781         is obsolete.
54782         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54783
54784         Tweak documentation to cover cygwin argz bugs.
54785         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54786         argz bug fix; no code change needed since no cygwin releases
54787         occurred between the last fix and the bug being tested.
54788         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54789         module and recently fixed cygwin bugs.
54790         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54791         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54792         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54793         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54794         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54795         Likewise.
54796         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54797         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54798         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54799         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54800         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54801         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54802         Likewise.
54803
54804         Avoid gcc warning on cygwin.
54805         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54806         !ACL_NO_TRIVIAL]: Avoid unused variable.
54807
54808 2008-06-05  Eric Blake  <ebb9@byu.net>
54809
54810         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54811         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54812         git-version-gen fails to come up with a version.
54813         Reported by Simon Josefsson.
54814
54815 2008-06-05  Jim Meyering  <meyering@redhat.com>
54816             Paul Eggert  <eggert@cs.ucla.edu>
54817
54818         utimens.c: work around a probable Linux kernel bug
54819         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54820         appears to be a kernel bug that causes utimensat to return 280
54821         instead of 0, indicating success.
54822
54823 2008-06-04  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54826         2008-06-01 commit.
54827
54828 2008-06-04  Bruno Haible  <bruno@clisp.org>
54829
54830         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54831         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54832         (file_has_acl): Use it. Save errno afterwards.
54833         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54834
54835 2008-06-03  Bruno Haible  <bruno@clisp.org>
54836
54837         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54838         draft code. Simplify #ifs.
54839         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54840         Put Solaris code after POSIX-draft code. Fix comments regarding
54841         Solaris 10, HP-UX. Mention Cygwin.
54842         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54843
54844 2008-06-03  Eric Blake  <ebb9@byu.net>
54845
54846         Provide fallback for older kernels.
54847         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54848         Provide runtime fallback if kernel lacks support.
54849         Reported by Mike Frysinger.
54850
54851 2008-06-02  Bruno Haible  <bruno@clisp.org>
54852
54853         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54854         it exists.
54855
54856 2008-06-02  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54859         * lib/copy-acl.c (qcopy_acl): Update comment.
54860
54861 2008-06-02  Bruno Haible  <bruno@clisp.org>
54862
54863         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54864         like ACL APIs.
54865
54866 2008-06-02  Bruno Haible  <bruno@clisp.org>
54867
54868         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54869         * tests/test-set-mode-acl.sh: Likewise.
54870         * tests/test-copy-acl.sh: Likewise.
54871         * tests/test-copy-file.sh: Likewise.
54872
54873 2008-06-02  Bruno Haible  <bruno@clisp.org>
54874
54875         * tests/test-file-has-acl.sh: Remove unused code.
54876
54877 2008-06-01  Bruno Haible  <bruno@clisp.org>
54878
54879         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54880         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54881         messages.
54882         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54883
54884 2008-06-01  Bruno Haible  <bruno@clisp.org>
54885
54886         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54887         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54888         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54889         APIs.
54890         * modules/acl-tests (configure.ac): Remove tests now contained in
54891         m4/acl.m4.
54892
54893 2008-06-02  Jim Meyering  <meyering@redhat.com>
54894
54895         announce-gen: use a better key-server host name
54896         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54897         it may be more consistently reliable.  Suggested by Werner Koch
54898         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54899
54900 2008-06-01  Bruno Haible  <bruno@clisp.org>
54901
54902         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54903         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54904
54905 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54906
54907         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54908
54909 2008-06-01  Bruno Haible  <bruno@clisp.org>
54910
54911         New ACL tests.
54912         * tests/test-file-has-acl.sh: New file.
54913         * tests/test-file-has-acl.c: New file.
54914         * tests/test-set-mode-acl.sh: New file.
54915         * tests/test-set-mode-acl.c: New file.
54916         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54917         * tests/test-copy-acl.c: New file.
54918         * modules/acl-tests: New file, based on modules/copy-file-tests.
54919         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54920         (Depends-on): Add acl-tests.
54921         (configure.ac): Remove checks.
54922         (Makefile.am): Don't create test-sameacls program here any more.
54923
54924 2008-06-01  Bruno Haible  <bruno@clisp.org>
54925
54926         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54927         * tests/test-sameacls.c: Include progname.h.
54928         (main): Invoke set_program_name. Portability fixes for MacOS X,
54929         Solaris, HP-UX.
54930
54931 2008-06-01  Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54934         function.
54935         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54936
54937 2008-06-01  Bruno Haible  <bruno@clisp.org>
54938
54939         * modules/rpmatch (Depends-on): Add strdup.
54940
54941 2008-06-01  Bruno Haible  <bruno@clisp.org>
54942
54943         * lib/pipe.c: Include unistd-safer.h.
54944         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54945         * modules/pipe (Depends-on): Add unistd-safer.
54946
54947 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54948
54949         * modules/autobuild (configure.ac): Call AB_INIT.
54950
54951 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54952
54953         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54954         Suggested by Bruno Haible <bruno@clisp.org>.
54955
54956 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54957
54958         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54959         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54960         <bruno@clisp.org>.
54961
54962 2008-05-29  Eric Blake  <ebb9@byu.net>
54963
54964         Prefer new POSIX 200x interfaces over futimesat.
54965         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54966         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54967         when available.
54968         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54969
54970 2008-05-28  Bruno Haible  <bruno@clisp.org>
54971
54972         * modules/stpcpy (License): Change to LGPLv2+.
54973         Requested by David Lutterkort <dlutter@redhat.com>.
54974
54975 2008-05-27  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54978         current mingw.
54979         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54980
54981 2008-05-27  Bruno Haible  <bruno@clisp.org>
54982
54983         * modules/iconv_open (Link): New section, from module 'iconv'.
54984         * modules/striconv (Link): Likewise.
54985         * modules/striconveh (Link): Likewise.
54986         * modules/xstriconv (Link): Likewise.
54987         * modules/unicodeio (Link): Likewise.
54988         * modules/propername (Link): Likewise.
54989         Reported by Jim Meyering.
54990
54991 2008-05-26  Jim Meyering  <meyering@redhat.com>
54992
54993         sha256: do not artificially restrict buffer length to be < 2^32
54994         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54995         uint32_t to size_t.
54996         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54997         to match.
54998
54999         avoid unaligned access errors, e.g., on sparc
55000         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55001         direct access through a possibly-unaligned uint64* pointer.
55002         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55003         direct access through a possibly-unaligned uint32* pointer.
55004         Prompted by this patch from Tom "spot" Callaway:
55005         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55006
55007         sha512.c: fix typo in comment
55008         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55009
55010 2008-05-25  Bruno Haible  <bruno@clisp.org>
55011
55012         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55013         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55014         (Makefile.am): Update lib_SOURCES.
55015
55016 2008-05-25  Bruno Haible  <bruno@clisp.org>
55017
55018         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55019
55020 2008-05-25  Jim Meyering  <meyering@redhat.com>
55021
55022         useless-if-before-free: freed expr may have white-space differences
55023         * build-aux/useless-if-before-free: Recognize cases in which the
55024         freed expression differs from the tested one in embedded white
55025         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55026         $1 was used, so we can't make any regexp shy.  Improved tests now
55027         detect this.
55028
55029         useless-if-before-free: accept white space in the expression.
55030         * build-aux/useless-if-before-free: For now, any white space
55031         in the expression must be identical in the free argument.
55032
55033         useless-if-before-free: efficiency tweak
55034         * build-aux/useless-if-before-free: Make the expression-matching
55035         regexp "shy".
55036         Make the *outer* regexp shy, not the expr-matching one.
55037
55038         update code-in-comment to accept cast of free arg
55039         * build-aux/useless-if-before-free: Update regexp.
55040
55041 2008-05-25  Bruno Haible  <bruno@clisp.org>
55042
55043         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55044         * modules/copy-file-tests (Files, Makefile.am): Update.
55045         * tests/test-copy-file.c (func_test_copy): Update.
55046
55047 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55048
55049         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55050
55051 2008-05-23  Bruno Haible  <bruno@clisp.org>
55052
55053         Improve support for ACLs on OSF/1.
55054         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55055         Remove fallback for unknown flavors of ACLs.
55056
55057 2008-05-22  Bruno Haible  <bruno@clisp.org>
55058
55059         Add support for ACLs on OSF/1.
55060         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55061         replacements.
55062         (acl_free_text): New macro fallback.
55063         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55064         acl_free.
55065         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55066         acl_free_text function. Require AC_C_INLINE.
55067
55068 2008-05-22  Bruno Haible  <bruno@clisp.org>
55069
55070         Make copy_acl work on MacOS X 10.5.
55071         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55072         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55073         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55074         If MODE_INSIDE_ACL, don't assume that every system has the same text
55075         representation for ACLs as FreeBSD.
55076         * lib/copy-acl.c (copy_acl): Add support for platforms with
55077         !MODE_INSIDE_ACL.
55078         * lib/file-has-acl.c (file_has_acl): Likewise.
55079         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55080         FreeBSD, MacOS X, or IRIX, respectively.
55081
55082 2008-05-22  Bruno Haible  <bruno@clisp.org>
55083
55084         * lib/acl.h: Don't include <sys/acl.h>.
55085         (GETACLCNT): Move fallback to lib/acl-internal.h.
55086         * lib/acl-internal.h: Include <sys/acl.h> here.
55087         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55088
55089 2008-05-22  Bruno Haible  <bruno@clisp.org>
55090
55091         Split off copy_acl function to separate file.
55092         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55093         * lib/acl.c (copy_acl): Moved function to separate file.
55094         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55095         * modules/acl (Files): Add lib/copy-acl.c.
55096         (Makefiles.am): Augment lib_SOURCES.
55097
55098 2008-05-22  Bruno Haible  <bruno@clisp.org>
55099
55100         * modules/copy-file-tests: New file.
55101         * tests/test-copy-file.sh: New file.
55102         * tests/test-copy-file.c: New file.
55103         * tests/test-copy-file-sameacls.c: New file.
55104
55105 2008-05-22  Eric Blake  <ebb9@byu.net>
55106
55107         Avoid gcc warning.
55108         * tests/test-memcmp.c (main): Pass NULL indirectly.
55109
55110 2008-05-21  Bruno Haible  <bruno@clisp.org>
55111
55112         Add reference doc about ACLs.
55113         * doc/acl-resources.txt: New file.
55114         * doc/acl-cygwin.txt: New file.
55115
55116 2008-05-21  Bruno Haible  <bruno@clisp.org>
55117
55118         Avoid one more warning from gcc.
55119         * lib/vasnprintf.c (IF_LINT): Update comments.
55120         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55121
55122 2008-05-21  Jim Meyering  <meyering@redhat.com>
55123
55124         avoid a warning from gcc
55125         * lib/vasnprintf.c (IF_LINT): Define.
55126         (scale10_round_decimal_long_double):
55127         Use it to avoid a "may be used uninitialized" warning.
55128         (scale10_round_decimal_double): Likewise.
55129
55130 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55131
55132         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55133         declared.
55134
55135 2008-05-20  Bruno Haible  <bruno@clisp.org>
55136
55137         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55138         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55139
55140 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55141
55142         * modules/memcmp-tests: New file.
55143         * tests/test-memcmp.c: New file.
55144
55145 2008-05-19  Bruno Haible  <bruno@clisp.org>
55146
55147         * modules/propername (Notice, configure.ac): Put quoted "..." into
55148         --keyword option.
55149         * lib/propername.h: Update comments accordingly.
55150         Reported by Eric Blake.
55151
55152 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55153
55154         * modules/getpass-gnu (Depends-on): Add fseeko.
55155
55156 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55157
55158         * modules/base64-tests: New file.
55159
55160 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55161
55162         * lib/base64.c (base64_decode_ctx): If a decode context structure
55163         was passed in use it to ignore newlines.  If a context structure
55164         was _not_ passed in, continue to treat newlines as garbage (this
55165         is the historical behavior).  Formerly base64_decode.
55166         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55167         takes a decode context structure.
55168         * lib/base64.h (base64_decode): Macro for four-argument calls.
55169         (base64_decode_alloc): Likewise.
55170         * lib/base64.c (base64_decode_ctx): If a decode context structure
55171         was passed in use it to ignore newlines.  If a context structure
55172         was _not_ passed in, continue to treat newlines as garbage (this
55173         is the historical behavior).  Formerly base64_decode.
55174         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55175         takes a decode context structure.
55176         * lib/base64.h (base64_decode): Macro for four-argument calls.
55177         (base64_decode_alloc): Likewise.
55178
55179 2008-05-19  Jim Meyering  <meyering@redhat.com>
55180
55181         avoid a warning from gcc
55182         * lib/trim.c (IF_LINT): Define.
55183         (trim2): Use it to avoid a "may be used uninitialized" warning.
55184
55185         Fix doc typo.
55186         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55187
55188 2008-05-19  Bruno Haible  <bruno@clisp.org>
55189
55190         * doc/glibc-functions/getpass.texi: Document limits of other
55191         implementations.
55192
55193 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55194             Bruno Haible <bruno@clisp.org>
55195
55196         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55197
55198 2008-05-18  Bruno Haible  <bruno@clisp.org>
55199
55200         * modules/propername: New file, from GNU gettext.
55201         * lib/propername.h: New file, from GNU gettext.
55202         * lib/propername.c: New file, from GNU gettext.
55203         * MODULES.html.sh (Internationalization functions): Add propername.
55204
55205 2008-05-16  Jim Meyering  <meyering@redhat.com>
55206             Bruno Haible  <bruno@clisp.org>
55207
55208         Avoid some warnings from "gcc -Wshadow".
55209         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55210
55211 2008-05-15  Eric Blake  <ebb9@byu.net>
55212
55213         Extend previous patch to cygwin 1.7.0.
55214         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55215         fast implementation in cygwin >= 1.7.0.
55216         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55218
55219 2008-05-15  Bruno Haible  <bruno@clisp.org>
55220
55221         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55222         implementation in glibc >= 2.9.
55223         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55225
55226 2008-05-15  Bruno Haible  <bruno@clisp.org>
55227
55228         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55229         (Unicode string functions): Add unilbrk/*.
55230         Reported by Karl Berry.
55231
55232 2008-05-15  Eric Blake  <ebb9@byu.net>
55233
55234         Fix violation of <stdbool.h> replacement in regex.
55235         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55236         * lib/regexec.c (re_search_internal): Likewise.
55237         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55238
55239 2008-05-15  Jim Meyering  <meyering@redhat.com>
55240
55241         avoid distracting test output when git or cvs is not found
55242         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55243         * tests/test-vc-list-files-git.sh: Likewise.
55244
55245 2008-05-15  Eric Blake  <ebb9@byu.net>
55246
55247         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55248         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55249         glibc version.
55250         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55251         * doc/posix-functions/strstr.texi (strstr): Likewise.
55252         * lib/str-two-way.h (MAX): Sychronize with glibc.
55253
55254 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55255
55256         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55257         opr.ctx_type.
55258         (calc_first): Initialize constraint field.
55259         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55260         Fix grammar.
55261         (duplicate_node): Merge constraint field for all node types.
55262         (calc_eclosure_iter): Look at constraint field for all node types.
55263         * lib/regex_internal.c (create_cd_newstate): Don't look at
55264         opr.ctx_type.
55265
55266 2008-05-14  Bruno Haible  <bruno@clisp.org>
55267
55268         Help GCC to do better code generation.
55269         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55270         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55271         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55272         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55273         Declare with attribute 'malloc' if supported.
55274
55275 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55276
55277         use "echo STR|wc -c" rather than unportable "expr length STR"
55278         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55279         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55280
55281 2008-05-14  Jim Meyering  <meyering@redhat.com>
55282
55283         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55284         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55285         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55286         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55287         via Collin Lasse.
55288
55289 2008-05-14  Eric Blake  <ebb9@byu.net>
55290
55291         Avoid quadratic growth in gl_LIBSOURCES.
55292         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55293         Suggested by Bruno Haible.
55294
55295         Test xmemdup0.
55296         * modules/xmemdup0-tests: New file.
55297         * tests/test-xmemdup0.c: Likewise.
55298
55299 2008-05-13  Eric Blake  <ebb9@byu.net>
55300
55301         Split xmemdup0 into its own module.
55302         * modules/xmemdup0: New file.
55303         * lib/xmemdup0.h: Likewise.
55304         * lib/xmemdup0.c: Likewise.
55305         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55306         * lib/xalloc.h (xmemdup0): Remove.
55307         * lib/xmalloc.c (xmemdup0): Likewise.
55308
55309 2008-05-13  Eric Blake  <ebb9@byu.net>
55310             Bruno Haible  <bruno@clisp.org>
55311
55312         Reduce number of forks required during autoconf.
55313         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55314         and gl_LIBSOURCES_DIR.
55315         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55316         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55317         m4_syscmd per file.
55318         <m4_foreach_w>: Move...
55319         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55320
55321 2008-05-13  Eric Blake  <ebb9@byu.net>
55322
55323         * gnulib-tool: Fix various comment typos.
55324
55325 2008-05-12  Bruno Haible  <bruno@clisp.org>
55326
55327         Tailor the linebreaking algorithm.
55328         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55329
55330 2008-05-12  Bruno Haible  <bruno@clisp.org>
55331
55332         Update to Unicode 5.0.0.
55333         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55334         LBP_JV, LBP_JT. Redistribute values.
55335         (unilbrk_table): Change size.
55336         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55337         Unicode TR#14 rev. 22.
55338         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55339         LBP_JV, LBP_JT. Redistribute values.
55340         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55341         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55342         Update.
55343         * lib/unilbrk/lbrkprop1.h: Regenerated.
55344         * lib/unilbrk/lbrkprop2.h: Regenerated.
55345         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55346         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55347         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55348         Likewise.
55349         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55350         Likewise.
55351         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55352         result.
55353         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55354         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55355         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55356         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55357         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55358         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55359
55360 2008-05-11  Bruno Haible  <bruno@clisp.org>
55361
55362         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55363
55364 2008-05-11  Bruno Haible  <bruno@clisp.org>
55365
55366         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55367         * modules/unilbrk/gen-lbrk: New file.
55368
55369 2008-05-11  Bruno Haible  <bruno@clisp.org>
55370
55371         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55372         * m4/sha512.m4 (gl_SHA512): Likewise.
55373
55374 2008-05-11  Jim Meyering  <meyering@redhat.com>
55375
55376         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55377         * modules/crypto/sha256: New file.
55378         * modules/crypto/sha512: Likewise.
55379         * lib/sha256.c: Likewise.
55380         * lib/sha256.h: Likewise.
55381         * lib/sha512.c: Likewise.
55382         * lib/sha512.h: Likewise.
55383         * lib/u64.h: Likewise.
55384         * m4/sha256.m4: Likewise.
55385         * m4/sha512.m4: Likewise.
55386         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55387
55388 2008-05-10  Bruno Haible  <bruno@clisp.org>
55389
55390         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55391         (Input/Output <stdio.h>): Add xprintf.
55392         (Signal handling <signal.h>): Add strsignal.
55393         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55394         (Core language properties): Add func.
55395         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55396         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55397         strings.
55398         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55399         (Input/output): New section.
55400         (File system functions): Add openat-die, stat-macros.
55401         (Networking functions): Add sockets.
55402         (Unicode string functions): Add unictype/*.
55403         (Support for building libraries and executables): Add gperf.
55404         (Support for building documentation): Add agpl-3.0.
55405         (Misc): Add nocrash.
55406
55407 2008-05-10  Bruno Haible  <bruno@clisp.org>
55408
55409         * modules/unictype/gen-ctype: New file.
55410
55411 2008-05-10  Jim Meyering  <meyering@redhat.com>
55412
55413         Make chdir-safer.c more efficient on a system with no symlinks.
55414         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55415         also if ELOOP is zero.  Suggested by Bruno Haible.
55416
55417         Make chdir-safer.c slightly safer.
55418         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55419         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55420
55421         Avoid compile failure on systems without ELOOP (like mingw).
55422         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55423         Reported by Bruno Haible.
55424
55425 2008-05-10  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55428         (is_utf8_encoding): Use a case-insensitive comparison.
55429         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55430         streq.
55431
55432 2008-05-10  Bruno Haible  <bruno@clisp.org>
55433
55434         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55435         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55436         * lib/unilbrk/ulc-common.h (iconv_string_length,
55437         iconv_string_keeping_offsets): Remove declarations.
55438         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55439         Don't include <iconv.h>, streq.h, xsize.h.
55440         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55441         conversion.
55442         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55443         <iconv.h>, streq.h, xsize.h.
55444         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55445         conversion.
55446         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55447         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55448         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55449         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55450
55451 2008-05-10  Bruno Haible  <bruno@clisp.org>
55452
55453         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55454         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55455
55456         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55457         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55458
55459         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55460         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55461
55462         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55463         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55464
55465         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55466         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55467
55468         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55469         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55470
55471         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55472         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55473
55474         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55475         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55476
55477 2008-05-10  Bruno Haible  <bruno@clisp.org>
55478
55479         Split up 'linebreak' module.
55480         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55481         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55482         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55483         modifications.
55484         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55485         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55486         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55487         lib/linebreak.c.
55488         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55489         lib/linebreak.c.
55490         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55491         lib/linebreak.c.
55492         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55493         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55494         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55495         lib/linebreak.c.
55496         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55497         lib/linebreak.c.
55498         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55499         lib/linebreak.c.
55500         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55501         lib/linebreak.c.
55502         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55503         lib/linebreak.c.
55504         * modules/unilbrk/base: New file.
55505         * modules/unilbrk/tables: New file.
55506         * modules/unilbrk/u8-possible-linebreaks: New file.
55507         * modules/unilbrk/u16-possible-linebreaks: New file.
55508         * modules/unilbrk/u32-possible-linebreaks: New file.
55509         * modules/unilbrk/ulc-common: New file.
55510         * modules/unilbrk/ulc-possible-linebreaks: New file.
55511         * modules/unilbrk/u8-width-linebreaks: New file.
55512         * modules/unilbrk/u16-width-linebreaks: New file.
55513         * modules/unilbrk/u32-width-linebreaks: New file.
55514         * modules/unilbrk/ulc-width-linebreaks: New file.
55515         * lib/linebreak.h: Remove file.
55516         * lib/linebreak.c: Remove file.
55517         * m4/linebreak.m4: Remove file.
55518         * modules/linebreak: Remove file.
55519         * NEWS: Mention the changes.
55520
55521 2008-05-09  Eric Blake  <ebb9@byu.net>
55522
55523         Add xmemdup0.
55524         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55525         implementation.
55526         * lib/xmalloc.c (xmemdup0): New C implementation.
55527
55528 2008-05-08  Bruno Haible  <bruno@clisp.org>
55529
55530         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55531
55532 2008-05-07  Eric Blake  <ebb9@byu.net>
55533
55534         Support cross-compilation of <wctype.h>.
55535         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55536         AC_CACHE_CHECK.
55537
55538 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55539
55540         * build-aux/vc-list-files: Add support for bzr.
55541
55542 2008-05-03  Jim Meyering  <meyering@redhat.com>
55543
55544         avoid failed assertion with tight malloc
55545         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55546
55547 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55548
55549         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55550         are needed from arpa/inet.h.
55551         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55552         Reported by Bruno Haible.
55553
55554 2008-05-02  Jim Meyering  <meyering@redhat.com>
55555
55556         avoid compilation error on FreeBSD 6
55557         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55558
55559 2008-05-01  Jim Meyering  <meyering@redhat.com>
55560
55561         useless-if-before-free: correct --help's exit status description
55562         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55563         for one or more matches, etc.  Reported by Bruno Haible.
55564
55565         vc-list-files: make the stand-alone gnulib test work
55566         * modules/vc-list-files-tests (configure.ac):
55567         Define and AC_SUBST abs_aux_dir.
55568         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55569         $(abs_top_srcdir) to each script and having each of them
55570         duplicate the work of setting PATH, set PATH here, using
55571         the new variable, abs_aux_dir instead.
55572         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55573         * tests/test-vc-list-files-git.sh: Likewise.
55574         Reported by Bruno Haible.
55575
55576 2008-05-01  Bruno Haible  <bruno@clisp.org>
55577
55578         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55579         reallocation. Rename 'done' to 'found_delimiter'.
55580
55581 2008-05-01  Jim Meyering  <meyering@redhat.com>
55582
55583         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55584         * build-aux/vc-list-files: Use `...`, not $(...).
55585
55586 2008-04-30  Jim Meyering  <meyering@redhat.com>
55587
55588         add tests for vc-list-files
55589         * modules/vc-list-files-tests: New module.
55590         * tests/test-vc-list-files-cvs.sh: New file.
55591         * tests/test-vc-list-files-git.sh: New file.
55592
55593         avoid a warning from gcc
55594         * lib/getndelim2.c (IF_LINT): Define.
55595         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55596
55597         vc-list-files: work properly with build-aux/cvsu, too
55598         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55599         to all cvs-based clauses.
55600
55601         vc-list-files: work properly in the CVS+awk case, too
55602         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55603
55604         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55605         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55606         take more than one file argument, so .  Add quotes, just in case $dir
55607         ever contains a shell meta-character.  Prompted by Soren Hansen in
55608         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55609
55610 2008-04-29  Eric Blake  <ebb9@byu.net>
55611
55612         Optimize getndelim2 to use block operations when possible.
55613         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55614         freadseek, and memchr2.
55615         * lib/getndelim2.c (getndelim2): Use them for block reads.
55616
55617 2008-04-29  Bruno Haible  <bruno@clisp.org>
55618
55619         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55620         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55621         * modules/inet_ntop (Depends-on): Add extensions.
55622         * modules/inet_pton (Depends-on): Likewise.
55623         Reported by Simon Josefsson.
55624
55625 2008-04-29  Jim Meyering  <meyering@redhat.com>
55626
55627         When the is more than one match in a block, match all of them.
55628         * build-aux/useless-if-before-free: Iterate through each block
55629         until there are no more matches.
55630
55631         Fix broken useless-if-before-free script.
55632         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55633         the expression to match cast of argument to free-like function.
55634
55635 2008-04-29  Eric Blake  <ebb9@byu.net>
55636
55637         Use new header.
55638         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55639
55640 2008-04-29  Jim Meyering  <meyering@redhat.com>
55641
55642         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55643         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55644         by gnulib to exist and to declare e.g., inet_ntop.
55645         Don't include "inet_ntop.h", now removed.
55646
55647         * m4/arpa_inet_h.m4: Remove trailing blanks.
55648
55649 2008-04-29  Eric Blake  <ebb9@byu.net>
55650
55651         Silence valgrind on safe reads beyond potential array bounds.
55652         * lib/rawmemchr.valgrind: New file.
55653         * lib/strchrnul.valgrind: Likewise.
55654         * modules/rawmemchr (Files): Distribute new file.
55655         * modules/strchrnul (Files): Likewise.
55656         Suggested by Bruno Haible.
55657
55658 2008-04-29  Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55661         (inet_ntop, inet_pton): Change portability warning's wording.
55662         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55663         Invoke gl_CHECK_NEXT_HEADERS.
55664         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55665         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55666         set ARPA_INET_H.
55667         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55668         * modules/arpa_inet (Description): No longer only for systems that
55669         lack it.
55670         (Depends-on): Add include_next.
55671         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55672         HAVE_ARPA_INET_H.
55673
55674 2008-04-29  Jim Meyering  <meyering@redhat.com>
55675
55676         * modules/mkdir (License): Re-license as LGPLv2+.
55677
55678 2008-04-29  Bruno Haible  <bruno@clisp.org>
55679
55680         * modules/rawmemchr (Maintainer): Set to Eric.
55681         * modules/strchrnul (Maintainer): Likewise.
55682
55683 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55684
55685         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55686         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55687
55688         * modules/arpa_inet (arpa/inet.h): Use them.
55689
55690 2008-04-28  Eric Blake  <ebb9@byu.net>
55691
55692         Test getndelim2.
55693         * modules/getndelim2-tests: New file.
55694         * tests/test-getndelim2.c: Likewise.
55695         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55696         stream.
55697         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55698
55699         * MODULES.html.sh: Document new module.
55700
55701 2008-04-20  Bruno Haible  <bruno@clisp.org>
55702
55703         * lib/c-stack.c (die): Use raise.
55704         * modules/c-stack (Depends-on): Add raise.
55705
55706 2008-04-28  Bruno Haible  <bruno@clisp.org>
55707
55708         Expect rpmatch to be declared.
55709         * lib/yesno.c (rpmatch): Remove declaration.
55710
55711         Declare rpmatch.
55712         * lib/stdlib.in.h (rpmatch): New declaration.
55713         * lib/rpmatch.c: Include <stdlib.h> first.
55714         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55715         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55717         HAVE_RPMATCH.
55718         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55719         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55720         (Include): Set to <stdlib.h>.
55721         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55722         HAVE_RPMATCH.
55723         * NEWS: Document the change.
55724
55725 2008-04-28  Bruno Haible  <bruno@clisp.org>
55726
55727         Change rpmatch to use nl_langinfo when appropriate.
55728         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55729         (N_): New macro.
55730         (localized_pattern): New function/macro.
55731         (try): Remove match, nomatch arguments. Copy the pattern into safe
55732         memory before caching it.
55733         (rpmatch): Use localized_pattern. Add translator comments.
55734         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55735         Suggested by Eric Blake.
55736         * modules/rpmatch (Depends-on): Add stdbool.
55737
55738 2008-04-28  Eric Blake  <ebb9@byu.net>
55739
55740         Add rawmemchr module, matching glibc.
55741         * modules/string (Makefile.am): New indicator.
55742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55743         * lib/string.in.h (rawmemchr): Declare when appropriate.
55744         * modules/rawmemchr: New file.
55745         * m4/rawmemchr.m4: Likewise.
55746         * lib/rawmemchr.c: Likewise.
55747         * modules/rawmemchr-tests: Likewise.
55748         * tests/test-rawmemchr.c: Likewise.
55749         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55750         module.
55751         * modules/strchrnul (Depends-on): Add rawmemchr.
55752         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55753
55754         Whitespace cleanup.
55755         * tests/test-strchrnul.c: Reindent.
55756         * lib/strchrnul.c: Likewise.
55757
55758         Optimize and test strchrnul.
55759         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55760         * modules/strchrnul-tests: New file.
55761         * tests/test-strchrnul.c: Likewise.
55762
55763         Remove intprops dependency.
55764         * modules/memchr (Depends-on): Remove intprops.
55765         * modules/memrchr (Depends-on): Likewise.
55766         * modules/memchr2 (Depends-on): Likewise.
55767         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55768         * lib/memrchr.c (__memrchr): Likewise.
55769         * lib/memrchr2.c (memchr2): Likewise.
55770         Reported by Simon Josefsson.
55771
55772 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55773
55774         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55775         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55776
55777 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55778
55779         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55780
55781         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55782
55783         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55784
55785         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55786         declarations.
55787         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55788
55789         * m4/inet_pton.m4: Don't check for header files.
55790
55791         * m4/inet_ntop.m4: Don't check for header files.
55792
55793 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55794
55795         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55796         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55797         trigger for cygwin).
55798         Reported by Bruno Haible  <bruno@clisp.org>.
55799
55800 2008-04-28  Bruno Haible  <bruno@clisp.org>
55801
55802         * doc/posix-functions/strdup.texi: Mention mingw problem.
55803
55804 2008-04-27  Bruno Haible  <bruno@clisp.org>
55805
55806         * modules/stat-time-tests (Depends-on): Add sleep.
55807         * tests/test-stat-time.c (force_unlink): New function.
55808         (cleanup): Use it.
55809         (test_mtime): Remove the ctime related tests.
55810         (test_ctime): New function, containing the ctime related tests.
55811         (main): Call test_ctime, except on native Windows platforms.
55812
55813 2008-04-27  Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/rpmatch.c (rpmatch): Add some comments.
55816         Reported by James Youngman <jay@gnu.org>.
55817
55818 2008-04-27  Bruno Haible  <bruno@clisp.org>
55819
55820         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55821         quiet NaNs.
55822
55823 2008-04-27  Bruno Haible  <bruno@clisp.org>
55824
55825         Make test-yesno.sh work on mingw.
55826         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55827         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55828         (main): Set stdin to binary mode.
55829         * modules/yesno-tests (Depends-on): Add binary-io.
55830
55831 2008-04-27  Bruno Haible  <bruno@clisp.org>
55832
55833         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55834         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55835         argument that lie outside the IEEE 854 domain.
55836         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55837         (gl_ISFINITE): Use it.
55838         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55839
55840 2008-04-27  Bruno Haible  <bruno@clisp.org>
55841
55842         Allow local renaming in config.h.
55843         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55844
55845 2008-04-27  Bruno Haible  <bruno@clisp.org>
55846
55847         * lib/memchr.c (__memchr): Change type of 'i'.
55848         * lib/memchr2.c (memchr2): Likewise.
55849
55850 2008-04-26  Eric Blake  <ebb9@byu.net>
55851         and Bruno Haible  <bruno@clisp.org>
55852
55853         Optimize and test memrchr.
55854         * modules/memrchr (Depends-on): Add intprops.
55855         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55856         * modules/memrchr-tests: New file.
55857         * tests/test-memrchr.c: New file.
55858
55859 2008-04-26  Bruno Haible  <bruno@clisp.org>
55860
55861         Add tentative support for DragonFly BSD.
55862         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55863         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55864         fp.
55865         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55866         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55867         * lib/fpurge.c (fpurge): Likewise.
55868         * lib/freadable.c (freaadable): Likewise.
55869         * lib/freadahead.c (freadahead): Likewise.
55870         * lib/freading.c (freading): Likewise.
55871         * lib/freadptr.c (freadptr): Likewise.
55872         * lib/freadseek.c (freadptrinc): Likewise.
55873         * lib/fseeko.c (fseeko): Likewise.
55874         * lib/fseterr.c (fseterr): Likewise.
55875         * lib/fwritable.c (fwritable): Likewise.
55876         * lib/fwriting.c (fwriting): Likewise.
55877
55878 2008-04-26  Bruno Haible  <bruno@clisp.org>
55879
55880         * lib/stdio-impl.h: New file.
55881         * lib/fbufmode.c: Include stdio-impl.h.
55882         (fbufmode): Use fp_, remove redundant #defines.
55883         * lib/fflush.c: Include stdio-impl.h.
55884         (clear_ungetc_buffer): Remove redundant #defines.
55885         * lib/fpurge.c: Include stdio-impl.h.
55886         (fpurge): Remove redundant #defines.
55887         * lib/freadable.c: Include stdio-impl.h.
55888         (freadable): Remove redundant #defines.
55889         * lib/freadahead.c: Include stdio-impl.h.
55890         (freadahead): Remove redundant #defines.
55891         * lib/freading.c: Include stdio-impl.h.
55892         (freading): Remove redundant #defines.
55893         * lib/freadptr.c: Include stdio-impl.h.
55894         (freadptr): Remove redundant #defines.
55895         * lib/freadseek.c: Include stdio-impl.h.
55896         (freadptrinc): Remove redundant #defines.
55897         * lib/fseeko.c: Include stdio-impl.h.
55898         (rpl_fseeko): Remove redundant #defines.
55899         * lib/fseterr.c: Include stdio-impl.h.
55900         (fseterr): Remove redundant #defines.
55901         * lib/fwritable.c: Include stdio-impl.h.
55902         (fwritable: Remove redundant #defines.
55903         * lib/fwriting.c: Include stdio-impl.h.
55904         (fwriting): Remove redundant #defines.
55905         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55906         * modules/fflush (Files): Likewise.
55907         * modules/fpurge (Files): Likewise.
55908         * modules/freadable (Files): Likewise.
55909         * modules/freadahead (Files): Likewise.
55910         * modules/freading (Files): Likewise.
55911         * modules/freadptr (Files): Likewise.
55912         * modules/freadseek (Files): Likewise.
55913         * modules/fseeko (Files): Likewise.
55914         * modules/fseterr (Files): Likewise.
55915         * modules/fwritable (Files): Likewise.
55916         * modules/fwriting (Files): Likewise.
55917
55918 2008-04-26  Bruno Haible  <bruno@clisp.org>
55919
55920         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55921         restore_seek_optimization, update_fpos_cache): New functions, extracted
55922         from rpl_fflush.
55923         (rpl_fflush): Use them.
55924         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55925         (gl_REPLACE_FFLUSH): Use it.
55926
55927 2008-04-26  Bruno Haible  <bruno@clisp.org>
55928
55929         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55930         on Solaris.
55931         * tests/test-xstrtoimax.sh: Likewise.
55932         * tests/test-xstrtoumax.sh: Likewise.
55933         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55934
55935 2008-04-26  Bruno Haible  <bruno@clisp.org>
55936
55937         * modules/memchr-tests: New file.
55938         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55939
55940 2008-04-26  Eric Blake  <ebb9@byu.net>
55941             Bruno Haible  <bruno@clisp.org>
55942
55943         * lib/memchr.c: Include intprops.h.
55944         (__memchr): Optimize parallel detection of matching bytes. Rename local
55945         variables. Add explanatory comments.
55946
55947 2008-04-26  Bruno Haible  <bruno@clisp.org>
55948
55949         Fix module 'memchr', broken since 2000-10-28.
55950         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55951
55952 2008-04-26  Bruno Haible  <bruno@clisp.org>
55953
55954         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55955         comments.
55956
55957 2008-04-25  Eric Blake  <ebb9@byu.net>
55958
55959         Use native fstatat on cygwin 1.7.0.
55960         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55961         first.
55962
55963 2008-04-23  Eric Blake  <ebb9@byu.net>
55964
55965         Improve memchr2 performance.
55966         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55967         NUL bytes.
55968         * modules/memchr2 (Depends-on): Use intprops.h.
55969
55970 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55971
55972         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55973         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55974         <blp@cs.stanford.edu>.
55975
55976 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55977
55978         * lib/arpa_inet.in.h: New file.
55979
55980         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55981         (Makefile.am): Sed in substitute header file.
55982
55983         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55984         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55985
55986         * modules/inet_ntop (configure.ac): Use
55987         gl_ARPA_INET_MODULE_INDICATOR.
55988
55989         * modules/inet_pton (configure.ac): Use
55990         gl_ARPA_INET_MODULE_INDICATOR.
55991
55992 2008-04-22  Jim Meyering  <meyering@redhat.com>
55993
55994         * modules/verify (License): Re-license as LGPLv2+.
55995
55996 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55997
55998         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55999         parameter to void* as per POSIX standard (MinGW uses char*).
56000
56001 2008-04-21  Bruno Haible  <bruno@clisp.org>
56002
56003         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56004         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56005         Define to replacements if REPLACE_ISWCNTRL is 1.
56006         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56007         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56008         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56009         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56010         what it fixes.
56011         * doc/posix-functions/iswalpha.texi: Likewise.
56012         * doc/posix-functions/iswblank.texi: Likewise.
56013         * doc/posix-functions/iswcntrl.texi: Likewise.
56014         * doc/posix-functions/iswdigit.texi: Likewise.
56015         * doc/posix-functions/iswgraph.texi: Likewise.
56016         * doc/posix-functions/iswlower.texi: Likewise.
56017         * doc/posix-functions/iswprint.texi: Likewise.
56018         * doc/posix-functions/iswpunct.texi: Likewise.
56019         * doc/posix-functions/iswspace.texi: Likewise.
56020         * doc/posix-functions/iswupper.texi: Likewise.
56021         * doc/posix-functions/iswxdigit.texi: Likewise.
56022         Reported by Alain Guibert.
56023
56024 2008-04-21  Bruno Haible  <bruno@clisp.org>
56025
56026         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56027         Patch by Alain Guibert.
56028
56029 2008-04-21  Bruno Haible  <bruno@clisp.org>
56030
56031         Fix test failures on mingw.
56032         * tests/test-xstrtol.c (print_no_progname): New function.
56033         (main): Install it in error_print_progname hook.
56034         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56035         * tests/test-xstrtoimax.sh: Likewise.
56036         * tests/test-xstrtoumax.sh: Likewise.
56037
56038 2008-04-21  Bruno Haible  <bruno@clisp.org>
56039
56040         Fix test failure on mingw.
56041         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56042
56043 2008-04-21  Bruno Haible  <bruno@clisp.org>
56044
56045         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56046         Actually assign a value.
56047
56048 2008-04-20  Bruno Haible  <bruno@clisp.org>
56049
56050         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56051         take 2.
56052         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56053         'canonicalize-lgpl' module is also used.
56054         * lib/canonicalize-lgpl.c: Undo last change.
56055         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56056
56057 2008-04-20  Bruno Haible  <bruno@clisp.org>
56058
56059         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56060         config.h. Provide _mkdir based fallback for mingw.
56061         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56062         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56063         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56064         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56065         rather than defining mkdir in config.h.
56066         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56067         (gl_SYS_STAT_H_DEFAULTS): New macro.
56068         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56069         HAVE_IO_H any more.
56070         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56071         HAVE_DECL_MKDIR and HAVE_IO_H.
56072
56073 2008-04-20  Bruno Haible  <bruno@clisp.org>
56074
56075         * lib/isapipe.c: Port to native Windows platforms.
56076
56077 2008-04-20  Bruno Haible  <bruno@clisp.org>
56078
56079         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56080
56081 2008-04-21  Eric Blake  <ebb9@byu.net>
56082
56083         Work around preprocessors that don't handle UINTMAX_MAX.
56084         * lib/memchr2.c (memchr2): Avoid embedded #if.
56085         Reported by Alain Guibert, fix suggested by Bruno Haible.
56086
56087 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56088
56089         * doc/posix-functions/strftime.texi (strftime): Explain better
56090         Windows incompatibility.  Suggested by Micah Cowan
56091         <micah@cowan.name>.
56092
56093 2008-04-20  Bruno Haible  <bruno@clisp.org>
56094
56095         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56096         unistr/u8-mblen.
56097
56098 2008-04-20  Bruno Haible  <bruno@clisp.org>
56099
56100         Fix test failure on platforms with non-GNU iconv.
56101         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56102         (U_TO_U8): Use it, rather than u16_to_u8.
56103         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56104         units at the end of the input string.
56105         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56106
56107 2008-04-20  Bruno Haible  <bruno@clisp.org>
56108
56109         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56110         when the resulting length is 0.
56111         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56112
56113 2008-04-20  Bruno Haible  <bruno@clisp.org>
56114
56115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56116         works.
56117         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56118
56119 2008-04-20  Bruno Haible  <bruno@clisp.org>
56120
56121         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56122         * modules/tsearch-tests (configure.ac): Test for initstate function.
56123
56124 2008-04-20  Bruno Haible  <bruno@clisp.org>
56125
56126         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56127         for nlink_t if missing.
56128         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56129
56130 2008-04-19  Bruno Haible  <bruno@clisp.org>
56131
56132         Work around snprintf bug on Linux libc5.
56133         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56134         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56135         gl_SNPRINTF_SIZE1.
56136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56137         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56138         that test failed.
56139         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56140         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56141         * modules/snprintf (Files): Add m4/printf.m4.
56142         * modules/vsnprintf (Files): Likewise.
56143         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56144         * doc/posix-functions/vsnprintf.texi: Likewise.
56145
56146 2008-04-19  Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56149         from 0.0058 to less than 10^-7.
56150
56151 2008-04-19  Bruno Haible  <bruno@clisp.org>
56152
56153         Fix rounding when a precision is given.
56154         * lib/vasnprintf.c (is_borderline): New function.
56155         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56156         9...9x.
56157         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56158         %e, %g.
56159         * tests/test-vasprintf-posix.c (test_function): Likewise.
56160         * tests/test-snprintf-posix.h (test_function): Likewise.
56161         * tests/test-sprintf-posix.h (test_function): Likewise.
56162         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56163         * tests/test-printf-posix.h (test_function): Likewise.
56164         * tests/test-printf-posix.output: Update.
56165         Reported by John Darrington <john@darrington.wattle.id.au> via
56166         Ben Pfaff <blp@cs.stanford.edu>.
56167
56168 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56169
56170         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56171         Suggested by Bruno Haible <bruno@clisp.org>.
56172
56173 2008-04-17  Bruno Haible  <bruno@clisp.org>
56174
56175         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56176         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56177         implementation.
56178         Patch by Bruce Merry <bmerry@gmail.com>.
56179
56180 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56181
56182         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56183         doesn't work under Windows.
56184
56185 2008-04-16  Bruno Haible  <bruno@clisp.org>
56186
56187         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56188         New macros.
56189         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56190         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56191         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56192         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56193         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56194         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56195         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56196         macros.
56197         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56198         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56199         Northern Sotho, Uighur.
56200
56201 2008-04-16  Bruno Haible  <bruno@clisp.org>
56202
56203         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56204         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56205         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56206         Reported by Daniel Bergström <daniel@octocode.com>.
56207
56208 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56209             Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56212         function.
56213         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56214         New functions, mostly extracted from gl_locale_name_default.
56215         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56216
56217 2008-04-16  Eric Blake  <ebb9@byu.net>
56218
56219         Adjust strtod detection to catch glibc 2.7 bug.
56220         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56221         Reported by John Gatewood Ham.
56222
56223 2008-04-16  Bruno Haible  <bruno@clisp.org>
56224
56225         Add tentative support for Linux libc5.
56226         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56227         * lib/fpurge.c (fpurge): Likewise.
56228         * lib/freadable.c (freadable): Likewise.
56229         * lib/freadahead.c (freadahead): Likewise.
56230         * lib/freading.c (freading): Likewise.
56231         * lib/freadptr.c (freadptr): Likewise.
56232         * lib/freadseek.c (freadptrinc): Likewise.
56233         * lib/fseeko.c (rpl_fseeko): Likewise.
56234         * lib/fseterr.c (fseterr): Likewise.
56235         * lib/fwritable.c (fwritable): Likewise.
56236         * lib/fwriting.c (fwriting): Likewise.
56237         Reported by Alain Guibert <alguibert+bts@free.fr>.
56238
56239 2008-04-15  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/mathl (configure.ac): Define module indicator.
56242
56243 2008-04-15  Bruno Haible  <bruno@clisp.org>
56244
56245         * lib/logl.c (logl): Remove unused variables.
56246
56247 2008-04-15  Bruno Haible  <bruno@clisp.org>
56248
56249         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56250         fails.
56251
56252 2008-04-15  Bruno Haible  <bruno@clisp.org>
56253
56254         * lib/trim.c (trim2): Fix argument of isspace() macro.
56255
56256 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56257
56258         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56259         to 0.
56260         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56261
56262 2008-04-14  Bruno Haible  <bruno@clisp.org>
56263
56264         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56265         AC_LANG_PROGRAM argument.
56266         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56267         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56269         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56270         * m4/math_h.m4 (gl_MATH_H): Likewise.
56271         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56272         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56273         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56274         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56275         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56276         * m4/regex.m4 (gl_REGEX): Likewise.
56277         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56278         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56280         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56281         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56282         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56284         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56285
56286 2008-04-14  Jim Meyering  <meyering@redhat.com>
56287
56288         test-strtod: fix typos: s/abs/fabs/
56289         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56290
56291 2008-04-13  Bruno Haible  <bruno@clisp.org>
56292
56293         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56294         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56295         module is also used and while not building the reloc-wrapper.
56296
56297 2008-04-13  Bruno Haible  <bruno@clisp.org>
56298
56299         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56300
56301 2008-04-13  Bruno Haible  <bruno@clisp.org>
56302
56303         Fix AIX compilation failure introduced on 2008-04-02.
56304         * tests/test-frexp.c (exp): Undefine before redefining.
56305         * tests/test-frexpl.c (exp): Likewise.
56306
56307 2008-04-13  Bruno Haible  <bruno@clisp.org>
56308
56309         Work around a HP-UX stdio bug.
56310         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56311         * tests/test-ftello.c (main): Likewise.
56312         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56313         * doc/posix-functions/ftello.texi: Likewise.
56314
56315 2008-04-13  Bruno Haible  <bruno@clisp.org>
56316
56317         Make test-signbit pass on HP-UX/hppa.
56318         * tests/test-signbit.c (minus_zerol): New variable.
56319         (test_signbitl): Use it.
56320
56321 2008-04-13  Bruno Haible  <bruno@clisp.org>
56322
56323         Make truncl work on OSF/1 4.0.
56324         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56325         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56326         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56328         HAVE_DECL_TRUNCL.
56329         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56330         HAVE_DECL_TRUNCL.
56331         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56332
56333 2008-04-13  Bruno Haible  <bruno@clisp.org>
56334
56335         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56336
56337 2008-04-13  Bruno Haible  <bruno@clisp.org>
56338
56339         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56340         expression, so as to avoid HP-UX 11 cc compiler bug.
56341
56342 2008-04-13  Bruno Haible  <bruno@clisp.org>
56343
56344         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56345
56346 2008-04-13  Bruno Haible  <bruno@clisp.org>
56347
56348         * lib/git-merge-changelog.c: Remove empty declaration outside of
56349         functions.
56350
56351 2008-04-13  Bruno Haible  <bruno@clisp.org>
56352
56353         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56354
56355 2008-04-13  Bruno Haible  <bruno@clisp.org>
56356
56357         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56358         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56359         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56360         also if it exists but lacks definitions of the SHUT_* macros.
56361         * modules/sys_socket (Description): Update.
56362         Reported by Elbert Pol <e.pol@chello.nl>.
56363
56364 2008-04-13  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/localcharset.c (OS2): Don't redefine if already defined.
56367         Reported by Elbert Pol <e.pol@chello.nl>.
56368
56369 2008-04-13  Bruno Haible  <bruno@clisp.org>
56370
56371         * lib/binary-io.h [__EMX__]: Include <io.h>.
56372         Reported by Elbert Pol <e.pol@chello.nl>.
56373
56374 2008-04-12  Bruno Haible  <bruno@clisp.org>
56375
56376         * lib/fpucw.h: Enable the definitions also for x86_64.
56377         Needed for NetBSD/x86_64.
56378         Reported by Thomas Klausner <tk@giga.or.at>.
56379
56380 2008-04-12  Bruno Haible  <bruno@clisp.org>
56381
56382         * tests/test-strtod.c: Include isnand.h.
56383         (main): Use isnand instead of isnan.
56384         Reported by Jim Meyering.
56385
56386 2008-04-12  Bruno Haible  <bruno@clisp.org>
56387
56388         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56389         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56390
56391 2008-04-12  Jim Meyering  <meyering@redhat.com>
56392
56393         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56394
56395 2008-04-12  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56398         Reported by Elbert Pol <e.pol@chello.nl>.
56399
56400 2008-04-12  Eric Blake  <ebb9@byu.net>
56401
56402         Work around Solaris 10 math.h bug.
56403         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56404         (gl_MATH_H_DEFAULTS): Set up default.
56405         * modules/math (Makefile.am): Replace new indicators.
56406         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56407         * tests/test-math.c (main): Test this.
56408         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56409         * doc/posix-headers/math.texi (math.h): Mention bug.
56410         Reported by Nelson H. F. Beebe and Jim Meyering.
56411
56412 2008-04-11  Bruno Haible  <bruno@clisp.org>
56413
56414         Adapt to future versions of Apple GCC.
56415         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56416         Reported by Peter O'Gorman <peter@pogma.com>.
56417
56418 2008-04-11  Bruno Haible  <bruno@clisp.org>
56419
56420         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56421
56422 2008-04-11  Bruno Haible  <bruno@clisp.org>
56423
56424         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56425
56426         * modules/getaddrinfo-tests (Makefile.am): Define
56427         test_getaddrinfo_LDADD.
56428
56429 2008-04-11  Bruno Haible  <bruno@clisp.org>
56430
56431         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56432         (init): Fix syntax error.
56433         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56434         is declared.
56435
56436 2008-04-11  Bruno Haible  <bruno@clisp.org>
56437
56438         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56439         * modules/glob (Depends-on): Add stdbool.
56440
56441 2008-04-11  Bruno Haible  <bruno@clisp.org>
56442
56443         * lib/trim.c: Include <string.h>.
56444
56445 2008-04-11  Eric Blake  <ebb9@byu.net>
56446
56447         Avoid compile failure on OS/2.
56448         * lib/regex_internal.h (internal_function): Disable optimization
56449         on OS/2 (__EMX__), where it caused compiler error.
56450         Reported by Elbert Pol.
56451
56452 2008-04-11  Bruno Haible  <bruno@clisp.org>
56453
56454         Flush the standard error stream before aborting. Needed on mingw.
56455         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56456         * tests/test-array_list.c (ASSERT): Likewise.
56457         * tests/test-array_oset.c (ASSERT): Likewise.
56458         * tests/test-avltree_list.c (ASSERT): Likewise.
56459         * tests/test-avltree_oset.c (ASSERT): Likewise.
56460         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56461         * tests/test-binary-io.c (ASSERT): Likewise.
56462         * tests/test-byteswap.c (ASSERT): Likewise.
56463         * tests/test-c-ctype.c (ASSERT): Likewise.
56464         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56465         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56466         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56467         * tests/test-c-strstr.c (ASSERT): Likewise.
56468         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56469         * tests/test-canonicalize.c (ASSERT): Likewise.
56470         * tests/test-carray_list.c (ASSERT): Likewise.
56471         * tests/test-ceilf1.c (ASSERT): Likewise.
56472         * tests/test-ceilf2.c (ASSERT): Likewise.
56473         * tests/test-ceill.c (ASSERT): Likewise.
56474         * tests/test-count-one-bits.c (ASSERT): Likewise.
56475         * tests/test-fbufmode.c (ASSERT): Likewise.
56476         * tests/test-fflush2.c (ASSERT): Likewise.
56477         * tests/test-floorf1.c (ASSERT): Likewise.
56478         * tests/test-floorf2.c (ASSERT): Likewise.
56479         * tests/test-floorl.c (ASSERT): Likewise.
56480         * tests/test-fopen.c (ASSERT): Likewise.
56481         * tests/test-fpending.c (ASSERT): Likewise.
56482         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56483         * tests/test-fpurge.c (ASSERT): Likewise.
56484         * tests/test-freadable.c (ASSERT): Likewise.
56485         * tests/test-freadahead.c (ASSERT): Likewise.
56486         * tests/test-freading.c (ASSERT): Likewise.
56487         * tests/test-freadptr.c (ASSERT): Likewise.
56488         * tests/test-freadptr2.c (ASSERT): Likewise.
56489         * tests/test-freadseek.c (ASSERT): Likewise.
56490         * tests/test-freopen.c (ASSERT): Likewise.
56491         * tests/test-frexp.c (ASSERT): Likewise.
56492         * tests/test-frexpl.c (ASSERT): Likewise.
56493         * tests/test-fseek.c (ASSERT): Likewise.
56494         * tests/test-fseeko.c (ASSERT): Likewise.
56495         * tests/test-fstrcmp.c (ASSERT): Likewise.
56496         * tests/test-ftell.c (ASSERT): Likewise.
56497         * tests/test-ftello.c (ASSERT): Likewise.
56498         * tests/test-func.c (ASSERT): Likewise.
56499         * tests/test-fwritable.c (ASSERT): Likewise.
56500         * tests/test-fwriting.c (ASSERT): Likewise.
56501         * tests/test-getdelim.c (ASSERT): Likewise.
56502         * tests/test-getline.c (ASSERT): Likewise.
56503         * tests/test-i-ring.c (ASSERT): Likewise.
56504         * tests/test-iconv-utf.c (ASSERT): Likewise.
56505         * tests/test-iconv.c (ASSERT): Likewise.
56506         * tests/test-isfinite.c (ASSERT): Likewise.
56507         * tests/test-isnand.c (ASSERT): Likewise.
56508         * tests/test-isnanf.c (ASSERT): Likewise.
56509         * tests/test-isnanl.h (ASSERT): Likewise.
56510         * tests/test-ldexpl.c (ASSERT): Likewise.
56511         * tests/test-linked_list.c (ASSERT): Likewise.
56512         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56513         * tests/test-localename.c (ASSERT): Likewise.
56514         * tests/test-lseek.c (ASSERT): Likewise.
56515         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56516         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56517         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56518         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56519         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56520         * tests/test-mbschr.c (ASSERT): Likewise.
56521         * tests/test-mbscspn.c (ASSERT): Likewise.
56522         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56523         * tests/test-mbspbrk.c (ASSERT): Likewise.
56524         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56525         * tests/test-mbsrchr.c (ASSERT): Likewise.
56526         * tests/test-mbsspn.c (ASSERT): Likewise.
56527         * tests/test-mbsstr1.c (ASSERT): Likewise.
56528         * tests/test-mbsstr2.c (ASSERT): Likewise.
56529         * tests/test-mbsstr3.c (ASSERT): Likewise.
56530         * tests/test-memchr2.c (ASSERT): Likewise.
56531         * tests/test-memmem.c (ASSERT): Likewise.
56532         * tests/test-open.c (ASSERT): Likewise.
56533         * tests/test-printf-frexp.c (ASSERT): Likewise.
56534         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56535         * tests/test-printf-posix.c (ASSERT): Likewise.
56536         * tests/test-quotearg.c (ASSERT): Likewise.
56537         * tests/test-rbtree_list.c (ASSERT): Likewise.
56538         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56539         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56540         * tests/test-round1.c (ASSERT): Likewise.
56541         * tests/test-roundf1.c (ASSERT): Likewise.
56542         * tests/test-roundl.c (ASSERT): Likewise.
56543         * tests/test-signbit.c (ASSERT): Likewise.
56544         * tests/test-sleep.c (ASSERT): Likewise.
56545         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56546         * tests/test-snprintf.c (ASSERT): Likewise.
56547         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56548         * tests/test-stat-time.c (ASSERT): Likewise.
56549         * tests/test-strcasestr.c (ASSERT): Likewise.
56550         * tests/test-strerror.c (ASSERT): Likewise.
56551         * tests/test-striconv.c (ASSERT): Likewise.
56552         * tests/test-striconveh.c (ASSERT): Likewise.
56553         * tests/test-striconveha.c (ASSERT): Likewise.
56554         * tests/test-strsignal.c (ASSERT): Likewise.
56555         * tests/test-strstr.c (ASSERT): Likewise.
56556         * tests/test-strtod.c (ASSERT): Likewise.
56557         * tests/test-trunc1.c (ASSERT): Likewise.
56558         * tests/test-trunc2.c (ASSERT): Likewise.
56559         * tests/test-truncf1.c (ASSERT): Likewise.
56560         * tests/test-truncf2.c (ASSERT): Likewise.
56561         * tests/test-truncl.c (ASSERT): Likewise.
56562         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56563         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56564         * tests/test-vasnprintf.c (ASSERT): Likewise.
56565         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56566         * tests/test-vasprintf.c (ASSERT): Likewise.
56567         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56568         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56569         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56570         * tests/test-vsnprintf.c (ASSERT): Likewise.
56571         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56572         * tests/test-wcwidth.c (ASSERT): Likewise.
56573         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56574         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56575         * tests/test-xvasprintf.c (ASSERT): Likewise.
56576         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56577         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56578         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56579         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56580         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56581         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56582         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56583         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56584         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56585         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56586         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56587         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56588         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56589         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56590         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56591         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56592         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56593         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56594         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56595         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56596         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56597         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56598         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56599         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56600         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56601         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56602         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56603         * tests/unictype/test-combining.c (ASSERT): Likewise.
56604         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56605         * tests/unictype/test-digit.c (ASSERT): Likewise.
56606         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56607         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56608         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56609         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56610         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56611         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56612         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56613         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56614         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56615         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56616         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56617         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56618         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56619         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56620         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56621         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56622         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56623         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56624         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56625         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56626         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56627         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56628         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56629         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56630         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56631         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56632         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56633         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56634         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56635         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56636         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56637         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56638         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56639         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56640         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56641         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56642         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56643         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56644         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56645         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56646         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56647         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56648         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56649         Reported by Eric Blake.
56650
56651 2008-04-11  Bruno Haible  <bruno@clisp.org>
56652
56653         * lib/wchar.in.h: Tweak comment.
56654
56655 2008-04-11  Bruno Haible  <bruno@clisp.org>
56656
56657         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56658         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56659         gl_COMMON.
56660         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56661
56662 2008-04-11  Bruno Haible  <bruno@clisp.org>
56663
56664         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56665
56666 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56667
56668         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56669         of attempting to use non-existing /dev/*random.  Based on patch
56670         from Adam Strzelecki <ono@java.pl> in
56671         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56672
56673 2008-04-08  Bruno Haible  <bruno@clisp.org>
56674
56675         Add tentative support for emx+gcc.
56676         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56677         * lib/fpurge.c (fpurge): Likewise.
56678         * lib/freadable.c (freadable): Likewise.
56679         * lib/freadahead.c (freadahead): Likewise.
56680         * lib/freading.c (freading): Likewise.
56681         * lib/freadptr.c (freadptr): Likewise.
56682         * lib/freadseek.c (freadptrinc): Likewise.
56683         * lib/fseeko.c (rpl_fseeko): Likewise.
56684         * lib/fseterr.c (fseterr): Likewise.
56685         * lib/fwritable.c (fwritable): Likewise.
56686         * lib/fwriting.c (fwriting): Likewise.
56687         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56688
56689 2008-04-09  Eric Blake  <ebb9@byu.net>
56690
56691         Avoid some autoconf warnings.
56692         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56693         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56694         * m4/afs.m4 (gl_AFS): Likewise.
56695         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56696         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56697         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56698         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56699         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56700         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56701         (AC_CHECK_DECLS_ONCE): Likewise.
56702         Rename file...
56703         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56704         gnulib-tool requires autoconf 2.59 or better.
56705         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56706
56707 2008-04-08  Eric Blake  <ebb9@byu.net>
56708
56709         Use 'git describe --match' if present (added in git 1.5.5).
56710         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56711         if possible.
56712
56713 2008-04-08  Bruno Haible  <bruno@clisp.org>
56714
56715         Add tentative support for OpenServer.
56716         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56717         _ptr, _cnt.
56718         * lib/fpurge.c (fpurge): Likewise.
56719         * lib/freadable.c (freadable): Likewise.
56720         * lib/freadahead.c (freadahead): Likewise.
56721         * lib/freading.c (freading): Likewise.
56722         * lib/freadptr.c (freadptr): Likewise.
56723         * lib/freadseek.c (freadptrinc): Likewise.
56724         * lib/fseeko.c (rpl_fseeko): Likewise.
56725         * lib/fseterr.c (fseterr): Likewise.
56726         * lib/fwritable.c (fwritable): Likewise.
56727         * lib/fwriting.c (fwriting): Likewise.
56728         Reported by Roger Cornelius <rac@tenzing.org> and
56729         Brian K. White <brian@aljex.com>.
56730
56731 2008-04-06  Jim Meyering  <meyering@redhat.com>
56732
56733         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56734
56735 2008-04-06  Bruno Haible  <bruno@clisp.org>
56736
56737         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56738         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56739         * tests/test-printf-posix.sh: Likewise.
56740         * tests/test-vfprintf-posix.sh: Likewise.
56741         * tests/test-vprintf-posix.sh: Likewise.
56742         * tests/test-xprintf-posix.sh: Likewise.
56743
56744 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56745
56746         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56747         hide error from 'ls', needed on OS/2.
56748         Report by Elbert Pol <elbert.pol@gmail.com>.
56749
56750 2008-04-04  Eric Blake  <ebb9@byu.net>
56751
56752         Make test-fseeko.c failures meaningful.
56753         * tests/test-fseeko.c: Print line number on failure.
56754         * tests/test-fseek.c: Likewise.
56755         Reported by Nelson H. F. Beebe.
56756
56757         Improve strtod bug detection check.
56758         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56759         required for Solaris 10.
56760         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56761
56762 2008-04-04  Bruno Haible  <bruno@clisp.org>
56763
56764         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56765         by m4/setenv.m4.
56766
56767 2008-04-03  Eric Blake  <ebb9@byu.net>
56768
56769         Ensure sane .version contents.
56770         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56771         version string.
56772         * build-aux/git-version-gen: Improve documentation.
56773
56774         Make GNU make output nicer.
56775         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56776         MAKECMDGOALS to enforce message for all command line targets.  Set
56777         srcdir for use in maint.mk.
56778
56779         Another maintainer tweak.
56780         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56781         a target that regenerates version.
56782
56783 2008-04-03  Jim Meyering  <meyering@redhat.com>
56784
56785         vc-list-files: don't cause coreutils "make po-check" failure
56786         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56787
56788 2008-04-03  Eric Blake  <ebb9@byu.net>
56789
56790         Allow VPATH usage of vc-list-files.
56791         * build-aux/vc-list-files (scriptversion): Add timestamp.
56792         (options): Add --help, --version, -C.
56793         (CVS): Support installed cvsu.
56794
56795 2008-04-02  Bruno Haible  <bruno@clisp.org>
56796
56797         Avoid some "statement with no effect" warnings from gcc.
56798         * tests/test-wctype.c (main): Explicitly ignore unused values.
56799         Reported by Jim Meyering.
56800
56801 2008-04-02  Jim Meyering  <meyering@redhat.com>
56802
56803         Avoid some warnings from "gcc -Wshadow".
56804         * tests/test-frexp.c (exp): Define to a different identifier.
56805         * tests/test-frexpl.c (exp): Likewise.
56806
56807 2008-04-03  Jim Meyering  <meyering@redhat.com>
56808
56809         bootstrap: remove dangling *.[ch] symlinks from lib
56810         * build-aux/bootstrap [dangling symlink removal]: Move find's
56811         -depth option to precede all others, to avoid a warning.
56812         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56813
56814 2008-04-02  Bruno Haible  <bruno@clisp.org>
56815
56816         Avoid some warnings from "gcc -Wshadow".
56817         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56818         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56819         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56820         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56821         Reported by Jim Meyering.
56822
56823 2008-04-01  Bruno Haible  <bruno@clisp.org>
56824
56825         Fix test to work on IRIX 6.5 with cc.
56826         * tests/test-math.c (numeric_equal): New function.
56827         (main): Use it.
56828
56829 2008-04-01  Bruno Haible  <bruno@clisp.org>
56830
56831         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56832
56833 2008-04-01  Bruno Haible  <bruno@clisp.org>
56834
56835         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56836         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56837         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56838         (Depends-on): Remove math.
56839
56840         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56841         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56842         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56843         (Depends-on): Remove math.
56844
56845         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56846         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56847         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56848         (Depends-on): Remove math.
56849         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56850         (Depends-on): Remove math.
56851
56852         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56853         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56854         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56855         (Depends-on): Remove math.
56856         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56857         (Depends-on): Remove math.
56858
56859         * tests/test-round1.c: Include nan.h.
56860         (main): Use NaNd instead of NAN.
56861         * modules/round-tests (Files): Add tests/nan.h.
56862
56863         * tests/test-trunc1.c: Include nan.h.
56864         (main): Use NaNd instead of NAN.
56865         * modules/trunc-tests (Files): Add tests/nan.h.
56866
56867         * tests/test-roundf1.c: Include nan.h.
56868         (main): Use NaNf instead of NAN.
56869         * modules/roundf-tests (Files): Add tests/nan.h.
56870
56871         * tests/test-truncf1.c: Include nan.h.
56872         (main): Use NaNf instead of NAN.
56873         * modules/truncf-tests (Files): Add tests/nan.h.
56874
56875         * tests/test-ceilf1.c: Include nan.h.
56876         (main): Use NaNf instead of NAN.
56877         * modules/ceilf-tests (Files): Add tests/nan.h.
56878
56879         * tests/test-floorf1.c: Include nan.h.
56880         (main): Use NaNf instead of NAN.
56881         * modules/floorf-tests (Files): Add tests/nan.h.
56882
56883         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56884         (main): Use NaNf instead of NAN.
56885         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56886
56887         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56888         (main): Use NaNd instead of NAN.
56889         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56890
56891         * tests/test-frexp.c: Include nan.h.
56892         (main): Use NaNd instead of NAN.
56893         * modules/frexp-tests (Files): Add tests/nan.h.
56894
56895         * lib/isnan.c: Don't include <math.h>.
56896         (FUNC): Don't use NAN macro.
56897         * modules/isnand-nolibm (Depends-on): Remove math.
56898         * modules/isnanf-nolibm (Depends-on): Remove math.
56899         * modules/isnanl (Depends-on): Remove math.
56900         * modules/isnanl-nolibm (Depends-on): Remove math.
56901
56902         * tests/nan.h: New file.
56903
56904 2008-04-01  Eric Blake  <ebb9@byu.net>
56905
56906         Fix typos.
56907         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56908         values to be the right type.
56909
56910         For now, cater to gnulib strtod inaccuracies.
56911         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56912         fractional results.  While not as nice from a QoI perspective, it
56913         is a quicker patch than correctly implementing decimal to binary
56914         rounding.
56915
56916 2008-03-31  Eric Blake  <ebb9@byu.net>
56917
56918         Guarantee a definition of NAN.
56919         * lib/math.in.h (NAN): Define if missing.
56920         * tests/test-math.c (main): Test it.
56921         * doc/posix-headers/math.texi (math.h): Document this.
56922         * lib/isnan.c (rpl_isnand): Use it.
56923         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56924         * tests/test-floorf1.c (NaN): Likewise.
56925         * tests/test-frexp.c (NaN): Likewise.
56926         * tests/test-isnand.c (NaN): Likewise.
56927         * tests/test-isnanf.c (NaN): Likewise.
56928         * tests/test-round1.c (NaN): Likewise.
56929         * tests/test-roundf1.c (NaN): Likewise.
56930         * tests/test-snprintf-posix.h (NaN): Likewise.
56931         * tests/test-sprintf-posix.h (NaN): Likewise.
56932         * tests/test-trunc1.c (NaN): Likewise.
56933         * tests/test-truncf1.c (NaN): Likewise.
56934         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56935         * tests/test-vasprintf-posix.c (NaN): Likewise.
56936         * modules/isnand-nolibm (Depends-on): Add math.
56937         * modules/isnanf-nolibm (Depends-on): Likewise.
56938         * modules/isnanl (Depends-on): Likewise.
56939         * modules/isnanl-nolibm (Depends-on): Likewise.
56940         * modules/snprintf-posix-tests (Depends-on): Likewise.
56941         * modules/sprintf-posix-tests (Depends-on): Likewise.
56942         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56943         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56944         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56945         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56946
56947 2008-03-31  Bruno Haible  <bruno@clisp.org>
56948
56949         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56950         * doc/posix-functions/strtod.texi: Likewise.
56951
56952 2008-03-31  Bruno Haible  <bruno@clisp.org>
56953
56954         * tests/test-strtod.c (main): Don't use C99 syntax.
56955
56956 2008-03-31  Bruno Haible  <bruno@clisp.org>
56957
56958         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56959         Reported by Eric Blake.
56960
56961 2008-03-31  Jim Meyering  <meyering@redhat.com>
56962
56963         Don't compare actual signbit return values.
56964         * tests/test-strtod.c (main): Rather, compare only their
56965         zero/non-zero nature.
56966
56967 2008-03-31  Eric Blake  <ebb9@byu.net>
56968
56969         More strtod documentation.
56970         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56971         failures as distinct bugs.
56972
56973 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56974
56975         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56976         Problem reported by Erik Benada in
56977         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56978
56979 2008-03-30  Bruno Haible  <bruno@clisp.org>
56980
56981         * tests/test-strtod.c: Add comments about which assertion fails on which
56982         platform.
56983         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56984
56985 2008-03-30  Eric Blake  <ebb9@byu.net>
56986
56987         Test signbit behavior on zeros.
56988         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56989         (test_signbitd, test_signbitl): Likewise.
56990
56991         More strtod touchups.
56992         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56993         sign of negative underflow, for now.  Use .5, not .1.
56994         * doc/posix-functions/strtod.texi (strtod): Mention these
56995         limitations.
56996         Reported by Jim Meyering.
56997
56998 2008-03-30  Bruno Haible  <bruno@clisp.org>
56999
57000         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57001         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57002
57003 2008-03-30  Bruno Haible  <bruno@clisp.org>
57004
57005         Avoid failure when attempting to return empty iconv results on some
57006         platforms.
57007         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57008         allocation, don't report ENOMEM when the resulting string is empty.
57009
57010 2008-03-30  Bruno Haible  <bruno@clisp.org>
57011
57012         Fix buffer overrun.
57013         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57014         Don't consider the width for tmp_length. Check count against tmp_length
57015         before doing the padding. Ensure enough allocation during padding.
57016
57017 2008-03-30  Eric Blake  <ebb9@byu.net>
57018
57019         strtod touchups.
57020         * lib/strtod.c (strtod): Avoid compiler warnings.
57021         Reported by Jim Meyering.
57022
57023 2008-03-30  Bruno Haible  <bruno@clisp.org>
57024
57025         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57026         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57027         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57028         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57029         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57030         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57031         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57032         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57033
57034         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57035         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57036         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57037         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57038         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57039         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57040         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57041         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57042
57043         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57044         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57045         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57046         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57047         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57048         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57049         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57050         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57051
57052         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57053         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57054
57055         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57056         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57057
57058         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57059         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57060
57061         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57062         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57063         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57064
57065         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57066         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57067         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57068
57069         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57071         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57072
57073         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57074         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57075         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57076
57077         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57078         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57080         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57081         (Depends-on): Add EOVERFLOW.
57082         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57083         (Depends-on): Add EOVERFLOW.
57084         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57085         (Depends-on): Add EOVERFLOW.
57086         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57087         (Depends-on): Add EOVERFLOW.
57088         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57089         (Depends-on): Add EOVERFLOW.
57090         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57091         (Depends-on): Add EOVERFLOW.
57092         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57093         (Depends-on): Add EOVERFLOW.
57094         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57095         (Depends-on): Add EOVERFLOW.
57096
57097         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57099         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57100
57101         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57103         * modules/snprintf (Depends-on): Add EOVERFLOW.
57104
57105         * lib/poll.c (EOVERFLOW): Remove fallback.
57106         * modules/poll (Depends-on): Add EOVERFLOW.
57107
57108         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57109         * modules/getugroups (Depends-on): Add EOVERFLOW.
57110
57111         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57112         * modules/getdelim (Depends-on): Add EOVERFLOW.
57113
57114         * lib/ftell.c (EOVERFLOW): Remove fallback.
57115         * modules/ftell (Depends-on): Add EOVERFLOW.
57116
57117         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57118         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57119         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57120
57121         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57122
57123         * modules/EOVERFLOW-tests: New file.
57124         * tests/test-EOVERFLOW.c: New file.
57125
57126         * modules/EOVERFLOW: New file.
57127         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57128
57129 2008-03-30  Bruno Haible  <bruno@clisp.org>
57130
57131         Fix bug introduced on 2007-06-10.
57132         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57133         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57134
57135 2008-03-30  Bruno Haible  <bruno@clisp.org>
57136
57137         Improve freadseek's efficiency after ungetc.
57138         * lib/freadseek.c: Include freadahead.h.
57139         (freadptrinc): New function, extracted from freadseek.
57140         (freadseek): Use it in a loop. Use freadahead to determine the number
57141         of loop iterations.
57142         * modules/freadseek (Depends-on): Add freadahead.
57143         (configure.ac): Require AC_C_INLINE.
57144
57145 2008-03-30  Bruno Haible  <bruno@clisp.org>
57146
57147         * lib/freadseek.c (freadseek): Don't ignore the return value of
57148         freadptr.
57149
57150 2008-03-29  Eric Blake  <ebb9@byu.net>
57151
57152         Add hex float support.
57153         * modules/strtod (Depends-on): Add c-ctype.
57154         (Link): Mention POW_LIB.
57155         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57156         whitespace between 'e' and exponent.
57157         * tests/test-strtod.c (main): Enable hex float tests.
57158         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57159         now provides.
57160
57161         Document various strtod bugs, with some fixes.
57162         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57163         "-0x", "inf", "nan", and hex constants.
57164         * doc/posix-functions/atof.texi (atof): Likewise.
57165         * modules/stdlib (Makefile.am): Support strtod.
57166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57167         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57168         detect additional strtod bugs.
57169         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57170         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57171         bool where appropriate.  Parse 'inf' and 'nan'.
57172         * tests/test-strtod.c: New file.
57173         * modules/strtod (Depends-on): Add stdbool, stdlib.
57174         (configure.ac): Turn on module indicator.
57175         * modules/strtod-tests: New module.
57176
57177 2008-03-29  Eric Blake  <ebb9@byu.net>
57178
57179         Fix ftell on mingw.
57180         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57181         * modules/ftell-tests (Depends-on): Add binary-io.
57182         * modules/ftello-tests (Depends-on): Likewise.
57183         * tests/test-ftell.c (main): Enhance test to cover behavior after
57184         ungetc.  Enforce binary mode.
57185         * tests/test-ftello.c (main): Likewise.
57186
57187         Pass test-freadseek on cygwin.
57188         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57189         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57190         ungetc buffer.
57191
57192         * tests/test-fflush2.c (main): Fix typo.
57193
57194 2008-03-29  Bruno Haible  <bruno@clisp.org>
57195
57196         * tests/test-fflush2.c (main): Temporarily disable the contents of
57197         this test.
57198         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57199         Reported by Eric Blake.
57200
57201 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57202
57203         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57204         (GC_SHA224_DIGEST_SIZE): Add.
57205
57206         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57207         (gc_hash_digest_length): Likewise.
57208         (gc_hash_buffer): Likewise.
57209
57210 2008-03-25  Bruno Haible  <bruno@clisp.org>
57211
57212         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57213         detail which gettext release to use.
57214         Reported by Simon Josefsson.
57215
57216 2008-03-26  Jim Meyering  <meyering@redhat.com>
57217
57218         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57219         * modules/gnumakefile (clean-GNUmakefile): Also, use
57220         test ... && ... || : syntax rather than if-then ... fi.
57221
57222         gnumakefile: Don't double-quote-expand $(VPATH) value.
57223         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57224
57225 2008-03-24  Eric Blake  <ebb9@byu.net>
57226
57227         Alter GNUmakefile to install into top directory.
57228         * modules/maintainer-makefile: Split, and add dependency...
57229         * modules/gnumakefile: to this new module.
57230         * build-aux/GNUmakefile: Move...
57231         * top/GNUmakefile: ...here.
57232         * build-aux/maint.mk: Move...
57233         * top/maint.mk: ...here.
57234         * MODULES.html.sh (Support for maintaining...): Document new
57235         module.
57236
57237 2008-03-23  Bruno Haible  <bruno@clisp.org>
57238
57239         * gnulib-tool: New options --vc-files, --no-vc-files.
57240         (func_usage): Document them.
57241         (vc_files): New variable.
57242         (func_import): Consider vc_files.
57243         (func_create_testdir): Set vc_files to empty.
57244         Suggested by Jim Meyering and Karl Berry.
57245
57246 2008-03-23  Bruno Haible  <bruno@clisp.org>
57247
57248         Fix regex compilation error on HP-UX 11.
57249         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57250         * modules/regex (Files): Add m4/mbstate_t.m4.
57251         Reported by Ton Voon <ton.voon@altinity.com>.
57252
57253 2008-03-23  Bruno Haible  <bruno@clisp.org>
57254
57255         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57256
57257 2008-03-23  Eric Blake  <ebb9@byu.net>
57258             Bruno Haible  <bruno@clisp.org>
57259
57260         Install files from top/ in the destination directory.
57261         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57262         augmentation also for the files from top/.
57263         (func_import, func_create_testdir): Rewrite file names:
57264         top/filename -> filename.
57265
57266 2008-03-23  Bruno Haible  <bruno@clisp.org>
57267
57268         Tweak "gnulib --version" output.
57269         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57270
57271 2008-03-23  Bruno Haible  <bruno@clisp.org>
57272
57273         Tweak "gnulib --version" output.
57274         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57275         rather than contents of ChangeLog, when possible.
57276
57277 2008-03-21  Eric Blake  <ebb9@byu.net>
57278
57279         More --version tweaks.
57280         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57281         date of last ChangeLog entry.
57282
57283 2008-03-21  Jim Meyering  <meyering@redhat.com>
57284
57285         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57286
57287 2008-03-20  Eric Blake  <ebb9@byu.net>
57288
57289         VPATH fix.
57290         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57291
57292 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57293
57294         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57295         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57296
57297 2008-03-20  Eric Blake  <ebb9@byu.net>
57298
57299         Sync GNUmakefile with coreutils.
57300         * build-aux/GNUmakefile (have-Makefile): Rename...
57301         (_have-Makefile): ...to this, for namespace consideration.
57302         (GNUmakefile.cfg): Include, if present.
57303         (_autoreconf): Define a default.
57304         (_is-dist-target): New rule for rebuilds to pick up intra-release
57305         version.
57306         (maint-cfg.mk): Rename...
57307         (cfg.mk): ...to this.
57308
57309 2008-03-18  Jim Meyering  <meyering@redhat.com>
57310
57311         New script and module: mktempd
57312         * MODULES.html.sh (maint+release support): Add mktempd.
57313         * build-aux/mktempd: New file.
57314         * modules/mktempd: New file.
57315
57316 2008-03-15  Jim Meyering  <meyering@redhat.com>
57317
57318         Undo last change.
57319         * lib/sha1.c, lib/md5.c: 63 != ~63.
57320         Reported by Andreas Schwab.
57321
57322         sha1.c, md5.c: Hoist a redundant expression.
57323         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57324         "ctx->buflen" only once, before calling *_process_block.
57325         * lib/md5.c (md5_process_bytes): Likewise.
57326
57327 2008-03-14  Eric Blake  <ebb9@byu.net>
57328
57329         Bump copyright year in files generated by gnulib-tool.
57330         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57331         gnulib-tool, rather than hard-coding it.
57332
57333         Fix 'gnulib-tool --version' output to work with git.
57334         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57335         (startup): ...here.
57336         (func_version): Use it to invoke git-version-gen, rather than
57337         relying on CVS keyword expansion.  Modernize wording.
57338         (cvsdatestamp, last_checkin_date, version): Kill unused
57339         variables.
57340
57341 2008-03-12  Jim Meyering  <meyering@redhat.com>
57342
57343         Recognize optional cast of the argument to free.
57344         * build-aux/useless-if-before-free: Update regexps.
57345
57346         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57347
57348 2008-03-11  Bruno Haible  <bruno@clisp.org>
57349
57350         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57351         by a single package.
57352         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57353         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57354         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57355         Reported by Sam Steingold <sds@gnu.org>.
57356
57357 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57358
57359         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57360         repositories.
57361
57362 2008-03-11  Bruno Haible  <bruno@clisp.org>
57363
57364         Avoid conflicts between local macro definitions.
57365         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57366         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57367
57368 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57369             Bruno Haible  <bruno@clisp.org>
57370
57371         Make va_copy work with some version of xlc on AIX 5.1.
57372         * lib/stdarg.in.h: New file.
57373         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57374         On AIX, use a <stdarg.h> file substitute.
57375         * modules/stdarg (Files): Add lib/stdarg.in.h.
57376         (Depends-on): Add include_next.
57377         (Makefile.am): Build a stdarg.h substitute if requested.
57378         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57379
57380 2008-03-10  Bruno Haible  <bruno@clisp.org>
57381
57382         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57383         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57384         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57385
57386 2008-03-10  Bruno Haible  <bruno@clisp.org>
57387
57388         * modules/stdlib (Depends-on): Add include_next, remove
57389         absolute-header.
57390
57391 2008-03-09  Bruno Haible  <bruno@clisp.org>
57392
57393         * lib/freadahead.h (freadahead): Document more precisely.
57394         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57395         the sum of both buffer sizes.
57396         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57397         * NEWS: Document the change.
57398
57399 2008-03-09  Bruno Haible  <bruno@clisp.org>
57400
57401         Extend freadptr to return also the buffer size.
57402         * lib/freadptr.h (freadptr): Add sizep argument.
57403         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57404         (freadptr): Add sizep argument. Determine buffer size like freadahead
57405         does.
57406         * tests/test-freadptr.c: Don't include freadahead.h.
57407         (main): Adapt for new calling convention of freadptr.
57408         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57409         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57410         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57411         tests/test-freadptr2.sh.
57412         (Depends): Remove freadahead.
57413         (TESTS): Add test-freadptr2.sh.
57414         (check_PROGRAMS): Add test-freadptr2.
57415
57416 2008-03-09  Bruno Haible  <bruno@clisp.org>
57417
57418         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57419         Report and solution by Simon Josefsson.
57420
57421 2008-03-06  Bruno Haible  <bruno@clisp.org>
57422
57423         Make fflush after ungetc work on BSD platforms.
57424         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57425         * tests/test-fflush2.c: New file.
57426         * tests/test-fflush2.sh: New file.
57427         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57428         tests/test-fflush2.c.
57429         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57430         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57431
57432 2008-03-06  Eric Blake  <ebb9@byu.net>
57433
57434         Likewise for ftello.
57435         * modules/ftello (Dependencies): Add extensions.
57436         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57437
57438 2008-03-06  Bruno Haible  <bruno@clisp.org>
57439
57440         * modules/fseeko (Dependencies): Add extensions.
57441         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57442         Needed on glibc systems.
57443
57444 2008-03-06  Bruno Haible  <bruno@clisp.org>
57445
57446         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57447         email address.
57448         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57449
57450 2008-03-06  Bruno Haible  <bruno@clisp.org>
57451
57452         * users.txt: Add libgnupdf.
57453
57454 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57455
57456         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57457         (Header File Substitutes, Function Substitutes,
57458         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57459         (Build robot for gnulib): Fix typo.
57460
57461 2008-03-06  Bruno Haible  <bruno@clisp.org>
57462
57463         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57464         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57465
57466 2008-03-06  Bruno Haible  <bruno@clisp.org>
57467
57468         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57469         * doc/gnulib.texi: Include it.
57470
57471 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57472
57473         * modules/func (License): Change license to unlimited; there was
57474         no LGPL parts in the module anyway.
57475
57476 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57477
57478         * modules/__func__: Renamed to modules/func.
57479         * modules/__func__-tests: Renamed to modules/func-tests.
57480         * tests/test-__func__.c: Renamed to tests/test-func.c.
57481         * m4/__func__.m4: Renamed to m4/func.m4.
57482         * doc/gnulib.texi (__func__): Section renamed to func.
57483         Suggested by Eric Blake <ebb9@byu.net>.
57484
57485 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57486
57487         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57488         about __func__.  Make example self-contained.  Suggested by Eric
57489         Blake <ebb9@byu.net>.
57490
57491         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57492         Suggested by Eric Blake <ebb9@byu.net>.
57493
57494 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57495
57496         * modules/__func__: New file.
57497         * modules/__func__-tests: New file.
57498         * tests/test-__func__.c: New file.
57499         * m4/__func__.m4: New file.
57500         * doc/gnulib.texi (__func__): Document __func__ module.
57501
57502 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57503
57504         * modules/byteswap (License): Re-license as LGPLv2+.
57505
57506 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57507
57508         * doc/Makefile: Add pdf target.
57509
57510 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57511
57512         * modules/inline (License): Use 'unlimited', since there are only
57513         *.m4 files in this module.
57514
57515 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57516             Bruno Haible  <bruno@clisp.org>
57517
57518         Add support for HP C 7.1 on OpenVMS 8.3.
57519         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57520
57521 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57522
57523         Update VMS specifics.
57524         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57525
57526 2008-03-02  Jim Meyering  <meyering@redhat.com>
57527
57528         Remove the last dependency on the "free" module.
57529         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57530         Reported by Bob Proulx.
57531
57532         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57533
57534         Remove useless "if" tests before free.  Deprecate "free" module.
57535         * doc/posix-functions/free.texi: Mention that this
57536         module is no longer useful.
57537         * modules/free (Notice): Say this module is obsolete.
57538         * modules/readutmp (Depends-on): Remove free.
57539         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57540         * lib/putenv.c (putenv): Likewise.
57541         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57542         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57543         * tests/test-c-strcasestr.c (main): Likewise.
57544         * tests/test-c-strstr.c (main): Likewise.
57545         * tests/test-mbscasestr1.c (main): Likewise.
57546         * tests/test-mbscasestr2.c (main): Likewise.
57547         * tests/test-mbsstr1.c (main): Likewise.
57548         * tests/test-mbsstr2.c (main): Likewise.
57549         * tests/test-memmem.c (main): Likewise.
57550         * tests/test-strcasestr.c (main): Likewise.
57551         * tests/test-striconv.c (main): Likewise.
57552         * tests/test-striconveh.c (main): Likewise.
57553         * tests/test-striconveha.c (main): Likewise.
57554         * tests/test-strstr.c (main): Likewise.
57555
57556         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57557
57558         bootstrap: sync from coreutils again
57559         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57560
57561 2008-03-01  Jim Meyering  <meyering@redhat.com>
57562
57563         bootstrap: sync from coreutils
57564         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57565         also when the target doesn't exist.
57566
57567 2008-03-01  Eric Blake  <ebb9@byu.net>
57568
57569         Fix bugs in last patch.
57570         * lib/memchr2.c (memchr2): Fix typo.
57571         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57572         extension.
57573         Reported by Bruce Korb.
57574
57575         New module 'memchr2'.
57576         * modules/memchr2: New file.
57577         * modules/memchr2-tests: Likewise.
57578         * lib/memchr2.h: Likewise.
57579         * lib/memchr2.c: Likewise, based on memchr.c.
57580         * tests/test-memchr2.c: New test.
57581         * MODULES.html.sh (String handling): Add memchr2.
57582
57583 2008-02-29  Bruno Haible  <bruno@clisp.org>
57584
57585         * modules/freadseek-tests: New file.
57586         * tests/test-freadseek.sh: New file.
57587         * tests/test-freadseek.c: New file.
57588
57589         New module 'freadseek'.
57590         * modules/freadseek: New file.
57591         * lib/freadseek.h: New file.
57592         * lib/freadseek.c: New file.
57593         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57594
57595 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57596
57597         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57598         wydawca.
57599
57600         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57601         program_invocation_name and program_invocation_short_name are
57602         present.
57603
57604 2008-02-28  Bruno Haible  <bruno@clisp.org>
57605
57606         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57607         * tests/test-freadptr.sh: Also test non-seekable stdin.
57608
57609 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57610
57611         * build-aux/bootstrap (source_base, m4_base)
57612         (doc_base, tests_base): New variables.
57613         (gnulib_tool_options): Do not hardcode base directories, use
57614         the above variables instead.
57615
57616 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57617
57618         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57619
57620 2008-02-28  Bruno Haible  <bruno@clisp.org>
57621
57622         * modules/freadptr-tests: New file.
57623         * tests/test-freadptr.sh: New file.
57624         * tests/test-freadptr.c: New file.
57625
57626         New module 'freadptr'.
57627         * modules/freadptr: New file.
57628         * lib/freadptr.h: New file.
57629         * lib/freadptr.c: New file.
57630         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57631
57632 2008-02-26  Karl Berry  <karl@freefriends.org>
57633
57634         Sync from Libtool:
57635         * libltdl/argz.c (argz_add, argz_count): New functions.
57636         * libltdl/argz.in.h: Declare them.
57637         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57638
57639 2008-02-22  Bruno Haible  <bruno@clisp.org>
57640
57641         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57642         is a pointer type.  Needed for HP-UX 10.
57643         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57644         * doc/posix-functions/gmtime_r.texi: Likewise.
57645         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57646
57647 2008-02-24  Bruno Haible  <bruno@clisp.org>
57648
57649         * modules/environ-tests: New file.
57650         * tests/test-environ.c: New file.
57651
57652         New module 'environ'.
57653         * modules/environ: New file.
57654         * lib/unistd.in.h (environ): New declaration.
57655         * m4/environ.m4: New file.
57656         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57657         after use.
57658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57659         HAVE_DECL_ENVIRON.
57660         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57661         HAVE_DECL_ENVIRON.
57662         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57663         wrong claim that 'environ' is missing on some systems.
57664         * modules/execute (Depends-on): Add environ.
57665         * lib/execute.c (environ): Remove fallback declaration.
57666         * modules/pipe (Depends-on): Add environ.
57667         * lib/pipe.c (environ): Remove fallback declaration.
57668         * modules/setenv (Depends-on): Add environ.
57669         * lib/setenv.c (environ): Remove fallback declaration.
57670         * modules/unsetenv (Depends-on): Add environ.
57671         * lib/unsetenv.c (environ): Remove fallback declaration.
57672         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57673         m4/environ.m4.
57674         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57675         (gl_PREREQ_UNSETENV): Likewise.
57676
57677 2008-02-24  Bruno Haible  <bruno@clisp.org>
57678
57679         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57680
57681 2008-02-20  Bob Proulx  <bob@proulx.com>
57682
57683         Enable use of older two part flavor 'git describe'.
57684         * build-aux/git-version-gen: If using the older two part flavor of
57685         git version then recreate the third part now present in the
57686         newer three part flavor of git describe.
57687
57688 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57689
57690         * lib/fts.c (fts_build): Typo correction to comment.
57691
57692 2008-02-17  Bruno Haible  <bruno@clisp.org>
57693
57694         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57695         generating no-op conflicts.
57696
57697 2008-02-17  Bruno Haible  <bruno@clisp.org>
57698
57699         Speed up by 10%.
57700         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57701         result_entries, rather than an index-based loop.
57702
57703 2008-02-17  Bruno Haible  <bruno@clisp.org>
57704
57705         Speed up by 25%.
57706         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57707         'hashcode_cached'.
57708         (entry_create): New function.
57709         (entry_hashcode): Use the cached hashcode if possible.
57710         (read_changelog_file, try_split_merged_entry): Use entry_create.
57711
57712 2008-02-17  Bruno Haible  <bruno@clisp.org>
57713
57714         Speed up from O(n^2) to O(n) for long ChangeLog files.
57715         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57716         (read_changelog_file): Change implementation of entries_reversed list
57717         to rbtreehash.
57718         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57719
57720 2008-02-17  Bruno Haible  <bruno@clisp.org>
57721
57722         New option --split-merged-entry.
57723         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57724         (find_paragraph_end, try_split_merged_entry): New functions.
57725         (long_options): Add option --split-merged-entry.
57726         (usage): Document option --split-merged-entry.
57727         (main): Implement option --split-merged-entry.
57728         Reported by Eric Blake.
57729
57730 2008-02-17  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/git-merge-changelog.c: Include c-strstr.h.
57733         (main): Support the "git pull --rebase" situation.
57734         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57735         Reported by Eric Blake.
57736
57737 2008-02-16  Eric Blake  <ebb9@byu.net>
57738
57739         Avoid doubling \ in common case of "c-maybe" quoting style.
57740         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57741         eliding outer quotes.
57742         * lib/quotearg.h: Document this.
57743         * tests/test-quotearg.c (result_strings, inputs, results_g)
57744         (flag_results, locale_results): Test it by adding a new string to
57745         each test group.
57746         (compare_strings): Test new string.
57747
57748 2008-02-13  Eric Blake  <ebb9@byu.net>
57749
57750         Avoid trigraph quoting in default output.
57751         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57752         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57753         unless explicitly requested.
57754         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57755
57756 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57757
57758         Don't rely on signed integer overflowing to negative value.
57759         * lib/getugroups.c (getugroups): Include <limits.h>.
57760         Instead, compare against INT_MAX, and increment only if the test passes.
57761
57762 2008-02-13  Jim Meyering  <meyering@redhat.com>
57763         and Eric Blake  <ebb9@byu.net>
57764
57765         Avoid shadowing warning and compile errors on Linux.
57766         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57767         forwarding macros on Linux.
57768         (dcgettext): Define a stub, for Linux.
57769         (results_g, main): Avoid warnings.
57770
57771 2008-02-12  Eric Blake  <ebb9@byu.net>
57772
57773         Silence warning in last patch.
57774         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57775
57776         Quotearg part 4: add tests, fix c-maybe colon quoting.
57777         * lib/quotearg.h: Improve documentation.
57778         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57779         escapes when adding outer quotes.  When quoting trigraphs, use
57780         valid C notation.  When quoting NUL, omit extra characters if next
57781         character is not digit.  Alter prototype.
57782         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57783         callers.
57784         * modules/quotearg-tests: New module.
57785         * tests/test-quotearg.c: New test.
57786
57787 2008-02-07  Eric Blake  <ebb9@byu.net>
57788
57789         Quotearg part 3: add flag to control outer quote elision.
57790         * lib/quotearg.h (c_maybe_quoting_style): New style.
57791         (enum quoting_flags): Better documentation of flags.
57792         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57793         c-maybe style.
57794         (quotearg_buffer_restyled): Handle new flag to elide outer
57795         quotes.
57796
57797         Quotearg part 2: add flag that can control NUL elision.
57798         * lib/quotearg.h (set_quoting_flags): New prototype.
57799         * lib/quotearg.c (struct quoting_options): Add flag field.
57800         (set_quoting_flags): New function.
57801         (quotearg_buffer_restyled): Add flags parameter.
57802         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57803         (quotearg_n_options): Set the flag, since length cannot be
57804         returned.
57805         (quoting_options_from_style): Default flags correctly.
57806
57807         Quotearg part 1: more wrappers, restore quotearg_char state.
57808         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57809         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57810         (quotearg_colon_mem): New wrappers.
57811         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57812         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57813         functions.
57814         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57815         (quotearg_colon_mem): New functions.
57816
57817 2008-02-11  Bruno Haible  <bruno@clisp.org>
57818
57819         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57820         library in the current directory: it does not work with parallel make.
57821         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57822
57823 2008-02-11  Bruno Haible  <bruno@clisp.org>
57824
57825         * .gitattributes: New file.
57826
57827 2008-02-11  Jim Meyering  <meyering@redhat.com>
57828
57829         useless-if-before-free: Fix reversed exit values.
57830         * build-aux/useless-if-before-free: Use correct values
57831         for EXIT_MATCH and EXIT_NO_MATCH.
57832
57833         * build-aux/useless-if-before-free: Close stdout carefully.
57834
57835 2008-02-10  Bruno Haible  <bruno@clisp.org>
57836
57837         New module 'git-merge-changelog'.
57838         * modules/git-merge-changelog: New file.
57839         * lib/git-merge-changelog.c: New file.
57840
57841 2008-02-10  Jim Meyering  <meyering@redhat.com>
57842
57843         useless-if-before-free: New option: --list (-l).
57844
57845         useless-if-before-free: Don't exit immediately upon open failure.
57846         * build-aux/useless-if-before-free: Exit 2 for errors.
57847         Upon failure to open a file, don't exit immediately.
57848         Rather, just warn and continue with any remaining files.
57849
57850 2008-02-10  Bruno Haible  <bruno@clisp.org>
57851
57852         New abstract list operation 'node_set_value'.
57853         * lib/gl_list.h (gl_list_node_set_value): New function.
57854         (struct gl_list_implementation): New field node_set_value.
57855         * lib/gl_list.c (gl_list_node_set_value): New function.
57856         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57857         (gl_array_list_implementation): Update.
57858         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57859         (gl_carray_list_implementation): Update.
57860         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57861         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57862         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57863         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57864         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57865         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57866         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57867         Update.
57868         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57869         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57870         (gl_sublist_list_implementation): Update.
57871
57872 2008-02-10  Bruno Haible  <bruno@clisp.org>
57873
57874         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57875         Needed when ELEMENT is #defined to 'some_type *'.
57876
57877 2008-02-10  Jim Meyering  <meyering@redhat.com>
57878
57879         New script and module: useless-if-before-free
57880         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57881         * build-aux/useless-if-before-free: New file.
57882         * modules/useless-if-before-free: New file.
57883
57884         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57885
57886         xstrtol_error: Fix typo.
57887         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57888         s/exit_failure/exit_status/.
57889
57890 2008-02-09  Jim Meyering  <meyering@redhat.com>
57891
57892         New script and module: gitlog-to-changelog
57893         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57894         * modules/gitlog-to-changelog: New file.
57895         * build-aux/gitlog-to-changelog: New file.
57896
57897 2008-02-08  Jim Meyering  <meyering@redhat.com>
57898
57899         Avoid two "parameter unused" warnings.
57900         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57901         Mark "st" as used.
57902
57903         Use "git COMMAND", not "git-COMMAND".
57904         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57905         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57906         * build-aux/git-version-gen: Use "git status", not "git-status".
57907
57908 2008-02-07  Bruno Haible  <bruno@clisp.org>
57909
57910         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57911         Avoids a crash on Windows Vista.
57912         Reported by Adam Strzelecki <ono@java.pl> via
57913         Simon Josefsson <simon@josefsson.org>.
57914
57915 2008-02-06  Bruno Haible  <bruno@clisp.org>
57916
57917         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57918         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57919         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57921         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57922         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57923         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57924         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57932         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57933         left-adjust flag.
57934         * tests/test-snprintf-posix.h (test_function): Likewise.
57935         * tests/test-sprintf-posix.h (test_function): Likewise.
57936         * tests/test-vasprintf-posix.c (test_function): Likewise.
57937         * doc/posix-functions/fprintf.texi: Update.
57938         * doc/posix-functions/printf.texi: Update.
57939         * doc/posix-functions/snprintf.texi: Update.
57940         * doc/posix-functions/sprintf.texi: Update.
57941         * doc/posix-functions/vfprintf.texi: Update.
57942         * doc/posix-functions/vprintf.texi: Update.
57943         * doc/posix-functions/vsnprintf.texi: Update.
57944         * doc/posix-functions/vsprintf.texi: Update.
57945         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57946
57947 2008-02-06  Bruno Haible  <bruno@clisp.org>
57948
57949         Fix bug introduced on 2008-01-26.
57950         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57951
57952 2008-02-06  Bruno Haible  <bruno@clisp.org>
57953
57954         Fix bug introduced on 2007-06-10.
57955         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57956         !NEED_PRINTF_FLAG_ZERO.
57957
57958 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57959
57960         getloadavg: use libperfstat on AIX5
57961         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57962
57963 2008-02-03  Bruno Haible  <bruno@clisp.org>
57964
57965         * lib/diffseq.h: Add comments about required #includes.
57966         Reported by Michael Biggs <gnulib@doubleplum.net>.
57967
57968 2008-02-01  Bruno Haible  <bruno@clisp.org>
57969
57970         * users.txt: Add gnuit.
57971
57972 2008-01-31  Bruno Haible  <bruno@clisp.org>
57973
57974         * lib/md4.c (set_uint32): Mark as inline.
57975         * lib/md5.c (set_uint32): Likewise.
57976         * lib/sha1.c (set_uint32): Likewise.
57977         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57978         * m4/md5.m4 (gl_MD5): Likewise.
57979         * m4/sha1.m4 (gl_SHA1): Likewise.
57980
57981 2008-01-31  Jim Meyering  <meyering@redhat.com>
57982
57983         Use "sizeof VAR", rather than a literal "4".
57984         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57985         * lib/md4.c (md4_read_ctx): Likewise.
57986         * lib/sha1.c (sha1_read_ctx): Likewise.
57987
57988 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57989
57990         * tests/test-sha1.c: New file, based on test-md5.c.
57991
57992         * modules/crypto/sha1-tests: New file.
57993
57994 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57995
57996         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57997
57998 2008-01-31  Jim Meyering  <meyering@redhat.com>
57999
58000         Prefer "sizeof v" over the equivalent "4".
58001         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58002         * lib/md5.c (set_uint32): Likewise.
58003         * lib/sha1.c (set_uint32): Likewise.
58004
58005 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58006
58007         * lib/sha1.c (set_uint32): Mark function as static.
58008
58009 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58010
58011         md2: clarify comments to say that alignment is not required.
58012         * lib/md2.h: Remove warning about alignment in comment.
58013         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58014         never been required.
58015
58016 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58017
58018         md4: adapt alignment constraint fix from sha1.
58019         * lib/md4.c (set_uint32): New function, from sha1.c
58020         (md4_read_ctx): Use it.
58021         (md4_finish_ctx): Doc fix.
58022         * lib/md4.h: Doc fix.
58023
58024 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58025
58026         md5: adapt alignment constraint fix from sha1.
58027         * lib/md5.c (set_uint32): New function, from sha1.c
58028         (md5_read_ctx): Use it.
58029         (md5_finish_ctx): Doc fix.
58030         * lib/md5.h: Doc fix.
58031
58032 2008-01-30  Peter Palfrader  <weasel@debian.org>
58033
58034         sha1: remove the result buffer alignment constraint
58035         * lib/sha1.c (set_uint32): New function.
58036         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58037         constraint.
58038         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58039         * lib/sha1.h: Likewise.
58040
58041 2008-01-30  Andreas Schwab  <schwab@suse.de>
58042             Bruno Haible  <bruno@clisp.org>
58043
58044         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58045         correct definition of LDBL_MIN_EXP.
58046
58047 2008-01-30  Karl Berry  <karl@gnu.org>
58048
58049         * config/srclist-update: try to preserve x bit on updates.
58050         * config/srclistvars.sh: update for karl.
58051
58052 2008-01-29  Jim Meyering  <meyering@redhat.com>
58053
58054         vasnprintf.c: Avoid warning about unused label
58055         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58056         "overflow" label definition and associated code with the
58057         same cpp condition that guards the sole use of that label.
58058
58059 2008-01-26  Bruno Haible  <bruno@clisp.org>
58060
58061         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58062         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58063         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58064         * lib/isnanl-nolibm.h (isnanl): Likewise.
58065         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58066
58067 2008-01-26  Bruno Haible  <bruno@clisp.org>
58068
58069         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58070         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58071
58072 2008-01-26  Bruno Haible  <bruno@clisp.org>
58073
58074         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58075         GCC >= 4.0 built-in.
58076         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58077
58078 2008-01-26  Bruno Haible  <bruno@clisp.org>
58079
58080         Rename isnan, applicable to 'double' only, to isnand.
58081         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58082         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58083         (configure.ac): Update.
58084         (Include): Replace "isnan.h" with "isnand.h".
58085         * m4/isnand.m4: Renamed from m4/isnan.m4.
58086         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58087         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58088         instead of isnan.c.
58089         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58090         instead of HAVE_ISNAN_IN_LIBC.
58091         (isnand): Renamed from isnan.
58092         * lib/isnand.c: New file.
58093         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58094         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58095         (Makefile.am): Update.
58096         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58097         Include isnand.h instead of isnan.h.
58098         (main): Test isnand instead of isnan.
58099         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58100         isnan-nolibm.
58101         * modules/frexp (Depends-on): Likewise.
58102         * modules/frexp-tests (Depends-on): Likewise.
58103         * modules/frexp-nolibm (Depends-on): Likewise.
58104         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58105         * modules/isfinite (Depends-on): Likewise.
58106         * modules/round-tests (Depends-on): Likewise.
58107         * modules/signbit (Depends-on): Likewise.
58108         * modules/signbit-tests (Depends-on): Likewise.
58109         * modules/snprintf-posix (Depends-on): Likewise.
58110         * modules/sprintf-posix (Depends-on): Likewise.
58111         * modules/trunc-tests (Depends-on): Likewise.
58112         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58114         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58115         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58116         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58117         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58118         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58119         * modules/vasnprintf-posix (Depends-on): Likewise.
58120         * modules/vasprintf-posix (Depends-on): Likewise.
58121         * modules/vfprintf-posix (Depends-on): Likewise.
58122         * modules/vsnprintf-posix (Depends-on): Likewise.
58123         * modules/vsprintf-posix (Depends-on): Likewise.
58124         * lib/frexp.c: Include isnand.h instead of isnan.h.
58125         (ISNAN): Set to isnand instead of isnan.
58126         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58127         (gl_isfinited): Use isnand instead of isnan.
58128         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58129         (gl_signbitd): Use isnand instead of isnan.
58130         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58131         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58132         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58133         (main): Use isnand instead of isnan.
58134         * tests/test-round1.c: Include isnand.h.
58135         (main): Use isnand instead of isnan.
58136         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58137         (ISNAN): Set to isnand instead of isnan.
58138         * tests/test-trunc1.c: Include isnand.h.
58139         (main): Use isnand instead of isnan.
58140         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58141         (equal): Use isnand instead of isnan.
58142         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58143         isnand-nolibm.
58144         * NEWS: Mention the change.
58145
58146 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58147             Bruno Haible  <bruno@clisp.org>
58148
58149         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58150         the GCC builtins for signbits are present and set
58151         REPLACE_SIGNBIT_USING_GCC if so.
58152         * lib/math.in.h (signbit): Define using GCC builtins if
58153         REPLACE_SIGNBIT_USING_GCC is set.
58154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58155         REPLACE_SIGNBIT_USING_GCC.
58156         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58157
58158 2008-01-25  Jim Meyering  <meyering@redhat.com>
58159
58160         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58161         * lib/poll.c: Include <config.h>, not "config.h".
58162         * tests/test-getaddrinfo.c: Likewise.
58163
58164 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58165
58166         * modules/sockets-tests: New file.
58167
58168 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58169
58170         * modules/sockets: New module, can be used to call WSA_Startup and
58171         WSA_Cleanup when needed.
58172
58173         * lib/sockets.h, lib/sockets.c: New files.
58174
58175         * m4/sockets.m4: New file.
58176
58177         * tests/test-sockets.c: New file.
58178
58179 2008-01-19  Bruno Haible  <bruno@clisp.org>
58180
58181         * doc/posix-headers: Renamed from doc/headers.
58182         * doc/posix-functions: Renamed from doc/functions.
58183         * doc/gnulib.texi: Update.
58184
58185 2008-01-19  Bruno Haible  <bruno@clisp.org>
58186
58187         * doc/glibc-functions/strcasestr.texi: Include contents of
58188         doc/functions/strcasestr.texi, fixing the list of platforms.
58189         * doc/functions/strcasestr.texi: Remove file.
58190
58191 2008-01-19  Bruno Haible  <bruno@clisp.org>
58192
58193         * doc/glibc-functions/memmem.texi: Include contents of
58194         doc/functions/memmem.texi.
58195         * doc/functions/memmem.texi: Remove file.
58196
58197 2008-01-18  Bruno Haible  <bruno@clisp.org>
58198
58199         * doc/glibc-functions/*.texi: New files.
58200         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58201         to use the new files.
58202
58203 2008-01-17  Bruno Haible  <bruno@clisp.org>
58204
58205         * tests/test-gethostname.c (main): Fix printf statement.
58206
58207 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58208
58209         * modules/gethostname-tests: New file.
58210
58211         * tests/test-gethostname.c: New file.
58212
58213 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58214
58215         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58216         used by the UNAME case.  Reported by Bruno Haible
58217         <bruno@clisp.org>.
58218
58219 2008-01-17  Eric Blake  <ebb9@byu.net>
58220
58221         Convert c-strcasestr to be more efficient.
58222         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58223         (Depends-on): Add c-strcase, remove malloca, strnlen.
58224         * tests/test-c-strcasestr.c (main): Enhance test.
58225         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58226
58227 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58228
58229         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58230         Use it in creating po/Makevars.
58231
58232 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58233
58234         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58235         Applications that requires it should initialize libgcrypt
58236         manually.
58237
58238 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58239
58240         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58241
58242 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58243
58244         Fix problem with getdate on mingw32 reported by Simon Josefsson
58245         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58246         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58247         tzname", when deciding whether to declare tzname.
58248         * lib/strftime.c (tzname): Likewise.
58249
58250 2008-01-15  Bruno Haible  <bruno@clisp.org>
58251
58252         Work around a MacOS X 10.5 bug in frexpl().
58253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58254         * doc/functions/frexpl.texi: Document the bug.
58255         Reported by Elias Pipping <pipping@gentoo.org>.
58256
58257 2008-01-14  Eric Blake  <ebb9@byu.net>
58258
58259         Touch up previous patch.
58260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58261         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58262
58263         Convert strcasestr module to use Two-Way algorithm.
58264         * modules/strcasestr-simple: New module, based on the old
58265         strcasestr, but with Two-Way rather than KMP.
58266         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58267         * lib/string.in.h (rpl_strcasestr): Declare.
58268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58269         performance.
58270         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58271         * modules/string (Makefile.am): Support strcasestr.
58272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58273         * modules/strcasestr-tests (Depends-on): Check for alarm.
58274         * tests/test-strcasestr.c: Augment test.
58275         * lib/str-two-way.h: Clean up stray macro.
58276         * NEWS: Document new module.
58277         * MODULES.html.sh (string handling): Likewise.
58278         * doc/functions/strcasestr.texi: New file.
58279         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58280         here, since it is not a POSIX function.
58281
58282 2008-01-14  Colin Watson  <cjwatson@debian.org>
58283             Bruno Haible  <bruno@clisp.org>
58284
58285         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58286         works fine; if not, set REPLACE_STRSIGNAL.
58287         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58288         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58289         REPLACE_STRSIGNAL.
58290         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58291         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58292         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58293
58294 2008-01-14  Bruno Haible  <bruno@clisp.org>
58295
58296         * modules/strsignal (Include): Change to <string.h>.
58297
58298 2008-01-14  Colin Watson  <cjwatson@debian.org>
58299
58300         * modules/argp (Notice): Add a notice recommending to change
58301         XGETTEXT_OPTIONS.
58302         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58303
58304 2008-01-13  Colin Watson  <cjwatson@debian.org>
58305
58306         * modules/strsignal-tests: New file.
58307         * tests/test-strsignal.c: New file.
58308
58309         * lib/strsignal.c: New file, from glibc with modifications.
58310         * lib/siglist.h: New file, from glibc with modifications.
58311         * lib/string.in.h (strsignal): New declaration.
58312         * m4/strsignal.m4: New file.
58313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58314         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58315         * modules/strsignal: New file.
58316         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58317         HAVE_DECL_STRSIGNAL.
58318
58319 2008-01-13  Bruno Haible  <bruno@clisp.org>
58320
58321         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58322         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58323         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58324         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58325
58326 2008-01-13  Bruno Haible  <bruno@clisp.org>
58327
58328         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58329         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58330         * lib/argp.h (__attribute__): Likewise.
58331         * lib/c-stack.c (__attribute__): Likewise.
58332         * lib/error.h (__attribute__): Likewise.
58333         * lib/fts.c (__attribute__): Likewise.
58334         * lib/openat.h (__attribute__): Likewise.
58335         * lib/stdio.in.h (__attribute__): Likewise.
58336         * lib/string.in.h (__attribute__): Likewise.
58337         * lib/utimens.c (__attribute__): Likewise.
58338         * lib/vasnprintf.h (__attribute__): Likewise.
58339         * lib/xalloc.h (__attribute__): Likewise.
58340         * lib/xprintf.h (__attribute__): Likewise.
58341         * lib/xstrtol.h (__attribute__): Likewise.
58342         * lib/xvasprintf.h (__attribute__): Likewise.
58343
58344 2008-01-12  Bruno Haible  <bruno@clisp.org>
58345
58346         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58347         * doc/glibc-headers/a.out.texi: New file.
58348         * doc/glibc-headers/aliases.texi: New file.
58349         * doc/glibc-headers/alloca.texi: New file.
58350         * doc/glibc-headers/ar.texi: New file.
58351         * doc/glibc-headers/argp.texi: New file.
58352         * doc/glibc-headers/argz.texi: New file.
58353         * doc/glibc-headers/byteswap.texi: New file.
58354         * doc/glibc-headers/crypt.texi: New file.
58355         * doc/glibc-headers/endian.texi: New file.
58356         * doc/glibc-headers/envz.texi: New file.
58357         * doc/glibc-headers/err.texi: New file.
58358         * doc/glibc-headers/error.texi: New file.
58359         * doc/glibc-headers/execinfo.texi: New file.
58360         * doc/glibc-headers/fpu_control.texi: New file.
58361         * doc/glibc-headers/fstab.texi: New file.
58362         * doc/glibc-headers/fts.texi: New file.
58363         * doc/glibc-headers/getopt.texi: New file.
58364         * doc/glibc-headers/ieee754.texi: New file.
58365         * doc/glibc-headers/ifaddrs.texi: New file.
58366         * doc/glibc-headers/libintl.texi: New file.
58367         * doc/glibc-headers/mcheck.texi: New file.
58368         * doc/glibc-headers/mntent.texi: New file.
58369         * doc/glibc-headers/obstack.texi: New file.
58370         * doc/glibc-headers/paths.texi: New file.
58371         * doc/glibc-headers/printf.texi: New file.
58372         * doc/glibc-headers/pty.texi: New file.
58373         * doc/glibc-headers/resolv.texi: New file.
58374         * doc/glibc-headers/shadow.texi: New file.
58375         * doc/glibc-headers/sysexits.texi: New file.
58376         * doc/glibc-headers/ttyent.texi: New file.
58377
58378 2008-01-12  Jim Meyering  <meyering@redhat.com>
58379
58380         announce-gen: emit Gnulib's git-based version string.
58381         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58382         New option --gnulib-version=V, where V is expected to be
58383         the output of running git describe in the gnulib directory.
58384         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58385         not useful, and plan to stop publishing an xdelta file with each
58386         coreutils release.
58387
58388         * build-aux/announce-gen: Also check for lzma-compressed files.
58389
58390 2008-01-11  Bruno Haible  <bruno@clisp.org>
58391
58392         * tests/test-memmem.c (main): Increase maximum allowed time.
58393         * tests/test-strstr.c (main): Likewise.
58394
58395 2008-01-11  Bruno Haible  <bruno@clisp.org>
58396
58397         * doc/functions/memmem.texi: Add more precisions about platforms.
58398         * doc/functions/strstr.texi: Likewise.
58399
58400 2008-01-10  Eric Blake  <ebb9@byu.net>
58401
58402         * m4/strstr.m4: Delete cruft from copy-n-paste.
58403         Reported by Bruno Haible.
58404
58405 2008-01-10  Bruno Haible  <bruno@clisp.org>
58406
58407         Make c-strstr rely on strstr.
58408         * lib/c-strstr.c: Don't include str-kmp.h.
58409         (c_strstr): Define in terms of strstr.
58410         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58411         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58412
58413 2008-01-10  Bruno Haible  <bruno@clisp.org>
58414
58415         * doc/gnulib.texi (String Functions in C Locale): New section.
58416         * doc/c-ctype.texi: New file.
58417         * doc/c-strcase.texi: New file.
58418         * doc/c-strcaseeq.texi: New file.
58419         * doc/c-strcasestr.texi: New file.
58420         * doc/c-strstr.texi: New file.
58421         * doc/c-strtod.texi: New file.
58422         * doc/c-strtold.texi: New file.
58423
58424 2008-01-10  Eric Blake  <ebb9@byu.net>
58425
58426         * lib/relocatable.h: Fix a comment.
58427
58428 2008-01-10  Eric Blake  <ebb9@byu.net>
58429
58430         Share two-way algorithm.
58431         * lib/str-two-way.h: New file, merged from...
58432         * lib/memmem.c: ...here...
58433         * lib/strstr.c: ...and here.
58434         * modules/memmem (Files): Use it.
58435         * modules/strstr (Files): Likewise.
58436
58437         Avoid quadratic strstr implementations.
58438         * lib/strstr.c: New file.
58439         * m4/strstr.m4: Likewise.
58440         * modules/strstr: Likewise.
58441         * modules/strstr-tests: Likewise.
58442         * tests/test-strstr.c: Likewise.
58443         * lib/string.in.h (rpl_strstr): Declare.
58444         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58446         * modules/string (Makefile.am): Likewise.
58447         * MODULES.html.sh (string handling): Mention new module.
58448         * doc/functions/strstr.texi (strstr): Document the bug.
58449
58450 2008-01-10  Bruno Haible  <bruno@clisp.org>
58451
58452         * lib/relocatable.h (relocate): State whether result is freshly
58453         allocated or not.
58454         * lib/relocatable.c (relocate): Return a freshly allocated string
58455         instead of a pointer to a privately held string.
58456         Reported by Sylvain Beucler <beuc@gnu.org>.
58457
58458 2008-01-10  Colin Watson  <cjwatson@debian.org>
58459
58460         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58461         s/S_ISNLK/S_ISLNK/.
58462
58463 2008-01-09  Bruno Haible  <bruno@clisp.org>
58464
58465         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58466         and other files.
58467         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58468         if it's only a guess.
58469         * modules/memmem: Simplify by depending on memmem-simple.
58470
58471 2008-01-09  Bruno Haible  <bruno@clisp.org>
58472
58473         Work around OpenBSD 4.0 tdelete() bug.
58474         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58475         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58476         macros and don't redefine the enum values.
58477         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58478         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58479         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58480
58481 2008-01-09  Bruno Haible  <bruno@clisp.org>
58482
58483         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58484         (main): Don't perform the tests if setlocale did not install a UTF-8
58485         locale. Needed on OpenBSD 4.0.
58486         * modules/wcwidth-tests (Depends-on): Add localcharset.
58487
58488 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58489
58490         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58491         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58492         * NEWS: announce this.
58493         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58494
58495 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58496         and Eric Blake  <ebb9@byu.net>
58497
58498         Add memmem-simple module.
58499         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58500         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58501         * modules/memmem-simple: New file.
58502         * modules/memmem (Description): Tweak.
58503         * MODULES.html.sh (string handling): Mention new module.
58504         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58505         addressed by memmem-simple.
58506         * NEWS: Document the difference.
58507
58508 2008-01-09  Eric Blake  <ebb9@byu.net>
58509
58510         Give gcc some memmem optimization hints.
58511         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58512         (strcasestr): Declare as pure.
58513         * modules/memmem (Maintainer): Claim my implementation.
58514
58515 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58516
58517         Support AIX 6.1 and higher.
58518         * build-aux/config.libpath: Likewise.
58519         * build-aux/config.rpath: Likewise.
58520
58521 2008-01-08  Jim Meyering  <meyering@redhat.com>
58522             Bruno Haible  <bruno@clisp.org>
58523
58524         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58525         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58526         Reported by Peter Fales in
58527         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58528
58529 2008-01-08  Bruno Haible  <bruno@clisp.org>
58530
58531         * modules/unictype/category-of (Depends-on): Add
58532         unictype/category-none.
58533         * modules/unictype/category-and-tests (Depends-on): Add
58534         unictype/category-{L,N,Lu,Nd}.
58535         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58536         * modules/unictype/category-or-tests (Depends-on): Add
58537         unictype/category-{L,N}.
58538         * modules/unictype/category-name-tests (Depends-on): Add
58539         unictype/category-{Z,Nl}.
58540         Reported by Simon Josefsson.
58541
58542 2008-01-08  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58545         convention better.
58546         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58547         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58548         Reported by Peter Miller <millerp@canb.auug.org.au>.
58549
58550 2008-01-08  Eric Blake  <ebb9@byu.net>
58551
58552         Rewrite memmem to guarantee linear complexity without malloc.
58553         * lib/memmem.c (memmem): Use Two-Way rather than
58554         Knuth-Morris-Pratt, to allow O(1) space usage.
58555         (critical_factorization, two_way_short_needle)
58556         (two_way_long_needle): New functions.
58557         (knuth_morris_pratt): Delete.
58558         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58559         Add stdint.
58560         * tests/test-memmem.c (main): Add tests for periodic needle and
58561         sublinear performance.
58562         * doc/functions/memmem.texi (memmem): Document other deficiencies
58563         in cygwin and older glibc.
58564
58565 2008-01-08  Bruno Haible  <bruno@clisp.org>
58566
58567         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58568         augmentation.
58569
58570 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58571
58572         Add a configure time option: --disable-acl.
58573         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58574         AC_ARG_ENABLE(acl).
58575
58576 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58577
58578         * tests/test-localename.c: Don't include obsolete "setenv.h".
58579
58580         * modules/localename-tests (Depends-on): Need unsetenv.
58581
58582 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58583
58584         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58585
58586 2008-01-06  Colin Watson  <cjwatson@debian.org>
58587
58588         * users.txt: Add man-db.
58589
58590 2008-01-07  Bruno Haible  <bruno@clisp.org>
58591
58592         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58593         previous section name.
58594
58595 2008-01-07  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/progname.c (set_program_name): Don't strip off a leading
58598         "lt-" prefix outside a .libs directory.
58599         Suggested by Paul Eggert.
58600
58601 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58602             Bruno Haible  <bruno@clisp.org>
58603
58604         Improve memory cleanup in 'relocatable' module.
58605         * lib/relocatable.h (compute_curr_prefix): Change return type to
58606         'char *'.
58607         * lib/relocatable.c (compute_curr_prefix): Change return type to
58608         'char *'. Free curr_installdir after use.
58609         (relocate): Free curr_prefix_better after use.
58610         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58611
58612 2008-01-01  Bruno Haible  <bruno@clisp.org>
58613
58614         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58615         failure on older glibc systems.
58616         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58617
58618 2008-01-05  Eric Blake  <ebb9@byu.net>
58619
58620         Avoid quadratic system memmem.
58621         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58622         Reported by Ralf Wildenhues.
58623
58624         Fix memmem test for mingw.
58625         * modules/memmem-tests (configure.ac): Check for alarm.
58626         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58627         it.
58628         * doc/functions/memmem.texi: New file.
58629         * doc/gnulib.texi (Function Substitutes): Add memmem.
58630         Reported by Bruno Haible.
58631
58632 2008-01-04  Bruno Haible  <bruno@clisp.org>
58633
58634         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58635         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58636         gl_HEADER_STRING_H_DEFAULTS.
58637
58638 2008-01-04  Eric Blake  <ebb9@byu.net>
58639
58640         Shorten duration of memmem test.
58641         * tests/test-memmem.c (main): Use alarm to declare failure if test
58642         is taking too long.
58643         Reported by Ralf Wildenhues.
58644
58645 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58646
58647         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58648         string, needed by strerror.
58649
58650 2008-01-03  Colin Watson  <cjwatson@debian.org>
58651             Bruno Haible  <bruno@clisp.org>
58652
58653         * doc/gnulib-tool.texi (Localization): New section.
58654
58655 2008-01-02  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58658         variables to 'unsigned char *' type.
58659         Reported by Paul Eggert.
58660
58661 2008-01-02  Jim Meyering  <jim@meyering.net>
58662
58663         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58664
58665 2007-12-31  Jim Meyering  <jim@meyering.net>
58666
58667         Avoid use of private FTS type name.
58668         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58669
58670 2007-12-30  Karl Berry  <karl@gnu.org>
58671
58672         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58673         work around defect in Texinfo and/or the standalone Info browser.
58674
58675 2007-12-30  Bruno Haible  <bruno@clisp.org>
58676
58677         Unify 5 copies of the KMP code.
58678         * lib/str-kmp.h: New file.
58679         * lib/c-strcasestr.c: Include str-kmp.h.
58680         (knuth_morris_pratt): Remove function.
58681         (c_strcasestr): Update.
58682         * lib/c-strstr.c: Include str-kmp.h.
58683         (knuth_morris_pratt): Remove function.
58684         (c_strcasestr): Update.
58685         * lib/mbscasestr.c: Include str-kmp.h.
58686         (knuth_morris_pratt_unibyte): Remove function.
58687         * lib/mbsstr.c: Include str-kmp.h.
58688         (knuth_morris_pratt_unibyte): Remove function.
58689         * lib/strcasestr.c: Include str-kmp.h.
58690         (knuth_morris_pratt): Remove function.
58691         (strcasestr): Update.
58692         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58693         * modules/c-strstr (Files): Likewise.
58694         * modules/mbscasestr (Files): Likewise.
58695         * modules/mbsstr (Files): Likewise.
58696         * modules/strcasestr (Files): Likewise.
58697         Suggested by Paul Eggert.
58698
58699 2007-12-30  Bruno Haible  <bruno@clisp.org>
58700
58701         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58702         defined.
58703
58704 2007-12-30  Bruno Haible  <bruno@clisp.org>
58705
58706         * lib/xmalloca.h: Include xalloc.h.
58707         (xnmalloca): New macro.
58708
58709 2007-12-30  Bruno Haible  <bruno@clisp.org>
58710
58711         * lib/malloca.h (nmalloca): New macro.
58712         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58713         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58714         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58715         knuth_morris_pratt_multibyte): Likewise.
58716         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58717         knuth_morris_pratt_multibyte): Likewise.
58718         * lib/memmem.c (knuth_morris_pratt): Likewise.
58719         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58720
58721 2007-12-25  Bruno Haible  <bruno@clisp.org>
58722
58723         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58724         * lib/glob.c: Don't include openat.h.
58725         (link_exists2_p): Add back the code that deals with the
58726         !GLOB_ALTDIRFUNC case.
58727         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58728         let it do the filename concatenation.
58729         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58730         * modules/glob (Depends-on): Remove openat.
58731
58732 2007-12-31  Bruno Haible  <bruno@clisp.org>
58733
58734         * modules/dirfd (License): Change to LGPLv2+.
58735         Approved by Jim Meyering.
58736
58737 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58738
58739         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58740         when multiplying M by sizeof (size_t).
58741
58742 2007-12-10  Martin Lambers  <marlam@marlam.de>
58743
58744         Override getpagesize on mingw.
58745         * lib/getpagesize.c: New file.
58746         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58747         * modules/getpagesize (Files): Add lib/getpagesize.c.
58748         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58750         REPLACE_GETPAGESIZE.
58751         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58752
58753 2007-12-25  Bruno Haible  <bruno@clisp.org>
58754
58755         * modules/localcharset (Notice): New field.
58756         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58757         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58758
58759 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58760             Bruno Haible  <bruno@clisp.org>
58761
58762         Avoid using the syntax symbol() in formatted documentation.
58763         * MODULES.html.sh (func_module): When replacing symbol() with a
58764         hyperlink, remove the parentheses. Show an error if some remain.
58765         Recognize and render the '...' syntax.
58766         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58767         Rework. Add paragraph about GCC's inlining.
58768         * doc/alloca.texi: Likewise.
58769         * doc/error.texi: Remove parentheses from symbol reference.
58770         * doc/gnulib-intro.texi: Likewise.
58771         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58772         * modules/fnmatch (Description): Reword to say "the ... function".
58773         * modules/full-read (Description): Likewise.
58774         * modules/full-write (Description): Likewise.
58775         * modules/safe-read (Description): Likewise.
58776         * modules/safe-write (Description): Likewise.
58777         * modules/strchrnul (Description): Likewise.
58778         * modules/trim (Description): Likewise.
58779         * modules/error (Description): Remove parentheses from symbol
58780         references.
58781         * modules/verror (Description): Likewise.
58782         Reported by Karl Berry.
58783
58784 2007-12-25  Bruno Haible  <bruno@clisp.org>
58785
58786         Fixup after 2007-10-16 commit.
58787         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58788
58789 2007-12-24  Bruno Haible  <bruno@clisp.org>
58790
58791         Make --enable-relocatable work with DESTDIR.
58792         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58793         to compute installdir from destprog.
58794         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58795         also set the RELOC_DESTDIR variable.
58796         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58797
58798 2007-12-24  Bruno Haible  <bruno@clisp.org>
58799
58800         Fix link error due to xalloc_die().
58801         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58802         of xreadlink.
58803         * lib/relocwrapper.c: Update comments.
58804         * build-aux/install-reloc: Remove xreadlink.c from file list.
58805         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58806         xreadlink.c.
58807         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58808
58809 2007-12-24  Bruno Haible  <bruno@clisp.org>
58810
58811         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58812         * lib/setenv.h: Remove file.
58813         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58814         lib/setenv.h.
58815         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58816         (Depends-on): Add stdlib.
58817         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58818         gl_FUNC_UNSETENV.
58819         (Include): Replace setenv.h with <stdlib.h>.
58820         * modules/unsetenv: New file.
58821         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58822         * lib/unsetenv.c: Include <stdlib.h> first.
58823         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58824         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58825         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58826         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58827         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58828         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58830         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58831         * doc/functions/unsetenv.texi: Update.
58832         * modules/xsetenv (Depends-on): Add unsetenv.
58833         * modules/getdate (Depends-on): Likewise.
58834         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58835         * lib/xsetenv.c: Don't include setenv.h.
58836         * lib/getdate.y: Likewise.
58837         * lib/relocwrapper.c: Likewise.
58838         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58839         (Depends-on): Add stdlib.
58840         * NEWS: Mention the changes.
58841         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58842
58843 2007-12-23  Bruno Haible  <bruno@clisp.org>
58844
58845         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58846         indentation.
58847
58848 2007-12-23  Bruno Haible  <bruno@clisp.org>
58849
58850         * lib/c-strcasestr.c: Add more comments.
58851         * lib/c-strstr.c: Likewise.
58852         * lib/mbscasestr.c: Likewise.
58853         * lib/mbsstr.c: Likewise.
58854         * lib/strcasestr.c: Likewise.
58855         * lib/memmem.c: Likewise.
58856
58857 2007-12-23  Bruno Haible  <bruno@clisp.org>
58858
58859         * tests/test-memmem.c: Include <string.h> first.
58860
58861 2007-12-22  Bruno Haible  <bruno@clisp.org>
58862
58863         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58864         the contents of $testsbase.
58865         Reported by Ralf Wildenhues.
58866
58867 2007-12-22  Bruno Haible  <bruno@clisp.org>
58868
58869         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58870         two variables local_ldadd_before, local_ldadd_last.
58871
58872 2007-12-20  Eric Blake  <ebb9@byu.net>
58873
58874         Work around circular library issue when cross-compiling.
58875         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58876         that progname.o does not need to pull in rpl_memcmp.
58877
58878 2007-12-19  Eric Blake  <ebb9@byu.net>
58879
58880         Fix memmem to avoid O(n^2) worst-case complexity.
58881         * lib/memmem.c (knuth_morris_pratt): New function.
58882         (memmem): Use it if first few naive iterations fail.
58883         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58884         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58885         * modules/memchr (License): Likewise.
58886         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58887         malloca.
58888         * tests/test-memmem.c: Rewrite, borrowing ideas from
58889         test-mbsstr1.c; the old version wouldn't even compile!
58890         * modules/memmem-tests: New file.
58891         * lib/string.in.h (rpl_memmem): Add declaration.
58892         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58894         REPLACE_MEMMEM.
58895
58896 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58897
58898         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58899         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58900         before any system include files, and undef after them all.  This
58901         should fix a problem on VMS reported by John E. Malmberg in
58902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58903
58904 2007-12-17  Eric Blake  <ebb9@byu.net>
58905
58906         Revert addition of verify, for BSD/OS.
58907         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58908         can't handle large files, for the sake of obsolete platforms.
58909         * modules/fseeko (Depends-on): Remove verify.
58910         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58911         * doc/functions/ftello.texi (ftello): Likewise.
58912         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58913         Reported by Larry Jones.
58914
58915 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58916
58917         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58918         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58919
58920 2007-12-17  Jim Meyering  <meyering@redhat.com>
58921
58922         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58923         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58924         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58925         * modules/getcwd (Depends-on): Add openat.
58926         Reported by Petr Salinger.
58927
58928 2007-12-17  Bruno Haible  <bruno@clisp.org>
58929
58930         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58931         avoid a segmentation fault of the configure test on x86_64 systems.
58932
58933 2007-12-15  Jim Meyering  <meyering@redhat.com>
58934
58935         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58936
58937 2007-12-13  Eric Blake  <ebb9@byu.net>
58938
58939         Another fseek test.
58940         * tests/test-fseek.c (main): Also test ungetc handling.
58941         * tests/test-fseeko.c (main): Likewise.
58942         * modules/fseeko (Depends-on): Add verify.
58943         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58944         large.
58945         Reported by Larry Jones.
58946
58947         Fix fseeko on mingw.
58948         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58949         seek.
58950
58951         Beef up fseek tests.
58952         * tests/test-fseek.c (main): Also test eof handling.
58953         * tests/test-fseeko.c (main): Likewise.
58954         Reported by Larry Jones.
58955
58956 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58957
58958         Fix fseeko on BSD-based platforms.
58959         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58960         successful seek.
58961
58962 2007-12-12  Eric Blake  <ebb9@byu.net>
58963
58964         Allow circular dependency of separate libtests.a
58965         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58966         when use_libtests.
58967
58968 2007-12-11  Eric Blake  <ebb9@byu.net>
58969
58970         Fix bug with -0.0L in previous patch.
58971         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58972         * tests/test-isnan.c (main): Also test on zeroes.
58973         * tests/test-isnanf.c (main): Likewise.
58974         * tests/test-isnanl.h (main): Likewise.
58975
58976         Detect pseudo-denormals on x86 even when cross-compiling.
58977         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58978         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58979         invalid bit patterns that happen to satisfy ==.
58980
58981         Avoid link failures with separate libtests.a.
58982         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58983         last, to satisfy circular dependencies.
58984
58985 2007-12-11  Eric Blake  <ebb9@byu.net>
58986         and Bruno Haible  <bruno@clisp.org>
58987
58988         Fix OpenBSD 4.0 <float.h> handling of long double.
58989         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58990         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58991         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58992
58993 2007-12-11  Jim Meyering  <meyering@redhat.com>
58994
58995         * users.txt: Add libvirt.
58996
58997         Support versions of autoconf prior to 2.59c.
58998         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58999         if it is not already defined.
59000
59001 2007-12-09  Bruno Haible  <bruno@clisp.org>
59002
59003         Let 'gnulib-tool --import' collect sources needed for the tests in
59004         tests/ rather than in lib/.
59005         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59006         argument. If true, add rules to generate libtests.a, and put libtests.a
59007         into $(LDADD). Consider source files in subdirectories and set
59008         uses_subdirs.
59009         (func_emit_initmacro_start, func_emit_initmacro_end,
59010         func_emit_initmacro_done): Pass all arguments explicitly.
59011         (func_import): Determine two module lists main_modules,
59012         testsrelated_modules. Determine use_libtests. Determine two variables
59013         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59014         instead of just sed_transform_lib_file. Determine two variables
59015         main_files and testsrelated_files. Compute 'files' as the union of
59016         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59017         func_add_or_update. In the generated gnulib-comp.m4, collect the
59018         object files for tests/ in different variables than those for lib/.
59019         Substitute LIBTESTS_LIBDEPS.
59020         (func_create_testdir): Combine the uses_subdirs results from
59021         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59022
59023 2007-12-09  Bruno Haible  <bruno@clisp.org>
59024
59025         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59026         the build-aux directory.
59027
59028 2007-12-09  Bruno Haible  <bruno@clisp.org>
59029
59030         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59031         introduced on 2006-09-09.
59032
59033 2007-12-07  Jim Meyering  <meyering@redhat.com>
59034
59035         Let these macros work also with autoconf-2.59.
59036         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59037         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59038         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59039
59040 2007-12-06  Jim Meyering  <meyering@redhat.com>
59041
59042         Avoid a configure-time syntax error in gl_FUNC_ACL.
59043         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59044         function in each branch, before testing the cache variable.
59045
59046 2007-12-04  Eric Blake  <ebb9@byu.net>
59047
59048         Make scripts executable.
59049         * build-aux/config.guess: Add execute permissions.
59050         * build-aux/config.sub: Likewise.
59051         * build-aux/gendocs.sh: Likewise.
59052
59053         Fix frexp on mingw.
59054         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59055         cross-compiling.
59056         * doc/functions/frexp.texi (frexp): Document the bug.
59057
59058         Make cygwin fseeko check more reliable.
59059         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59060         version numbers, rather than unrelated feature check.
59061         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59062         * doc/functions/ftello.texi (ftello): Likewise.
59063         Reported by Bruno Haible.
59064
59065         * m4/strerror.m4: Bump version number.
59066
59067 2007-12-03  Bruno Haible  <bruno@clisp.org>
59068
59069         * doc/functions/mprotect.texi: Mention the mingw problem.
59070
59071 2007-12-03  Eric Blake  <ebb9@byu.net>
59072
59073         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59074         REPLACE_STRERROR is initialized before this macro.
59075
59076 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59077
59078         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59079         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59080         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59081         put -lsec in even for programs other than 'ls'.  This fixes a problem
59082         for gettext reported by Bruno Haible in
59083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59084         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59085         Add support for Solaris 10.  This isn't efficient, but should get the
59086         job done for now.
59087
59088 2007-12-03  James Youngman  <jay@gnu.org>
59089
59090         * doc/regexprops-generic.texi: change "an close-group" to "a
59091         close-group" and "illegal" to "not allowed".
59092
59093 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59094
59095         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59096         pr_byname.h. Needed for the rare case when the maintainer has done
59097         "make maintainer-clean" in the source directory and then attempts a
59098         build outside the source directory.
59099         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59100         scripts_byname.h.
59101
59102 2007-12-02  Martin Lambers <marlam@marlam.de>
59103             Bruno Haible  <bruno@clisp.org>
59104
59105         * lib/getpagesize.h: Remove file.
59106         * lib/unistd.in.h: Include declaration of getpagesize here.
59107         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59108         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59109         HAVE_SYS_PARAM_H.
59110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59111         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59112         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59113         (Depends-on): Add unistd.
59114         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59115         (Include): Use <unistd.h> instead of getpagesize.h.
59116         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59117         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59118         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59119         gl_GETPAGESIZE invocation, already handled by module dependency.
59120         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59121
59122 2007-12-02  Bruno Haible  <bruno@clisp.org>
59123
59124         * modules/strings-tests: New file.
59125         * tests/test-strings.c: New file.
59126
59127         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59128         * lib/strings.in.h: New file.
59129         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59130         * m4/strings_h.m4: New file.
59131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59132         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59133         * modules/strings: New file.
59134         * modules/string (Makefile.am): Update.
59135         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59136         Reported by Karl Berry.
59137
59138 2007-12-01  Eric Blake  <ebb9@byu.net>
59139
59140         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59141         accomodate fix in cygwin 1.5.25.
59142
59143 2007-12-01  Jim Meyering  <meyering@redhat.com>
59144
59145         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59146         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59147         that would inhibit utf8-optimization of a regexp containing line-
59148         or buffer-anchors, e.g., `^', `$'.
59149
59150 2007-11-30  Bruno Haible  <bruno@clisp.org>
59151
59152         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59153         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59154         glthread_recursive_lock_init.
59155         * lib/lock.c (glthread_recursive_lock_init)
59156         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59157         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59158
59159 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59160
59161         New function qset_acl, like set_acl but with syscall semantics.
59162         * lib/acl.h (qset_acl): New decl.
59163         * lib/acl.c (qset_acl): New function.
59164         (set_acl): Use new function.  Use more-consistent diagnostics.
59165
59166 2007-11-28  Jim Meyering  <meyering@redhat.com>
59167
59168         * modules/physmem (License): Change from GPL to LGPLv2+.
59169
59170 2007-11-26  Bruno Haible  <bruno@clisp.org>
59171
59172         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59173         'long double' type has excess precision.
59174         Reported by Jim Meyering in
59175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59176
59177 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59178
59179         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59180         Sync from <http://gnu.org/licenses>.
59181         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59182         with license text from same location.
59183         * doc/maintain.texi, doc/standards.texi:  Sync from
59184         <http://savannah.gnu.org/projects/gnustandards>.
59185
59186 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59187         and Jim Meyering  <meyering@redhat.com>
59188
59189         Adjust getdate' grammar to accept a slightly more regular language.
59190         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59191         Before, the former was rejected.
59192         * lib/getdate.y (digits_to_date_time): New function, factored
59193         out of ...
59194         (number): ...here.  Just call digits_to_date_time.
59195         (hybrid): New non-terminal to handle an <unsigned number,
59196         signed relative offset> sequence consistently.
59197
59198 2007-11-18  Jim Meyering  <meyering@redhat.com>
59199
59200         Pull my changes from coreutils:
59201         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59202         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59203         use of $gnulib_tool_option_extras, so that it's separated from the
59204         preceding argument.
59205
59206         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59207         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59208         parent destination directories before copying a file into place.
59209
59210 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59211
59212         bootstrap: work also with 4-argument variant of AC_INIT
59213         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59214
59215 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59216
59217         Port test-getaddrinfo to Solaris.
59218         Problem reported by Bruno Haible in
59219         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59220         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59221         explanation of setting 'hints'.
59222         Don't reject an implementation merely because it returns EAI_SERVICE.
59223         (EAI_SERVICE): Define to 0 if not defined.
59224
59225 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59226
59227         The license of gnu-make and posix-shell is now "GPLed build tool".
59228         * modules/gnu-make (License): Likewise.
59229         * modules/posix-shell (License): Likewise.
59230
59231         New module posix-shell, for determining a POSIX shell
59232         or perhaps something that is close enough to a POSIX shell.
59233         * m4/posix-shell.m4: New file.
59234         * modules/posix-shell: New file.
59235
59236         * MODULES.html.sh: Mention new module.
59237
59238         New module gnu-make, for determining whether we're using GNU Make.
59239         * m4/gnu-make.m4: New file.
59240         * modules/gnu-make: New file.
59241         * MODULES.html.sh: Mention new module.
59242
59243 2007-11-14  Jim Meyering  <meyering@redhat.com>
59244
59245         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59246         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59247         use this macro to create a function _definition_.
59248         Remove useless "#undef ARGMATCH_DIE".
59249
59250 2007-11-14  Bruno Haible  <bruno@clisp.org>
59251
59252         * lib/config.charset: Update for OpenBSD 4.1.
59253         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59254
59255 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59256
59257         Document 64-bit #if problems in stdint.texi.
59258         * doc/headers/stdint.texi (stdint.h): Mention problems with
59259         64-bit-#if, and how to work around them.
59260
59261         Don't insist on 'long long int' support in the preprocessor.  It
59262         breaks too many things.  For example, PRIdMAX still uses a 'long
59263         long int' format with the latest Sun compiler, even though
59264         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59265         preprocessor problem.  This causes the latest coreutils to dump
59266         core on Solaris 10 sparc with the Sun C compiler.
59267         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59268         the troublesome expressions at configure-time, not at #if-time.
59269         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59270         preprocessor.
59271         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59272         compile-time C checks, done at 'configure'-time.
59273         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59274         * modules/inttypes (Makefile): Substitute the new symbols that
59275         gl_INTTYPES_H now generates.
59276         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59277
59278 2007-11-12  Bruno Haible  <bruno@clisp.org>
59279
59280         Tests for Unicode character classification functions.
59281
59282         * modules/unictype/bidicategory-byname-tests: New file.
59283         * modules/unictype/bidicategory-name-tests: New file.
59284         * modules/unictype/bidicategory-of-tests: New file.
59285         * modules/unictype/bidicategory-test-tests: New file.
59286         * modules/unictype/block-list-tests: New file.
59287         * modules/unictype/block-of-tests: New file.
59288         * modules/unictype/block-test-tests: New file.
59289         * modules/unictype/category-C-tests: New file.
59290         * modules/unictype/category-Cc-tests: New file.
59291         * modules/unictype/category-Cf-tests: New file.
59292         * modules/unictype/category-Cn-tests: New file.
59293         * modules/unictype/category-Co-tests: New file.
59294         * modules/unictype/category-Cs-tests: New file.
59295         * modules/unictype/category-L-tests: New file.
59296         * modules/unictype/category-Ll-tests: New file.
59297         * modules/unictype/category-Lm-tests: New file.
59298         * modules/unictype/category-Lo-tests: New file.
59299         * modules/unictype/category-Lt-tests: New file.
59300         * modules/unictype/category-Lu-tests: New file.
59301         * modules/unictype/category-M-tests: New file.
59302         * modules/unictype/category-Mc-tests: New file.
59303         * modules/unictype/category-Me-tests: New file.
59304         * modules/unictype/category-Mn-tests: New file.
59305         * modules/unictype/category-N-tests: New file.
59306         * modules/unictype/category-Nd-tests: New file.
59307         * modules/unictype/category-Nl-tests: New file.
59308         * modules/unictype/category-No-tests: New file.
59309         * modules/unictype/category-P-tests: New file.
59310         * modules/unictype/category-Pc-tests: New file.
59311         * modules/unictype/category-Pd-tests: New file.
59312         * modules/unictype/category-Pe-tests: New file.
59313         * modules/unictype/category-Pf-tests: New file.
59314         * modules/unictype/category-Pi-tests: New file.
59315         * modules/unictype/category-Po-tests: New file.
59316         * modules/unictype/category-Ps-tests: New file.
59317         * modules/unictype/category-S-tests: New file.
59318         * modules/unictype/category-Sc-tests: New file.
59319         * modules/unictype/category-Sk-tests: New file.
59320         * modules/unictype/category-Sm-tests: New file.
59321         * modules/unictype/category-So-tests: New file.
59322         * modules/unictype/category-Z-tests: New file.
59323         * modules/unictype/category-Zl-tests: New file.
59324         * modules/unictype/category-Zp-tests: New file.
59325         * modules/unictype/category-Zs-tests: New file.
59326         * modules/unictype/category-and-not-tests: New file.
59327         * modules/unictype/category-and-tests: New file.
59328         * modules/unictype/category-byname-tests: New file.
59329         * modules/unictype/category-name-tests: New file.
59330         * modules/unictype/category-none-tests: New file.
59331         * modules/unictype/category-of-tests: New file.
59332         * modules/unictype/category-or-tests: New file.
59333         * modules/unictype/category-test-withtable-tests: New file.
59334         * modules/unictype/combining-class-tests: New file.
59335         * modules/unictype/ctype-alnum-tests: New file.
59336         * modules/unictype/ctype-alpha-tests: New file.
59337         * modules/unictype/ctype-blank-tests: New file.
59338         * modules/unictype/ctype-cntrl-tests: New file.
59339         * modules/unictype/ctype-digit-tests: New file.
59340         * modules/unictype/ctype-graph-tests: New file.
59341         * modules/unictype/ctype-lower-tests: New file.
59342         * modules/unictype/ctype-print-tests: New file.
59343         * modules/unictype/ctype-punct-tests: New file.
59344         * modules/unictype/ctype-space-tests: New file.
59345         * modules/unictype/ctype-upper-tests: New file.
59346         * modules/unictype/ctype-xdigit-tests: New file.
59347         * modules/unictype/decimal-digit-tests: New file.
59348         * modules/unictype/digit-tests: New file.
59349         * modules/unictype/mirror-tests: New file.
59350         * modules/unictype/numeric-tests: New file.
59351         * modules/unictype/property-alphabetic-tests: New file.
59352         * modules/unictype/property-ascii-hex-digit-tests: New file.
59353         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59354         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59355         * modules/unictype/property-bidi-block-separator-tests: New file.
59356         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59357         * modules/unictype/property-bidi-common-separator-tests: New file.
59358         * modules/unictype/property-bidi-control-tests: New file.
59359         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59360         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59361         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59362         * modules/unictype/property-bidi-european-digit-tests: New file.
59363         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59364         * modules/unictype/property-bidi-left-to-right-tests: New file.
59365         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59366         * modules/unictype/property-bidi-other-neutral-tests: New file.
59367         * modules/unictype/property-bidi-pdf-tests: New file.
59368         * modules/unictype/property-bidi-segment-separator-tests: New file.
59369         * modules/unictype/property-bidi-whitespace-tests: New file.
59370         * modules/unictype/property-byname-tests: New file.
59371         * modules/unictype/property-combining-tests: New file.
59372         * modules/unictype/property-composite-tests: New file.
59373         * modules/unictype/property-currency-symbol-tests: New file.
59374         * modules/unictype/property-dash-tests: New file.
59375         * modules/unictype/property-decimal-digit-tests: New file.
59376         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59377         * modules/unictype/property-deprecated-tests: New file.
59378         * modules/unictype/property-diacritic-tests: New file.
59379         * modules/unictype/property-extender-tests: New file.
59380         * modules/unictype/property-format-control-tests: New file.
59381         * modules/unictype/property-grapheme-base-tests: New file.
59382         * modules/unictype/property-grapheme-extend-tests: New file.
59383         * modules/unictype/property-grapheme-link-tests: New file.
59384         * modules/unictype/property-hex-digit-tests: New file.
59385         * modules/unictype/property-hyphen-tests: New file.
59386         * modules/unictype/property-id-continue-tests: New file.
59387         * modules/unictype/property-id-start-tests: New file.
59388         * modules/unictype/property-ideographic-tests: New file.
59389         * modules/unictype/property-ids-binary-operator-tests: New file.
59390         * modules/unictype/property-ids-trinary-operator-tests: New file.
59391         * modules/unictype/property-ignorable-control-tests: New file.
59392         * modules/unictype/property-iso-control-tests: New file.
59393         * modules/unictype/property-join-control-tests: New file.
59394         * modules/unictype/property-left-of-pair-tests: New file.
59395         * modules/unictype/property-line-separator-tests: New file.
59396         * modules/unictype/property-logical-order-exception-tests: New file.
59397         * modules/unictype/property-lowercase-tests: New file.
59398         * modules/unictype/property-math-tests: New file.
59399         * modules/unictype/property-non-break-tests: New file.
59400         * modules/unictype/property-not-a-character-tests: New file.
59401         * modules/unictype/property-numeric-tests: New file.
59402         * modules/unictype/property-other-alphabetic-tests: New file.
59403         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59404         * modules/unictype/property-other-grapheme-extend-tests: New file.
59405         * modules/unictype/property-other-id-continue-tests: New file.
59406         * modules/unictype/property-other-id-start-tests: New file.
59407         * modules/unictype/property-other-lowercase-tests: New file.
59408         * modules/unictype/property-other-math-tests: New file.
59409         * modules/unictype/property-other-uppercase-tests: New file.
59410         * modules/unictype/property-paired-punctuation-tests: New file.
59411         * modules/unictype/property-paragraph-separator-tests: New file.
59412         * modules/unictype/property-pattern-syntax-tests: New file.
59413         * modules/unictype/property-pattern-white-space-tests: New file.
59414         * modules/unictype/property-private-use-tests: New file.
59415         * modules/unictype/property-punctuation-tests: New file.
59416         * modules/unictype/property-quotation-mark-tests: New file.
59417         * modules/unictype/property-radical-tests: New file.
59418         * modules/unictype/property-sentence-terminal-tests: New file.
59419         * modules/unictype/property-soft-dotted-tests: New file.
59420         * modules/unictype/property-space-tests: New file.
59421         * modules/unictype/property-terminal-punctuation-tests: New file.
59422         * modules/unictype/property-test-tests: New file.
59423         * modules/unictype/property-titlecase-tests: New file.
59424         * modules/unictype/property-unassigned-code-value-tests: New file.
59425         * modules/unictype/property-unified-ideograph-tests: New file.
59426         * modules/unictype/property-uppercase-tests: New file.
59427         * modules/unictype/property-variation-selector-tests: New file.
59428         * modules/unictype/property-white-space-tests: New file.
59429         * modules/unictype/property-xid-continue-tests: New file.
59430         * modules/unictype/property-xid-start-tests: New file.
59431         * modules/unictype/property-zero-width-tests: New file.
59432         * modules/unictype/scripts-tests: New file.
59433         * modules/unictype/syntax-c-ident-tests: New file.
59434         * modules/unictype/syntax-c-whitespace-tests: New file.
59435         * modules/unictype/syntax-java-ident-tests: New file.
59436         * modules/unictype/syntax-java-whitespace-tests: New file.
59437         * tests/unictype/test-bidi_byname.c: New file.
59438         * tests/unictype/test-bidi_name.c: New file.
59439         * tests/unictype/test-bidi_of.c: New file.
59440         * tests/unictype/test-bidi_test.c: New file.
59441         * tests/unictype/test-block_list.c: New file.
59442         * tests/unictype/test-block_of.c: New file.
59443         * tests/unictype/test-block_test.c: New file.
59444         * tests/unictype/test-categ_and.c: New file.
59445         * tests/unictype/test-categ_and_not.c: New file.
59446         * tests/unictype/test-categ_byname.c: New file.
59447         * tests/unictype/test-categ_name.c: New file.
59448         * tests/unictype/test-categ_none.c: New file.
59449         * tests/unictype/test-categ_of.c: New file.
59450         * tests/unictype/test-categ_or.c: New file.
59451         * tests/unictype/test-categ_test_withtable.c: New file.
59452         * tests/unictype/test-combining.c: New file.
59453         * tests/unictype/test-decdigit.c: New file.
59454         * tests/unictype/test-digit.c: New file.
59455         * tests/unictype/test-mirror.c: New file.
59456         * tests/unictype/test-numeric.c: New file.
59457         * tests/unictype/test-pr_byname.c: New file.
59458         * tests/unictype/test-pr_test.c: New file.
59459         * tests/unictype/test-predicate-part1.h: New file.
59460         * tests/unictype/test-predicate-part2.h: New file.
59461         * tests/unictype/test-scripts.c: New file.
59462         * tests/unictype/test-sy_c_ident.c: New file.
59463         * tests/unictype/test-sy_java_ident.c: New file.
59464
59465         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59466         for Unicode 5.0.0.
59467         * tests/unictype/test-categ_Cc.c: Likewise.
59468         * tests/unictype/test-categ_Cf.c: Likewise.
59469         * tests/unictype/test-categ_Cn.c: Likewise.
59470         * tests/unictype/test-categ_Co.c: Likewise.
59471         * tests/unictype/test-categ_Cs.c: Likewise.
59472         * tests/unictype/test-categ_L.c: Likewise.
59473         * tests/unictype/test-categ_Ll.c: Likewise.
59474         * tests/unictype/test-categ_Lm.c: Likewise.
59475         * tests/unictype/test-categ_Lo.c: Likewise.
59476         * tests/unictype/test-categ_Lt.c: Likewise.
59477         * tests/unictype/test-categ_Lu.c: Likewise.
59478         * tests/unictype/test-categ_M.c: Likewise.
59479         * tests/unictype/test-categ_Mc.c: Likewise.
59480         * tests/unictype/test-categ_Me.c: Likewise.
59481         * tests/unictype/test-categ_Mn.c: Likewise.
59482         * tests/unictype/test-categ_N.c: Likewise.
59483         * tests/unictype/test-categ_Nd.c: Likewise.
59484         * tests/unictype/test-categ_Nl.c: Likewise.
59485         * tests/unictype/test-categ_No.c: Likewise.
59486         * tests/unictype/test-categ_P.c: Likewise.
59487         * tests/unictype/test-categ_Pc.c: Likewise.
59488         * tests/unictype/test-categ_Pd.c: Likewise.
59489         * tests/unictype/test-categ_Pe.c: Likewise.
59490         * tests/unictype/test-categ_Pf.c: Likewise.
59491         * tests/unictype/test-categ_Pi.c: Likewise.
59492         * tests/unictype/test-categ_Po.c: Likewise.
59493         * tests/unictype/test-categ_Ps.c: Likewise.
59494         * tests/unictype/test-categ_S.c: Likewise.
59495         * tests/unictype/test-categ_Sc.c: Likewise.
59496         * tests/unictype/test-categ_Sk.c: Likewise.
59497         * tests/unictype/test-categ_Sm.c: Likewise.
59498         * tests/unictype/test-categ_So.c: Likewise.
59499         * tests/unictype/test-categ_Z.c: Likewise.
59500         * tests/unictype/test-categ_Zl.c: Likewise.
59501         * tests/unictype/test-categ_Zp.c: Likewise.
59502         * tests/unictype/test-categ_Zs.c: Likewise.
59503         * tests/unictype/test-ctype_alnum.c: Likewise.
59504         * tests/unictype/test-ctype_alpha.c: Likewise.
59505         * tests/unictype/test-ctype_blank.c: Likewise.
59506         * tests/unictype/test-ctype_cntrl.c: Likewise.
59507         * tests/unictype/test-ctype_digit.c: Likewise.
59508         * tests/unictype/test-ctype_graph.c: Likewise.
59509         * tests/unictype/test-ctype_lower.c: Likewise.
59510         * tests/unictype/test-ctype_print.c: Likewise.
59511         * tests/unictype/test-ctype_punct.c: Likewise.
59512         * tests/unictype/test-ctype_space.c: Likewise.
59513         * tests/unictype/test-ctype_upper.c: Likewise.
59514         * tests/unictype/test-ctype_xdigit.c: Likewise.
59515         * tests/unictype/test-decdigit.h: Likewise.
59516         * tests/unictype/test-digit.h: Likewise.
59517         * tests/unictype/test-numeric.h: Likewise.
59518         * tests/unictype/test-pr_alphabetic.c: Likewise.
59519         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59520         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59521         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59522         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59523         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59524         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59525         * tests/unictype/test-pr_bidi_control.c: Likewise.
59526         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59527         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59528         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59529         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59530         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59531         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59532         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59533         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59534         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59535         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59536         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59537         * tests/unictype/test-pr_combining.c: Likewise.
59538         * tests/unictype/test-pr_composite.c: Likewise.
59539         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59540         * tests/unictype/test-pr_dash.c: Likewise.
59541         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59542         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59543         * tests/unictype/test-pr_deprecated.c: Likewise.
59544         * tests/unictype/test-pr_diacritic.c: Likewise.
59545         * tests/unictype/test-pr_extender.c: Likewise.
59546         * tests/unictype/test-pr_format_control.c: Likewise.
59547         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59548         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59549         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59550         * tests/unictype/test-pr_hex_digit.c: Likewise.
59551         * tests/unictype/test-pr_hyphen.c: Likewise.
59552         * tests/unictype/test-pr_id_continue.c: Likewise.
59553         * tests/unictype/test-pr_id_start.c: Likewise.
59554         * tests/unictype/test-pr_ideographic.c: Likewise.
59555         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59556         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59557         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59558         * tests/unictype/test-pr_iso_control.c: Likewise.
59559         * tests/unictype/test-pr_join_control.c: Likewise.
59560         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59561         * tests/unictype/test-pr_line_separator.c: Likewise.
59562         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59563         * tests/unictype/test-pr_lowercase.c: Likewise.
59564         * tests/unictype/test-pr_math.c: Likewise.
59565         * tests/unictype/test-pr_non_break.c: Likewise.
59566         * tests/unictype/test-pr_not_a_character.c: Likewise.
59567         * tests/unictype/test-pr_numeric.c: Likewise.
59568         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59569         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59570         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59571         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59572         * tests/unictype/test-pr_other_id_start.c: Likewise.
59573         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59574         * tests/unictype/test-pr_other_math.c: Likewise.
59575         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59576         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59577         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59578         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59579         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59580         * tests/unictype/test-pr_private_use.c: Likewise.
59581         * tests/unictype/test-pr_punctuation.c: Likewise.
59582         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59583         * tests/unictype/test-pr_radical.c: Likewise.
59584         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59585         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59586         * tests/unictype/test-pr_space.c: Likewise.
59587         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59588         * tests/unictype/test-pr_titlecase.c: Likewise.
59589         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59590         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59591         * tests/unictype/test-pr_uppercase.c: Likewise.
59592         * tests/unictype/test-pr_variation_selector.c: Likewise.
59593         * tests/unictype/test-pr_white_space.c: Likewise.
59594         * tests/unictype/test-pr_xid_continue.c: Likewise.
59595         * tests/unictype/test-pr_xid_start.c: Likewise.
59596         * tests/unictype/test-pr_zero_width.c: Likewise.
59597         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59598         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59599
59600 2007-11-12  Bruno Haible  <bruno@clisp.org>
59601
59602         Unicode character classification functions.
59603         * lib/unictype.h: New file.
59604         * modules/unictype/base: New file.
59605         * modules/unictype/category-L: New file.
59606         * modules/unictype/category-Lu: New file.
59607         * modules/unictype/category-Ll: New file.
59608         * modules/unictype/category-Lt: New file.
59609         * modules/unictype/category-Lm: New file.
59610         * modules/unictype/category-Lo: New file.
59611         * modules/unictype/category-M: New file.
59612         * modules/unictype/category-Mn: New file.
59613         * modules/unictype/category-Mc: New file.
59614         * modules/unictype/category-Me: New file.
59615         * modules/unictype/category-N: New file.
59616         * modules/unictype/category-Nd: New file.
59617         * modules/unictype/category-Nl: New file.
59618         * modules/unictype/category-No: New file.
59619         * modules/unictype/category-P: New file.
59620         * modules/unictype/category-Pc: New file.
59621         * modules/unictype/category-Pd: New file.
59622         * modules/unictype/category-Ps: New file.
59623         * modules/unictype/category-Pe: New file.
59624         * modules/unictype/category-Pi: New file.
59625         * modules/unictype/category-Pf: New file.
59626         * modules/unictype/category-Po: New file.
59627         * modules/unictype/category-S: New file.
59628         * modules/unictype/category-Sm: New file.
59629         * modules/unictype/category-Sc: New file.
59630         * modules/unictype/category-Sk: New file.
59631         * modules/unictype/category-So: New file.
59632         * modules/unictype/category-Z: New file.
59633         * modules/unictype/category-Zs: New file.
59634         * modules/unictype/category-Zl: New file.
59635         * modules/unictype/category-Zp: New file.
59636         * modules/unictype/category-C: New file.
59637         * modules/unictype/category-Cc: New file.
59638         * modules/unictype/category-Cf: New file.
59639         * modules/unictype/category-Cs: New file.
59640         * modules/unictype/category-Co: New file.
59641         * modules/unictype/category-Cn: New file.
59642         * modules/unictype/category-or: New file.
59643         * modules/unictype/category-of: New file.
59644         * modules/unictype/category-test: New file.
59645         * modules/unictype/category-test-withtable: New file.
59646         * modules/unictype/category-byname: New file.
59647         * modules/unictype/category-none: New file.
59648         * modules/unictype/category-and: New file.
59649         * modules/unictype/category-and-not: New file.
59650         * modules/unictype/category-name: New file.
59651         * modules/unictype/combining-class: New file.
59652         * modules/unictype/category-all: New file.
59653         * modules/unictype/bidicategory-all: New file.
59654         * modules/unictype/bidicategory-byname: New file.
59655         * modules/unictype/bidicategory-name: New file.
59656         * modules/unictype/bidicategory-of: New file.
59657         * modules/unictype/bidicategory-test: New file.
59658         * modules/unictype/decimal-digit: New file.
59659         * modules/unictype/digit: New file.
59660         * modules/unictype/numeric: New file.
59661         * modules/unictype/mirror: New file.
59662         * modules/unictype/property-white-space: New file.
59663         * modules/unictype/property-alphabetic: New file.
59664         * modules/unictype/property-other-alphabetic: New file.
59665         * modules/unictype/property-not-a-character: New file.
59666         * modules/unictype/property-default-ignorable-code-point: New file.
59667         * modules/unictype/property-other-default-ignorable-code-point: New
59668         file.
59669         * modules/unictype/property-deprecated: New file.
59670         * modules/unictype/property-logical-order-exception: New file.
59671         * modules/unictype/property-variation-selector: New file.
59672         * modules/unictype/property-private-use: New file.
59673         * modules/unictype/property-unassigned-code-value: New file.
59674         * modules/unictype/property-uppercase: New file.
59675         * modules/unictype/property-other-uppercase: New file.
59676         * modules/unictype/property-lowercase: New file.
59677         * modules/unictype/property-other-lowercase: New file.
59678         * modules/unictype/property-titlecase: New file.
59679         * modules/unictype/property-soft-dotted: New file.
59680         * modules/unictype/property-id-start: New file.
59681         * modules/unictype/property-other-id-start: New file.
59682         * modules/unictype/property-id-continue: New file.
59683         * modules/unictype/property-other-id-continue: New file.
59684         * modules/unictype/property-xid-start: New file.
59685         * modules/unictype/property-xid-continue: New file.
59686         * modules/unictype/property-pattern-white-space: New file.
59687         * modules/unictype/property-pattern-syntax: New file.
59688         * modules/unictype/property-join-control: New file.
59689         * modules/unictype/property-grapheme-base: New file.
59690         * modules/unictype/property-grapheme-extend: New file.
59691         * modules/unictype/property-other-grapheme-extend: New file.
59692         * modules/unictype/property-grapheme-link: New file.
59693         * modules/unictype/property-bidi-control: New file.
59694         * modules/unictype/property-bidi-left-to-right: New file.
59695         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59696         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59697         * modules/unictype/property-bidi-european-digit: New file.
59698         * modules/unictype/property-bidi-eur-num-separator: New file.
59699         * modules/unictype/property-bidi-eur-num-terminator: New file.
59700         * modules/unictype/property-bidi-arabic-digit: New file.
59701         * modules/unictype/property-bidi-common-separator: New file.
59702         * modules/unictype/property-bidi-block-separator: New file.
59703         * modules/unictype/property-bidi-segment-separator: New file.
59704         * modules/unictype/property-bidi-whitespace: New file.
59705         * modules/unictype/property-bidi-non-spacing-mark: New file.
59706         * modules/unictype/property-bidi-boundary-neutral: New file.
59707         * modules/unictype/property-bidi-pdf: New file.
59708         * modules/unictype/property-bidi-embedding-or-override: New file.
59709         * modules/unictype/property-bidi-other-neutral: New file.
59710         * modules/unictype/property-hex-digit: New file.
59711         * modules/unictype/property-ascii-hex-digit: New file.
59712         * modules/unictype/property-ideographic: New file.
59713         * modules/unictype/property-unified-ideograph: New file.
59714         * modules/unictype/property-radical: New file.
59715         * modules/unictype/property-ids-binary-operator: New file.
59716         * modules/unictype/property-ids-trinary-operator: New file.
59717         * modules/unictype/property-zero-width: New file.
59718         * modules/unictype/property-space: New file.
59719         * modules/unictype/property-non-break: New file.
59720         * modules/unictype/property-iso-control: New file.
59721         * modules/unictype/property-format-control: New file.
59722         * modules/unictype/property-dash: New file.
59723         * modules/unictype/property-hyphen: New file.
59724         * modules/unictype/property-punctuation: New file.
59725         * modules/unictype/property-line-separator: New file.
59726         * modules/unictype/property-paragraph-separator: New file.
59727         * modules/unictype/property-quotation-mark: New file.
59728         * modules/unictype/property-sentence-terminal: New file.
59729         * modules/unictype/property-terminal-punctuation: New file.
59730         * modules/unictype/property-currency-symbol: New file.
59731         * modules/unictype/property-math: New file.
59732         * modules/unictype/property-other-math: New file.
59733         * modules/unictype/property-paired-punctuation: New file.
59734         * modules/unictype/property-left-of-pair: New file.
59735         * modules/unictype/property-combining: New file.
59736         * modules/unictype/property-composite: New file.
59737         * modules/unictype/property-decimal-digit: New file.
59738         * modules/unictype/property-numeric: New file.
59739         * modules/unictype/property-diacritic: New file.
59740         * modules/unictype/property-extender: New file.
59741         * modules/unictype/property-ignorable-control: New file.
59742         * modules/unictype/property-test: New file.
59743         * modules/unictype/property-byname: New file.
59744         * modules/unictype/property-all: New file.
59745         * modules/unictype/scripts: New file.
59746         * modules/unictype/scripts-all: New file.
59747         * modules/unictype/block-of: New file.
59748         * modules/unictype/block-test: New file.
59749         * modules/unictype/block-list: New file.
59750         * modules/unictype/block-all: New file.
59751         * modules/unictype/syntax-c-whitespace: New file.
59752         * modules/unictype/syntax-java-whitespace: New file.
59753         * modules/unictype/syntax-c-ident: New file.
59754         * modules/unictype/syntax-java-ident: New file.
59755         * modules/unictype/ctype-alnum: New file.
59756         * modules/unictype/ctype-alpha: New file.
59757         * modules/unictype/ctype-cntrl: New file.
59758         * modules/unictype/ctype-digit: New file.
59759         * modules/unictype/ctype-graph: New file.
59760         * modules/unictype/ctype-lower: New file.
59761         * modules/unictype/ctype-print: New file.
59762         * modules/unictype/ctype-punct: New file.
59763         * modules/unictype/ctype-space: New file.
59764         * modules/unictype/ctype-upper: New file.
59765         * modules/unictype/ctype-xdigit: New file.
59766         * modules/unictype/ctype-blank: New file.
59767         * lib/unictype/bidi_byname.c: New file.
59768         * lib/unictype/bidi_name.c: New file.
59769         * lib/unictype/bidi_of.c: New file.
59770         * lib/unictype/bidi_test.c: New file.
59771         * lib/unictype/bitmap.h: New file.
59772         * lib/unictype/block_test.c: New file.
59773         * lib/unictype/blocks.c: New file.
59774         * lib/unictype/categ_C.c: New file.
59775         * lib/unictype/categ_Cc.c: New file.
59776         * lib/unictype/categ_Cf.c: New file.
59777         * lib/unictype/categ_Cn.c: New file.
59778         * lib/unictype/categ_Co.c: New file.
59779         * lib/unictype/categ_Cs.c: New file.
59780         * lib/unictype/categ_L.c: New file.
59781         * lib/unictype/categ_Ll.c: New file.
59782         * lib/unictype/categ_Lm.c: New file.
59783         * lib/unictype/categ_Lo.c: New file.
59784         * lib/unictype/categ_Lt.c: New file.
59785         * lib/unictype/categ_Lu.c: New file.
59786         * lib/unictype/categ_M.c: New file.
59787         * lib/unictype/categ_Mc.c: New file.
59788         * lib/unictype/categ_Me.c: New file.
59789         * lib/unictype/categ_Mn.c: New file.
59790         * lib/unictype/categ_N.c: New file.
59791         * lib/unictype/categ_Nd.c: New file.
59792         * lib/unictype/categ_Nl.c: New file.
59793         * lib/unictype/categ_No.c: New file.
59794         * lib/unictype/categ_P.c: New file.
59795         * lib/unictype/categ_Pc.c: New file.
59796         * lib/unictype/categ_Pd.c: New file.
59797         * lib/unictype/categ_Pe.c: New file.
59798         * lib/unictype/categ_Pf.c: New file.
59799         * lib/unictype/categ_Pi.c: New file.
59800         * lib/unictype/categ_Po.c: New file.
59801         * lib/unictype/categ_Ps.c: New file.
59802         * lib/unictype/categ_S.c: New file.
59803         * lib/unictype/categ_Sc.c: New file.
59804         * lib/unictype/categ_Sk.c: New file.
59805         * lib/unictype/categ_Sm.c: New file.
59806         * lib/unictype/categ_So.c: New file.
59807         * lib/unictype/categ_Z.c: New file.
59808         * lib/unictype/categ_Zl.c: New file.
59809         * lib/unictype/categ_Zp.c: New file.
59810         * lib/unictype/categ_Zs.c: New file.
59811         * lib/unictype/categ_and.c: New file.
59812         * lib/unictype/categ_and_not.c: New file.
59813         * lib/unictype/categ_byname.c: New file.
59814         * lib/unictype/categ_name.c: New file.
59815         * lib/unictype/categ_none.c: New file.
59816         * lib/unictype/categ_of.c: New file.
59817         * lib/unictype/categ_or.c: New file.
59818         * lib/unictype/categ_test.c: New file.
59819         * lib/unictype/combining.c: New file.
59820         * lib/unictype/ctype_alnum.c: New file.
59821         * lib/unictype/ctype_alpha.c: New file.
59822         * lib/unictype/ctype_blank.c: New file.
59823         * lib/unictype/ctype_cntrl.c: New file.
59824         * lib/unictype/ctype_digit.c: New file.
59825         * lib/unictype/ctype_graph.c: New file.
59826         * lib/unictype/ctype_lower.c: New file.
59827         * lib/unictype/ctype_print.c: New file.
59828         * lib/unictype/ctype_punct.c: New file.
59829         * lib/unictype/ctype_space.c: New file.
59830         * lib/unictype/ctype_upper.c: New file.
59831         * lib/unictype/ctype_xdigit.c: New file.
59832         * lib/unictype/decdigit.c: New file.
59833         * lib/unictype/digit.c: New file.
59834         * lib/unictype/identsyntaxmap.h: New file.
59835         * lib/unictype/mirror.c: New file.
59836         * lib/unictype/numeric.c: New file.
59837         * lib/unictype/pr_alphabetic.c: New file.
59838         * lib/unictype/pr_ascii_hex_digit.c: New file.
59839         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59840         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59841         * lib/unictype/pr_bidi_block_separator.c: New file.
59842         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59843         * lib/unictype/pr_bidi_common_separator.c: New file.
59844         * lib/unictype/pr_bidi_control.c: New file.
59845         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59846         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59847         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59848         * lib/unictype/pr_bidi_european_digit.c: New file.
59849         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59850         * lib/unictype/pr_bidi_left_to_right.c: New file.
59851         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59852         * lib/unictype/pr_bidi_other_neutral.c: New file.
59853         * lib/unictype/pr_bidi_pdf.c: New file.
59854         * lib/unictype/pr_bidi_segment_separator.c: New file.
59855         * lib/unictype/pr_bidi_whitespace.c: New file.
59856         * lib/unictype/pr_byname.c: New file.
59857         * lib/unictype/pr_byname.gperf: New file.
59858         * lib/unictype/pr_combining.c: New file.
59859         * lib/unictype/pr_composite.c: New file.
59860         * lib/unictype/pr_currency_symbol.c: New file.
59861         * lib/unictype/pr_dash.c: New file.
59862         * lib/unictype/pr_decimal_digit.c: New file.
59863         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59864         * lib/unictype/pr_deprecated.c: New file.
59865         * lib/unictype/pr_diacritic.c: New file.
59866         * lib/unictype/pr_extender.c: New file.
59867         * lib/unictype/pr_format_control.c: New file.
59868         * lib/unictype/pr_grapheme_base.c: New file.
59869         * lib/unictype/pr_grapheme_extend.c: New file.
59870         * lib/unictype/pr_grapheme_link.c: New file.
59871         * lib/unictype/pr_hex_digit.c: New file.
59872         * lib/unictype/pr_hyphen.c: New file.
59873         * lib/unictype/pr_id_continue.c: New file.
59874         * lib/unictype/pr_id_start.c: New file.
59875         * lib/unictype/pr_ideographic.c: New file.
59876         * lib/unictype/pr_ids_binary_operator.c: New file.
59877         * lib/unictype/pr_ids_trinary_operator.c: New file.
59878         * lib/unictype/pr_ignorable_control.c: New file.
59879         * lib/unictype/pr_iso_control.c: New file.
59880         * lib/unictype/pr_join_control.c: New file.
59881         * lib/unictype/pr_left_of_pair.c: New file.
59882         * lib/unictype/pr_line_separator.c: New file.
59883         * lib/unictype/pr_logical_order_exception.c: New file.
59884         * lib/unictype/pr_lowercase.c: New file.
59885         * lib/unictype/pr_math.c: New file.
59886         * lib/unictype/pr_non_break.c: New file.
59887         * lib/unictype/pr_not_a_character.c: New file.
59888         * lib/unictype/pr_numeric.c: New file.
59889         * lib/unictype/pr_other_alphabetic.c: New file.
59890         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59891         * lib/unictype/pr_other_grapheme_extend.c: New file.
59892         * lib/unictype/pr_other_id_continue.c: New file.
59893         * lib/unictype/pr_other_id_start.c: New file.
59894         * lib/unictype/pr_other_lowercase.c: New file.
59895         * lib/unictype/pr_other_math.c: New file.
59896         * lib/unictype/pr_other_uppercase.c: New file.
59897         * lib/unictype/pr_paired_punctuation.c: New file.
59898         * lib/unictype/pr_paragraph_separator.c: New file.
59899         * lib/unictype/pr_pattern_syntax.c: New file.
59900         * lib/unictype/pr_pattern_white_space.c: New file.
59901         * lib/unictype/pr_private_use.c: New file.
59902         * lib/unictype/pr_punctuation.c: New file.
59903         * lib/unictype/pr_quotation_mark.c: New file.
59904         * lib/unictype/pr_radical.c: New file.
59905         * lib/unictype/pr_sentence_terminal.c: New file.
59906         * lib/unictype/pr_soft_dotted.c: New file.
59907         * lib/unictype/pr_space.c: New file.
59908         * lib/unictype/pr_terminal_punctuation.c: New file.
59909         * lib/unictype/pr_test.c: New file.
59910         * lib/unictype/pr_titlecase.c: New file.
59911         * lib/unictype/pr_unassigned_code_value.c: New file.
59912         * lib/unictype/pr_unified_ideograph.c: New file.
59913         * lib/unictype/pr_uppercase.c: New file.
59914         * lib/unictype/pr_variation_selector.c: New file.
59915         * lib/unictype/pr_white_space.c: New file.
59916         * lib/unictype/pr_xid_continue.c: New file.
59917         * lib/unictype/pr_xid_start.c: New file.
59918         * lib/unictype/pr_zero_width.c: New file.
59919         * lib/unictype/scripts.c: New file.
59920         * lib/unictype/sy_c_ident.c: New file.
59921         * lib/unictype/sy_c_whitespace.c: New file.
59922         * lib/unictype/sy_java_ident.c: New file.
59923         * lib/unictype/sy_java_whitespace.c: New file.
59924
59925         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59926         Unicode 5.0.0.
59927         * lib/unictype/blocks.h: Likewise.
59928         * lib/unictype/categ_C.h: Likewise.
59929         * lib/unictype/categ_Cc.h: Likewise.
59930         * lib/unictype/categ_Cf.h: Likewise.
59931         * lib/unictype/categ_Cn.h: Likewise.
59932         * lib/unictype/categ_Co.h: Likewise.
59933         * lib/unictype/categ_Cs.h: Likewise.
59934         * lib/unictype/categ_L.h: Likewise.
59935         * lib/unictype/categ_Ll.h: Likewise.
59936         * lib/unictype/categ_Lm.h: Likewise.
59937         * lib/unictype/categ_Lo.h: Likewise.
59938         * lib/unictype/categ_Lt.h: Likewise.
59939         * lib/unictype/categ_Lu.h: Likewise.
59940         * lib/unictype/categ_M.h: Likewise.
59941         * lib/unictype/categ_Mc.h: Likewise.
59942         * lib/unictype/categ_Me.h: Likewise.
59943         * lib/unictype/categ_Mn.h: Likewise.
59944         * lib/unictype/categ_N.h: Likewise.
59945         * lib/unictype/categ_Nd.h: Likewise.
59946         * lib/unictype/categ_Nl.h: Likewise.
59947         * lib/unictype/categ_No.h: Likewise.
59948         * lib/unictype/categ_P.h: Likewise.
59949         * lib/unictype/categ_Pc.h: Likewise.
59950         * lib/unictype/categ_Pd.h: Likewise.
59951         * lib/unictype/categ_Pe.h: Likewise.
59952         * lib/unictype/categ_Pf.h: Likewise.
59953         * lib/unictype/categ_Pi.h: Likewise.
59954         * lib/unictype/categ_Po.h: Likewise.
59955         * lib/unictype/categ_Ps.h: Likewise.
59956         * lib/unictype/categ_S.h: Likewise.
59957         * lib/unictype/categ_Sc.h: Likewise.
59958         * lib/unictype/categ_Sk.h: Likewise.
59959         * lib/unictype/categ_Sm.h: Likewise.
59960         * lib/unictype/categ_So.h: Likewise.
59961         * lib/unictype/categ_Z.h: Likewise.
59962         * lib/unictype/categ_Zl.h: Likewise.
59963         * lib/unictype/categ_Zp.h: Likewise.
59964         * lib/unictype/categ_Zs.h: Likewise.
59965         * lib/unictype/categ_of.h: Likewise.
59966         * lib/unictype/combining.h: Likewise.
59967         * lib/unictype/ctype_alnum.h: Likewise.
59968         * lib/unictype/ctype_alpha.h: Likewise.
59969         * lib/unictype/ctype_blank.h: Likewise.
59970         * lib/unictype/ctype_cntrl.h: Likewise.
59971         * lib/unictype/ctype_digit.h: Likewise.
59972         * lib/unictype/ctype_graph.h: Likewise.
59973         * lib/unictype/ctype_lower.h: Likewise.
59974         * lib/unictype/ctype_print.h: Likewise.
59975         * lib/unictype/ctype_punct.h: Likewise.
59976         * lib/unictype/ctype_space.h: Likewise.
59977         * lib/unictype/ctype_upper.h: Likewise.
59978         * lib/unictype/ctype_xdigit.h: Likewise.
59979         * lib/unictype/decdigit.h: Likewise.
59980         * lib/unictype/digit.h: Likewise.
59981         * lib/unictype/mirror.h: Likewise.
59982         * lib/unictype/numeric.h: Likewise.
59983         * lib/unictype/pr_alphabetic.h: Likewise.
59984         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59985         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59986         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59987         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59988         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59989         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59990         * lib/unictype/pr_bidi_control.h: Likewise.
59991         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59992         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59993         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59994         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59995         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59996         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59997         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59998         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59999         * lib/unictype/pr_bidi_pdf.h: Likewise.
60000         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60001         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60002         * lib/unictype/pr_combining.h: Likewise.
60003         * lib/unictype/pr_composite.h: Likewise.
60004         * lib/unictype/pr_currency_symbol.h: Likewise.
60005         * lib/unictype/pr_dash.h: Likewise.
60006         * lib/unictype/pr_decimal_digit.h: Likewise.
60007         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60008         * lib/unictype/pr_deprecated.h: Likewise.
60009         * lib/unictype/pr_diacritic.h: Likewise.
60010         * lib/unictype/pr_extender.h: Likewise.
60011         * lib/unictype/pr_format_control.h: Likewise.
60012         * lib/unictype/pr_grapheme_base.h: Likewise.
60013         * lib/unictype/pr_grapheme_extend.h: Likewise.
60014         * lib/unictype/pr_grapheme_link.h: Likewise.
60015         * lib/unictype/pr_hex_digit.h: Likewise.
60016         * lib/unictype/pr_hyphen.h: Likewise.
60017         * lib/unictype/pr_id_continue.h: Likewise.
60018         * lib/unictype/pr_id_start.h: Likewise.
60019         * lib/unictype/pr_ideographic.h: Likewise.
60020         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60021         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60022         * lib/unictype/pr_ignorable_control.h: Likewise.
60023         * lib/unictype/pr_iso_control.h: Likewise.
60024         * lib/unictype/pr_join_control.h: Likewise.
60025         * lib/unictype/pr_left_of_pair.h: Likewise.
60026         * lib/unictype/pr_line_separator.h: Likewise.
60027         * lib/unictype/pr_logical_order_exception.h: Likewise.
60028         * lib/unictype/pr_lowercase.h: Likewise.
60029         * lib/unictype/pr_math.h: Likewise.
60030         * lib/unictype/pr_non_break.h: Likewise.
60031         * lib/unictype/pr_not_a_character.h: Likewise.
60032         * lib/unictype/pr_numeric.h: Likewise.
60033         * lib/unictype/pr_other_alphabetic.h: Likewise.
60034         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60035         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60036         * lib/unictype/pr_other_id_continue.h: Likewise.
60037         * lib/unictype/pr_other_id_start.h: Likewise.
60038         * lib/unictype/pr_other_lowercase.h: Likewise.
60039         * lib/unictype/pr_other_math.h: Likewise.
60040         * lib/unictype/pr_other_uppercase.h: Likewise.
60041         * lib/unictype/pr_paired_punctuation.h: Likewise.
60042         * lib/unictype/pr_paragraph_separator.h: Likewise.
60043         * lib/unictype/pr_pattern_syntax.h: Likewise.
60044         * lib/unictype/pr_pattern_white_space.h: Likewise.
60045         * lib/unictype/pr_private_use.h: Likewise.
60046         * lib/unictype/pr_punctuation.h: Likewise.
60047         * lib/unictype/pr_quotation_mark.h: Likewise.
60048         * lib/unictype/pr_radical.h: Likewise.
60049         * lib/unictype/pr_sentence_terminal.h: Likewise.
60050         * lib/unictype/pr_soft_dotted.h: Likewise.
60051         * lib/unictype/pr_space.h: Likewise.
60052         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60053         * lib/unictype/pr_titlecase.h: Likewise.
60054         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60055         * lib/unictype/pr_unified_ideograph.h: Likewise.
60056         * lib/unictype/pr_uppercase.h: Likewise.
60057         * lib/unictype/pr_variation_selector.h: Likewise.
60058         * lib/unictype/pr_white_space.h: Likewise.
60059         * lib/unictype/pr_xid_continue.h: Likewise.
60060         * lib/unictype/pr_xid_start.h: Likewise.
60061         * lib/unictype/pr_zero_width.h: Likewise.
60062         * lib/unictype/scripts.h: Likewise.
60063         * lib/unictype/scripts_byname.gperf: Likewise.
60064         * lib/unictype/sy_c_ident.h: Likewise.
60065         * lib/unictype/sy_c_whitespace.h: Likewise.
60066         * lib/unictype/sy_java_ident.h: Likewise.
60067         * lib/unictype/sy_java_whitespace.h: Likewise.
60068
60069         * lib/unictype/Makefile: New file.
60070         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60071         glibc.
60072         * lib/unictype/3level.h: New file, copied from glibc.
60073         * lib/unictype/3levelbit.h: New file.
60074
60075 2007-11-11  Bruno Haible  <bruno@clisp.org>
60076
60077         * modules/gperf: New file.
60078         * modules/iconv_open (Depends-on): Add it.
60079         (Makefile.am): Remove the GPERF definition.
60080
60081 2007-11-11  Bruno Haible  <bruno@clisp.org>
60082
60083         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60084         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60085
60086 2007-11-11  Bruno Haible  <bruno@clisp.org>
60087
60088         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60089         (usage): Remove function.
60090
60091 2007-11-11  Bruno Haible  <bruno@clisp.org>
60092
60093         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60094         gl_FUNC_CEILF_LIBS.
60095         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60096         gl_FUNC_CEIL_LIBS.
60097         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60098         gl_FUNC_CEILL_LIBS.
60099         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60100         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60101         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60102
60103 2007-11-11  Bruno Haible  <bruno@clisp.org>
60104
60105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60106         roundf were declared but do not exist on functions.
60107         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60108         roundl were declared but do not exist on functions.
60109         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60110         HAVE_FLOORL_AND_CEILL, respectively.
60111         Needed for Sun C on Solaris 10.
60112
60113 2007-11-11  Bruno Haible  <bruno@clisp.org>
60114
60115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60116         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60117         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60118         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60119         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60120         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60121         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60122         HAVE_DECL_ROUNDF.
60123         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60124         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60126         of HAVE_DECL_ROUND*.
60127         * modules/math (Makefile.am): Update.
60128
60129 2007-11-10  Bruno Haible  <bruno@clisp.org>
60130
60131         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60132         ptrdiff_t as m4/intl.m4.
60133
60134 2007-11-10  Jim Meyering  <meyering@redhat.com>
60135
60136         Avoid link failure for the argmatch test.
60137         * tests/test-argmatch.c (usage): Define function to avoid a link
60138         failure: argmatch_die requires a usage function.
60139
60140 2007-11-09  Bruno Haible  <bruno@clisp.org>
60141
60142         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60143         * doc/functions/vsnprintf.texi: Likewise.
60144         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60145         with a size argument < 2.
60146
60147 2007-11-09  Bruno Haible  <bruno@clisp.org>
60148
60149         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60150         buffer. Fixes an inefficiency introduced on 2007-11-03.
60151
60152 2007-11-09  Bruno Haible  <bruno@clisp.org>
60153
60154         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60155         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60156
60157 2007-11-08  Jim Meyering  <meyering@redhat.com>
60158
60159         Change cache variable name prefix "jm_" to "gl_" everywhere.
60160         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60161         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60162         * m4/uptime.m4: s/gl_/jm_/
60163
60164 2007-11-07  Bruno Haible  <bruno@clisp.org>
60165
60166         Update to GNU gettext 0.17.
60167         * m4/intl.m4: Update to GNU gettext 0.17.
60168         * m4/po.m4: Likewise.
60169         * modules/gettext (Files): Remove m4/ulonglong.m4.
60170         (configure.ac): Require gettext infrastructure from version 0.17.
60171
60172 2007-11-06  Bruno Haible  <bruno@clisp.org>
60173
60174         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60175         symbolic values are not defined in a public header.
60176         * lib/freadable.c (freadable) [QNX]: Likewise.
60177         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60178         * lib/freading.c (freading) [QNX]: Likewise.
60179         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60180         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60181         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60182         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60183         Reported by Alain Magloire.
60184
60185         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60186
60187 2007-11-05  Bruno Haible  <bruno@clisp.org>
60188
60189         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60190         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60191         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60192         Reported by Eric Blake.
60193
60194 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60195             Bruno Haible  <bruno@clisp.org>
60196
60197         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60198         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60199         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60200         (malloc): Undefine also before including <stdlib.h>.
60201         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60202         Needed on OSF/1 4.0.
60203
60204 2007-11-05  Jim Meyering  <meyering@redhat.com>
60205
60206         git-version-gen: sync from coreutils.
60207         * build-aux/git-version-gen: Add comments.
60208         Change the first '-' to '.' in the snapshot version string,
60209         e.g., 6.9-377-08144 -> 6.9.377-08144
60210         Remove first parameter.
60211         Don't declare a version "-dirty" merely because a time
60212         stamp has changed.
60213
60214 2007-11-04  Bruno Haible  <bruno@clisp.org>
60215
60216         * lib/lock.h: Protect all macro definitions containing an 'if'
60217         statement through a "do { ... } while (0)".
60218         * lib/tls.h: Likewise.
60219
60220 2007-11-04  Bruno Haible  <bruno@clisp.org>
60221
60222         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60223
60224 2007-11-04  Bruno Haible  <bruno@clisp.org>
60225
60226         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60227         * modules/fprintf-posix (Depends-on): Add nocrash.
60228         * modules/snprintf-posix (Depends-on): Likewise.
60229         * modules/sprintf-posix (Depends-on): Likewise.
60230         * modules/vasnprintf-posix (Depends-on): Likewise.
60231         * modules/vasprintf-posix (Depends-on): Likewise.
60232         * modules/vfprintf-posix (Depends-on): Likewise.
60233         * modules/vsnprintf-posix (Depends-on): Likewise.
60234         * modules/vsprintf-posix (Depends-on): Likewise.
60235         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60236         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60237         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60238         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60239         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60240         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60241         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60242
60243 2007-11-04  Bruno Haible  <bruno@clisp.org>
60244
60245         * modules/nocrash: New file.
60246         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60247         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60248
60249 2007-11-04  Bruno Haible  <bruno@clisp.org>
60250
60251         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60252         precision handling.
60253         * tests/test-vasprintf-posix.c (test_function): Likewise.
60254         * tests/test-snprintf-posix.h (test_function): Likewise.
60255         * tests/test-sprintf-posix.h (test_function): Likewise.
60256
60257         Fix *printf behaviour for large precisions on mingw and BeOS.
60258         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60259         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60261         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60262         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60263         gl_PRINTF_PRECISION and test its result. Invoke
60264         gl_PREREQ_VASNPRINTF_PRECISION.
60265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60266         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60267         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60268         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60269         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60270         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60271         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60272         * doc/functions/fprintf.texi: Update.
60273         * doc/functions/printf.texi: Update.
60274         * doc/functions/snprintf.texi: Update.
60275         * doc/functions/sprintf.texi: Update.
60276         * doc/functions/vfprintf.texi: Update.
60277         * doc/functions/vprintf.texi: Update.
60278         * doc/functions/vsnprintf.texi: Update.
60279         * doc/functions/vsprintf.texi: Update.
60280
60281 2007-11-04  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60284
60285 2007-11-04  Bruno Haible  <bruno@clisp.org>
60286
60287         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60288         Reported by Sylvain Beucler <beuc@gnu.org>.
60289
60290 2007-11-03  Bruno Haible  <bruno@clisp.org>
60291
60292         * tests/test-fprintf-posix2.sh: New file.
60293         * tests/test-fprintf-posix2.c: New file.
60294         * modules/fprintf-posix-tests (Files): Add them.
60295         (TESTS): Add test-fprintf-posix2.sh.
60296         (configure.ac): Check for getrlimit and setrlimit.
60297         (check_PROGRAMS): Add test-fprintf-posix2.
60298
60299         * tests/test-printf-posix2.sh: New file.
60300         * tests/test-printf-posix2.c: New file.
60301         * modules/printf-posix-tests (Files): Add them.
60302         (TESTS): Add test-printf-posix2.sh.
60303         (configure.ac): Check for getrlimit and setrlimit.
60304         (check_PROGRAMS): Add test-printf-posix2.
60305
60306         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60307         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60308         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60309         (decode_double): New function, copied from decode_long_double.
60310         (scale10_round_decimal_decoded): New function, extracted from
60311         scale10_round_decimal_long_double.
60312         (scale10_round_decimal_long_double): Use it.
60313         (scale10_round_decimal_double): New function.
60314         (floorlog10): New function.
60315         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60317         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60318         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60319         gl_PRINTF_ENOMEM and test its result. Invoke
60320         gl_PREREQ_VASNPRINTF_ENOMEM.
60321         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60322         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60323         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60324         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60325         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60327         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60328         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60329         * modules/snprintf-posix (Depends-on): Likewise.
60330         * modules/sprintf-posix (Depends-on): Likewise.
60331         * modules/vasnprintf-posix (Depends-on): Likewise.
60332         * modules/vasprintf-posix (Depends-on): Likewise.
60333         * modules/vfprintf-posix (Depends-on): Likewise.
60334         * modules/vsnprintf-posix (Depends-on): Likewise.
60335         * modules/vsprintf-posix (Depends-on): Likewise.
60336         * doc/functions/fprintf.texi: Update.
60337         * doc/functions/printf.texi: Update.
60338         * doc/functions/snprintf.texi: Update.
60339         * doc/functions/sprintf.texi: Update.
60340         * doc/functions/vfprintf.texi: Update.
60341         * doc/functions/vprintf.texi: Update.
60342         * doc/functions/vsnprintf.texi: Update.
60343         * doc/functions/vsprintf.texi: Update.
60344
60345 2007-11-03  Bruno Haible  <bruno@clisp.org>
60346
60347         * modules/frexp-nolibm-tests: New file.
60348
60349         * modules/frexp-nolibm: New file.
60350         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60351
60352 2007-11-03  Bruno Haible  <bruno@clisp.org>
60353
60354         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60355         value is C99 compliant.
60356         Needed for OSF/1 5.1.
60357
60358 2007-11-03  Bruno Haible  <bruno@clisp.org>
60359
60360         Fix out-of-memory handling of vasnprintf.
60361         * lib/printf-parse.c: Include <errno.h>.
60362         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60363         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60364         is already set.
60365
60366 2007-11-02  Eric Blake  <ebb9@byu.net>
60367
60368         Fix tests on cygwin.
60369         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60370
60371 2007-11-01  Bruno Haible  <bruno@clisp.org>
60372
60373         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60374         warning.
60375         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60376         needed for POSIX compatibility.
60377
60378 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60379
60380         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60381         for compatibility with GNU.
60382
60383 2007-11-01  Bruno Haible  <bruno@clisp.org>
60384
60385         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60386         (putenv): Renamed from rpl_putenv. Change argument type from
60387         'const char *' to 'char *'.
60388         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60389         of defining putenv in config.h, just set REPLACE_PUTENV.
60390         * modules/putenv (Depends-on): Add stdlib.
60391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60392         (Include): Use <stdlib.h>.
60393         * lib/stdlib.in.h (putenv): New declaration.
60394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60395         REPLACE_PUTENV.
60396         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60397         REPLACE_PUTENV.
60398         Needed for MacOS X 10.5.0.
60399         Reported by Peter O'Gorman <peter@pogma.com>.
60400
60401 2007-11-01  Jim Meyering  <meyering@redhat.com>
60402
60403         Treat an empty date string exactly like "0".
60404         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60405         if the remaining date string (to be parsed) is empty, use "0".
60406         Reported by Mischa Molhoek and discussed in this thread:
60407         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60408
60409 2007-10-31  Bruno Haible  <bruno@clisp.org>
60410
60411         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60412         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60413         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60414         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60415         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60416         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60417
60418 2007-10-31  Bruno Haible  <bruno@clisp.org>
60419
60420         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60421         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60422         (AC_TYPE_LONG_LONG_INT): Use it.
60423         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60424         it as well.
60425         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60426         to m4/longlong.m4.
60427         * modules/stdint (Files): Remove m4/ulonglong.m4.
60428         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60429         m4/ulonglong.m4.
60430         * modules/strtoumax (Files): Likewise.
60431
60432 2007-10-30  Bruno Haible  <bruno@clisp.org>
60433
60434         * modules/xvasprintf-posix: New file.
60435         Suggested by Eric Blake.
60436
60437 2007-10-30  Bruno Haible  <bruno@clisp.org>
60438
60439         * modules/xprintf-posix-tests: New file.
60440         * tests/test-xprintf-posix.sh: New file.
60441         * tests/test-xprintf-posix.c: New file.
60442         * tests/test-xfprintf-posix.c: New file.
60443
60444         * modules/xprintf-posix: New file.
60445
60446 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60447
60448         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60449         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60450         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60451
60452 2007-10-29  Bruno Haible  <bruno@clisp.org>
60453
60454         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60455         contain the special marker '_cv_'.
60456         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60457         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60458         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60459         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60460         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60461         Reported by Ralf Wildenhues.
60462
60463 2007-10-29  Bruno Haible  <bruno@clisp.org>
60464
60465         * gnulib-tool (func_import): When --lgpl is not specified, set
60466         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60467         GPLv3.
60468         Reported by Simon Josefsson.
60469
60470 2007-10-28  Bruno Haible  <bruno@clisp.org>
60471
60472         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60473         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60474         HAVE_DECL_ISFINITE.
60475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60476         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60477         HAVE_DECL_ISFINITE.
60478
60479 2007-10-28  Bruno Haible  <bruno@clisp.org>
60480
60481         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60482         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60483
60484 2007-10-28  Bruno Haible  <bruno@clisp.org>
60485
60486         Fix link errors with Sun C 5.0 on Solaris 10.
60487         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60488         function is declared but not present in the compiler's libm.
60489         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60490         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60491         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60492         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60493         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60494         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60495         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60497         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60498         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60499         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60500         HAVE_DECL_FLOORL.
60501
60502 2007-10-28  Bruno Haible  <bruno@clisp.org>
60503
60504         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60505         gl_FUNC_FLOORL. Cache the result.
60506         (gl_FUNC_FLOORL): Use it.
60507         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60508         gl_FUNC_CEILL. Cache the result.
60509         (gl_FUNC_CEILL): Use it.
60510
60511         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60512         gl_FUNC_FLOOR. Cache the result.
60513         (gl_FUNC_FLOOR): Use it.
60514         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60515         gl_FUNC_CEIL. Cache the result.
60516         (gl_FUNC_CEIL): Use it.
60517
60518         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60519         gl_FUNC_FLOORF. Cache the result.
60520         (gl_FUNC_FLOORF): Use it.
60521         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60522         gl_FUNC_CEILF. Cache the result.
60523         (gl_FUNC_CEILF): Use it.
60524
60525 2007-10-28  Bruno Haible  <bruno@clisp.org>
60526
60527         * gnulib-tool: Allow specifying the LGPL version number through
60528         --lgpl=2 or --lgpl=3.
60529         (func_usage): Document --lgpl with argument.
60530         Handle --lgpl=... arguments.
60531         (func_import): Recognize also gl_LGPL calls with an argument. When
60532         --lgpl=2 is used and the module's license is just LGPL, report an
60533         error. Set sed_transform_lib_file according to the lgpl variable. In
60534         the generated files, use --lgpl or gl_LGPL invocations with argument,
60535         if necessary.
60536         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60537         an LGPv2+ license.
60538         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60539         gl_LGPL macro.
60540
60541 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60542             Bruno Haible  <bruno@clisp.org>
60543
60544         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60545         (u16_uctomb_aux): Likewise.
60546         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60547         !HAVE_INLINE.
60548         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60549
60550 2007-10-28  Bruno Haible  <bruno@clisp.org>
60551
60552         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60553         Invoke AM_GETTEXT_OPTION if it exists.
60554         * modules/vasprintf: Likewise.
60555         * modules/verror: Likewise.
60556         * modules/xprintf: Likewise.
60557         * modules/xvasprintf: Likewise.
60558
60559 2007-10-27  Ben Pfaff  <blp@gnu.org>
60560
60561         * lib/math.in.h: Define isfinite macro and prototypes for
60562         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60563         implementations.
60564         * m4/math_h.m4: New substitutions for isfinite module.
60565         * lib/isfinite.c: New file.
60566         * m4/isfinite.m4: New file.
60567         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60568         * modules/isfinite: New file.
60569         * modules/isfinite-tests: New file.
60570         * tests/tests-isfinite.c: New file.
60571         * doc/functions/isfinite.texi: Mention isfinite module.
60572         * MODULES.html.sh: Mention new module.
60573
60574 2007-10-27  Ben Pfaff  <blp@gnu.org>
60575
60576         Ralf Wildenhues reported that Tru64 4.0D declares the round
60577         functions but does not have definitions.
60578         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60579         cannot be found in any library, set the output variable to
60580         "missing" instead of "".
60581         * m4/round.m4: Also use our substitute if we cannot find round in
60582         any library, even if it is declared.
60583         * m4/roundf.m4: Likewise for roundf.
60584         * m4/roundl.m4: Likewise for roundl.
60585         * lib/math.in.h: Undefine roundf, round, roundl before defining
60586         their replacements, to allow for hypothetical systems where these
60587         may be defined as macros but not available in libraries.
60588
60589 2007-10-27  Bruno Haible  <bruno@clisp.org>
60590
60591         * doc/gnulib.texi: Invoke @firstparagraphindent.
60592         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60593         changes in gnulib.
60594         (Source changes): New section.
60595
60596 2007-10-26  Bruno Haible  <bruno@clisp.org>
60597
60598         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60599         borrowed from autoconf.
60600
60601 2007-10-26  Bruno Haible  <bruno@clisp.org>
60602
60603         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60604         strerror returned the empty string. Needed on HP-UX 11.00.
60605
60606 2007-10-24  Micah Cowan  <micah@cowan.name>
60607
60608         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60609         * build-aux/bootstrap: Remove support for now-unnecessary option,
60610         --cvs-user, and envvars CVS_USER, CVS_RSH.
60611
60612 2007-10-24  Jim Meyering  <meyering@redhat.com>
60613
60614         Avoid diagnostics from sha1sum when there is no cached checksum.
60615         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60616         if the po.s1 file hasn't been created yet.
60617
60618         * build-aux/bootstrap: Sync from coreutils:
60619         2007-10-24  Jim Meyering  <meyering@redhat.com>
60620         Get gnulib from the git repository, not from an obsolete cvs one.
60621         * build-aux/bootstrap: Suggestion from Micah Cowan.
60622         2007-10-04  Jim Meyering  <jim@meyering.net>
60623         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60624         (update_po_files): Work also when there are no .po files in po/.
60625
60626 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60627
60628         * README: Append ".git" to git and cg examples.
60629         Problem reported by Benoit Sigoure.
60630
60631 2007-10-23  Micah Cowan  <micah@cowan.name>
60632
60633         * users.txt: Add wget.
60634
60635 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60636
60637         Fix linking of some unistdio tests on FreeBSD.
60638         * modules/unistdio/u16-vsnprintf-tests
60639         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60640         * modules/unistdio/u16-vsprintf-tests
60641         (test_u16_vsnprintf1_LDADD): Likewise.
60642         * modules/unistdio/u32-vsnprintf-tests
60643         (test_u32_vsnprintf1_LDADD): Likewise.
60644         * modules/unistdio/u32-vsprintf-tests
60645         (test_u32_vsprintf1_LDADD): Likewise.
60646         * modules/unistdio/u8-vsnprintf-tests
60647         (test_u8_vsnprintf1_LDADD): Likewise.
60648         * modules/unistdio/u8-vsprintf-tests
60649         (test_u8_vsprintf1_LDADD): Likewise.
60650         * modules/unistdio/ulc-vsnprintf-tests
60651         (test_ulc_vsnprintf1_LDADD): Likewise.
60652         * modules/unistdio/ulc-vsprintf-tests
60653         (test_ulc_vsprintf1_LDADD): Likewise.
60654
60655         Fix linking of some uniconv tests on FreeBSD.
60656         * modules/uniconv/u16-conv-from-enc-tests
60657         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60658         * modules/uniconv/u16-conv-to-enc-tests
60659         (test_u16_conv_to_enc_LDADD): Likewise.
60660         * modules/uniconv/u16-strconv-from-enc-tests
60661         (test_u16_strconv_from_enc_LDADD): Likewise.
60662         * modules/uniconv/u16-strconv-to-enc-tests
60663         (test_u16_strconv_to_enc_LDADD): Likewise.
60664         * modules/uniconv/u32-conv-from-enc-tests
60665         (test_u32_conv_from_enc_LDADD): Likewise.
60666         * modules/uniconv/u32-conv-to-enc-tests
60667         (test_u32_conv_to_enc_LDADD): Likewise.
60668         * modules/uniconv/u32-strconv-from-enc-tests
60669         (test_u32_strconv_from_enc_LDADD): Likewise.
60670         * modules/uniconv/u32-strconv-to-enc-tests
60671         (test_u32_strconv_to_enc_LDADD): Likewise.
60672         * modules/uniconv/u8-conv-from-enc-tests
60673         (test_u8_conv_from_enc_LDADD): Likewise.
60674         * modules/uniconv/u8-conv-to-enc-tests
60675         (test_u8_conv_to_enc_LDADD): Likewise.
60676         * modules/uniconv/u8-strconv-from-enc-tests
60677         (test_u8_strconv_from_enc_LDADD): Likewise.
60678         * modules/uniconv/u8-strconv-to-enc-tests
60679         (test_u8_strconv_to_enc_LDADD): Likewise.
60680
60681 2007-10-22  Bruno Haible  <bruno@clisp.org>
60682
60683         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60684         size.
60685
60686 2007-10-22  Eric Blake  <ebb9@byu.net>
60687
60688         Tweak x*printf documentation.
60689         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60690         variable name and comments.
60691         Suggested by Bruno Haible.
60692
60693 2007-10-22  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/acl.c (copy_acl): Fix file name in comment.
60696
60697 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60698
60699         Fix Tru64 problem with stdbool.h.
60700         * lib/stdbool.in.h (false, true):
60701         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60702         Don't declare as an enum in this situation; it runs afoul of Tru64.
60703         Problem reported by Steven M. Schweda in
60704         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60705
60706 2007-10-22  Eric Blake  <ebb9@byu.net>
60707
60708         Also wrap vf?printf.
60709         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60710         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60711         (xvprintf, xvfprintf): New functions.
60712
60713 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60714
60715         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60716         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60717
60718         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60719         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60720
60721 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60722
60723         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60724         by Bruno Haible.
60725
60726 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60727
60728         * lib/getloadavg.c
60729         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60730         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60731
60732         * tests/test-i-ring.c: Work for C89.
60733
60734 2007-10-22  Bruno Haible  <bruno@clisp.org>
60735
60736         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60737         -1u, in preprocessor expression, so that we don't test for the bug
60738         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60740
60741 2007-10-22  Eric Blake  <ebb9@byu.net>
60742
60743         * tests/test-yesno.sh: Silence stderr during test.
60744
60745 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60746
60747         * modules/crypto/gc-camellia: New file.
60748
60749         * m4/gc-camellia.m4: New file.
60750
60751         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60752
60753         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60754
60755 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60756
60757         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60758         --help to stdout.  Reported by sms@antinode.org (Steven
60759         M. Schweda).
60760
60761 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60762
60763         * users.txt: Fix link to libksba.
60764
60765 2007-10-21  Ben Pfaff  <blp@gnu.org>
60766
60767         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60768         round.c roundf implementation that depends on floorf and ceilf to
60769         be tested unconditionally.
60770
60771 2007-10-21  Ben Pfaff  <blp@gnu.org>
60772
60773         * m4/check-libm-func.m4: Removed.
60774         * m4/check-math-lib.m4: New file.
60775         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60776         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60777         definition and lack of AC_LIBOBJ([roundf]).
60778         * m4/roundl.m4: Ditto, and similarly for roundl.
60779         * modules/round: Reference new m4 file.
60780         * modules/roundf: Ditto.
60781         * modules/roundl: Ditto.
60782         * tests/test-round2.c (main): Use ROUND instead of round.
60783         Bug report from Bruno Haible.
60784
60785 2007-10-21  Bruno Haible  <bruno@clisp.org>
60786
60787         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60788         context.
60789
60790 2007-10-21  Bruno Haible  <bruno@clisp.org>
60791
60792         * tests/test-wcwidth.c (main): Allow negative result for some control
60793         characters.
60794
60795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60796         Needed on OSF/1 5.1.
60797
60798 2007-10-21  Bruno Haible  <bruno@clisp.org>
60799
60800         * tests/test-floorf1.c: Include isnanf.h.
60801         (main): Use isnanf() instead of isnan().
60802         * tests/test-ceilf1.c: Include isnanf.h.
60803         (main): Use isnanf() instead of isnan().
60804         * tests/test-truncf1.c: Include isnanf.h.
60805         (main): Use isnanf() instead of isnan().
60806         * tests/test-roundf1.c: Include isnanf.h.
60807         (main): Use isnanf() instead of isnan().
60808
60809 2007-10-21  Eric Blake  <ebb9@byu.net>
60810
60811         * users.txt: Update URL for m4.
60812
60813 2007-10-21  Bruno Haible  <bruno@clisp.org>
60814
60815         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60816
60817 2007-10-21  Bruno Haible  <bruno@clisp.org>
60818
60819         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60820         Git's management files if the CVS files are not present.
60821
60822 2007-10-20  Bruno Haible  <bruno@clisp.org>
60823
60824         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60825         gcc-3.4.x.
60826
60827 2007-10-20  Ben Pfaff  <blp@gnu.org>
60828
60829         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60830         implementations.
60831         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60832         * lib/round.c: New file.
60833         * lib/roundf.c: New file.
60834         * lib/roundl.c: New file.
60835         * m4/round.m4: New file.
60836         * m4/roundf.m4: New file.
60837         * m4/roundl.m4: New file.
60838         * m4/check-libm-func-m4: New file.
60839         * modules/math: Replace round, roundf, roundl related @VARS@ in
60840         math.in.h.
60841         * modules/round: New file.
60842         * modules/round-tests: New file.
60843         * modules/roundf: New file.
60844         * modules/roundf-tests: New file.
60845         * modules/roundl: New file.
60846         * modules/roundl-tests: New file.
60847         * tests/test-round1.c: New file.
60848         * tests/test-round2.c: New file.
60849         * tests/test-roundf1.c: New file.
60850         * tests/test-roundf2.c: New file.
60851         * tests/test-roundl.c: New file.
60852         * doc/functions/round.texi: Mention round module.
60853         * doc/functions/roundf.texi: Mention roundf module.
60854         * doc/functions/roundl.texi: Mention roundl module.
60855         * MODULES.html.sh: Mention new modules.
60856         Thanks to Bruno Haible for suggestions.
60857
60858 2007-10-20  Jim Meyering  <meyering@redhat.com>
60859
60860         * lib/xprintf.c: Include <config.h> unconditionally.
60861
60862         Change xprintf's license to GPL.
60863         * modules/xprintf (License): s/LGPL/GPL/, since this module
60864         depends on modules (exit and exitfail) which are GPL.
60865         Suggestion from Bruno Haible.
60866
60867         xprintf fixes.
60868         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60869         Use a clearer diagnostic.
60870         Patch from Bruno Haible.
60871
60872 2007-10-20  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60875         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60877
60878 2007-10-20  Bruno Haible  <bruno@clisp.org>
60879
60880         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60881         precision in the comparison result > x - 1 or similar.
60882         * tests/test-ceilf2.c (correct_result_p): Likewise.
60883         * tests/test-truncf2.c (correct_result_p): Likewise.
60884         * tests/test-trunc2.c (correct_result_p): Likewise.
60885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60886
60887 2007-10-20  Bruno Haible  <bruno@clisp.org>
60888
60889         * modules/ceil: New file.
60890         * m4/ceil.m4: New file.
60891         * doc/functions/ceil.texi: Mention the 'ceil' module.
60892
60893 2007-10-20  Bruno Haible  <bruno@clisp.org>
60894
60895         * modules/floor: New file.
60896         * m4/floor.m4: New file.
60897         * doc/functions/floor.texi: Mention the 'floor' module.
60898
60899 2007-10-20  Bruno Haible  <bruno@clisp.org>
60900
60901         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60902         of %a.
60903         * modules/floorf-tests (Depends-on): Likewise.
60904         * modules/truncf-tests (Depends-on): Likewise.
60905         * modules/trunc-tests (Depends-on): Likewise.
60906         Reported by Ben Pfaff.
60907
60908 2007-10-19  Jim Meyering  <meyering@redhat.com>
60909
60910         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60911         Don't bother testing specific errno values.  Just test ferror.
60912
60913         New module: xprintf
60914         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60915
60916 2007-10-19  Bruno Haible  <bruno@clisp.org>
60917
60918         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60919         syntax.
60920         * modules/javaexec (Makefile.am): Likewise.
60921         * modules/relocatable-prog (Makefile.am): Likewise.
60922         Suggested by Jim Meyering.
60923
60924 2007-10-18  Bruno Haible  <bruno@clisp.org>
60925
60926         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60927         Reported by Jim Meyering.
60928
60929 2007-10-18  Eric Blake  <ebb9@byu.net>
60930
60931         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60932
60933 2007-10-18  Bruno Haible  <bruno@clisp.org>
60934
60935         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60936         the format string into writable memory. Needed in Fortify conditions.
60937
60938 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60939             Bruno Haible  <bruno@clisp.org>
60940
60941         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60942         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60943         * modules/trim (Depends-on): Add mbchar.
60944         (configure.ac): Add gl_FUNC_MBRTOWC.
60945         (Makefile.am): Augment lib_SOURCES.
60946
60947 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60948
60949         Modify glob.c to use fstatat and dirfd, to simplify it.
60950         Suggested by Eric Blake.
60951         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60952         Don't include <stdbool.h>; not used.
60953         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60954         (link_exists_p): Simplify implementation, since we can now assume
60955         dirfd and fstatat.
60956         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60957
60958 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60959
60960         * gnulib-tool (func_get_dependencies): Fix sed script to
60961         match only tests.
60962
60963 2007-10-17  Bruno Haible  <bruno@clisp.org>
60964
60965         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60966         allow locale names without encoding suffix.
60967         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60968         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60969
60970 2007-10-16  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60973         * lib/getgroups.c (getgroups): Likewise.
60974         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60975
60976 2007-10-16  Bruno Haible  <bruno@clisp.org>
60977
60978         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60979         * modules/malloc-posix (License): Likewise.
60980         * modules/realloc-posix (License): Likewise.
60981         * modules/calloc-posix (License): Likewise.
60982         * modules/intprops (License): Change from GPL to LGPL, with
60983         Paul Eggert's approval.
60984
60985 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60986
60987         Merge glibc changes into lib/glob.c.
60988
60989         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60990         2007-10-15 04:59:03 UTC.  Here are the changes:
60991
60992         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60993
60994         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60995
60996         * lib/glob.c: Add some branch prediction throughout.
60997
60998         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60999
61000         [BZ #5103]
61001         * lib/glob.c (glob): Recognize patterns starting \/.
61002
61003         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61004
61005         [BZ #3996]
61006         * lib/glob.c (attribute_hidden): Define if not defined.
61007         (glob): Unescape dirname, filename or username when needed and not
61008         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61009         is NULL.  Handle unescaped [ in pattern without closing ].
61010         Don't pass GLOB_CHECK down to recursive glob for directories.
61011         (__glob_pattern_type): New function.
61012         (__glob_pattern_p): Implement using __glob_pattern_type.
61013         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61014         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61015         Remove unreachable code.
61016
61017         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61018
61019         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61020         explain why there are no leaks.
61021
61022         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61023
61024         [BZ #3253]
61025         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61026         time, rather allocate increasingly bigger arrays of pointers, if
61027         possible with alloca, if too large with malloc.
61028
61029 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61030
61031         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61032         Problem reported by H.Merijn Brand in
61033         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61034         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61035         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61036
61037 2007-10-15  Bruno Haible  <bruno@clisp.org>
61038
61039         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61040         with explicit rpl_ prefix.
61041         * lib/fopen.c (fopen): Likewise.
61042         * lib/freopen.c (freopen): Likewise.
61043         * lib/iconv.c (iconv): Likewise.
61044         * lib/iconv_close.c (iconv_close): Likewise.
61045
61046 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61047
61048         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61049
61050 2007-10-15  Bruno Haible  <bruno@clisp.org>
61051
61052         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61053         <stddef.h> instead of <stdlib.h> since we only need NULL.
61054         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61055
61056 2007-10-15  Bruno Haible  <bruno@clisp.org>
61057
61058         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61059         Replace paragraph talking about LIBOBJS.
61060         Reported by Colin Watson <cjwatson@debian.org>.
61061
61062 2007-10-15  Bruno Haible  <bruno@clisp.org>
61063
61064         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61065         <stdlib.h> before using NULL.
61066
61067 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61068
61069         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61070         Reported by Albert Chin <china@thewrittenword.com>.
61071
61072 2007-10-14  Bruno Haible  <bruno@clisp.org>
61073
61074         * modules/iconv_open-utf-tests: New file.
61075         * tests/test-iconv-utf.c: New file.
61076
61077         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61078         * modules/iconv_open-utf: New file.
61079         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61080         (iconv, iconv_close): New declarations.
61081         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61082         be defined.
61083         (iconv_open): Add special handling of conversion between UTF-8 and
61084         UTF-{16,32}{BE,LE}.
61085         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61086         * lib/iconv_close.c: New file.
61087         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61088         gl_FUNC_ICONV_OPEN.
61089         (gl_FUNC_ICONV_OPEN): Use it.
61090         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61091         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61092         and REPLACE_ICONV_UTF.
61093         * modules/iconv_open (Depends-on): Add c-strcase.
61094         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61095         ICONV_CONST.
61096         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61097
61098 2007-10-13  Albert Chin  <china@thewrittenword.com>
61099             Bruno Haible  <bruno@clisp.org>
61100
61101         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61102         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61103
61104 2007-10-13  Bruno Haible  <bruno@clisp.org>
61105
61106         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61107         defined, use the ISO C99 inline semantics.
61108         * lib/argp.h (ARGP_EI): Likewise.
61109
61110 2007-10-13  Bruno Haible  <bruno@clisp.org>
61111
61112         Handle 'inline' change in gcc 4.3.0.
61113         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61114         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61115         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61116         argp_fmtstream_point): Disable 'extern' declaration if the function
61117         definition is going to be provided inline.
61118         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61119         semantics, not the ISO C99 inline semantics.
61120         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61121         'extern' declaration if the function definition is going to be provided
61122         inline.
61123         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61124         the GNU C inline semantics, not the ISO C99 inline semantics. With
61125         GCC 4.2, avoid a warning.
61126
61127 2007-10-13  Bruno Haible  <bruno@clisp.org>
61128
61129         * lib/freading.h (freading): Enable the use of __freading for
61130         glibc >= 2.7.
61131         * lib/freading.c (freading): Likewise.
61132
61133 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61134
61135         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61136         "warning: C99 inline functions are not supported; using GNU89".
61137
61138 2007-10-12  Bruno Haible  <bruno@clisp.org>
61139
61140         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61141         of 2.
61142         * tests/test-ceilf2.c: New file.
61143         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61144
61145         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61146         * modules/ceilf-tests: Update.
61147
61148 2007-10-12  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61151         of 2.
61152         * tests/test-floorf2.c: New file.
61153         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61154
61155         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61156         * modules/floorf-tests: Update.
61157
61158 2007-10-12  Bruno Haible  <bruno@clisp.org>
61159
61160         * tests/test-trunc2.c: New file.
61161         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61162
61163         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61164         * modules/trunc-tests: Update.
61165
61166 2007-10-12  Bruno Haible  <bruno@clisp.org>
61167
61168         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61169         of 2.
61170         * tests/test-truncf2.c: New file.
61171         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61172
61173         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61174         * modules/truncf-tests: Update.
61175
61176 2007-10-11  Eric Blake  <ebb9@byu.net>
61177
61178         Don't claim strerror is broken on Interix.
61179         * doc/functions/strerror.texi (strerror): Known broken systems are
61180         now Solaris 8, and not Interix.
61181         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61182         Interix on cross-compile.
61183         Reported by Martin Koeppe in
61184         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61185
61186 2007-10-11  Bruno Haible  <bruno@clisp.org>
61187
61188         * modules/i-ring-tests: New file.
61189         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61190         instead of assert.
61191
61192 2007-10-11  Bruno Haible  <bruno@clisp.org>
61193
61194         * modules/filenamecat-tests: New file.
61195         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61196         * lib/filenamecat.c: Remove test code.
61197
61198 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61199
61200         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61201
61202         * lib/strerror.c: Include <string.h> always, to test interface,
61203         and to remove the need for the dummy.
61204         Include intprops.h to compute width instead of doing it ourselves
61205         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61206         (strerror): Define it to return NULL if there's no system strerror.
61207         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61208         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61209         ancient pre-strerror Unix systems well any more.  Saying "unknown
61210         system error" is enough.
61211         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61212         simpler strerror.c implementation.
61213         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61214         Simplify the tests to reflect the simpler strerror implementation.
61215         * modules/strerror (Depends-on): Add intprops.
61216
61217 2007-10-09  Eric Blake  <ebb9@byu.net>
61218
61219         Silence test-fpending.
61220         * modules/fpending-tests (Files): Add wrapper script.
61221         * tests/test-fpending.sh: New file.
61222
61223 2007-10-09  Bruno Haible  <bruno@clisp.org>
61224
61225         * MODULES.html.sh (func_module): Don't create a hyperlink for
61226         function names like 'printf_frexp'.
61227         (Misc): Add crc, memxor.
61228         (Characteristics of floating types): New section.
61229         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61230         isnanf-nolibm, signbit, trunc, truncf, truncl.
61231         (Enhancements for ISO C 99 functions): New subsection Input/output.
61232         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61233         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61234         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61235         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61236         (Enhancements for POSIX:2001 functions): Add chdir-long.
61237         (File system functions): Add areadlink, chdir-safer, read-file.
61238         Remove cycle-check.
61239         (File system as inode set): New section.
61240         (Date and time): Add gethrxtime.
61241         (Multithreading): Add openmp.
61242         (Internationalization functions): Add localename.
61243         (Unicode string functions): Add unistr/u*-mbsnlen.
61244         (Support for maintaining and releasing projects): Add git-version-gen.
61245         (Lone files): Remove directories.
61246
61247 2007-10-08  Ben Pfaff  <blp@gnu.org>
61248
61249         * lib/xmalloca.h: Fix typo in comment.
61250
61251 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61252
61253         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61254         when avoiding problems with integer overflow.  Use a portable test
61255         instead.
61256
61257 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61258
61259         * modules/dummy (License): Change to LGPLv2+.
61260         * modules/float (License): Likewise
61261         * modules/realloc (License): Likewise
61262         * modules/stdlib (License): Likewise
61263
61264 2007-10-07  Bruno Haible  <bruno@clisp.org>
61265
61266         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61267         * floor.c (TWO_MANT_DIG): Likewise.
61268         * ceil.c (TWO_MANT_DIG): Likewise.
61269         Reported by Ben Pfaff.
61270
61271 2007-10-07  Bruno Haible  <bruno@clisp.org>
61272
61273         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61274         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61275         * lib/frexp.c (FUNC): Likewise.
61276         * lib/printf-frexp.h (printf_frexp): Likewise.
61277         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61278         * lib/printf-frexp.c (FUNC): Likewise.
61279         Suggested by Jim Meyering.
61280
61281 2007-10-07  Jim Meyering  <meyering@redhat.com>
61282
61283         Make xnanosleep's integer overflow test more robust.
61284         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61285         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61286
61287 2007-10-07  Bruno Haible  <bruno@clisp.org>
61288
61289         * NEWS: Mention the license change.
61290
61291         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61292         abbreviations in the modules files.
61293
61294         Change copyright notice from GPLv2+ to GPLv3+.
61295         * README: Change copyright notice.
61296         * MODULES.html.sh: Likewise.
61297         * build-aux/bootstrap.conf: Likewise.
61298         * build-aux/config.libpath: Likewise.
61299         * build-aux/csharpcomp.sh.in: Likewise.
61300         * build-aux/csharpexec.sh.in: Likewise.
61301         * build-aux/install-reloc: Likewise.
61302         * build-aux/javacomp.sh.in: Likewise.
61303         * build-aux/javaexec.sh.in: Likewise.
61304         * build-aux/ldd.sh.in: Likewise.
61305         * build-aux/reloc-ldflags: Likewise.
61306         * build-aux/relocatable.sh.in: Likewise.
61307         * build-aux/x-to-1.in: Likewise.
61308         * check-module: Likewise.
61309         * config/srclistvars.sh: Likewise.
61310         * gnulib-tool: Likewise.
61311         * lib/acl-internal.h: Likewise.
61312         * lib/acl.c: Likewise.
61313         * lib/acl.h: Likewise.
61314         * lib/acl_entries.c: Likewise.
61315         * lib/areadlink-with-size.c: Likewise.
61316         * lib/areadlink.c: Likewise.
61317         * lib/areadlink.h: Likewise.
61318         * lib/argmatch.c: Likewise.
61319         * lib/argmatch.h: Likewise.
61320         * lib/argp-ba.c: Likewise.
61321         * lib/argp-eexst.c: Likewise.
61322         * lib/argp-fmtstream.c: Likewise.
61323         * lib/argp-fmtstream.h: Likewise.
61324         * lib/argp-fs-xinl.c: Likewise.
61325         * lib/argp-help.c: Likewise.
61326         * lib/argp-namefrob.h: Likewise.
61327         * lib/argp-parse.c: Likewise.
61328         * lib/argp-pin.c: Likewise.
61329         * lib/argp-pv.c: Likewise.
61330         * lib/argp-pvh.c: Likewise.
61331         * lib/argp-xinl.c: Likewise.
61332         * lib/argp.h: Likewise.
61333         * lib/at-func.c: Likewise.
61334         * lib/atanl.c: Likewise.
61335         * lib/backupfile.c: Likewise.
61336         * lib/backupfile.h: Likewise.
61337         * lib/basename.c: Likewise.
61338         * lib/binary-io.h: Likewise.
61339         * lib/byteswap.in.h: Likewise.
61340         * lib/c-stack.c: Likewise.
61341         * lib/c-stack.h: Likewise.
61342         * lib/c-strcasestr.c: Likewise.
61343         * lib/c-strcasestr.h: Likewise.
61344         * lib/c-strstr.c: Likewise.
61345         * lib/c-strstr.h: Likewise.
61346         * lib/c-strtod.c: Likewise.
61347         * lib/calloc.c: Likewise.
61348         * lib/canon-host.c: Likewise.
61349         * lib/canon-host.h: Likewise.
61350         * lib/canonicalize-lgpl.c: Likewise.
61351         * lib/canonicalize.c: Likewise.
61352         * lib/canonicalize.h: Likewise.
61353         * lib/ceil.c: Likewise.
61354         * lib/ceilf.c: Likewise.
61355         * lib/ceill.c: Likewise.
61356         * lib/chdir-long.c: Likewise.
61357         * lib/chdir-long.h: Likewise.
61358         * lib/chdir-safer.c: Likewise.
61359         * lib/chdir-safer.h: Likewise.
61360         * lib/chown.c: Likewise.
61361         * lib/classpath.c: Likewise.
61362         * lib/classpath.h: Likewise.
61363         * lib/clean-temp.c: Likewise.
61364         * lib/clean-temp.h: Likewise.
61365         * lib/cloexec.c: Likewise.
61366         * lib/close-stream.c: Likewise.
61367         * lib/closein.c: Likewise.
61368         * lib/closein.h: Likewise.
61369         * lib/closeout.c: Likewise.
61370         * lib/closeout.h: Likewise.
61371         * lib/concat-filename.c: Likewise.
61372         * lib/copy-file.c: Likewise.
61373         * lib/copy-file.h: Likewise.
61374         * lib/count-one-bits.h: Likewise.
61375         * lib/crc.c: Likewise.
61376         * lib/crc.h: Likewise.
61377         * lib/creat-safer.c: Likewise.
61378         * lib/csharpcomp.c: Likewise.
61379         * lib/csharpcomp.h: Likewise.
61380         * lib/csharpexec.c: Likewise.
61381         * lib/csharpexec.h: Likewise.
61382         * lib/cycle-check.c: Likewise.
61383         * lib/cycle-check.h: Likewise.
61384         * lib/diacrit.c: Likewise.
61385         * lib/diacrit.h: Likewise.
61386         * lib/diffseq.h: Likewise.
61387         * lib/dirchownmod.c: Likewise.
61388         * lib/dirent.in.h: Likewise.
61389         * lib/dirfd.c: Likewise.
61390         * lib/dirfd.h: Likewise.
61391         * lib/dirname.c: Likewise.
61392         * lib/dirname.h: Likewise.
61393         * lib/dummy.c: Likewise.
61394         * lib/dup-safer.c: Likewise.
61395         * lib/dup2.c: Likewise.
61396         * lib/eealloc.h: Likewise.
61397         * lib/error.c: Likewise.
61398         * lib/error.h: Likewise.
61399         * lib/euidaccess.c: Likewise.
61400         * lib/exclude.c: Likewise.
61401         * lib/exclude.h: Likewise.
61402         * lib/execute.c: Likewise.
61403         * lib/execute.h: Likewise.
61404         * lib/exitfail.c: Likewise.
61405         * lib/exitfail.h: Likewise.
61406         * lib/expl.c: Likewise.
61407         * lib/fatal-signal.c: Likewise.
61408         * lib/fatal-signal.h: Likewise.
61409         * lib/fbufmode.c: Likewise.
61410         * lib/fbufmode.h: Likewise.
61411         * lib/fchdir.c: Likewise.
61412         * lib/fchmodat.c: Likewise.
61413         * lib/fchownat.c: Likewise.
61414         * lib/fcntl--.h: Likewise.
61415         * lib/fcntl-safer.h: Likewise.
61416         * lib/fcntl.in.h: Likewise.
61417         * lib/fd-safer.c: Likewise.
61418         * lib/fflush.c: Likewise.
61419         * lib/file-has-acl.c: Likewise.
61420         * lib/file-set.c: Likewise.
61421         * lib/file-type.c: Likewise.
61422         * lib/file-type.h: Likewise.
61423         * lib/fileblocks.c: Likewise.
61424         * lib/filemode.c: Likewise.
61425         * lib/filemode.h: Likewise.
61426         * lib/filename.h: Likewise.
61427         * lib/filenamecat.c: Likewise.
61428         * lib/filenamecat.h: Likewise.
61429         * lib/findprog.c: Likewise.
61430         * lib/findprog.h: Likewise.
61431         * lib/float.in.h: Likewise.
61432         * lib/floor.c: Likewise.
61433         * lib/floorf.c: Likewise.
61434         * lib/floorl.c: Likewise.
61435         * lib/fopen-safer.c: Likewise.
61436         * lib/fopen.c: Likewise.
61437         * lib/fpending.c: Likewise.
61438         * lib/fpending.h: Likewise.
61439         * lib/fprintf.c: Likewise.
61440         * lib/fprintftime.h: Likewise.
61441         * lib/fpucw.h: Likewise.
61442         * lib/fpurge.c: Likewise.
61443         * lib/fpurge.h: Likewise.
61444         * lib/freadable.c: Likewise.
61445         * lib/freadable.h: Likewise.
61446         * lib/freadahead.c: Likewise.
61447         * lib/freadahead.h: Likewise.
61448         * lib/freading.c: Likewise.
61449         * lib/freading.h: Likewise.
61450         * lib/free.c: Likewise.
61451         * lib/freopen.c: Likewise.
61452         * lib/frexp.c: Likewise.
61453         * lib/frexpl.c: Likewise.
61454         * lib/fseek.c: Likewise.
61455         * lib/fseterr.c: Likewise.
61456         * lib/fseterr.h: Likewise.
61457         * lib/fstatat.c: Likewise.
61458         * lib/fstrcmp.c: Likewise.
61459         * lib/fstrcmp.h: Likewise.
61460         * lib/fsusage.c: Likewise.
61461         * lib/fsusage.h: Likewise.
61462         * lib/ftell.c: Likewise.
61463         * lib/ftello.c: Likewise.
61464         * lib/fts-cycle.c: Likewise.
61465         * lib/fts.c: Likewise.
61466         * lib/fts_.h: Likewise.
61467         * lib/full-read.c: Likewise.
61468         * lib/full-read.h: Likewise.
61469         * lib/full-write.c: Likewise.
61470         * lib/full-write.h: Likewise.
61471         * lib/fwritable.c: Likewise.
61472         * lib/fwritable.h: Likewise.
61473         * lib/fwriteerror.c: Likewise.
61474         * lib/fwriteerror.h: Likewise.
61475         * lib/fwriting.c: Likewise.
61476         * lib/fwriting.h: Likewise.
61477         * lib/gcd.c: Likewise.
61478         * lib/gcd.h: Likewise.
61479         * lib/getcwd.c: Likewise.
61480         * lib/getdate.h: Likewise.
61481         * lib/getdate.y: Likewise.
61482         * lib/getdomainname.c: Likewise.
61483         * lib/getdomainname.h: Likewise.
61484         * lib/getgroups.c: Likewise.
61485         * lib/gethostname.c: Likewise.
61486         * lib/gethrxtime.c: Likewise.
61487         * lib/gethrxtime.h: Likewise.
61488         * lib/getloadavg.c: Likewise.
61489         * lib/getndelim2.c: Likewise.
61490         * lib/getndelim2.h: Likewise.
61491         * lib/getnline.c: Likewise.
61492         * lib/getnline.h: Likewise.
61493         * lib/getopt.c: Likewise.
61494         * lib/getopt.in.h: Likewise.
61495         * lib/getopt1.c: Likewise.
61496         * lib/getopt_int.h: Likewise.
61497         * lib/getpagesize.h: Likewise.
61498         * lib/getsubopt.c: Likewise.
61499         * lib/gettime.c: Likewise.
61500         * lib/getugroups.c: Likewise.
61501         * lib/getugroups.h: Likewise.
61502         * lib/getusershell.c: Likewise.
61503         * lib/gl_anyavltree_list1.h: Likewise.
61504         * lib/gl_anyavltree_list2.h: Likewise.
61505         * lib/gl_anyhash_list1.h: Likewise.
61506         * lib/gl_anyhash_list2.h: Likewise.
61507         * lib/gl_anylinked_list1.h: Likewise.
61508         * lib/gl_anylinked_list2.h: Likewise.
61509         * lib/gl_anyrbtree_list1.h: Likewise.
61510         * lib/gl_anyrbtree_list2.h: Likewise.
61511         * lib/gl_anytree_list1.h: Likewise.
61512         * lib/gl_anytree_list2.h: Likewise.
61513         * lib/gl_anytree_oset.h: Likewise.
61514         * lib/gl_anytreehash_list1.h: Likewise.
61515         * lib/gl_anytreehash_list2.h: Likewise.
61516         * lib/gl_array_list.c: Likewise.
61517         * lib/gl_array_list.h: Likewise.
61518         * lib/gl_array_oset.c: Likewise.
61519         * lib/gl_array_oset.h: Likewise.
61520         * lib/gl_avltree_list.c: Likewise.
61521         * lib/gl_avltree_list.h: Likewise.
61522         * lib/gl_avltree_oset.c: Likewise.
61523         * lib/gl_avltree_oset.h: Likewise.
61524         * lib/gl_avltreehash_list.c: Likewise.
61525         * lib/gl_avltreehash_list.h: Likewise.
61526         * lib/gl_carray_list.c: Likewise.
61527         * lib/gl_carray_list.h: Likewise.
61528         * lib/gl_linked_list.c: Likewise.
61529         * lib/gl_linked_list.h: Likewise.
61530         * lib/gl_linkedhash_list.c: Likewise.
61531         * lib/gl_linkedhash_list.h: Likewise.
61532         * lib/gl_list.c: Likewise.
61533         * lib/gl_list.h: Likewise.
61534         * lib/gl_oset.c: Likewise.
61535         * lib/gl_oset.h: Likewise.
61536         * lib/gl_rbtree_list.c: Likewise.
61537         * lib/gl_rbtree_list.h: Likewise.
61538         * lib/gl_rbtree_oset.c: Likewise.
61539         * lib/gl_rbtree_oset.h: Likewise.
61540         * lib/gl_rbtreehash_list.c: Likewise.
61541         * lib/gl_rbtreehash_list.h: Likewise.
61542         * lib/gl_sublist.c: Likewise.
61543         * lib/gl_sublist.h: Likewise.
61544         * lib/group-member.c: Likewise.
61545         * lib/group-member.h: Likewise.
61546         * lib/hard-locale.c: Likewise.
61547         * lib/hard-locale.h: Likewise.
61548         * lib/hash-pjw.c: Likewise.
61549         * lib/hash-pjw.h: Likewise.
61550         * lib/hash-triple.c: Likewise.
61551         * lib/hash.c: Likewise.
61552         * lib/hash.h: Likewise.
61553         * lib/human.c: Likewise.
61554         * lib/human.h: Likewise.
61555         * lib/i-ring.c: Likewise.
61556         * lib/i-ring.h: Likewise.
61557         * lib/idcache.c: Likewise.
61558         * lib/imaxabs.c: Likewise.
61559         * lib/imaxdiv.c: Likewise.
61560         * lib/inet_pton.c: Likewise.
61561         * lib/inet_pton.h: Likewise.
61562         * lib/intprops.h: Likewise.
61563         * lib/inttostr.c: Likewise.
61564         * lib/inttostr.h: Likewise.
61565         * lib/inttypes.in.h: Likewise.
61566         * lib/isapipe.c: Likewise.
61567         * lib/isdir.c: Likewise.
61568         * lib/isnan.c: Likewise.
61569         * lib/isnan.h: Likewise.
61570         * lib/isnanf.c: Likewise.
61571         * lib/isnanf.h: Likewise.
61572         * lib/isnanl-nolibm.h: Likewise.
61573         * lib/isnanl.c: Likewise.
61574         * lib/isnanl.h: Likewise.
61575         * lib/javacomp.c: Likewise.
61576         * lib/javacomp.h: Likewise.
61577         * lib/javaexec.c: Likewise.
61578         * lib/javaexec.h: Likewise.
61579         * lib/javaversion.c: Likewise.
61580         * lib/javaversion.h: Likewise.
61581         * lib/javaversion.java: Likewise.
61582         * lib/lbrkprop.h: Likewise.
61583         * lib/lchmod.h: Likewise.
61584         * lib/lchown.c: Likewise.
61585         * lib/ldexpl.c: Likewise.
61586         * lib/linebreak.c: Likewise.
61587         * lib/linebreak.h: Likewise.
61588         * lib/linebuffer.c: Likewise.
61589         * lib/linebuffer.h: Likewise.
61590         * lib/locale.in.h: Likewise.
61591         * lib/logl.c: Likewise.
61592         * lib/long-options.c: Likewise.
61593         * lib/long-options.h: Likewise.
61594         * lib/lstat.c: Likewise.
61595         * lib/lstat.h: Likewise.
61596         * lib/math.in.h: Likewise.
61597         * lib/mbchar.c: Likewise.
61598         * lib/mbchar.h: Likewise.
61599         * lib/mbfile.h: Likewise.
61600         * lib/mbiter.h: Likewise.
61601         * lib/mbscasecmp.c: Likewise.
61602         * lib/mbscasestr.c: Likewise.
61603         * lib/mbschr.c: Likewise.
61604         * lib/mbscspn.c: Likewise.
61605         * lib/mbslen.c: Likewise.
61606         * lib/mbsncasecmp.c: Likewise.
61607         * lib/mbsnlen.c: Likewise.
61608         * lib/mbspbrk.c: Likewise.
61609         * lib/mbspcasecmp.c: Likewise.
61610         * lib/mbsrchr.c: Likewise.
61611         * lib/mbssep.c: Likewise.
61612         * lib/mbsspn.c: Likewise.
61613         * lib/mbsstr.c: Likewise.
61614         * lib/mbstok_r.c: Likewise.
61615         * lib/mbswidth.c: Likewise.
61616         * lib/mbswidth.h: Likewise.
61617         * lib/mbuiter.h: Likewise.
61618         * lib/memcasecmp.c: Likewise.
61619         * lib/memcasecmp.h: Likewise.
61620         * lib/memchr.c: Likewise.
61621         * lib/memcmp.c: Likewise.
61622         * lib/memcoll.c: Likewise.
61623         * lib/memcoll.h: Likewise.
61624         * lib/memcpy.c: Likewise.
61625         * lib/memrchr.c: Likewise.
61626         * lib/mkancesdirs.c: Likewise.
61627         * lib/mkdir-p.c: Likewise.
61628         * lib/mkdir-p.h: Likewise.
61629         * lib/mkdir.c: Likewise.
61630         * lib/mkdirat.c: Likewise.
61631         * lib/mkdtemp.c: Likewise.
61632         * lib/mkstemp-safer.c: Likewise.
61633         * lib/mkstemp.c: Likewise.
61634         * lib/modechange.c: Likewise.
61635         * lib/modechange.h: Likewise.
61636         * lib/mountlist.c: Likewise.
61637         * lib/mountlist.h: Likewise.
61638         * lib/mpsort.c: Likewise.
61639         * lib/nanosleep.c: Likewise.
61640         * lib/obstack.c: Likewise.
61641         * lib/obstack.h: Likewise.
61642         * lib/open-safer.c: Likewise.
61643         * lib/open.c: Likewise.
61644         * lib/openat-die.c: Likewise.
61645         * lib/openat-priv.h: Likewise.
61646         * lib/openat-proc.c: Likewise.
61647         * lib/openat.c: Likewise.
61648         * lib/openat.h: Likewise.
61649         * lib/pagealign_alloc.c: Likewise.
61650         * lib/pagealign_alloc.h: Likewise.
61651         * lib/physmem.c: Likewise.
61652         * lib/physmem.h: Likewise.
61653         * lib/pipe-safer.c: Likewise.
61654         * lib/pipe.c: Likewise.
61655         * lib/pipe.h: Likewise.
61656         * lib/posixtm.c: Likewise.
61657         * lib/posixtm.h: Likewise.
61658         * lib/posixver.c: Likewise.
61659         * lib/printf-frexp.c: Likewise.
61660         * lib/printf-frexp.h: Likewise.
61661         * lib/printf-frexpl.c: Likewise.
61662         * lib/printf-frexpl.h: Likewise.
61663         * lib/printf.c: Likewise.
61664         * lib/progname.c: Likewise.
61665         * lib/progname.h: Likewise.
61666         * lib/progreloc.c: Likewise.
61667         * lib/putenv.c: Likewise.
61668         * lib/quote.c: Likewise.
61669         * lib/quote.h: Likewise.
61670         * lib/quotearg.c: Likewise.
61671         * lib/quotearg.h: Likewise.
61672         * lib/raise.c: Likewise.
61673         * lib/readline.c: Likewise.
61674         * lib/readline.h: Likewise.
61675         * lib/readlink.c: Likewise.
61676         * lib/readtokens.c: Likewise.
61677         * lib/readtokens.h: Likewise.
61678         * lib/readtokens0.c: Likewise.
61679         * lib/readtokens0.h: Likewise.
61680         * lib/readutmp.c: Likewise.
61681         * lib/readutmp.h: Likewise.
61682         * lib/realloc.c: Likewise.
61683         * lib/relocwrapper.c: Likewise.
61684         * lib/rename-dest-slash.c: Likewise.
61685         * lib/rename.c: Likewise.
61686         * lib/rmdir.c: Likewise.
61687         * lib/rpmatch.c: Likewise.
61688         * lib/safe-read.c: Likewise.
61689         * lib/safe-read.h: Likewise.
61690         * lib/safe-write.c: Likewise.
61691         * lib/safe-write.h: Likewise.
61692         * lib/same-inode.h: Likewise.
61693         * lib/same.c: Likewise.
61694         * lib/same.h: Likewise.
61695         * lib/save-cwd.c: Likewise.
61696         * lib/save-cwd.h: Likewise.
61697         * lib/savedir.c: Likewise.
61698         * lib/savedir.h: Likewise.
61699         * lib/savewd.c: Likewise.
61700         * lib/savewd.h: Likewise.
61701         * lib/search.in.h: Likewise.
61702         * lib/setenv.c: Likewise.
61703         * lib/setenv.h: Likewise.
61704         * lib/settime.c: Likewise.
61705         * lib/sh-quote.c: Likewise.
61706         * lib/sh-quote.h: Likewise.
61707         * lib/sig2str.c: Likewise.
61708         * lib/sig2str.h: Likewise.
61709         * lib/signal.in.h: Likewise.
61710         * lib/signbitd.c: Likewise.
61711         * lib/signbitf.c: Likewise.
61712         * lib/signbitl.c: Likewise.
61713         * lib/sigprocmask.c: Likewise.
61714         * lib/sincosl.c: Likewise.
61715         * lib/sleep.c: Likewise.
61716         * lib/sprintf.c: Likewise.
61717         * lib/sqrtl.c: Likewise.
61718         * lib/stat-time.h: Likewise.
61719         * lib/stdio--.h: Likewise.
61720         * lib/stdio-safer.h: Likewise.
61721         * lib/stdlib--.h: Likewise.
61722         * lib/stdlib-safer.h: Likewise.
61723         * lib/stdlib.in.h: Likewise.
61724         * lib/stpcpy.c: Likewise.
61725         * lib/stpncpy.c: Likewise.
61726         * lib/strchrnul.c: Likewise.
61727         * lib/strcspn.c: Likewise.
61728         * lib/strerror.c: Likewise.
61729         * lib/strftime.c: Likewise.
61730         * lib/strftime.h: Likewise.
61731         * lib/striconveh.c: Likewise.
61732         * lib/striconveh.h: Likewise.
61733         * lib/striconveha.c: Likewise.
61734         * lib/striconveha.h: Likewise.
61735         * lib/stripslash.c: Likewise.
61736         * lib/strnlen1.c: Likewise.
61737         * lib/strnlen1.h: Likewise.
61738         * lib/strtod.c: Likewise.
61739         * lib/strtoimax.c: Likewise.
61740         * lib/strtok_r.c: Likewise.
61741         * lib/strtol.c: Likewise.
61742         * lib/strtoll.c: Likewise.
61743         * lib/strtoul.c: Likewise.
61744         * lib/strtoull.c: Likewise.
61745         * lib/sysexits.in.h: Likewise.
61746         * lib/tempname.c: Likewise.
61747         * lib/tempname.h: Likewise.
61748         * lib/timespec.h: Likewise.
61749         * lib/tls.c: Likewise.
61750         * lib/tls.h: Likewise.
61751         * lib/tmpdir.c: Likewise.
61752         * lib/tmpdir.h: Likewise.
61753         * lib/tmpfile-safer.c: Likewise.
61754         * lib/tmpfile.c: Likewise.
61755         * lib/trigl.c: Likewise.
61756         * lib/trigl.h: Likewise.
61757         * lib/trim.c: Likewise.
61758         * lib/trim.h: Likewise.
61759         * lib/trunc.c: Likewise.
61760         * lib/truncf.c: Likewise.
61761         * lib/truncl.c: Likewise.
61762         * lib/tsearch.c: Likewise.
61763         * lib/unicodeio.c: Likewise.
61764         * lib/unicodeio.h: Likewise.
61765         * lib/unistd--.h: Likewise.
61766         * lib/unistd-safer.h: Likewise.
61767         * lib/unistdio/ulc-fprintf.c: Likewise.
61768         * lib/unistdio/ulc-vfprintf.c: Likewise.
61769         * lib/unlinkdir.c: Likewise.
61770         * lib/unlinkdir.h: Likewise.
61771         * lib/unlocked-io.h: Likewise.
61772         * lib/unsetenv.c: Likewise.
61773         * lib/userspec.c: Likewise.
61774         * lib/utime.c: Likewise.
61775         * lib/utimecmp.c: Likewise.
61776         * lib/utimecmp.h: Likewise.
61777         * lib/utimens.c: Likewise.
61778         * lib/verify.h: Likewise.
61779         * lib/verror.c: Likewise.
61780         * lib/verror.h: Likewise.
61781         * lib/version-etc-fsf.c: Likewise.
61782         * lib/version-etc.c: Likewise.
61783         * lib/version-etc.h: Likewise.
61784         * lib/vfprintf.c: Likewise.
61785         * lib/vprintf.c: Likewise.
61786         * lib/vsprintf.c: Likewise.
61787         * lib/w32spawn.h: Likewise.
61788         * lib/wait-process.c: Likewise.
61789         * lib/wait-process.h: Likewise.
61790         * lib/wcwidth.c: Likewise.
61791         * lib/write-any-file.c: Likewise.
61792         * lib/xalloc-die.c: Likewise.
61793         * lib/xalloc.h: Likewise.
61794         * lib/xasprintf.c: Likewise.
61795         * lib/xgetcwd.c: Likewise.
61796         * lib/xgetcwd.h: Likewise.
61797         * lib/xgetdomainname.c: Likewise.
61798         * lib/xgetdomainname.h: Likewise.
61799         * lib/xgethostname.c: Likewise.
61800         * lib/xmalloc.c: Likewise.
61801         * lib/xmalloca.c: Likewise.
61802         * lib/xmalloca.h: Likewise.
61803         * lib/xmemcoll.c: Likewise.
61804         * lib/xnanosleep.c: Likewise.
61805         * lib/xreadlink.c: Likewise.
61806         * lib/xreadlink.h: Likewise.
61807         * lib/xsetenv.c: Likewise.
61808         * lib/xsetenv.h: Likewise.
61809         * lib/xstriconv.c: Likewise.
61810         * lib/xstriconv.h: Likewise.
61811         * lib/xstrndup.c: Likewise.
61812         * lib/xstrndup.h: Likewise.
61813         * lib/xstrtod.c: Likewise.
61814         * lib/xstrtod.h: Likewise.
61815         * lib/xstrtol-error.c: Likewise.
61816         * lib/xstrtol.c: Likewise.
61817         * lib/xstrtol.h: Likewise.
61818         * lib/xtime.h: Likewise.
61819         * lib/xvasprintf.c: Likewise.
61820         * lib/xvasprintf.h: Likewise.
61821         * lib/yesno.c: Likewise.
61822         * lib/yesno.h: Likewise.
61823         * posix-modules: Likewise.
61824         * tests/test-alloca-opt.c: Likewise.
61825         * tests/test-arcfour.c: Likewise.
61826         * tests/test-arctwo.c: Likewise.
61827         * tests/test-argmatch.c: Likewise.
61828         * tests/test-argp-2.sh: Likewise.
61829         * tests/test-argp.c: Likewise.
61830         * tests/test-arpa_inet.c: Likewise.
61831         * tests/test-array_list.c: Likewise.
61832         * tests/test-array_oset.c: Likewise.
61833         * tests/test-atexit.c: Likewise.
61834         * tests/test-avltree_list.c: Likewise.
61835         * tests/test-avltree_oset.c: Likewise.
61836         * tests/test-avltreehash_list.c: Likewise.
61837         * tests/test-base64.c: Likewise.
61838         * tests/test-binary-io.c: Likewise.
61839         * tests/test-byteswap.c: Likewise.
61840         * tests/test-c-ctype.c: Likewise.
61841         * tests/test-c-strcasecmp.c: Likewise.
61842         * tests/test-c-strcasestr.c: Likewise.
61843         * tests/test-c-strncasecmp.c: Likewise.
61844         * tests/test-c-strstr.c: Likewise.
61845         * tests/test-canonicalize-lgpl.c: Likewise.
61846         * tests/test-canonicalize.c: Likewise.
61847         * tests/test-carray_list.c: Likewise.
61848         * tests/test-ceilf.c: Likewise.
61849         * tests/test-ceill.c: Likewise.
61850         * tests/test-count-one-bits.c: Likewise.
61851         * tests/test-crc.c: Likewise.
61852         * tests/test-dirname.c: Likewise.
61853         * tests/test-fbufmode.c: Likewise.
61854         * tests/test-fcntl.c: Likewise.
61855         * tests/test-fflush.c: Likewise.
61856         * tests/test-floorf.c: Likewise.
61857         * tests/test-floorl.c: Likewise.
61858         * tests/test-fopen.c: Likewise.
61859         * tests/test-fprintf-posix.c: Likewise.
61860         * tests/test-fprintf-posix.h: Likewise.
61861         * tests/test-fpurge.c: Likewise.
61862         * tests/test-freadable.c: Likewise.
61863         * tests/test-freadahead.c: Likewise.
61864         * tests/test-freading.c: Likewise.
61865         * tests/test-freopen.c: Likewise.
61866         * tests/test-frexp.c: Likewise.
61867         * tests/test-frexpl.c: Likewise.
61868         * tests/test-fseek.c: Likewise.
61869         * tests/test-fseeko.c: Likewise.
61870         * tests/test-fseterr.c: Likewise.
61871         * tests/test-fstrcmp.c: Likewise.
61872         * tests/test-ftell.c: Likewise.
61873         * tests/test-ftello.c: Likewise.
61874         * tests/test-fwritable.c: Likewise.
61875         * tests/test-fwriting.c: Likewise.
61876         * tests/test-getaddrinfo.c: Likewise.
61877         * tests/test-getpass.c: Likewise.
61878         * tests/test-gettimeofday.c: Likewise.
61879         * tests/test-hmac-md5.c: Likewise.
61880         * tests/test-hmac-sha1.c: Likewise.
61881         * tests/test-iconv.c: Likewise.
61882         * tests/test-iconvme.c: Likewise.
61883         * tests/test-inttypes.c: Likewise.
61884         * tests/test-isnan.c: Likewise.
61885         * tests/test-isnanf.c: Likewise.
61886         * tests/test-isnanl-nolibm.c: Likewise.
61887         * tests/test-isnanl.c: Likewise.
61888         * tests/test-isnanl.h: Likewise.
61889         * tests/test-ldexpl.c: Likewise.
61890         * tests/test-linked_list.c: Likewise.
61891         * tests/test-linkedhash_list.c: Likewise.
61892         * tests/test-locale.c: Likewise.
61893         * tests/test-localename.c: Likewise.
61894         * tests/test-lock.c: Likewise.
61895         * tests/test-lseek.c: Likewise.
61896         * tests/test-malloca.c: Likewise.
61897         * tests/test-math.c: Likewise.
61898         * tests/test-mbscasecmp.c: Likewise.
61899         * tests/test-mbscasestr1.c: Likewise.
61900         * tests/test-mbscasestr2.c: Likewise.
61901         * tests/test-mbscasestr3.c: Likewise.
61902         * tests/test-mbscasestr4.c: Likewise.
61903         * tests/test-mbschr.c: Likewise.
61904         * tests/test-mbscspn.c: Likewise.
61905         * tests/test-mbsncasecmp.c: Likewise.
61906         * tests/test-mbspbrk.c: Likewise.
61907         * tests/test-mbspcasecmp.c: Likewise.
61908         * tests/test-mbsrchr.c: Likewise.
61909         * tests/test-mbsspn.c: Likewise.
61910         * tests/test-mbsstr1.c: Likewise.
61911         * tests/test-mbsstr2.c: Likewise.
61912         * tests/test-mbsstr3.c: Likewise.
61913         * tests/test-md5.c: Likewise.
61914         * tests/test-memmem.c: Likewise.
61915         * tests/test-netinet_in.c: Likewise.
61916         * tests/test-open.c: Likewise.
61917         * tests/test-printf-frexp.c: Likewise.
61918         * tests/test-printf-frexpl.c: Likewise.
61919         * tests/test-printf-posix.c: Likewise.
61920         * tests/test-printf-posix.h: Likewise.
61921         * tests/test-rbtree_list.c: Likewise.
61922         * tests/test-rbtree_oset.c: Likewise.
61923         * tests/test-rbtreehash_list.c: Likewise.
61924         * tests/test-read-file.c: Likewise.
61925         * tests/test-rijndael.c: Likewise.
61926         * tests/test-search.c: Likewise.
61927         * tests/test-signbit.c: Likewise.
61928         * tests/test-sleep.c: Likewise.
61929         * tests/test-snprintf-posix.c: Likewise.
61930         * tests/test-snprintf-posix.h: Likewise.
61931         * tests/test-snprintf.c: Likewise.
61932         * tests/test-sprintf-posix.c: Likewise.
61933         * tests/test-sprintf-posix.h: Likewise.
61934         * tests/test-stat-time.c: Likewise.
61935         * tests/test-stdbool.c: Likewise.
61936         * tests/test-stdint.c: Likewise.
61937         * tests/test-stdio.c: Likewise.
61938         * tests/test-stdlib.c: Likewise.
61939         * tests/test-stpncpy.c: Likewise.
61940         * tests/test-strcasestr.c: Likewise.
61941         * tests/test-striconv.c: Likewise.
61942         * tests/test-striconveh.c: Likewise.
61943         * tests/test-striconveha.c: Likewise.
61944         * tests/test-string.c: Likewise.
61945         * tests/test-sys_select.c: Likewise.
61946         * tests/test-sys_socket.c: Likewise.
61947         * tests/test-sys_stat.c: Likewise.
61948         * tests/test-sys_time.c: Likewise.
61949         * tests/test-sysexits.c: Likewise.
61950         * tests/test-time.c: Likewise.
61951         * tests/test-tls.c: Likewise.
61952         * tests/test-trunc.c: Likewise.
61953         * tests/test-truncf.c: Likewise.
61954         * tests/test-truncl.c: Likewise.
61955         * tests/test-unistd.c: Likewise.
61956         * tests/test-vasnprintf-posix.c: Likewise.
61957         * tests/test-vasnprintf-posix2.c: Likewise.
61958         * tests/test-vasnprintf.c: Likewise.
61959         * tests/test-vasprintf-posix.c: Likewise.
61960         * tests/test-vasprintf.c: Likewise.
61961         * tests/test-verify.c: Likewise.
61962         * tests/test-vfprintf-posix.c: Likewise.
61963         * tests/test-vprintf-posix.c: Likewise.
61964         * tests/test-vsnprintf-posix.c: Likewise.
61965         * tests/test-vsnprintf.c: Likewise.
61966         * tests/test-vsprintf-posix.c: Likewise.
61967         * tests/test-wchar.c: Likewise.
61968         * tests/test-wctype.c: Likewise.
61969         * tests/test-wcwidth.c: Likewise.
61970         * tests/test-xstrtol.c: Likewise.
61971         * tests/test-xvasprintf.c: Likewise.
61972         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61973         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61974         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61975         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61976         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61977         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61978         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61979         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61980         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61981         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61982         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61983         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61984         * tests/uniname/test-uninames.c: Likewise.
61985         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61986         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61987         * tests/unistdio/test-u16-printf1.h: Likewise.
61988         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61989         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61990         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61991         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61992         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61993         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61994         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61995         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61996         * tests/unistdio/test-u32-printf1.h: Likewise.
61997         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61998         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61999         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62000         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62001         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62002         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62003         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62004         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62005         * tests/unistdio/test-u8-printf1.h: Likewise.
62006         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62007         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62008         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62009         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62010         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62011         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62012         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62013         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62014         * tests/unistdio/test-ulc-printf1.h: Likewise.
62015         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62016         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62017         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62018         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62019         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62020         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62021         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62022         * tests/uniwidth/test-u16-width.c: Likewise.
62023         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62024         * tests/uniwidth/test-u32-width.c: Likewise.
62025         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62026         * tests/uniwidth/test-u8-width.c: Likewise.
62027         * tests/uniwidth/test-uc_width.c: Likewise.
62028         * config/srclist-update: Likewise.
62029         (fixlicense): Update to GPLv3+.
62030
62031         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62032         * tests/test-tsearch.c: Change copyright notice.
62033
62034         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62035         * lib/c-strcaseeq.h: Change copyright notice.
62036         * lib/streq.h: Likewise.
62037         * lib/uniconv.h: Likewise.
62038         * lib/uniconv/u-conv-from-enc.h: Likewise.
62039         * lib/uniconv/u-conv-to-enc.h: Likewise.
62040         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62041         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62042         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62043         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62044         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62045         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62046         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62047         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62048         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62049         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62050         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62051         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62052         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62053         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62054         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62055         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62056         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62057         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62058         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62059         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62060         * lib/uniname.h: Likewise.
62061         * lib/uniname/uniname.c: Likewise.
62062         * lib/unistdio.h: Likewise.
62063         * lib/unistdio/u-asnprintf.h: Likewise.
62064         * lib/unistdio/u-asprintf.h: Likewise.
62065         * lib/unistdio/u-printf-args.c: Likewise.
62066         * lib/unistdio/u-printf-args.h: Likewise.
62067         * lib/unistdio/u-printf-parse.h: Likewise.
62068         * lib/unistdio/u-snprintf.h: Likewise.
62069         * lib/unistdio/u-sprintf.h: Likewise.
62070         * lib/unistdio/u-vasprintf.h: Likewise.
62071         * lib/unistdio/u-vsnprintf.h: Likewise.
62072         * lib/unistdio/u-vsprintf.h: Likewise.
62073         * lib/unistdio/u16-asnprintf.c: Likewise.
62074         * lib/unistdio/u16-asprintf.c: Likewise.
62075         * lib/unistdio/u16-printf-parse.c: Likewise.
62076         * lib/unistdio/u16-snprintf.c: Likewise.
62077         * lib/unistdio/u16-sprintf.c: Likewise.
62078         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62079         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62080         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62081         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62082         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62083         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62084         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62085         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62086         * lib/unistdio/u16-vasnprintf.c: Likewise.
62087         * lib/unistdio/u16-vasprintf.c: Likewise.
62088         * lib/unistdio/u16-vsnprintf.c: Likewise.
62089         * lib/unistdio/u16-vsprintf.c: Likewise.
62090         * lib/unistdio/u32-asnprintf.c: Likewise.
62091         * lib/unistdio/u32-asprintf.c: Likewise.
62092         * lib/unistdio/u32-printf-parse.c: Likewise.
62093         * lib/unistdio/u32-snprintf.c: Likewise.
62094         * lib/unistdio/u32-sprintf.c: Likewise.
62095         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62096         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62097         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62098         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62099         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62100         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62101         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62102         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62103         * lib/unistdio/u32-vasnprintf.c: Likewise.
62104         * lib/unistdio/u32-vasprintf.c: Likewise.
62105         * lib/unistdio/u32-vsnprintf.c: Likewise.
62106         * lib/unistdio/u32-vsprintf.c: Likewise.
62107         * lib/unistdio/u8-asnprintf.c: Likewise.
62108         * lib/unistdio/u8-asprintf.c: Likewise.
62109         * lib/unistdio/u8-printf-parse.c: Likewise.
62110         * lib/unistdio/u8-snprintf.c: Likewise.
62111         * lib/unistdio/u8-sprintf.c: Likewise.
62112         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62113         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62114         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62115         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62116         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62117         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62118         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62119         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62120         * lib/unistdio/u8-vasnprintf.c: Likewise.
62121         * lib/unistdio/u8-vasprintf.c: Likewise.
62122         * lib/unistdio/u8-vsnprintf.c: Likewise.
62123         * lib/unistdio/u8-vsprintf.c: Likewise.
62124         * lib/unistdio/ulc-asnprintf.c: Likewise.
62125         * lib/unistdio/ulc-asprintf.c: Likewise.
62126         * lib/unistdio/ulc-printf-parse.c: Likewise.
62127         * lib/unistdio/ulc-snprintf.c: Likewise.
62128         * lib/unistdio/ulc-sprintf.c: Likewise.
62129         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62130         * lib/unistdio/ulc-vasprintf.c: Likewise.
62131         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62132         * lib/unistdio/ulc-vsprintf.c: Likewise.
62133         * lib/unistr.h: Likewise.
62134         * lib/unistr/u-cpy-alloc.h: Likewise.
62135         * lib/unistr/u-cpy.h: Likewise.
62136         * lib/unistr/u-endswith.h: Likewise.
62137         * lib/unistr/u-move.h: Likewise.
62138         * lib/unistr/u-set.h: Likewise.
62139         * lib/unistr/u-startswith.h: Likewise.
62140         * lib/unistr/u-stpcpy.h: Likewise.
62141         * lib/unistr/u-stpncpy.h: Likewise.
62142         * lib/unistr/u-strcat.h: Likewise.
62143         * lib/unistr/u-strcpy.h: Likewise.
62144         * lib/unistr/u-strcspn.h: Likewise.
62145         * lib/unistr/u-strdup.h: Likewise.
62146         * lib/unistr/u-strlen.h: Likewise.
62147         * lib/unistr/u-strncat.h: Likewise.
62148         * lib/unistr/u-strncpy.h: Likewise.
62149         * lib/unistr/u-strnlen.h: Likewise.
62150         * lib/unistr/u-strpbrk.h: Likewise.
62151         * lib/unistr/u-strspn.h: Likewise.
62152         * lib/unistr/u-strstr.h: Likewise.
62153         * lib/unistr/u-strtok.h: Likewise.
62154         * lib/unistr/u16-check.c: Likewise.
62155         * lib/unistr/u16-chr.c: Likewise.
62156         * lib/unistr/u16-cmp.c: Likewise.
62157         * lib/unistr/u16-cpy-alloc.c: Likewise.
62158         * lib/unistr/u16-cpy.c: Likewise.
62159         * lib/unistr/u16-endswith.c: Likewise.
62160         * lib/unistr/u16-mblen.c: Likewise.
62161         * lib/unistr/u16-mbsnlen.c: Likewise.
62162         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62163         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62164         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62165         * lib/unistr/u16-mbtouc.c: Likewise.
62166         * lib/unistr/u16-mbtoucr.c: Likewise.
62167         * lib/unistr/u16-move.c: Likewise.
62168         * lib/unistr/u16-next.c: Likewise.
62169         * lib/unistr/u16-prev.c: Likewise.
62170         * lib/unistr/u16-set.c: Likewise.
62171         * lib/unistr/u16-startswith.c: Likewise.
62172         * lib/unistr/u16-stpcpy.c: Likewise.
62173         * lib/unistr/u16-stpncpy.c: Likewise.
62174         * lib/unistr/u16-strcat.c: Likewise.
62175         * lib/unistr/u16-strchr.c: Likewise.
62176         * lib/unistr/u16-strcmp.c: Likewise.
62177         * lib/unistr/u16-strcpy.c: Likewise.
62178         * lib/unistr/u16-strcspn.c: Likewise.
62179         * lib/unistr/u16-strdup.c: Likewise.
62180         * lib/unistr/u16-strlen.c: Likewise.
62181         * lib/unistr/u16-strmblen.c: Likewise.
62182         * lib/unistr/u16-strmbtouc.c: Likewise.
62183         * lib/unistr/u16-strncat.c: Likewise.
62184         * lib/unistr/u16-strncmp.c: Likewise.
62185         * lib/unistr/u16-strncpy.c: Likewise.
62186         * lib/unistr/u16-strnlen.c: Likewise.
62187         * lib/unistr/u16-strpbrk.c: Likewise.
62188         * lib/unistr/u16-strrchr.c: Likewise.
62189         * lib/unistr/u16-strspn.c: Likewise.
62190         * lib/unistr/u16-strstr.c: Likewise.
62191         * lib/unistr/u16-strtok.c: Likewise.
62192         * lib/unistr/u16-to-u32.c: Likewise.
62193         * lib/unistr/u16-to-u8.c: Likewise.
62194         * lib/unistr/u16-uctomb-aux.c: Likewise.
62195         * lib/unistr/u16-uctomb.c: Likewise.
62196         * lib/unistr/u32-check.c: Likewise.
62197         * lib/unistr/u32-chr.c: Likewise.
62198         * lib/unistr/u32-cmp.c: Likewise.
62199         * lib/unistr/u32-cpy-alloc.c: Likewise.
62200         * lib/unistr/u32-cpy.c: Likewise.
62201         * lib/unistr/u32-endswith.c: Likewise.
62202         * lib/unistr/u32-mblen.c: Likewise.
62203         * lib/unistr/u32-mbsnlen.c: Likewise.
62204         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62205         * lib/unistr/u32-mbtouc.c: Likewise.
62206         * lib/unistr/u32-mbtoucr.c: Likewise.
62207         * lib/unistr/u32-move.c: Likewise.
62208         * lib/unistr/u32-next.c: Likewise.
62209         * lib/unistr/u32-prev.c: Likewise.
62210         * lib/unistr/u32-set.c: Likewise.
62211         * lib/unistr/u32-startswith.c: Likewise.
62212         * lib/unistr/u32-stpcpy.c: Likewise.
62213         * lib/unistr/u32-stpncpy.c: Likewise.
62214         * lib/unistr/u32-strcat.c: Likewise.
62215         * lib/unistr/u32-strchr.c: Likewise.
62216         * lib/unistr/u32-strcmp.c: Likewise.
62217         * lib/unistr/u32-strcpy.c: Likewise.
62218         * lib/unistr/u32-strcspn.c: Likewise.
62219         * lib/unistr/u32-strdup.c: Likewise.
62220         * lib/unistr/u32-strlen.c: Likewise.
62221         * lib/unistr/u32-strmblen.c: Likewise.
62222         * lib/unistr/u32-strmbtouc.c: Likewise.
62223         * lib/unistr/u32-strncat.c: Likewise.
62224         * lib/unistr/u32-strncmp.c: Likewise.
62225         * lib/unistr/u32-strncpy.c: Likewise.
62226         * lib/unistr/u32-strnlen.c: Likewise.
62227         * lib/unistr/u32-strpbrk.c: Likewise.
62228         * lib/unistr/u32-strrchr.c: Likewise.
62229         * lib/unistr/u32-strspn.c: Likewise.
62230         * lib/unistr/u32-strstr.c: Likewise.
62231         * lib/unistr/u32-strtok.c: Likewise.
62232         * lib/unistr/u32-to-u16.c: Likewise.
62233         * lib/unistr/u32-to-u8.c: Likewise.
62234         * lib/unistr/u32-uctomb.c: Likewise.
62235         * lib/unistr/u8-check.c: Likewise.
62236         * lib/unistr/u8-chr.c: Likewise.
62237         * lib/unistr/u8-cmp.c: Likewise.
62238         * lib/unistr/u8-cpy-alloc.c: Likewise.
62239         * lib/unistr/u8-cpy.c: Likewise.
62240         * lib/unistr/u8-endswith.c: Likewise.
62241         * lib/unistr/u8-mblen.c: Likewise.
62242         * lib/unistr/u8-mbsnlen.c: Likewise.
62243         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62244         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62245         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62246         * lib/unistr/u8-mbtouc.c: Likewise.
62247         * lib/unistr/u8-mbtoucr.c: Likewise.
62248         * lib/unistr/u8-move.c: Likewise.
62249         * lib/unistr/u8-next.c: Likewise.
62250         * lib/unistr/u8-prev.c: Likewise.
62251         * lib/unistr/u8-set.c: Likewise.
62252         * lib/unistr/u8-startswith.c: Likewise.
62253         * lib/unistr/u8-stpcpy.c: Likewise.
62254         * lib/unistr/u8-stpncpy.c: Likewise.
62255         * lib/unistr/u8-strcat.c: Likewise.
62256         * lib/unistr/u8-strchr.c: Likewise.
62257         * lib/unistr/u8-strcmp.c: Likewise.
62258         * lib/unistr/u8-strcpy.c: Likewise.
62259         * lib/unistr/u8-strcspn.c: Likewise.
62260         * lib/unistr/u8-strdup.c: Likewise.
62261         * lib/unistr/u8-strlen.c: Likewise.
62262         * lib/unistr/u8-strmblen.c: Likewise.
62263         * lib/unistr/u8-strmbtouc.c: Likewise.
62264         * lib/unistr/u8-strncat.c: Likewise.
62265         * lib/unistr/u8-strncmp.c: Likewise.
62266         * lib/unistr/u8-strncpy.c: Likewise.
62267         * lib/unistr/u8-strnlen.c: Likewise.
62268         * lib/unistr/u8-strpbrk.c: Likewise.
62269         * lib/unistr/u8-strrchr.c: Likewise.
62270         * lib/unistr/u8-strspn.c: Likewise.
62271         * lib/unistr/u8-strstr.c: Likewise.
62272         * lib/unistr/u8-strtok.c: Likewise.
62273         * lib/unistr/u8-to-u16.c: Likewise.
62274         * lib/unistr/u8-to-u32.c: Likewise.
62275         * lib/unistr/u8-uctomb-aux.c: Likewise.
62276         * lib/unistr/u8-uctomb.c: Likewise.
62277         * lib/unitypes.h: Likewise.
62278         * lib/uniwidth.h: Likewise.
62279         * lib/uniwidth/cjk.h: Likewise.
62280         * lib/uniwidth/u16-strwidth.c: Likewise.
62281         * lib/uniwidth/u16-width.c: Likewise.
62282         * lib/uniwidth/u32-strwidth.c: Likewise.
62283         * lib/uniwidth/u32-width.c: Likewise.
62284         * lib/uniwidth/u8-strwidth.c: Likewise.
62285         * lib/uniwidth/u8-width.c: Likewise.
62286         * lib/uniwidth/width.c: Likewise.
62287
62288 2007-10-07  Bruno Haible  <bruno@clisp.org>
62289
62290         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62291         The file is still under LGPL (see modules/inttypes).
62292
62293 2007-10-06  Bruno Haible  <bruno@clisp.org>
62294
62295         * modules/trunc (Dependencies): Add 'extensions'.
62296         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62297         Reported by Ben Pfaff <blp@gnu.org>.
62298
62299 2007-10-06  Bruno Haible  <bruno@clisp.org>
62300
62301         * modules/freopen-tests: New file.
62302         * tests/test-freopen.c: New file.
62303
62304         * modules/fopen-tests: New file.
62305         * tests/test-fopen.c: New file.
62306
62307         * modules/fopen: New file.
62308         * lib/fopen.c: New file.
62309         * m4/fopen.m4: New file.
62310         * modules/freopen: New file.
62311         * lib/freopen.c: New file.
62312         * m4/freopen.m4: New file.
62313         * lib/stdio.in.h (fopen, freopen): New declarations.
62314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62315         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62316         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62317         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62318         * doc/functions/fopen.texi: Mention the 'fopen' module.
62319         * doc/functions/freopen.texi: Mention the 'freopen' module.
62320
62321 2007-10-06  Bruno Haible  <bruno@clisp.org>
62322
62323         * modules/open-tests: New file.
62324         * tests/test-open.c: New file.
62325
62326         * modules/open: New file.
62327         * lib/open.c: New file.
62328         * m4/open.m4: New file.
62329         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62330         lib/open.c does.
62331         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62332         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62333         macros.
62334         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62335         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62336         REPLACE_OPEN.
62337         * doc/functions/open.texi: Mention the 'open' module.
62338
62339 2007-10-04  Bruno Haible  <bruno@clisp.org>
62340
62341         * modules/ceill-tests: New file.
62342         * tests/test-ceill.c: New file.
62343
62344         * modules/ceill: New file.
62345         * lib/ceill.c: Replace entire file.
62346         * m4/ceill.m4: New file.
62347         * lib/math.in.h (ceill): Replace declaration.
62348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62349         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62350         * doc/functions/ceill.texi: Mention the 'ceill' module.
62351         * modules/mathl (Files): Remove lib/ceill.c.
62352         (Depends-on): Add ceill.
62353
62354 2007-10-04  Bruno Haible  <bruno@clisp.org>
62355
62356         * modules/ceilf-tests: New file.
62357         * tests/test-ceilf.c: New file.
62358
62359         * modules/ceilf: New file.
62360         * lib/ceil.c: New file.
62361         * lib/ceilf.c: New file.
62362         * m4/ceilf.m4: New file.
62363         * lib/math.in.h (ceilf): New declaration.
62364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62365         HAVE_DECL_CEILF.
62366         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62367         HAVE_DECL_CEILF.
62368         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62369
62370 2007-10-04  Bruno Haible  <bruno@clisp.org>
62371
62372         * modules/floorl-tests: New file.
62373         * tests/test-floorl.c: New file.
62374
62375         * modules/floorl: New file.
62376         * lib/floorl.c: Replace entire file.
62377         * m4/floorl.m4: New file.
62378         * lib/math.in.h (floorl): Replace declaration.
62379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62380         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62381         * doc/functions/floorl.texi: Mention the 'floorl' module.
62382         * modules/mathl (Files): Remove lib/floorl.c.
62383         (Depends-on): Add floorl.
62384
62385 2007-10-04  Bruno Haible  <bruno@clisp.org>
62386
62387         * modules/floorf-tests: New file.
62388         * tests/test-floorf.c: New file.
62389
62390         * modules/floorf: New file.
62391         * lib/floor.c: New file.
62392         * lib/floorf.c: New file.
62393         * m4/floorf.m4: New file.
62394         * lib/math.in.h (floorf): New declaration.
62395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62396         HAVE_DECL_FLOORF.
62397         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62398         HAVE_DECL_FLOORF.
62399         * doc/functions/floorf.texi: Mention the 'floorf' module.
62400
62401 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62402             Bruno Haible  <bruno@clisp.org>
62403
62404         Advertise for the Git server instead of the CVS server.
62405         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62406         repository instead of the CVS one.
62407         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62408         about all VCS systems generically.
62409         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62410
62411 2007-10-04  Bruno Haible  <bruno@clisp.org>
62412
62413         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62414         means.
62415         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62416
62417 2007-10-04  Bruno Haible  <bruno@clisp.org>
62418
62419         * modules/truncl-tests: New file.
62420         * tests/test-truncl.c: New file.
62421
62422         * modules/truncl: New file.
62423         * lib/truncl.c: New file.
62424         * m4/truncl.m4: New file.
62425         * lib/math.in.h (truncl): New declaration.
62426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62427         HAVE_DECL_TRUNCL.
62428         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62429         HAVE_DECL_TRUNCL.
62430         * doc/functions/truncl.texi: Mention the 'truncl' module.
62431
62432 2007-10-04  Bruno Haible  <bruno@clisp.org>
62433
62434         * modules/truncf-tests: New file.
62435         * tests/test-truncf.c: New file.
62436
62437         * modules/truncf: New file.
62438         * lib/trunc.c: Make paramerizable through USE_* macros.
62439         * lib/truncf.c: New file.
62440         * m4/truncf.m4: New file.
62441         * lib/math.in.h (truncf): New declaration.
62442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62443         HAVE_DECL_TRUNCF.
62444         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62445         HAVE_DECL_TRUNCF.
62446         * doc/functions/truncf.texi: Mention the 'truncf' module.
62447
62448 2007-10-03  Bruno Haible  <bruno@clisp.org>
62449
62450         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62451         augmentation also for tests modules.
62452         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62453         * modules/atexit-tests (Makefile.am): Likewise.
62454         * modules/binary-io-tests (Makefile.am): Likewise.
62455         * modules/c-strcase-tests (Makefile.am): Likewise.
62456         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62457         * modules/canonicalize-tests (Makefile.am): Likewise.
62458         * modules/closein-tests (Makefile.am): Likewise.
62459         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62460         * modules/freadahead-tests (Makefile.am): Likewise.
62461         * modules/fseek-tests (Makefile.am): Likewise.
62462         * modules/fseeko-tests (Makefile.am): Likewise.
62463         * modules/ftell-tests (Makefile.am): Likewise.
62464         * modules/ftello-tests (Makefile.am): Likewise.
62465         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62466         * modules/isnanl-tests (Makefile.am): Likewise.
62467         * modules/lseek-tests (Makefile.am): Likewise.
62468         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62469         * modules/mbscasestr-tests (Makefile.am): Likewise.
62470         * modules/mbschr-tests (Makefile.am): Likewise.
62471         * modules/mbscspn-tests (Makefile.am): Likewise.
62472         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62473         * modules/mbspbrk-tests (Makefile.am): Likewise.
62474         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62475         * modules/mbsrchr-tests (Makefile.am): Likewise.
62476         * modules/mbsspn-tests (Makefile.am): Likewise.
62477         * modules/mbsstr-tests (Makefile.am): Likewise.
62478         * modules/printf-posix-tests (Makefile.am): Likewise.
62479         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62480         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62481         * modules/tsearch-tests (Makefile.am): Likewise.
62482         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62483         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62484         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62485         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62486         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62487         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62488         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62489         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62490         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62491         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62492         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62493         * modules/xstrtol-tests (Makefile.am): Likewise.
62494         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62495         * modules/yesno-tests (Makefile.am): Likewise.
62496
62497 2007-10-03  Bruno Haible  <bruno@clisp.org>
62498
62499         * modules/trunc-tests: New file.
62500         * tests/test-trunc.c: New file.
62501
62502         * modules/trunc: New file.
62503         * lib/trunc.c: New file.
62504         * m4/trunc.m4: New file.
62505         * lib/math.in.h (trunc): New declaration.
62506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62507         HAVE_DECL_TRUNC.
62508         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62509         HAVE_DECL_TRUNC.
62510         * doc/functions/trunc.texi: Mention the 'trunc' module.
62511
62512 2007-10-03  Bruno Haible  <bruno@clisp.org>
62513
62514         * tests/test-fpending.c: New file, mostly copied
62515         from coreutils/lib/t-fpending.c.
62516         * modules/fpending-tests: New file.
62517
62518 2007-10-03  Bruno Haible  <bruno@clisp.org>
62519
62520         Port the stdio extensions to QNX (untested).
62521         * lib/fseterr.c (fseterr): Add support for QNX.
62522         * lib/fbufmode.c (fbufmode): Likewise.
62523         * lib/freadable.c (freadable): Likewise.
62524         * lib/fwritable.c (fwritable): Likewise.
62525         * lib/freading.c (freading): Likewise.
62526         * lib/fwriting.c (fwriting): Likewise.
62527         * lib/freadahead.c (freadahed): Likewise.
62528         * lib/fpurge.c (fpurge): Likewise.
62529         * lib/fseeko.c (rpl_fseeko): Likewise.
62530
62531 2007-10-03  Bruno Haible  <bruno@clisp.org>
62532             Jim Meyering  <jim@meyering.net>
62533             Eric Blake  <ebb9@byu.net>
62534
62535         * doc/relocatable.texi: Use @command instead of @program.
62536
62537 2007-10-02  Jim Meyering  <jim@meyering.net>
62538
62539         Perform one more "_.h" -> ".in.h" substitution.
62540         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62541         instead of unistd_.h here, too.
62542
62543 2007-10-01  Bruno Haible  <bruno@clisp.org>
62544
62545         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62546         Needed for the alloca-opt module.
62547
62548 2007-09-30  Bruno Haible  <bruno@clisp.org>
62549
62550         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62551         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62552         alloca_.h.
62553         * lib/argz.in.h: Renamed from lib/argz_.h.
62554         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62555         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62556         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62557         byteswap_.h.
62558         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62559         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62560         dirent_.h.
62561         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62562         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62563         fcntl_.h.
62564         * lib/float.in.h: Renamed from lib/float_.h.
62565         * modules/float (Files, Makefile.am): Use float.in.h instead of
62566         float_.h.
62567         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62568         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62569         fnmatch_.h.
62570         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62571         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62572         getopt_.h.
62573         * lib/glob.in.h: Renamed from lib/glob_.h.
62574         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62575         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62576         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62577         iconv_.h.
62578         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62579         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62580         inttypes_.h.
62581         * lib/locale.in.h: Renamed from lib/locale_.h.
62582         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62583         locale_.h.
62584         * lib/math.in.h: Renamed from lib/math_.h.
62585         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62586         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62587         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62588         of netinet_in_.h. Add dependency.
62589         * lib/poll.in.h: Renamed from lib/poll_.h.
62590         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62591         * lib/search.in.h: Renamed from lib/search_.h.
62592         * modules/search (Files, Makefile.am): Use search.in.h instead of
62593         search_.h.
62594         * lib/signal.in.h: Renamed from lib/signal_.h.
62595         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62596         _signal.h.
62597         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62598         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62599         stdbool_.h.
62600         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62601         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62602         stdint_.h.
62603         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62604         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62605         stdio_.h.
62606         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62607         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62608         stdlib_.h.
62609         * lib/string.in.h: Renamed from lib/string_.h.
62610         * modules/string (Files, Makefile.am): Use string.in.h instead of
62611         string_.h.
62612         * doc/gnulib-tool.texi (Initial import): Update.
62613         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62614         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62615         of sys_select_.h. Add dependency.
62616         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62617         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62618         of sys_socket_.h.
62619         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62620         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62621         sys_stat_.h.
62622         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62623         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62624         sys_time_.h.
62625         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62626         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62627         sysexits_.h.
62628         * lib/time.in.h: Renamed from lib/time_.h.
62629         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62630         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62631         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62632         unistd_.h.
62633         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62634         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62635         wchar_.h.
62636         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62637         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62638         wctype_.h.
62639         * build-aux/bootstrap (slurp): Update.
62640         * lib/.cppi-disable: Update.
62641
62642 2007-09-30  Bruno Haible  <bruno@clisp.org>
62643
62644         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62645         Needed on BeOS.
62646
62647 2007-09-30  Bruno Haible  <bruno@clisp.org>
62648
62649         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62650
62651 2007-09-29  Bruno Haible  <bruno@clisp.org>
62652
62653         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62654
62655 2007-09-29  Bruno Haible  <bruno@clisp.org>
62656
62657         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62658         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62659         * build-aux/install-reloc: Compile also areadlink.c.
62660         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62661
62662 2007-09-29  Bruno Haible  <bruno@clisp.org>
62663
62664         * gnulib-tool (func_emit_initmacro_done): Indentation.
62665
62666 2007-09-29  Bruno Haible  <bruno@clisp.org>
62667
62668         * README: Add CVS checkout update instructions.
62669         Info from Bob Proulx <bob@proulx.com>.
62670
62671 2007-09-28  Eric Blake  <ebb9@byu.net>
62672
62673         Provide move-if-change.
62674         * build-aux/move-if-change: New file, based on best practice
62675         rather than any canonical upstream location.
62676
62677 2007-09-28  Jim Meyering  <jim@meyering.net>
62678
62679         Fix canonicalize loop-detection corner case.
62680         Do not attempt to stat the symlink values stored via seen_triple.
62681         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62682         on linux-2.6.18, (but not 2.6.22).
62683         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62684         triple_compare.  The former compares dev,ino,filename, while the latter
62685         would actually stat dirname(filename) when dev and ino were equal.
62686         * lib/hash-triple.c: Install <string.h>.
62687         (STREQ): Define.
62688         (triple_compare_ino_str): New function.
62689         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62690
62691 2007-09-28  Eric Blake  <ebb9@byu.net>
62692
62693         Enforce that AC_REPLACE_FUNCS files exist.
62694         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62695         override check for typos.
62696
62697         Fix test-closein on Solaris 10.
62698         * tests/test-closein.c (main): Don't assume stdin can be inherited
62699         closed on all systems.
62700         * tests/test-closein.sh: Likewise.
62701         Reported by Piotr Tarnowski.
62702
62703 2007-09-28  Jim Meyering  <jim@meyering.net>
62704
62705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62706
62707 2007-09-27  Jim Meyering  <jim@meyering.net>
62708
62709         canonicalize: Avoid a false-positive cycle failure.
62710         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62711         Sort.  Remove cycle-check.
62712         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62713         not cycle-check.h.
62714         (seen_triple): New function.
62715         (canonicalize_filename_mode): Use it instead of cycle-check.
62716         * tests/test-canonicalize.c: Add a test for this bug.
62717         * tests/test-canonicalize.sh: Set up and run the test.
62718
62719         New module, file-set, from coreutils.
62720         * modules/file-set: Define it.
62721         * lib/file-set.c, lib/file-set.h: Implement.
62722
62723         New module, hash-triple, from coreutils.
62724         * modules/hash-triple: Define it.
62725         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62726
62727 2007-09-25  Eric Blake  <ebb9@byu.net>
62728
62729         Fix strerror on Interix.
62730         * lib/string_.h (strerror): Declare replacement.
62731         * doc/functions/strerror.texi (strerror): Document the Interix
62732         shortcoming.
62733         * modules/string (Makefile.am): Support new hooks.
62734         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62735         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62736         gl_FUNC_STRERROR_SEPARATE.
62737         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62738         * lib/strerror.c (rpl_strerror): Provide replacement.
62739         * modules/strerror (Depends-on): Add string.
62740         (configure.ac): Detect use of module.
62741         * tests/test-strerror.c: New file.
62742         * modules/strerror-tests: New test module.
62743         * modules/argp (Depends-on): Add strerror.
62744         * modules/error (Depends-on): Likewise.
62745         Reported by Martin Koeppe.
62746
62747 2007-09-24  Bruno Haible  <bruno@clisp.org>
62748
62749         * README: Update git instructions.
62750
62751 2007-09-24  Eric Blake  <ebb9@byu.net>
62752
62753         Revert fpending breakage from 2007-09-08.
62754         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62755         __fpending.c.
62756
62757 2007-09-24  Jim Meyering  <jim@meyering.net>
62758
62759         filenamecat.c: Add a test.
62760         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62761         showing how the function works when DIR is the empty string.
62762
62763 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62764
62765         * tests/test-canonicalize.sh: Turn on executable bit.
62766
62767 2007-09-19  Eric Blake  <ebb9@byu.net>
62768
62769         * README: Update CVS instructions.
62770
62771 2007-09-18  Bruno Haible  <bruno@clisp.org>
62772
62773         * modules/areadlink: New file.
62774         * lib/areadlink.h (areadlink): New declaration.
62775         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62776
62777 2007-09-17  Jim Meyering  <jim@meyering.net>
62778
62779         * lib/savewd.c (ESTALE) [!defined]: Define.
62780         Reported to be required on Interix by Martin Koeppe.
62781
62782 2007-09-17  Bruno Haible  <bruno@clisp.org>
62783
62784         * gnulib-tool (func_version): Use $version.
62785
62786 2007-09-16  Bruno Haible  <bruno@clisp.org>
62787
62788         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62789         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62790         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62791         Reported by Greg Schafer <gschafer@zip.com.au>.
62792
62793 2007-09-15  Bruno Haible  <bruno@clisp.org>
62794
62795         * gnulib-tool (sed): Try a little harder to make bash understand the
62796         alias.
62797         Reported by Bruce Korb <bruce.korb@gmail.com>.
62798
62799 2007-09-13  Eric Blake  <ebb9@byu.net>
62800
62801         * ChangeLog: Remove conflict markers.
62802
62803 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62804
62805         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62806         Reported by Bruno Haible <bruno@clisp.org>.
62807
62808 2007-09-12  Bruno Haible  <bruno@clisp.org>
62809
62810         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62811         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62812         is not defined.
62813
62814 2007-09-12  Eric Blake  <ebb9@byu.net>
62815
62816         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62817         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62818         Autoconf definition.
62819         * modules/euidaccess (Depends-on): Add extensions, for
62820         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62821         * modules/fnmatch (Depends-on): Likewise.
62822         * modules/getaddrinfo (Depends-on): Likewise.
62823         * modules/getdelim (Depends-on): Likewise.
62824         * modules/getline (Depends-on): Likewise.
62825         * modules/getsubopt (Depends-on): Likewise.
62826         * modules/gettext (Depends-on): Likewise.
62827         * modules/group-member (Depends-on): Likewise.
62828         * modules/mbchar (Depends-on): Likewise.
62829         * modules/memmem (Depends-on): Likewise.
62830         * modules/mempcpy (Depends-on): Likewise.
62831         * modules/memrchr (Depends-on): Likewise.
62832         * modules/pagealign_alloc (Depends-on): Likewise.
62833         * modules/readutmp (Depends-on): Likewise.
62834         * modules/stpcpy (Depends-on): Likewise.
62835         * modules/stpncpy (Depends-on): Likewise.
62836         * modules/strchrnul (Depends-on): Likewise.
62837         * modules/strndup (Depends-on): Likewise.
62838         * modules/strsep (Depends-on): Likewise.
62839         * modules/strverscmp (Depends-on): Likewise.
62840         * modules/vasprintf (Depends-on): Likewise.
62841         * modules/wcwidth (Depends-on): Likewise.
62842         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62843         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62844         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62845         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62846         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62848         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62849         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62850         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62851         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62852         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62853         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62854         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62855         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62856         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62857         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62858         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62859         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62860         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62861         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62862         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62863         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62864         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62865         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62866         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62868         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62869         so that lock.m4 can be used in gettext without extensions module.
62870
62871 2007-09-11  Bruno Haible  <bruno@clisp.org>
62872
62873         * m4/isc-posix.m4: Remove file.
62874         Suggested by Eric Blake.
62875
62876 2007-09-11  Eric Blake  <ebb9@byu.net>
62877
62878         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62879
62880 2007-09-10  Bruno Haible  <bruno@clisp.org>
62881
62882         * posix-modules: Fix typo in error message.
62883         Reported by Matt <mkraai@beckman.com>.
62884
62885 2007-09-09  Bruno Haible  <bruno@clisp.org>
62886
62887         * doc/functions/getdelim.texi: Update list of platforms lacking the
62888         function.
62889         * doc/functions/getline.texi: Likewise.
62890
62891 2007-09-09  Jim Meyering  <jim@meyering.net>
62892
62893         * lib/hash.c (hash_initialize): Detect calloc failure.
62894         Reported by Bruno Haible.
62895
62896 2007-09-09  Bruno Haible  <bruno@clisp.org>
62897
62898         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62899         malloc or realloc fails.
62900
62901 2007-09-09  Bruno Haible  <bruno@clisp.org>
62902
62903         * modules/getcwd (Depends-on): Add malloc-posix.
62904         * modules/glob (Depends-on): Likewise.
62905         * modules/putenv (Depends-on): Likewise.
62906         * modules/strdup (Depends-on): Likewise.
62907         * modules/getdelim (Depends-on): Add realloc-posix.
62908         * modules/read-file (Depends-on): Likewise.
62909
62910 2007-09-09  Bruno Haible  <bruno@clisp.org>
62911
62912         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62913         (gl_FUNC_MALLOC_POSIX): Require it.
62914         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62915         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62916         * modules/realloc (Files): Add m4/malloc.m4.
62917         * modules/calloc (Files): Likewise.
62918
62919 2007-09-09  Bruno Haible  <bruno@clisp.org>
62920
62921         * modules/malloc-posix: New file.
62922         * modules/malloc (Depends-on): Add malloc-posix.
62923         * lib/malloc.c: Include errno.h.
62924         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62925         and a POSIX-compatible malloc into a single function. Set ENOMEM
62926         when returning NULL.
62927         * m4/malloc.m4: New file.
62928         * doc/functions/malloc.texi: Mention the malloc-posix module.
62929         * lib/stdlib_.h (malloc): New declaration.
62930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62931         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62932         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62933         and HAVE_MALLOC_POSIX.
62934
62935 2007-09-09  Bruno Haible  <bruno@clisp.org>
62936
62937         * modules/realloc-posix: New file.
62938         * modules/realloc (Depends-on): Add realloc-posix.
62939         * lib/realloc.c: Include errno.h.
62940         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62941         and a POSIX-compatible realloc into a single function. Set ENOMEM
62942         when returning NULL.
62943         * m4/realloc.m4: New file.
62944         * doc/functions/realloc.texi: Mention the realloc-posix module.
62945         * lib/stdlib_.h (realloc): New declaration.
62946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62947         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62948         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62949         and HAVE_REALLOC_POSIX.
62950
62951 2007-09-09  Bruno Haible  <bruno@clisp.org>
62952
62953         * modules/calloc-posix: New file.
62954         * modules/calloc (Depends-on): Add calloc-posix.
62955         * lib/calloc.c: Include errno.h.
62956         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62957         and a POSIX-compatible calloc into a single function. Set ENOMEM
62958         when returning NULL.
62959         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62960         * doc/functions/calloc.texi: Mention the calloc-posix module.
62961         * lib/stdlib_.h (calloc): New declaration.
62962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62963         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62964         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62965         and HAVE_CALLOC_POSIX.
62966
62967 2007-09-09  Bruno Haible  <bruno@clisp.org>
62968
62969         Allow for modules to show an arbitrary notice.
62970         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62971         * gnulib-tool: New option --extract-notice.
62972         (func_usage): Document it.
62973         (sed_extract_prog): Update.
62974         (func_get_notice): New function.
62975         (func_modules_notice): New function.
62976         (func_import, func_create_testdir): Invoke it.
62977         Suggested by Jim Meyering.
62978
62979 2007-09-09  Bruno Haible  <bruno@clisp.org>
62980
62981         * gnulib-tool: New options --verbose, --quiet.
62982         (func_usage): Document them.
62983         (verbose): New variable.
62984         (func_execute_command): New function.
62985         (func_import): Don't show the module list and the file list if
62986         $verbose < 0.
62987         (func_create_testdir): Likewise. Use func_execute_command.
62988         (func_create_megatestdir): Use func_execute_command.
62989
62990 2007-09-08  Bruno Haible  <bruno@clisp.org>
62991
62992         * gnulib-tool (func_import): Prefer rsync over wget when available,
62993         for fetching the PO files.
62994
62995 2007-09-08  Bruno Haible  <bruno@clisp.org>
62996
62997         * posix-modules: New file. Portions copied from gnulib-tool.
62998         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62999
63000 2007-09-08  Jim Meyering  <jim@meyering.net>
63001
63002         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63003         * lib/fpending.h: Rename from __fpending.h.
63004         * lib/fpending.c: Rename from __fpending.c.
63005         Include "fpending.h", not "__fpending.h".
63006         * lib/__fpending.h, lib/__fpending.c: Remove files.
63007         * modules/fpending (Files): Reflect new file names.
63008         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63009
63010 2007-09-08  Bruno Haible  <bruno@clisp.org>
63011
63012         * m4/inttypes-h.m4: Remove stub file.
63013
63014 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63015
63016         * doc/headers/stdint.texi: Discuss #include_next issue.
63017
63018 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63019
63020         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63021
63022 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63023
63024         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63025         in variable name.
63026
63027 2007-09-03  Jim Meyering  <jim@meyering.net>
63028
63029         New module: git-version-gen.
63030         * modules/git-version-gen: New file.
63031
63032         Import changes from coreutils for bootstrap script.
63033
63034         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63035
63036         bootstrap: uses rsync to download the .po files
63037         * build-aux/bootstrap (po_download_command_format): New global.
63038         (download_po_files): Use rsync.
63039         (update_po_files): Don't remove .po files after download,
63040         so future rsync runs can take advantage of the copies.
63041
63042         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63043
63044         Solve the unnecessary-.po-file-regeneration problem once and for all.
63045         * build-aux/bootstrap (download_po_files): New function, renamed from
63046         get_translations.  Now, downloads, but doesn't update LINGUAS.
63047         (update_po_files): New function.
63048
63049         bootstrap: Ignore more.
63050         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63051         uniwidth to e.g., lib/.gitignore.
63052         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63053
63054         * build-aux/bootstrap: New setting: vc_ignore.
63055         (insert_sorted_if_absent): Create $file if absent.
63056         Adapt to new, possibly empty, list: $vc_ignore.
63057
63058         bootstrap: generate more ignorable names
63059         * build-aux/bootstrap (slurp): When generating ignorable names,
63060         also map .sin to .sed, .gperf to .c, and .y to .c.
63061
63062 2007-09-03  Jim Meyering  <jim@meyering.net>
63063
63064         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63065         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63066
63067 2007-09-02  Bruno Haible  <bruno@clisp.org>
63068
63069         Fix mis-recognition of 'mcs' on QNX 6.
63070         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63071         output contains the string "Mono".
63072         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63073         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63074
63075 2007-09-01  Bruno Haible  <bruno@clisp.org>
63076
63077         Fix collision between uniwidth/* and linebreak modules.
63078         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63079         u32_width): Remove declarations.
63080         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63081         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63082         streq3, streq2, streq1, streq0): Remove functions.
63083         (STREQ): Remove macro.
63084         (is_cjk_encoding): Remove function.
63085         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63086         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63087         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63088         * NEWS: Document the change.
63089
63090 2007-09-01  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/streq.h: Add double-inclusion guard.
63093
63094 2007-09-01  Karl Berry  <karl@gnu.org>
63095
63096         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63097
63098 2007-08-28  Jim Meyering  <jim@meyering.net>
63099
63100         Rename mreadlink_with_size to areadlink_with_size.
63101         * NEWS: Document the change.
63102         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63103         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63104         * lib/mreadlink.h: Rename this to...
63105         * lib/areadlink.h: ...this.
63106         * modules/mreadlink-with-size: Rename this to...
63107         * modules/areadlink-with-size: ...this.
63108         * lib/canonicalize.c: Reflect the renaming.
63109         * modules/canonicalize: Likewise.
63110
63111 2007-08-26  Bruno Haible  <bruno@clisp.org>
63112
63113         * gnulib-tool (func_import): When deciding which files to remove,
63114         consider also dangling symbolic links.
63115         Reported by Eric Blake.
63116
63117 2007-08-26  Bruno Haible  <bruno@clisp.org>
63118
63119         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63120
63121 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63122
63123         * lib/readline.c: Don't include getline.h, the prototype is now
63124         found in stdio.h.
63125
63126 2007-08-23  Jim Meyering  <jim@meyering.net>
63127
63128         Getdelim touchup.
63129         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63130         around the funlockfile call, since funlockfile never sets errno.
63131         Don't set errno upon failed realloc.
63132
63133 2007-08-22  Eric Blake  <ebb9@byu.net>
63134
63135         Getline touchups.
63136         * lib/getdelim.c (getdelim): Revert regression that required *n to
63137         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63138         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63139         getdelim, rather than whether implementation is missing.
63140         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63141         * lib/stdio_.h (getline): Also declare if replacement is
63142         required.
63143         * doc/functions/getdelim.texi: New file.
63144         * doc/functions/getline.texi: Likewise.
63145         * doc/gnulib.texi (Function Substitutes): Add new files.
63146         Reported by Bruno Haible.
63147
63148 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63149
63150         * users.txt: Add Guile.
63151
63152 2007-08-22  Eric Blake  <ebb9@byu.net>
63153
63154         * tests/test-getdelim.c (main): Use remove, not unlink.
63155         * tests/test-getline.c (main): Likewise.
63156
63157         Move getline and getdelim into stdio.h, per POSIX 200x.
63158         * modules/getline (Files): Remove getline.h.
63159         (Depends-on): Add stdio.
63160         (configure.ac): Add module indicator.
63161         * modules/getdelim (Files): Remove getdelim.h.
63162         (Depends-on): Add stdio.
63163         (configure.ac): Add module indicator.
63164         * modules/stdio (Makefile.am): Work with new indicators.
63165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63166         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63167         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63168         * lib/getdelim.h: Delete.
63169         * lib/getline.h: Delete.
63170         * lib/stdio_.h (getdelim, getline): Declare.
63171         * modules/getdelim-tests: New module.
63172         * modules/getline-tests: Likewise.
63173         * tests/test-getdelim.c: New file.
63174         * tests/test-getline.c: Likewise.
63175         * NEWS: Document the change.
63176         * lib/getline.c: Update choice of header.
63177         * lib/csharpcomp.c: Likewise.
63178         * lib/getpass.c: Likewise.
63179         * lib/javacomp.c: Likewise.
63180         * lib/javaversion.c: Likewise.
63181         * lib/yesno.c: Likewise.
63182         * lib/getdelim.c: Likewise.
63183         (getdelim): Set errno on failure, and avoid memory leak.
63184
63185 2007-08-19  Bruno Haible  <bruno@clisp.org>
63186
63187         * modules/closein (Depends-on): Add freadahead.
63188         * lib/closein.c: Include freadahead.h.
63189         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63190         is zero.
63191
63192 2007-08-19  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/freadahead-tests: New file.
63195         * tests/test-freadahead.sh: New file.
63196         * tests/test-freadahead.c: New file.
63197
63198         * modules/freadahead: New file.
63199         * lib/freadahead.h: New file.
63200         * lib/freadahead.c: New file.
63201         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63202         fbufmode, fpurge, freadable, fwritable.
63203
63204 2007-08-19  Eric Blake  <ebb9@byu.net>
63205
63206         Test yesno in combination with closein.
63207         * lib/yesno.c (yesno): Document use of stdin.
63208         * modules/yesno-tests (Files): New module.
63209         * tests/test-yesno.c (main): New file.
63210         * tests/test-yesno.sh: Likewise.
63211
63212 2007-08-19  Bruno Haible  <bruno@clisp.org>
63213
63214         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63215         * lib/fseeko.c (rpl_fseeko): Likewise.
63216         * lib/fseterr.c (fseterr): Likewise.
63217
63218 2007-08-19  Bruno Haible  <bruno@clisp.org>
63219
63220         * tests/test-lseek.c (main): Disable a test for BeOS.
63221         * doc/functions/lseek.texi: Document the BeOS bug.
63222
63223 2007-08-19  Bruno Haible  <bruno@clisp.org>
63224             Eric Blake  <ebb9@byu.net>
63225
63226         * lib/lseek.c: Include <sys/stat.h>.
63227         (rpl_lseek): Add workaround code also for Unix platforms.
63228         Needed for BeOS.
63229         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63230         * doc/functions/lseek.texi: Document BeOS definiency.
63231
63232 2007-08-18  Bruno Haible  <bruno@clisp.org>
63233
63234         * modules/fstrcmp-tests: New file.
63235         * tests/test-fstrcmp.c: New file.
63236
63237 2007-08-18  Bruno Haible  <bruno@clisp.org>
63238
63239         * modules/fstrcmp: New file, from GNU gettext with modifications.
63240         * lib/fstrcmp.h: New file, from GNU gettext.
63241         * lib/fstrcmp.c: New file, from GNU gettext.
63242         * MODULES.html.sh (String handling): Add fstrcmp.
63243
63244 2007-08-18  Bruno Haible  <bruno@clisp.org>
63245
63246         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63247         'bool'.
63248         (diag, compareseq): Remove const from the ctxt argument.
63249         (USE_HEURISTIC): Undefine at the end.
63250
63251 2007-08-18  Jim Meyering  <jim@meyering.net>
63252
63253         New file: lib/idcache.h
63254         * NEWS: Mention the addition.
63255         * modules/idcache (Files): Add lib/idcache.h
63256         * lib/idcache.c: Include "idcache.h".
63257         Don't include <sys/types.h>.
63258         Add a FIXME comment.
63259         Move file-scoped "static" declarations to the top.
63260         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63261
63262 2007-08-17  Bruno Haible  <bruno@clisp.org>
63263         and Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * MODULES.html.sh: Add diffseq.
63266         * modules/diffseq: New file.
63267         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63268         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63269
63270 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63271
63272         Import changes from coreutils for bootstrap script.
63273
63274         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63275
63276         * build-aux/bootstrap (slurp): Work even in environments where
63277         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63278         current code does not slurp files whose names start with ".", and
63279         this looks like it might be a troublesome area.
63280
63281         2007-07-11  Jim Meyering  <jim@meyering.net>
63282
63283         If there's a GPL vN copyright comment, require that N == 3.
63284
63285         2007-07-08  Jim Meyering  <jim@meyering.net>
63286
63287         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63288         * build-aux/bootstrap (mam_template): Move definition out of loop.
63289
63290         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63291
63292         * build-aux/bootstrap (symlink_to_dir): Rename function from
63293         symlink_to_gnulib.  Add a directory parameter.  Update all
63294         callers.
63295         (cp_mark_as_generated): Also check for -- and link to -- files in
63296         gl/.
63297
63298         2007-07-08  Jim Meyering  <jim@meyering.net>
63299
63300         Adapt to deeper hierarchy in gnulib.
63301         * build-aux/bootstrap (symlink_to_dir): If the destination
63302         directory doesn't exist, create it. This is required at least for
63303         "lib/uniwidth/cjk.h".
63304
63305         2007-05-15  Jim Meyering  <jim@meyering.net>
63306
63307         * build-aux/bootstrap: Now that generated Makefile.am files
63308         are no longer under version control, they must be created at
63309         bootstrap time.
63310
63311 2007-08-14  Ben Pfaff  <blp@gnu.org>
63312
63313         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63314
63315 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63316
63317         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63318         given the changes below.
63319         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63320         even on hosts that have padding bits beyond the supported 64.
63321
63322 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63323
63324         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63325         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63326         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63327         depends on it.
63328         (xstrtol_error): Remove.
63329         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63330         but with a different signature.
63331         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63332         * lib/xstrtol-error.c: Include exitfail.h.
63333         (xstrtol_fatal): New function, with a different signature from the
63334         old xstrtol_error, so that the caller need not worry about passing
63335         in an exit status, or about storage management of the option argument.
63336         (xstrtol_error): Now a static function.  Redo signature to
63337         implement xstrtol_fatal.  Output the correct number of hyphens in
63338         front of the option so that the caller need not worry about
63339         storage management.
63340         (N_): New macro.
63341         (_): Remove; not used now.
63342         * modules/xstrtol: Depend on getopt.
63343         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63344         of old STRTOL_FATAL_ERROR macro.
63345         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63346         of test program.
63347         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63348         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63349
63350 2007-08-08  Eric Blake  <ebb9@byu.net>
63351
63352         * lib/xstrtol-error.c: Add missing include.
63353
63354         Move xstrtol messages into gnulib domain, when --pobase is used.
63355         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63356         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63357         * modules/xstrtol (Files): Distribute new file.
63358         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63359         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63360         * tests/test-xstrtol.c: ...into new file.
63361         * tests/test-xstrtoul.c: Also test xstrtoul.
63362         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63363         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63364         * tests/test-xstrtol.sh: Drive the tests.
63365         * tests/test-xstrtoimax.sh: Likewise.
63366         * tests/test-xstrtoumax.sh: Likewise.
63367         * modules/xstrtol-tests: New module.
63368         * modules/xstrtoimax-tests: Likewise.
63369         * modules/xstrtoumax-tests: Likewise.
63370
63371 2007-08-08  Jim Meyering  <jim@meyering.net>
63372
63373         New function: mfile_name_concat.
63374         * lib/filenamecat.c (mfile_name_concat): New function, just like
63375         file_name_concat, but return NULL upon failure rather than exiting
63376         with a diagnostic.
63377         * lib/filenamecat.h: Declare it.
63378
63379 2007-08-07  Bruno Haible  <bruno@clisp.org>
63380
63381         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63382         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63383         warning from gcc.
63384         Reported by Eric Blake.
63385
63386 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63387
63388         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63389         * modules/crypto/arcfour (License): Likewise.
63390         * modules/crypto/des-tests (License): Likewise.
63391         * modules/crypto/gc-arctwo-tests (License): Likewise.
63392         * modules/crypto/gc-des-tests (License): Likewise.
63393         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63394         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63395         * modules/crypto/gc-md2-tests (License): Likewise.
63396         * modules/crypto/gc-md4-tests (License): Likewise.
63397         * modules/crypto/gc-md5-tests (License): Likewise.
63398         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63399         * modules/crypto/gc-rijndael-tests (License): Likewise.
63400         * modules/crypto/gc-sha1-tests (License): Likewise.
63401         * modules/crypto/gc-tests (License): Likewise.
63402         * modules/crypto/hmac-md5 (License): Likewise.
63403         * modules/crypto/hmac-sha1 (License): Likewise.
63404         * modules/crypto/md2-tests (License): Likewise.
63405         * modules/crypto/md4-tests (License): Likewise.
63406         * modules/crypto/md5 (License): Likewise.
63407         * modules/crypto/rijndael (License): Likewise.
63408         * modules/crypto/sha1 (License): Likewise.
63409         * modules/memxor (License): Likewise.
63410
63411 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63412         and Bruno Haible  <bruno@clisp.org>
63413
63414         * NEWS: Describe interface changes to human, xstrtol.
63415         * lib/human.h: Include <xstrtol.h>.
63416         (human_options): Return enum strtol_error, not int.  Remove
63417         bool arg; take int * instead.
63418         * lib/human.c: Don't include "gettext.h".
63419         (_): Remove; no longer used.
63420         Don't include <xstrtol.h>, since human.h does it.
63421         (human_options): Adjust to abovementioned interface changes.
63422         Do not report error to stderr; that's now the caller's
63423         responsibility.
63424         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63425         interface change.
63426         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63427         Str, Argument_type_string.  All uses changed.  Put " argument"
63428         in diagnostics to make them clearer.  Change wording of suffix
63429         message for clarity.
63430         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63431         Argument_type_string.
63432         (STRTOL_FATAL_WARN): Remove; no longer used.
63433         * modules/human (Depends-on): Remove gettext-h.
63434
63435 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63436
63437         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63438
63439 2007-07-31  Bruno Haible  <bruno@clisp.org>
63440
63441         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63442         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63443         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63444
63445 2007-07-31  Bruno Haible  <bruno@clisp.org>
63446
63447         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63448         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63449
63450 2007-07-30  Bruno Haible  <bruno@clisp.org>
63451
63452         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63453         * modules/c-ctype (License): Likewise.
63454         * modules/c-strcase (License): Likewise.
63455         * modules/check-version (License): Likewise.
63456         * modules/iconv (License): Likewise.
63457         * modules/iconv_open (License): Likewise.
63458         * modules/read-file (License): Likewise.
63459         * modules/striconv (License): Likewise.
63460         * modules/strverscmp (License): Likewise.
63461         * modules/vasprintf (License): Likewise.
63462         * modules/crypto/des (License): Likewise.
63463         * modules/crypto/gc (License): Likewise.
63464         * modules/crypto/gc-arcfour (License): Likewise.
63465         * modules/crypto/gc-arctwo (License): Likewise.
63466         * modules/crypto/gc-des (License): Likewise.
63467         * modules/crypto/gc-hmac-md5 (License): Likewise.
63468         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63469         * modules/crypto/gc-md2 (License): Likewise.
63470         * modules/crypto/gc-md4 (License): Likewise.
63471         * modules/crypto/gc-md5 (License): Likewise.
63472         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63473         * modules/crypto/gc-random (License): Likewise.
63474         * modules/crypto/gc-rijndael (License): Likewise.
63475         * modules/crypto/gc-sha1 (License): Likewise.
63476         * modules/crypto/md2 (License): Likewise.
63477         * modules/crypto/md4 (License): Likewise.
63478
63479 2007-07-30  Jim Meyering  <jim@meyering.net>
63480
63481         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63482         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63483         it has valid stat data.  This bug would cause du not to count the
63484         sizes of inaccessible directories.
63485         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63486         in <http://bugzilla.redhat.com/250077>.
63487
63488 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63489             Bruno Haible  <bruno@clisp.org>
63490
63491         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63492         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63493         #include_next, gives a diagnostic about it, but reports no error in
63494         the exit code.
63495         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63496
63497 2007-07-24  Ben Pfaff  <blp@gnu.org>
63498
63499         Improve name: "count-one-bits" is better than "popcount".
63500         * MODULES.html.sh: Update name.
63501         * lib/popcount.h: Renamed lib/count-one-bits.h.
63502         (popcount): Renamed count_one_bits.
63503         (popcountl): Renamed count_one_bits_l.
63504         (popcountll): Renamed count_one_bits_ll.
63505         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63506         * modules/popcount: Renamed module/count-one-bits.
63507         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63508         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63509
63510 2007-07-23  Ben Pfaff  <blp@gnu.org>
63511
63512         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63513         better code generation, and add U to large constants to avoid
63514         warnings, in non-GCC case.
63515         Suggested by Bruno Haible.
63516
63517 2007-07-23  Ben Pfaff  <blp@gnu.org>
63518
63519         * lib/popcount.h: Use verify_true instead of if...abort.
63520         * modules/popcount: Depend on verify module.
63521         Suggested by Jim Meyering.
63522
63523 2007-07-23  Bruno Haible  <bruno@clisp.org>
63524
63525         * gnulib-tool (func_import): Create a .cvsignore file also when the
63526         directory is not yet in CVS but the toplevel directory is. When
63527         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63528         Reported by Karl Berry.
63529
63530 2007-07-22  Ben Pfaff  <blp@gnu.org>
63531
63532         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63533         case.
63534         Suggested by Eric Blake.
63535
63536 2007-07-22  Ben Pfaff  <blp@gnu.org>
63537
63538         New module: popcount.
63539         * MODULES.html.sh: Add popcount.
63540         * modules/popcount: New file.
63541         * modules/popcount-tests: New file.
63542         * tests/test-popcount.c: New file.
63543         * lib/popcount.h: New file.
63544         * m4/popcount.m4: New file.
63545
63546 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63547
63548         * build-aux/announce-gen: Update to GPLv3.
63549
63550         * build-aux/config.guess: Update from config.
63551
63552 2007-07-21  Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63555         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63556
63557 2007-07-20  Jim Meyering  <jim@meyering.net>
63558
63559         * check-module: Diagnose a self-dependency.
63560
63561 2007-07-19  Bruno Haible  <bruno@clisp.org>
63562
63563         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63564         empty.
63565         Reported by Eric Blake.
63566
63567 2007-07-18  Bruno Haible  <bruno@clisp.org>
63568
63569         * gnulib-tool: New options --po-base, --po-domain.
63570         (func_usage): Document them.
63571         (pobase, po_domain): New variables.
63572         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63573         DEFAULT_TEXT_DOMAIN.
63574         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63575         (func_import): Consider pobase and po_domain. Create a po/ directory.
63576         (func_create_testdir): Set pobase and po_domain to empty.
63577         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63578         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63579
63580 2007-07-18  Bruno Haible  <bruno@clisp.org>
63581
63582         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63583         EXTRA_DIST augmentation for files in build-aux/.
63584
63585 2007-07-16  Bruno Haible  <bruno@clisp.org>
63586
63587         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63588         * modules/getdelim (License): Likewise.
63589
63590 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63591
63592         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63593         * modules/d-type (License): Likewise.
63594         * modules/extensions (License): Likewise.
63595         * modules/fnmatch (License): Likewise.
63596         * modules/fseeko (License): Likewise.
63597         * modules/getaddrinfo (License): Likewise.
63598         * modules/getline (License): Likewise.
63599         * modules/getlogin_r (License): Likewise.
63600         * modules/getpass (License): Likewise.
63601         * modules/gettimeofday (License): Likewise.
63602         * modules/glob (License): Likewise.
63603         * modules/inet_ntop (License): Likewise.
63604         * modules/malloc (License): Likewise.
63605         * modules/malloca (License): Likewise.
63606         * modules/memmem (License): Likewise.
63607         * modules/mempcpy (License): Likewise.
63608         * modules/memset (License): Likewise.
63609         * modules/minmax (License): Likewise.
63610         * modules/mktime (License): Likewise.
63611         * modules/netinet_in (License): Likewise.
63612         * modules/pathmax (License): Likewise.
63613         * modules/poll (License): Likewise.
63614         * modules/regex (License): Likewise.
63615         * modules/snprintf (License): Likewise.
63616         * modules/stdbool (License): Likewise.
63617         * modules/stdint (License): Likewise.
63618         * modules/stdio (License): Likewise.
63619         * modules/strcase (License): Likewise.
63620         * modules/strcasestr (License): Likewise.
63621         * modules/strdup (License): Likewise.
63622         * modules/string (License): Likewise.
63623         * modules/strndup (License): Likewise.
63624         * modules/strnlen (License): Likewise.
63625         * modules/strpbrk (License): Likewise.
63626         * modules/strptime (License): Likewise.
63627         * modules/strsep (License): Likewise.
63628         * modules/sys_select (License): Likewise.
63629         * modules/sys_socket (License): Likewise.
63630         * modules/sys_stat (License): Likewise.
63631         * modules/sys_time (License): Likewise.
63632         * modules/time (License): Likewise.
63633         * modules/time_r (License): Likewise.
63634         * modules/timegm (License): Likewise.
63635         * modules/unistd (License): Likewise.
63636         * modules/vsnprintf (License): Likewise.
63637         * modules/wctype (License): Likewise.
63638
63639 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63640
63641         * modules/argz (License): LGPLv2+.
63642
63643 2007-07-15  Karl Berry  <karl@gnu.org>
63644
63645         * doc/gnulib.texi: revise node structure per new fdl.texi.
63646
63647 2007-07-14  Bruno Haible  <bruno@clisp.org>
63648
63649         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63650         the output file.
63651         * lib/uniname/uninames.h: Regenerated.
63652
63653 2007-07-14  Karl Berry  <karl@gnu.org>
63654
63655         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63656         omitting sectioning and index commands.
63657
63658 2007-07-13  Bruno Haible  <bruno@clisp.org>
63659
63660         New gnulib-tool option --more-symlinks.
63661         * gnulib-tool (func_usage): Document --more-symlinks.
63662         (do_copyrights): New variable.
63663         Recognize option --more-symlinks.
63664         (func_import): Don't add a copyright notice transform to
63665         sed_transform_lib_file if do_copyrights is empty.
63666
63667 2007-07-13  Bruno Haible  <bruno@clisp.org>
63668
63669         * lib/vasnprintf.c (decimal_point_char): Define also if
63670         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63671         && !NEED_PRINTF_DIRECTIVE_A.
63672         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63673         Gary V. Vaughan <gary@gnu.org>.
63674
63675 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63676
63677         * lib/inttypes_.h: Undo previous change, since it was fixed
63678         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63679
63680 2007-07-13  Bruno Haible  <bruno@clisp.org>
63681
63682         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63683         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63684
63685 2007-07-13  Jim Meyering  <jim@meyering.net>
63686
63687         df: Don't fail for Tru64's "file-on-file mount".
63688         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63689         so we fall through and use statfs instead.  Details here:
63690         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63691         Reported by Albert Chin.
63692
63693 2007-07-13  Bruno Haible  <bruno@clisp.org>
63694
63695         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63696         * modules/configmake (License): Likewise.
63697         * modules/gettext (License): Likewise.
63698         * modules/gettext-h (License): Likewise.
63699         * modules/include_next (License): Likewise.
63700         * modules/link-warning (License): Likewise.
63701         * modules/localcharset (License): Likewise.
63702         * modules/localename (License): Likewise.
63703         * modules/lock (License): Likewise.
63704         * modules/relocatable-lib-lgpl (License): Likewise.
63705         * modules/size_max (License): Likewise.
63706         * modules/vasnprintf (License): Likewise.
63707         * modules/wchar (License): Likewise.
63708         * modules/xsize (License): Likewise.
63709
63710 2007-07-13  Bruno Haible  <bruno@clisp.org>
63711
63712         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63713         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63714
63715 2007-07-12  Bruno Haible  <bruno@clisp.org>
63716
63717         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63718         in the modules files.
63719
63720 2007-07-11  Karl Berry  <karl@gnu.org>
63721
63722         * MODULES.html.sh (func_module): use
63723          sed -e '\|^'"${includefile}"'$|d'
63724          instead of /.../d, to avoid errors on $includefile's containing /.
63725
63726 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63727
63728         * gnulib-tool (func_import): Avoid duplication of --avoid
63729         statements
63730         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63731         names to `_' in variable names.
63732
63733 2007-07-10  Eric Blake  <ebb9@byu.net>
63734
63735         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63736         * NEWS: Document this change.
63737
63738 2007-07-08  Bruno Haible  <bruno@clisp.org>
63739
63740         Update to Unicode 5.0.
63741         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63742         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63743         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63744         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63745         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63746         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63747         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63748         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63749         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63750         U+10A3F, U+1D242..U+1D244.
63751         (nonspacing_table_ind): Update.
63752         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63753         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63754
63755 2007-07-08  Bruno Haible  <bruno@clisp.org>
63756
63757         Update to Unicode 5.0.
63758         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63759         code transform. Extend the name index field of unicode_name_to_code and
63760         unicode_code_to_name from 16 to 24 bits.
63761         * lib/uniname/uniname.c (unicode_character_name,
63762         unicode_name_character): Add the range 0x12xxx to the code transform.
63763         * lib/uniname/uninames.h: Regenerated.
63764         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63765
63766 2007-07-07  Bruno Haible  <bruno@clisp.org>
63767
63768         * modules/wcwidth-tests: New file.
63769         * tests/test-wcwidth.c: New file.
63770
63771         Work around MacOS X wcwidth() bug.
63772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63773         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63774         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63775         original wcwidth in non-UTF-8 locales.
63776         * modules/wcwidth (Depends-on): Add localcharset, streq,
63777         uniwidth/width.
63778         * doc/functions/wcwidth.texi: Update.
63779
63780 2007-07-07  Bruno Haible  <bruno@clisp.org>
63781
63782         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63783         (wcwidth): New declaration.
63784         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63785         macros.
63786         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63787         here. Prepare for creating <wchar.h> unconditionally.
63788         * modules/wchar (Depends-on): Add link-warning.
63789         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63790         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63791         * lib/wcwidth.h: Remove file.
63792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63793         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63794         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63795         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63796         (Include): Replace wcwidth.h with <wchar.h>.
63797         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63798         * lib/mbchar.h: Don't include wcwidth.h.
63799         * lib/mbswidth.c: Likewise.
63800         * NEWS: Mention the change.
63801
63802 2007-07-07  Bruno Haible  <bruno@clisp.org>
63803
63804         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63805         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63806         definition with an external declaration.
63807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63808         defined as a function. Remove AC_C_INLINE requirement.
63809         * modules/wcwidth (Files): Add lib/wcwidth.c.
63810         (Makefile.am): Remove redundant statement.
63811
63812 2007-07-07  Bruno Haible  <bruno@clisp.org>
63813
63814         * MODULES.html.sh (Unicode string functions): Add the new modules.
63815
63816         * tests/uniwidth/test-u32-strwidth.c: New file.
63817         * modules/uniwidth/u32-strwidth-tests: New file.
63818
63819         * lib/uniwidth/u32-strwidth.c: New file.
63820         * modules/uniwidth/u32-strwidth: New file.
63821
63822         * tests/uniwidth/test-u16-strwidth.c: New file.
63823         * modules/uniwidth/u16-strwidth-tests: New file.
63824
63825         * lib/uniwidth/u16-strwidth.c: New file.
63826         * modules/uniwidth/u16-strwidth: New file.
63827
63828         * tests/uniwidth/test-u8-strwidth.c: New file.
63829         * modules/uniwidth/u8-strwidth-tests: New file.
63830
63831         * lib/uniwidth/u8-strwidth.c: New file.
63832         * modules/uniwidth/u8-strwidth: New file.
63833
63834         * tests/uniwidth/test-u32-width.c: New file.
63835         * modules/uniwidth/u32-width-tests: New file.
63836
63837         * lib/uniwidth/u32-width.c: New file.
63838         * modules/uniwidth/u32-width: New file.
63839
63840         * tests/uniwidth/test-u16-width.c: New file.
63841         * modules/uniwidth/u16-width-tests: New file.
63842
63843         * lib/uniwidth/u16-width.c: New file.
63844         * modules/uniwidth/u16-width: New file.
63845
63846         * tests/uniwidth/test-u8-width.c: New file.
63847         * modules/uniwidth/u8-width-tests: New file.
63848
63849         * lib/uniwidth/u8-width.c: New file.
63850         * modules/uniwidth/u8-width: New file.
63851
63852         * tests/uniwidth/test-uc_width.c: New file.
63853         * modules/uniwidth/width-tests: New file.
63854
63855         * lib/uniwidth/width.c: New file, from GNU libiconv.
63856         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63857         * modules/uniwidth/width: New file.
63858
63859         * lib/uniwidth.h: New file, from GNU libiconv.
63860         * modules/uniwidth/base: New file.
63861
63862 2007-07-07  Bruno Haible  <bruno@clisp.org>
63863
63864         * lib/uniname.h: New file, from GNU gettext.
63865         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63866         * lib/uniname/uninames.h: New file, from GNU gettext.
63867         * lib/uniname/uniname.c: New file, from GNU gettext.
63868         * tests/uniname/test-uninames.sh: New file.
63869         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63870         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63871         * modules/uniname/base: New file.
63872         * modules/uniname/uniname: New file.
63873         * modules/uniname/uniname-tests: New file.
63874         * MODULES.html.sh (Unicode string functions): Add the new modules.
63875
63876 2007-07-06  Bruno Haible  <bruno@clisp.org>
63877
63878         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63879
63880 2007-07-06  Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63883         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63884         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63885         include <sys/time.h>.
63886         Reported by Eric Blake.
63887
63888 2007-07-06  Eric Blake  <ebb9@byu.net>
63889
63890         Fix testing canonicalize on cygwin.
63891         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63892         Revert patch from 2007-06-19.
63893         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63894         canonicalize module is also in use.
63895         * tests/test-canonicalize.c: New file.
63896         * tests/test-canonicalize.sh: Likewise.
63897         * modules/canonicalize-tests: Likewise.
63898
63899 2007-07-06  Jim Meyering  <jim@meyering.net>
63900
63901         * lib/getugroups.c (getugroups): Detect getgrent failure.
63902         Adjust comment to reflect reality: this function may return -1.
63903
63904 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63905
63906         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63907         the new TP address.
63908         (usage): Fix typo
63909         (gnulib_mk): New variable.
63910
63911 2007-07-05  Jim Meyering  <jim@meyering.net>
63912
63913         Don't let endgrent clobber errno, no matter how improbable.
63914         * lib/getugroups.c (getugroups): Save and restore errno around
63915         endgrent call.
63916
63917         Close the group DB even when failing with 2^31 or more members.
63918         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63919
63920 2007-07-04  Jim Meyering  <jim@meyering.net>
63921
63922         * lib/getugroups.h: New file.
63923         * lib/getugroups.c: Include "getugroups.h".
63924         Remove uses of "register" keyword.
63925         Move local variable, "cp", down into scope where used.
63926         Give "username" parameter the "const" attribute.
63927         * modules/getugroups (Files): Add lib/getugroups.h
63928
63929 2007-07-04  Karl Berry  <karl@gnu.org>
63930
63931         * MODULES.html.sh (func_all_modules): Complete rename of
63932         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63933
63934 2007-07-02  Bruno Haible  <bruno@clisp.org>
63935
63936         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63937         mode, when inttypes.h comes from gnulib.
63938         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63939
63940 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63941
63942         * NEWS: Mention lgpl module name change.
63943
63944         * modules/lgpl-2.1: Renamed from lgpl.
63945
63946         * NEWS: Mention gpl module name change.
63947
63948         * modules/gpl-3.0: New file, based on gpl-2.0.
63949
63950         * modules/gpl-2.0: Renamed from gpl.
63951
63952         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63953         doc/gpl-2.0.texi.
63954
63955 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63958         #define __STDC_LIMIT_MACROS temporarily while including
63959         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63960         Problem reported by Joel E. Denny in
63961         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63962
63963 2007-07-01  Bruno Haible  <bruno@clisp.org>
63964
63965         * lib/unistdio.h: New file.
63966         * lib/unistdio/u-asnprintf.h: New file.
63967         * lib/unistdio/u-asprintf.h: New file.
63968         * lib/unistdio/u-printf-args.c: New file.
63969         * lib/unistdio/u-printf-args.h: New file.
63970         * lib/unistdio/u-printf-parse.h: New file.
63971         * lib/unistdio/u-snprintf.h: New file.
63972         * lib/unistdio/u-sprintf.h: New file.
63973         * lib/unistdio/u-vasprintf.h: New file.
63974         * lib/unistdio/u-vsnprintf.h: New file.
63975         * lib/unistdio/u-vsprintf.h: New file.
63976         * lib/unistdio/ulc-asnprintf.c: New file.
63977         * lib/unistdio/ulc-asprintf.c: New file.
63978         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63979         * lib/unistdio/ulc-printf-parse.c: New file.
63980         * lib/unistdio/ulc-snprintf.c: New file.
63981         * lib/unistdio/ulc-sprintf.c: New file.
63982         * lib/unistdio/ulc-vasnprintf.c: New file.
63983         * lib/unistdio/ulc-vasprintf.c: New file.
63984         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63985         * lib/unistdio/ulc-vsnprintf.c: New file.
63986         * lib/unistdio/ulc-vsprintf.c: New file.
63987         * lib/unistdio/u8-asnprintf.c: New file.
63988         * lib/unistdio/u8-asprintf.c: New file.
63989         * lib/unistdio/u8-printf-parse.c: New file.
63990         * lib/unistdio/u8-snprintf.c: New file.
63991         * lib/unistdio/u8-sprintf.c: New file.
63992         * lib/unistdio/u8-vasnprintf.c: New file.
63993         * lib/unistdio/u8-vasprintf.c: New file.
63994         * lib/unistdio/u8-vsnprintf.c: New file.
63995         * lib/unistdio/u8-vsprintf.c: New file.
63996         * lib/unistdio/u8-u8-asnprintf.c: New file.
63997         * lib/unistdio/u8-u8-asprintf.c: New file.
63998         * lib/unistdio/u8-u8-snprintf.c: New file.
63999         * lib/unistdio/u8-u8-sprintf.c: New file.
64000         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64001         * lib/unistdio/u8-u8-vasprintf.c: New file.
64002         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64003         * lib/unistdio/u8-u8-vsprintf.c: New file.
64004         * lib/unistdio/u16-asnprintf.c: New file.
64005         * lib/unistdio/u16-asprintf.c: New file.
64006         * lib/unistdio/u16-printf-parse.c: New file.
64007         * lib/unistdio/u16-snprintf.c: New file.
64008         * lib/unistdio/u16-sprintf.c: New file.
64009         * lib/unistdio/u16-vasnprintf.c: New file.
64010         * lib/unistdio/u16-vasprintf.c: New file.
64011         * lib/unistdio/u16-vsnprintf.c: New file.
64012         * lib/unistdio/u16-vsprintf.c: New file.
64013         * lib/unistdio/u16-u16-asnprintf.c: New file.
64014         * lib/unistdio/u16-u16-asprintf.c: New file.
64015         * lib/unistdio/u16-u16-snprintf.c: New file.
64016         * lib/unistdio/u16-u16-sprintf.c: New file.
64017         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64018         * lib/unistdio/u16-u16-vasprintf.c: New file.
64019         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64020         * lib/unistdio/u16-u16-vsprintf.c: New file.
64021         * lib/unistdio/u32-asnprintf.c: New file.
64022         * lib/unistdio/u32-asprintf.c: New file.
64023         * lib/unistdio/u32-printf-parse.c: New file.
64024         * lib/unistdio/u32-snprintf.c: New file.
64025         * lib/unistdio/u32-sprintf.c: New file.
64026         * lib/unistdio/u32-vasnprintf.c: New file.
64027         * lib/unistdio/u32-vasprintf.c: New file.
64028         * lib/unistdio/u32-vsnprintf.c: New file.
64029         * lib/unistdio/u32-vsprintf.c: New file.
64030         * lib/unistdio/u32-u32-asnprintf.c: New file.
64031         * lib/unistdio/u32-u32-asprintf.c: New file.
64032         * lib/unistdio/u32-u32-snprintf.c: New file.
64033         * lib/unistdio/u32-u32-sprintf.c: New file.
64034         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64035         * lib/unistdio/u32-u32-vasprintf.c: New file.
64036         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64037         * lib/unistdio/u32-u32-vsprintf.c: New file.
64038         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64039         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64040         * tests/unistdio/test-ulc-printf1.h: New file.
64041         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64042         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64043         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64044         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64045         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64046         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64047         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64048         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64049         * tests/unistdio/test-u8-asnprintf1.c: New file.
64050         * tests/unistdio/test-u8-asnprintf1.h: New file.
64051         * tests/unistdio/test-u8-printf1.h: New file.
64052         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64053         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64054         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64055         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64056         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64057         * tests/unistdio/test-u8-vasprintf1.c: New file.
64058         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64059         * tests/unistdio/test-u8-vsprintf1.c: New file.
64060         * tests/unistdio/test-u16-asnprintf1.c: New file.
64061         * tests/unistdio/test-u16-asnprintf1.h: New file.
64062         * tests/unistdio/test-u16-printf1.h: New file.
64063         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64064         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64065         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64066         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64067         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64068         * tests/unistdio/test-u16-vasprintf1.c: New file.
64069         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64070         * tests/unistdio/test-u16-vsprintf1.c: New file.
64071         * tests/unistdio/test-u32-asnprintf1.c: New file.
64072         * tests/unistdio/test-u32-asnprintf1.h: New file.
64073         * tests/unistdio/test-u32-printf1.h: New file.
64074         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64075         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64076         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64077         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64078         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64079         * tests/unistdio/test-u32-vasprintf1.c: New file.
64080         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64081         * tests/unistdio/test-u32-vsprintf1.c: New file.
64082         * modules/unistdio/base: New file.
64083         * modules/unistdio/u-printf-args: New file.
64084         * modules/unistdio/ulc-asnprintf: New file.
64085         * modules/unistdio/ulc-asprintf: New file.
64086         * modules/unistdio/ulc-fprintf: New file.
64087         * modules/unistdio/ulc-printf-parse: New file.
64088         * modules/unistdio/ulc-snprintf: New file.
64089         * modules/unistdio/ulc-sprintf: New file.
64090         * modules/unistdio/ulc-vasnprintf: New file.
64091         * modules/unistdio/ulc-vasprintf: New file.
64092         * modules/unistdio/ulc-vfprintf: New file.
64093         * modules/unistdio/ulc-vsnprintf: New file.
64094         * modules/unistdio/ulc-vsprintf: New file.
64095         * modules/unistdio/u8-asnprintf: New file.
64096         * modules/unistdio/u8-asprintf: New file.
64097         * modules/unistdio/u8-printf-parse: New file.
64098         * modules/unistdio/u8-snprintf: New file.
64099         * modules/unistdio/u8-sprintf: New file.
64100         * modules/unistdio/u8-vasnprintf: New file.
64101         * modules/unistdio/u8-vasprintf: New file.
64102         * modules/unistdio/u8-vsnprintf: New file.
64103         * modules/unistdio/u8-vsprintf: New file.
64104         * modules/unistdio/u8-u8-asnprintf: New file.
64105         * modules/unistdio/u8-u8-asprintf: New file.
64106         * modules/unistdio/u8-u8-snprintf: New file.
64107         * modules/unistdio/u8-u8-sprintf: New file.
64108         * modules/unistdio/u8-u8-vasnprintf: New file.
64109         * modules/unistdio/u8-u8-vasprintf: New file.
64110         * modules/unistdio/u8-u8-vsnprintf: New file.
64111         * modules/unistdio/u8-u8-vsprintf: New file.
64112         * modules/unistdio/u16-asnprintf: New file.
64113         * modules/unistdio/u16-asprintf: New file.
64114         * modules/unistdio/u16-printf-parse: New file.
64115         * modules/unistdio/u16-snprintf: New file.
64116         * modules/unistdio/u16-sprintf: New file.
64117         * modules/unistdio/u16-vasnprintf: New file.
64118         * modules/unistdio/u16-vasprintf: New file.
64119         * modules/unistdio/u16-vsnprintf: New file.
64120         * modules/unistdio/u16-vsprintf: New file.
64121         * modules/unistdio/u16-u16-asnprintf: New file.
64122         * modules/unistdio/u16-u16-asprintf: New file.
64123         * modules/unistdio/u16-u16-snprintf: New file.
64124         * modules/unistdio/u16-u16-sprintf: New file.
64125         * modules/unistdio/u16-u16-vasnprintf: New file.
64126         * modules/unistdio/u16-u16-vasprintf: New file.
64127         * modules/unistdio/u16-u16-vsnprintf: New file.
64128         * modules/unistdio/u16-u16-vsprintf: New file.
64129         * modules/unistdio/u32-asnprintf: New file.
64130         * modules/unistdio/u32-asprintf: New file.
64131         * modules/unistdio/u32-printf-parse: New file.
64132         * modules/unistdio/u32-snprintf: New file.
64133         * modules/unistdio/u32-sprintf: New file.
64134         * modules/unistdio/u32-vasnprintf: New file.
64135         * modules/unistdio/u32-vasprintf: New file.
64136         * modules/unistdio/u32-vsnprintf: New file.
64137         * modules/unistdio/u32-vsprintf: New file.
64138         * modules/unistdio/u32-u32-asnprintf: New file.
64139         * modules/unistdio/u32-u32-asprintf: New file.
64140         * modules/unistdio/u32-u32-snprintf: New file.
64141         * modules/unistdio/u32-u32-sprintf: New file.
64142         * modules/unistdio/u32-u32-vasnprintf: New file.
64143         * modules/unistdio/u32-u32-vasprintf: New file.
64144         * modules/unistdio/u32-u32-vsnprintf: New file.
64145         * modules/unistdio/u32-u32-vsprintf: New file.
64146         * modules/unistdio/ulc-asnprintf-tests: New file.
64147         * modules/unistdio/ulc-vasnprintf-tests: New file.
64148         * modules/unistdio/ulc-vasprintf-tests: New file.
64149         * modules/unistdio/ulc-vsnprintf-tests: New file.
64150         * modules/unistdio/ulc-vsprintf-tests: New file.
64151         * modules/unistdio/u8-asnprintf-tests: New file.
64152         * modules/unistdio/u8-vasnprintf-tests: New file.
64153         * modules/unistdio/u8-vasprintf-tests: New file.
64154         * modules/unistdio/u8-vsnprintf-tests: New file.
64155         * modules/unistdio/u8-vsprintf-tests: New file.
64156         * modules/unistdio/u16-asnprintf-tests: New file.
64157         * modules/unistdio/u16-vasnprintf-tests: New file.
64158         * modules/unistdio/u16-vasprintf-tests: New file.
64159         * modules/unistdio/u16-vsnprintf-tests: New file.
64160         * modules/unistdio/u16-vsprintf-tests: New file.
64161         * modules/unistdio/u32-asnprintf-tests: New file.
64162         * modules/unistdio/u32-vasnprintf-tests: New file.
64163         * modules/unistdio/u32-vasprintf-tests: New file.
64164         * modules/unistdio/u32-vsnprintf-tests: New file.
64165         * modules/unistdio/u32-vsprintf-tests: New file.
64166         * MODULES.html.sh (Unicode string functions): Add the new modules.
64167
64168 2007-07-01  Bruno Haible  <bruno@clisp.org>
64169
64170         * lib/sprintf.c (sprintf): Limit the available length estimation,
64171         to avoid address wraparound.
64172         * lib/vsprintf.c (vsprintf): Likewise.
64173         * modules/sprintf-posix (Dependencies): Add stdint.
64174         * modules/vsprintf-posix (Dependencies): Likewise.
64175
64176 2007-07-01  Bruno Haible  <bruno@clisp.org>
64177
64178         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64179         Windows PATH as well. Conservative double-quoting. Comments.
64180
64181 2007-07-01  Bruno Haible  <bruno@clisp.org>
64182             Eric Blake  <ebb9@byu.net>
64183             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64184
64185         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64186         empty components in $PATH, denoting '.'.
64187
64188 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64189
64190         * gnulib-tool: Fix indentation.
64191         (func_create_megatestdir): Likewise.
64192         Report by Bruno Haible.
64193
64194 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64195
64196         Sync from Automake.
64197         * build-aux/gnupload: Fix shell portability issues with for loops.
64198         Report by Karl Berry.
64199
64200 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64201
64202         * build-aux/maint.mk (POURL): Use translationproject.org.
64203
64204 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64205             Bruno Haible  <bruno@clisp.org>
64206
64207         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64208         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64209         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64210         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64211         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64212
64213 2007-06-27  Bruno Haible  <bruno@clisp.org>
64214
64215         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64216         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64217
64218 2007-06-26  Karl Berry  <karl@gnu.org>
64219
64220         * MODULES.html.sh: remove xreadlink-with-size.
64221
64222 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64223
64224         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64225         method that I hope also handles the double-include problem noted
64226         by Bruno Haible in
64227         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64228
64229 2007-06-23  Bruno Haible  <bruno@clisp.org>
64230
64231         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64232         Don't let the 'mostlyclean' target fail if the last subdirectory could
64233         not be removed.
64234         Reported by Karl Berry.
64235
64236 2007-06-23  Bruno Haible  <bruno@clisp.org>
64237
64238         * gnulib-tool (echo): Add a speedier workaround for ksh.
64239         * tests/test-echo.sh: Likewise.
64240
64241 2007-06-23  Bruno Haible  <bruno@clisp.org>
64242
64243         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64244         * tests/test-echo.sh: Likewise.
64245
64246 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64247
64248         * gnulib-tool (IFS): Initialize early, so we don't set it to
64249         empty later.
64250         (self_abspathname): Rewrite algorithm to set it, reindent.
64251         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64252         (func_create_megatestdir): Merge some sed scripts.
64253
64254 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64255
64256         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64257         exposed by Sun Studio 11 cc on Solaris 8.
64258
64259 2007-06-22  Bruno Haible  <bruno@clisp.org>
64260
64261         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64262         backslashes.
64263         * tests/test-echo.sh: New file.
64264
64265 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64266
64267         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64268         simplify `sed_replace_build_aux' scripts, they are portable but
64269         echoing them with `echo' is not.
64270         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64271
64272 2007-06-21  Karl Berry  <karl@gnu.org>
64273
64274         * config/srclist.txt: guess we can't handle the licenses via
64275         srclist at the moment.
64276
64277 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64278
64279         * MODULES.html.sh: Add include_next.
64280         * modules/include_next: New file.
64281
64282 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64283
64284         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64285         INCLUDE_NEXT.
64286         (gl_CHECK_NEXT_HEADERS): New macro.
64287         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64288         the obsolescent gl_ABSOLUTE_HEADER.
64289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64290         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64291         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64292         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64293         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64294         * m4/math_h.m4 (gl_MATH_H): Likewise.
64295         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64296         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64297         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64298         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64299         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64300         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64301         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64302         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64304         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64305         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64306         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64307         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64308         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64309         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64310         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64311         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64312         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64313         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64314         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64315         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64316         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64317         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64318         * lib/float_.h: Likewise.
64319         * lib/inttypes_.h: Likewise.
64320         * lib/math_.h: Likewise.
64321         * lib/search_.h: Likewise.
64322         * lib/signal_.h: Likewise.
64323         * lib/stdint_.h: Likewise.
64324         * lib/stdio_.h: Likewise.
64325         * lib/stdlib_.h: Likewise.
64326         * lib/string_.h: Likewise.
64327         * lib/sys_stat_.h: Likewise.
64328         * lib/sys_time_.h: Likewise.
64329         * lib/time_.h: Likewise.
64330         * lib/unistd_.h: Likewise.
64331         * lib/wchar_.h: Likewise.
64332         * lib/wctype_.h: Likewise.
64333         * lib/dirent_.h: Likewise.
64334         * lib/iconv_.h: Likewise.
64335         * lib/locale_.h: Likewise.
64336         * lib/netinet_in_.h: Likewise.
64337         * lib/sys_select_.h: Likewise.
64338         * lib/sys_socket_.h: Likewise.
64339         * lib/sysexits_.h: Likewise.
64340         * modules/fcntl (Depends-on): Depend on include_next, not
64341         absolute_header.
64342         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64343         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64344         * modules/fchdir: Likewise.
64345         * modules/float: Likewise.
64346         * modules/iconv_open: Likewise.
64347         * modules/inttypes: Likewise.
64348         * modules/locale: Likewise.
64349         * modules/math: Likewise.
64350         * modules/netinet_in: Likewise.
64351         * modules/search: Likewise.
64352         * modules/signal: Likewise.
64353         * modules/stdint: Likewise.
64354         * modules/stdio: Likewise.
64355         * modules/stdlib: Likewise.
64356         * modules/string: Likewise.
64357         * modules/sys_select: Likewise.
64358         * modules/sys_socket: Likewise.
64359         * modules/sys_stat: Likewise.
64360         * modules/sys_time: Likewise.
64361         * modules/sysexits: Likewise.
64362         * modules/time: Likewise.
64363         * modules/unistd: Likewise.
64364         * modules/wchar: Likewise.
64365         * modules/wctype: Likewise.
64366         * modules/sys_stat: Change maintainer to "all".
64367         * modules/unistd: Likewise.
64368
64369 2007-06-20  Karl Berry  <karl@gnu.org>
64370
64371         * config/srclist.txt: track www changes in license files.
64372
64373 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64374
64375         * build-aux/bootstrap: Remove stray dot.
64376         Make sure build_aux settings are honored when linking
64377         gnulib_extra_files.
64378
64379 2007-06-19  Eric Blake  <ebb9@byu.net>
64380
64381         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64382         Allow compilation on cygwin.
64383
64384 2007-06-19  Jim Meyering  <jim@meyering.net>
64385
64386         xreadlink-with-size: Remove module.  No longer used.
64387         Ex-callers now use xreadlink or mreadlink-with-size.
64388         * modules/xreadlink-with-size: Remove module.
64389         * lib/xreadlink-with-size.c: Remove file.
64390         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64391         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64392         just before the function definition *is* accurate.
64393
64394         Eliminate one way canonicalize_filename_mode could exit.
64395         * lib/canonicalize.c (canonicalize_filename_mode):
64396         Use mreadlink_with_size, not xreadlink_with_size.
64397
64398 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64399
64400         Detect porting problems to FreeBSD/arm, which has time_t wider than
64401         long int.  Original problem reported for GNU diff by Xin Li in
64402         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64403         * modules/getdate (Depends-on): Add intprops, verify.
64404         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64405         is an integer type no wider than long int.
64406
64407 2007-06-18  Jim Meyering  <jim@meyering.net>
64408
64409         New module: mreadlink-with-size.
64410         * MODULES.html.sh: Add mreadlink-with-size.
64411         * modules/mreadlink-with-size: New module
64412         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64413         not xreadlink-with-size.
64414         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64415
64416 2007-06-16  Bruno Haible  <bruno@clisp.org>
64417
64418         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64419         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64420         Reported by Gary V. Vaughan <gary@gnu.org>.
64421
64422 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64423
64424         Revamp lchown so that it lives in unistd.h where it belongs.
64425         * lib/lchown.h: Remove.
64426         * lib/dirchownmod.c: Don't include lib/lchown.h.
64427         * lib/fchownat.c: Likewise.
64428         * lib/openat.c: Likewise.
64429         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64430         does not follow symlinks.
64431         (EOPNOTSUPP): Define if not defined.
64432         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64433         is defined to 0.
64434         (lchown): New decl.
64435         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64436         Do not check for lchown decl.
64437         Set REPLACE_LCHOWN.
64438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64439         REPLACE_LCHOWN.
64440         * modules/chown: Make it clear it follows symlinks.
64441         * modules/lchown: Make it clear it doesn't follow symlinks.
64442         (Files): Remove lib/lchown.h
64443         (Depends-on): Add unistd.
64444         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64445         (Include): Include <unistd.h>, not "lchown.h".
64446         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64447         REPLACE_LCHOWN.
64448
64449 2007-06-15  Jim Meyering  <jim@meyering.net>
64450
64451         Change license (GPL to LGPL) of fsusage and dependents.
64452         * modules/fsusage (License): Change to LGPL.
64453         * modules/full-read (License): Likewise.
64454         * modules/full-write (License): Likewise.
64455         * modules/safe-read (License): Likewise.
64456         * modules/safe-write (License): Likewise.
64457
64458 2007-06-14  Ben Pfaff  <blp@gnu.org>
64459
64460         Missing part of allocsa -> malloca transition.
64461         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64462         gl_MALLOCA.
64463
64464 2007-06-12  Bruno Haible  <bruno@clisp.org>
64465
64466         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64467         to ia64, x86_64, i386.
64468         Reported by Eric Blake.
64469
64470 2007-06-12  Bruno Haible  <bruno@clisp.org>
64471
64472         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64473         cross-compiling to x86_64.
64474
64475 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64476
64477         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64478         glitch reported by Ralf Wildenhues in
64479         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64480
64481         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64482         Vin Shelton.
64483
64484 2007-06-11  Bruno Haible  <bruno@clisp.org>
64485
64486         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64487         replacement string.
64488         Reported by Eric Blake.
64489
64490 2007-06-10  Bruno Haible  <bruno@clisp.org>
64491
64492         Prepare vasnprintf code for use with Unicode strings.
64493         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64494         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64495         TYPE_U32_STRING.
64496         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64497         a_u32_string variants.
64498         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64499         * lib/printf-args.c: Don't include config.h and the specification
64500         header if PRINTF_FETCHARGS is already defined.
64501         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64502         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64503         TYPE_U16_STRING, TYPE_U32_STRING.
64504         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64505         u16_directive, u16_directives, u32_directive, u32_directives): New
64506         types.
64507         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64508         New declarations.
64509         * lib/printf-parse.c: Don't include config.h and the specification
64510         header if PRINTF_PARSE is already defined. Eliminate the set of
64511         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64512         them now. Include c-ctype.h.
64513         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64514         directive and CHAR_T_ONLY_ASCII.
64515         * lib/vasnprintf.c: Don't include config.h and the specification header
64516         if VASNPRINTF is already defined.
64517         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64518         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64519         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64520         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64521         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64522         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64523         code accordingly.
64524         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64525         pad_ourselves also in this case, with the 'c' and 's' directives, and
64526         with a different notion of "width".
64527         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64528
64529 2007-06-10  Bruno Haible  <bruno@clisp.org>
64530
64531         * modules/unistr/u32-mbsnlen: New file.
64532         * lib/unistr/u32-mbsnlen.c: New file.
64533
64534         * modules/unistr/u16-mbsnlen: New file.
64535         * lib/unistr/u16-mbsnlen.c: New file.
64536
64537         * modules/unistr/u8-mbsnlen: New file.
64538         * lib/unistr/u8-mbsnlen.c: New file.
64539
64540         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64541         declarations.
64542
64543 2007-06-10  Bruno Haible  <bruno@clisp.org>
64544
64545         * lib/string_.h (mbsnlen): New declaration.
64546         * lib/mbsnlen.c: New file.
64547         * m4/mbsnlen.m4: New file.
64548         * modules/mbsnlen: New file.
64549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64550         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64551         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64552
64553 2007-06-10  Bruno Haible  <bruno@clisp.org>
64554
64555         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64556
64557 2007-06-10  Bruno Haible  <bruno@clisp.org>
64558
64559         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64560         * lib/mbuiter.h: Likewise.
64561
64562 2007-06-10  Bruno Haible  <bruno@clisp.org>
64563
64564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64565         declaration.
64566
64567 2007-06-10  Karl Berry  <karl@gnu.org>
64568
64569         * config/srclist.txt: remove gettext entries, Bruno prefers
64570         to update individually.
64571
64572 2007-06-10  Bruno Haible  <bruno@clisp.org>
64573
64574         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64575         'maxlen'. Ensure only length + width bytes are allocated, not
64576         length + 1 + width.
64577
64578 2007-06-09  Bruno Haible  <bruno@clisp.org>
64579
64580         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64581         (CHAR_T): Remove macro.
64582         (VASNPRINTF): Update.
64583
64584 2007-06-09  Bruno Haible  <bruno@clisp.org>
64585
64586         * MODULES.html.sh (Unicode string functions): Add the new modules.
64587
64588         * modules/uniconv/u32-conv-to-enc: New file.
64589         * lib/uniconv/u32-conv-to-enc.c: New file.
64590         * modules/uniconv/u32-conv-to-enc-tests: New file.
64591         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64592
64593         * modules/uniconv/u16-conv-to-enc: New file.
64594         * lib/uniconv/u16-conv-to-enc.c: New file.
64595         * lib/uniconv/u-conv-to-enc.h: New file.
64596         * modules/uniconv/u16-conv-to-enc-tests: New file.
64597         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64598
64599         * modules/uniconv/u8-conv-to-enc: New file.
64600         * lib/uniconv/u8-conv-to-enc.c: New file.
64601         * modules/uniconv/u8-conv-to-enc-tests: New file.
64602         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64603
64604         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64605         u32_conv_to_encoding): New declarations.
64606
64607 2007-06-09  Bruno Haible  <bruno@clisp.org>
64608
64609         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64610
64611 2007-06-09  Bruno Haible  <bruno@clisp.org>
64612
64613         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64614         * modules/malloca: Renamed from modules/allocsa, updated.
64615         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64616         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64617         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64618         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64619         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64620         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64621         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64622         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64623         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64624         * modules/c-strcasestr (Depends-on): Update.
64625         * lib/c-strcasestr.c: Update.
64626         * modules/c-strstr (Depends-on): Update.
64627         * lib/c-strstr.c: Update.
64628         * modules/canonicalize-lgpl (Depends-on): Update.
64629         * lib/canonicalize-lgpl.c: Update.
64630         * modules/clean-temp (Depends-on): Update.
64631         * lib/clean-temp.c: Update.
64632         * modules/csharpcomp (Depends-on): Update.
64633         * lib/csharpcomp.c: Update.
64634         * modules/csharpexec (Depends-on): Update.
64635         * lib/csharpexec.c: Update.
64636         * modules/javacomp (Depends-on): Update.
64637         * lib/javacomp.c: Update.
64638         * modules/javaexec (Depends-on): Update.
64639         * lib/javaexec.c: Update.
64640         * modules/mbscasestr (Depends-on): Update.
64641         * lib/mbscasestr.c: Update.
64642         * modules/mbsstr (Depends-on): Update.
64643         * lib/mbsstr.c: Update.
64644         * modules/setenv (Depends-on): Update.
64645         * lib/setenv.c: Update.
64646         * modules/strcasestr (Depends-on): Update.
64647         * lib/strcasestr.c: Update.
64648         * modules/striconveha (Depends-on): Update.
64649         * lib/striconveha.c: Update.
64650         * modules/relocatable-prog-wrapper (Files): Update.
64651         * lib/relocwrapper.c: Update.
64652         * build-aux/install-reloc: Update.
64653         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64654
64655 2007-06-08  Bruno Haible  <bruno@clisp.org>
64656
64657         Port to uClibc.
64658         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64659         * lib/fpurge.c (fpurge): Likewise.
64660         * lib/freading.c (freading): Likewise.
64661         * lib/fseeko.c (rpl_fseeko): Likewise.
64662         * lib/fseterr.c (fseterr): Likewise.
64663         * lib/fwriting.c (fwriting): Likewise.
64664         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64665
64666 2007-06-08  Bruno Haible  <bruno@clisp.org>
64667
64668         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64669         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64670         * modules/gettext (Files): Add m4/intlmacosx.m4.
64671
64672 2007-06-07  Bruno Haible  <bruno@clisp.org>
64673
64674         * modules/localename-tests: New file.
64675         * tests/test-localename.c: New file.
64676
64677         New module 'localename'.
64678         * lib/localename.h: New file.
64679         * lib/localename.c: New file, from GNU gettext.
64680         * m4/localename.m4: New file.
64681         * modules/localename: New file.
64682
64683 2007-06-07  Bruno Haible  <bruno@clisp.org>
64684
64685         Work around the lack of <wchar.h> on some builds of uClibc.
64686         * doc/headers/wchar.texi: Update.
64687         * lib/wchar_.h: Include <wchar.h> only if it exists.
64688         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64689         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64690         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64691         doesn't exist.
64692         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64693         * modules/mbfile (Depends-on): Add wchar.
64694         * modules/mbiter (Depends-on): Likewise.
64695         * modules/mbuiter (Depends-on): Likewise.
64696         Reported by Simon Josefsson.
64697
64698 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64699
64700         Work around problem reported by Steven M. Schweda in
64701         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64702         Tru64 5.1B with the Compaq compiler environment installed declares
64703         an 'isblank' function but does not define it in the C library.
64704         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64705         * lib/regex_internal.h (isblank): Likewise.
64706         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64707         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64708
64709 2007-06-05  Bruno Haible  <bruno@clisp.org>
64710
64711         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64712         ia64.
64713         * modules/printf-safe: New file.
64714         * modules/fprintf-posix (Depends-on): Add printf-safe.
64715         * modules/printf-posix (Depends-on): Likewise.
64716         * modules/snprintf-posix (Depends-on): Likewise.
64717         * modules/sprintf-posix (Depends-on): Likewise.
64718         * modules/vasnprintf-posix (Depends-on): Likewise.
64719         * modules/vasprintf-posix (Depends-on): Likewise.
64720         * modules/vfprintf-posix (Depends-on): Likewise.
64721         * modules/vprintf-posix (Depends-on): Likewise.
64722         * modules/vsnprintf-posix (Depends-on): Likewise.
64723         * modules/vsprintf-posix (Depends-on): Likewise.
64724         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64725         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64726         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64727         "no" on i386, x86_64, ia64.
64728         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64729         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64730         on i386, x86_64, ia64.
64731         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64732         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64733         on i386, x86_64, ia64.
64734         * tests/test-vasnprintf-posix.c: Include float.h.
64735         (LDBL80_WORDS): New macro.
64736         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64737         on i386, x86_64, ia64.
64738         * tests/test-vasprintf-posix.c: Include float.h.
64739         (LDBL80_WORDS): New macro.
64740         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64741         on i386, x86_64, ia64.
64742         * tests/test-snprintf-posix.c: Include float.h.
64743         * tests/test-sprintf-posix.c: Likewise.
64744         * tests/test-vsnprintf-posix.c: Likewise.
64745         * tests/test-vsprintf-posix.c: Likewise.
64746
64747 2007-06-05  Bruno Haible  <bruno@clisp.org>
64748
64749         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64750         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64751         non-IEEE numbers on i386, x86_64, ia64.
64752         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64753         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64754         * tests/test-isnanl.h: Include float.h.
64755         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64756
64757 2007-06-05  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64760         also the %a / %A. Handle the %a / %A code before this extra handling.
64761
64762 2007-06-05  Bruno Haible  <bruno@clisp.org>
64763
64764         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64765         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64766
64767 2007-06-05  Bruno Haible  <bruno@clisp.org>
64768
64769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64770         typo in variable name.
64771
64772 2007-06-05  Eric Blake  <ebb9@byu.net>
64773
64774         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64775         Reported by Simon Josefsson.
64776
64777 2007-06-04  Bruno Haible  <bruno@clisp.org>
64778
64779         Avoid test failures on some PowerPC platforms.
64780         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64781         Define differently for PowerPC.
64782         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64783         Reported by Gary V. Vaughan <gary@gnu.org>.
64784
64785 2007-06-02  Bruno Haible  <bruno@clisp.org>
64786
64787         Fix test-stdint failure on FreeBSD/ia64.
64788         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64789         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64790         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64791         * doc/headers/stdint.texi: Update.
64792
64793 2007-06-01  Bruno Haible  <bruno@clisp.org>
64794
64795         * tests/test-binary-io.c (main): Pass a third argument to open().
64796         Reported by Gary V. Vaughan <gary@gnu.org>.
64797
64798 2007-06-01  Bruno Haible  <bruno@clisp.org>
64799
64800         * doc/functions/frexpl.texi: Update for mingw.
64801
64802 2007-06-01  Bruno Haible  <bruno@clisp.org>
64803
64804         * tests/test-lseek.c (main): Disable test of errno for invalid third
64805         argument.
64806         * doc/functions/lseek.texi: Update.
64807         Reported by Gary V. Vaughan <gary@gnu.org>.
64808
64809 2007-05-28  Bruno Haible  <bruno@clisp.org>
64810
64811         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64812
64813 2007-05-31  Eric Blake  <ebb9@byu.net>
64814
64815         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64816         cross compiling.
64817
64818 2007-05-30  Eric Blake  <ebb9@byu.net>
64819         and Bruno Haible  <bruno@clisp.org>
64820
64821         Work around mingw test failures exposed by m4-1.4.9b.
64822         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64823         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64824         moment.
64825
64826 2007-05-30  Bruno Haible  <bruno@clisp.org>
64827
64828         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64829         assuming that they are closed. Needed on HP-UX 11.
64830
64831 2007-05-29  Bruno Haible  <bruno@clisp.org>
64832
64833         Fix a problem with #include_next.
64834         * lib/dirent_.h: Split the double-inclusion guard.
64835         * lib/fcntl_.h: Likewise.
64836         * lib/float_.h: Likewise.
64837         * lib/iconv_.h: Likewise.
64838         * lib/inttypes_.h: Likewise.
64839         * lib/locale_.h: Likewise.
64840         * lib/math_.h: Likewise.
64841         * lib/netinet_in_.h: Likewise.
64842         * lib/search_.h: Likewise.
64843         * lib/signal_.h: Likewise.
64844         * lib/stdint_.h: Likewise.
64845         * lib/stdio_.h: Likewise.
64846         * lib/stdlib_.h: Likewise.
64847         * lib/string_.h: Likewise.
64848         * lib/sys_select_.h: Likewise.
64849         * lib/sys_socket_.h: Likewise.
64850         * lib/sys_stat_.h: Likewise.
64851         * lib/sys_time_.h: Likewise.
64852         * lib/sysexits_.h: Likewise.
64853         * lib/time_.h: Likewise.
64854         * lib/unistd_.h: Likewise.
64855         * lib/wchar_.h: Likewise.
64856         * lib/wctype_.h: Likewise.
64857
64858 2007-05-29  Bruno Haible  <bruno@clisp.org>
64859
64860         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64861         for the moment.
64862
64863 2007-05-29  Bruno Haible  <bruno@clisp.org>
64864
64865         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64866         invocation.
64867         Reported by Eric Blake.
64868
64869 2007-05-29  Bruno Haible  <bruno@clisp.org>
64870
64871         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64872         compiling case.
64873
64874 2007-05-29  Eric Blake  <ebb9@byu.net>
64875             Bruno Haible  <bruno@clisp.org>
64876
64877         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64878         cross compiles.
64879
64880 2007-05-28  Eric Blake  <ebb9@byu.net>
64881
64882         * modules/closein-tests (test_closein_LDADD): Support test on
64883         cygwin with libtool.
64884
64885 2007-05-28  Bruno Haible  <bruno@clisp.org>
64886
64887         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64888         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64889         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64890         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64891         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64892         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64893         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64894         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64895         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64896
64897 2007-05-28  Eric Blake  <ebb9@byu.net>
64898
64899         Unconditionally include <config.h> in unit tests.
64900         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64901         * tests/test-allocsa.c, tests/test-arcfour.c,
64902         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64903         tests/test-array_list.c, tests/test-array_oset.c,
64904         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64905         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64906         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64907         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64908         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64909         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64910         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64911         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64912         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64913         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64914         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64915         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64916         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64917         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64918         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64919         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64920         test-md5.c, test-memmem.c, test-printf-posix.c,
64921         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64922         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64923         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64924         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64925         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64926         test-vasnprintf-posix2.c, test-vasnprintf.c,
64927         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64928         test-vfprintf-posix.c, test-vprintf-posix.c,
64929         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64930         test-xvasprintf.c: Likewise.
64931
64932 2007-05-28  Bruno Haible  <bruno@clisp.org>
64933
64934         * gnulib-tool (func_import): Remember the --with-tests command-line
64935         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64936         Reported by Eric Blake.
64937
64938 2007-05-28  Bruno Haible  <bruno@clisp.org>
64939
64940         * modules/ftell-tests: New file.
64941         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64942         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64943
64944         * lib/ftell.c: New file.
64945         * modules/ftell: New file.
64946         * m4/ftell.m4: New file.
64947         * doc/functions/ftell.texi: Update.
64948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64949         REPLACE_FTELL.
64950         * lib/stdio_.h (rpl_ftell): New declaration.
64951         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64952         REPLACE_FTELL.
64953
64954 2007-05-28  Eric Blake  <ebb9@byu.net>
64955
64956         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64957
64958 2007-05-28  Bruno Haible  <bruno@clisp.org>
64959
64960         * modules/fseek-tests: New file.
64961         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64962         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64963
64964         * lib/fseek.c: New file.
64965         * modules/fseek: New file.
64966         * m4/fseek.m4: New file.
64967         * doc/functions/fseek.texi: Update.
64968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64969         REPLACE_FSEEK.
64970         * lib/stdio_.h (rpl_fseek): New declaration.
64971         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64972         REPLACE_FSEEK.
64973
64974 2007-05-28  Bruno Haible  <bruno@clisp.org>
64975
64976         * lib/stdio_.h (fflush): More comments.
64977
64978 2007-05-28  Bruno Haible  <bruno@clisp.org>
64979
64980         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64981         runtime test.
64982
64983 2007-05-28  Eric Blake  <ebb9@byu.net>
64984
64985         Improve lseek module.
64986         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64987         * lib/unistd_.h (lseek): Scale back link warning message.
64988         * tests/test-lseek.c: Beef up test.
64989         * tests/test-lseek.sh: Exercise more facets of lseek.
64990         Reported by Bruno Haible.
64991
64992 2007-05-28  Bruno Haible  <bruno@clisp.org>
64993
64994         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64995         to define.
64996
64997 2007-05-27  Bruno Haible  <bruno@clisp.org>
64998
64999         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65000
65001 2007-05-27  Bruno Haible  <bruno@clisp.org>
65002
65003         * modules/openmp: New file.
65004         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65005         Noah Misch.
65006
65007 2007-05-26  Bruno Haible  <bruno@clisp.org>
65008
65009         * modules/chdir-long (Depends-on): Add fchdir.
65010         * modules/chdir-safer (Depends-on): Likewise.
65011         * modules/fts (Depends-on): Likewise.
65012         * modules/fts-lgpl (Depends-on): Likewise.
65013         * modules/openat (Depends-on): Likewise.
65014         * modules/savewd (Depends-on): Likewise.
65015
65016 2007-05-24  Eric Blake  <ebb9@byu.net>
65017
65018         Fix lseek on mingw.
65019         * modules/lseek: New module.
65020         * m4/lseek.m4: New file.
65021         * lib/lseek.c: New file.
65022         * modules/lseek-tests: New file.
65023         * tests/test-lseek.c: New file.
65024         * tests/test-lseek.sh: New file.
65025         * MODULES.html.sh: Document lseek module.
65026         * modules/fflush (Depends-on): Add lseek, fseeko.
65027         * modules/fseeko (Depends-on): Likewise.
65028         * modules/ftello (Depends-on): Likewise.
65029         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65030         broken.
65031         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65032         broken.
65033         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65034         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65035         * lib/ftello.c (rpl_ftello): Likewise.
65036         * tests/test-fseeko.c (main): Test this.
65037         * tests/test-fseeko.sh: Likewise.
65038         * tests/test-ftello.c (main): Likewise.
65039         * tests/test-ftello.sh: Likewise.
65040         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65041         implies replacing fseek.
65042         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65043         HAVE_FTELLO.
65044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65045         * modules/unistd (Makefile.am): Likewise.
65046         * lib/unistd_.h (lseek): Declare a replacement.
65047         * doc/functions/lseek.texi (lseek): Document this fix.
65048         * doc/functions/fseek.texi (fseek): Likewise.
65049         * doc/functions/ftell.texi (ftell): Likewise.
65050
65051 2007-05-24  Bruno Haible  <bruno@clisp.org>
65052
65053         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65054         in the printed representation of a NaN.
65055         * tests/test-vasprintf-posix.c (test_function): Likewise.
65056         * tests/test-snprintf-posix.h (test_function): Likewise.
65057         * tests/test-sprintf-posix.h (test_function): Likewise.
65058         Reported by Eric Blake.
65059
65060 2007-05-23  Eric Blake  <ebb9@byu.net>
65061
65062         Fix fseeko/ftello on cygwin 1.5.24.
65063         * doc/functions/fseeko.texi (fseeko): Document the fix.
65064         * doc/functions/ftello.texi (ftello): Document the fix.
65065         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65066         * doc/functions/stdout.text (stdout): New file.
65067         * doc/functions/stderr.text (stderr): New file.
65068         * doc/gnulib.texi (Function Substitutes): Use new files.
65069         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65070         prior to 1.7.0.
65071         * tests/test-ftello.c (main): Likewise for ftello.
65072         * tests/test-fseeko.sh: New file.
65073         * tests/test-ftello.sh: New file.
65074         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65075         with seekable stdin.
65076         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65077         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65078         (gl_REPLACE_FSEEKO): New macro.
65079         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65080         * modules/fseeko (Files): Distribute fseeko.c.
65081         * modules/ftello (Files): Distribute ftello.c.
65082         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65083         mode.
65084         * lib/ftello.c (rpl_ftello): New file.
65085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65086         fseeko, ftello.
65087         (gl_STDIN_LARGE_OFFSET): New macro.
65088         * modules/stdio (Makefile.am): Perform the replacement.
65089         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65090
65091 2007-05-23  Bruno Haible  <bruno@clisp.org>
65092
65093         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65094         GNULIB_POSIXCHECK is defined.
65095
65096 2007-05-21  Bruno Haible  <bruno@clisp.org>
65097
65098         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65099         Check also the output for NaN arguments. When cross-compiling, guess
65100         no on IRIX.
65101         * lib/vasnprintf.c: Update comments.
65102         * tests/test-vasnprintf-posix.c (strisnan): New function.
65103         (test_function): Use it.
65104         * tests/test-vasprintf-posix.c (strisnan): New function.
65105         (test_function): Use it.
65106         * tests/test-snprintf-posix.h (strisnan): New function.
65107         (test_function): Use it.
65108         * tests/test-sprintf-posix.h (strisnan): New function.
65109         (test_function): Use it.
65110         Reported by Eric Blake.
65111
65112 2007-05-20  Bruno Haible  <bruno@clisp.org>
65113
65114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65115         numbers that fails on BeOS.
65116         * doc/functions/frexpl.texi: Update.
65117
65118 2007-05-20  Jim Meyering  <jim@meyering.net>
65119
65120         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65121         forced upon us by glibc-2.6.
65122
65123 2007-05-20  Bruno Haible  <bruno@clisp.org>
65124
65125         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65126         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65127         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65128         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65129         NEED_PRINTF_INFINITE.
65130         (is_infinitel): New function.
65131         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65133         gl_PREREQ_VASNPRINTF_INFINITE.
65134         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65136         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65137         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65138         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65139         gl_PREREQ_VASNPRINTF_INFINITE.
65140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65141         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65142         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65143         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65144         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65145         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65146         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65147         * doc/functions/fprintf.texi: Update.
65148         * doc/functions/printf.texi: Update.
65149         * doc/functions/snprintf.texi: Update.
65150         * doc/functions/sprintf.texi: Update.
65151         * doc/functions/vfprintf.texi: Update.
65152         * doc/functions/vprintf.texi: Update.
65153         * doc/functions/vsnprintf.texi: Update.
65154         * doc/functions/vsprintf.texi: Update.
65155
65156 2007-05-20  Bruno Haible  <bruno@clisp.org>
65157
65158         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65159         was not found in libc.
65160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65161
65162 2007-05-20  Bruno Haible  <bruno@clisp.org>
65163
65164         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65165         printed as "-nan" instead of "nan".
65166         * tests/test-vasprintf-posix.c (test_function): Likewise.
65167         * tests/test-snprintf-posix.h (test_function): Likewise.
65168         * tests/test-sprintf-posix.h (test_function): Likewise.
65169         Needed for HP-UX 11.
65170
65171 2007-05-20  Jim Meyering  <jim@meyering.net>
65172
65173         Fix buggy test for the fchownat-deref bug.
65174         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65175         symlink required for the run-test.  Without it, this test would
65176         always declare that fchownat doesn't work, and client code would
65177         unnecessarily use the replacement function with fixed libc.
65178         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65179         Reported by Greg Schafer.
65180
65181 2007-05-19  Bruno Haible  <bruno@clisp.org>
65182
65183         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65184         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65185         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65186         Needed for IRIX 6.5 and Solaris 2.5.1.
65187
65188 2007-05-19  Bruno Haible  <bruno@clisp.org>
65189
65190         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65191         (test_function): Skip tests involving -0.0 on platforms where
65192         -0.0 = 0.0.
65193         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65194         (test_function): Skip tests involving -0.0 on platforms where
65195         -0.0 = 0.0.
65196         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65197         (test_function): Skip tests involving -0.0 on platforms where
65198         -0.0 = 0.0.
65199         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65200         (test_function): Skip tests involving -0.0 on platforms where
65201         -0.0 = 0.0.
65202         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65203         tests.
65204         * tests/test-printf-posix.h (test_function): Likewise.
65205         * tests/test-printf-posix.output: Remove all -0.0 related results.
65206         Needed for IRIX 6.5.
65207
65208 2007-05-19  Bruno Haible  <bruno@clisp.org>
65209
65210         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65211         printed as "nan0x7fffffff" instead of "nan".
65212         * tests/test-vasprintf-posix.c (test_function): Likewise.
65213         * tests/test-snprintf-posix.h (test_function): Likewise.
65214         * tests/test-sprintf-posix.h (test_function): Likewise.
65215         * tests/test-fprintf-posix.h (NaN): Remove macro.
65216         (test_function): Remove all NaN related tests.
65217         * tests/test-printf-posix.h (NaN): Remove macro.
65218         (test_function): Remove all NaN related tests.
65219         * tests/test-printf-posix.output: Remove all NaN related results.
65220         Needed for IRIX 6.5.
65221
65222 2007-05-19  Bruno Haible  <bruno@clisp.org>
65223
65224         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65225         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65226
65227 2007-05-19  Bruno Haible  <bruno@clisp.org>
65228
65229         * lib/float_.h: New file.
65230         * m4/float_h.m4: New file.
65231         * modules/float: New file.
65232         * modules/isnanl (Dependencies): Add float.
65233         * modules/isnanl-nolibm (Dependencies): Likewise.
65234         * modules/mathl (Dependencies): Likewise.
65235         * modules/printf-frexpl (Dependencies): Likewise.
65236         * modules/signbit (Dependencies): Likewise.
65237         * modules/vasnprintf (Dependencies): Likewise.
65238         * doc/headers/float.texi: Update.
65239
65240 2007-05-19  Jim Meyering  <jim@meyering.net>
65241
65242         * lib/utimens.c (gl_futimens): Rename from futimens,
65243         now that glibc-2.6 declares futimens.
65244         * lib/utimens.h: Likewise.
65245
65246 2007-05-19  Bruno Haible  <bruno@clisp.org>
65247
65248         Avoid test failures on mingw.
65249         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65250         * tests/test-printf-posix.sh: Likewise.
65251         * tests/test-vfprintf-posix.sh: Likewise.
65252         * tests/test-vprintf-posix.sh: Likewise.
65253
65254 2007-05-19  Bruno Haible  <bruno@clisp.org>
65255
65256         Fix *printf result for NaN, Inf, -0.0 on mingw.
65257         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65258         * lib/vasnprintf.c: Include math.h and isnan.h.
65259         (is_infinite_or_zero): New function.
65260         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65261         values in the %f, %F, %e, %E, %g, %G directives.
65262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65263         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65264         gl_PRINTF_INFINITE and test its result. Invoke
65265         gl_PREREQ_VASNPRINTF_INFINITE.
65266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65268         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65270         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65273         * doc/functions/fprintf.texi: Update.
65274         * doc/functions/printf.texi: Update.
65275         * doc/functions/snprintf.texi: Update.
65276         * doc/functions/sprintf.texi: Update.
65277         * doc/functions/vfprintf.texi: Update.
65278         * doc/functions/vprintf.texi: Update.
65279         * doc/functions/vsnprintf.texi: Update.
65280         * doc/functions/vsprintf.texi: Update.
65281
65282 2007-05-19  Bruno Haible  <bruno@clisp.org>
65283
65284         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65285         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65286         Instead of multiplying with 10^k, set extra_zeroes to k.
65287         (scale10_round_long_double): Remove function.
65288
65289 2007-05-18  Bruno Haible  <bruno@clisp.org>
65290
65291         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65292         introduced on 2007-05-06.
65293
65294 2007-05-18  Bruno Haible  <bruno@clisp.org>
65295
65296         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65297         %g directives.
65298         * tests/test-vasprintf-posix.c (test_function): Likewise.
65299         * tests/test-snprintf-posix.h (test_function): Likewise.
65300         * tests/test-sprintf-posix.h (test_function): Likewise.
65301
65302 2007-05-18  Bruno Haible  <bruno@clisp.org>
65303
65304         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65305         (strmatch): New function.
65306         (test_function): Test the %f directive on numbers of various exponents.
65307         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65308         (strmatch): New function.
65309         (test_function): Test the %f directive on numbers of various exponents.
65310         * tests/test-snprintf-posix.h (strmatch): New function.
65311         (test_function): Test the %f directive on numbers of various exponents.
65312         * tests/test-sprintf-posix.h (strmatch): New function.
65313         (test_function): Test the %f directive on numbers of various exponents.
65314         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65315         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65316         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65317         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65318
65319 2007-05-18  Bruno Haible  <bruno@clisp.org>
65320
65321         Add support for 'long double' number output.
65322         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65323         * lib/vasnprintf.c: Include math.h and float+.h.
65324         (mp_limb_t): New type.
65325         (GMP_LIMB_BITS): New macro.
65326         (mp_twolimb_t): New type.
65327         (GMP_TWOLIMB_BITS): New macro.
65328         (mpn_t): New type.
65329         (multiply, divide, convert_to_decimal, decode_long_double,
65330         scale10_round_long_double, scale10_round_decimal_long_double,
65331         floorlog10l): New functions.
65332         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65333         for the %f, %F, %e, %E, %g, %G directives.
65334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65335         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65336         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65337         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65338         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65340         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65341         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65342         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65343         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65344         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65345         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65346         * modules/snprintf-posix (Depends-on): Likewise.
65347         * modules/sprintf-posix (Depends-on): Likewise.
65348         * modules/vasnprintf-posix (Depends-on): Likewise.
65349         * modules/vasprintf-posix (Depends-on): Likewise.
65350         * modules/vfprintf-posix (Depends-on): Likewise.
65351         * modules/vsnprintf-posix (Depends-on): Likewise.
65352         * modules/vsprintf-posix (Depends-on): Likewise.
65353         * modules/vasnprintf (Files): Add lib/float+.h.
65354         * doc/functions/fprintf.texi: Update.
65355         * doc/functions/printf.texi: Update.
65356         * doc/functions/snprintf.texi: Update.
65357         * doc/functions/sprintf.texi: Update.
65358         * doc/functions/vfprintf.texi: Update.
65359         * doc/functions/vprintf.texi: Update.
65360         * doc/functions/vsnprintf.texi: Update.
65361         * doc/functions/vsprintf.texi: Update.
65362
65363 2007-05-18  Bruno Haible  <bruno@clisp.org>
65364
65365         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65366
65367 2007-05-18  Bruno Haible  <bruno@clisp.org>
65368
65369         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65370         for printing 64-bit integers. Needed for mingw.
65371
65372 2007-05-18  Bruno Haible  <bruno@clisp.org>
65373
65374         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65375         gl_FUNC_FREXPL_WORKS.
65376         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65377
65378 2007-05-18  Bruno Haible  <bruno@clisp.org>
65379
65380         * modules/frexpl-nolibm-tests: New file.
65381
65382         * modules/frexpl-nolibm: New file.
65383         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65384
65385 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65386
65387         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65388         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65389         GCC 4.2, which otherwise issues a lot of warnings.
65390         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65391         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65392         Likewise.
65393         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65394         * modules/iconv_open (iconv.h): Likewise.
65395         * modules/locale (locale.h): Likewise.
65396         * modules/netinet_in (netinet/in.h): Likewise.
65397         * modules/sys_select (sys_select.h): Likewise.
65398         * modules/sys_socket (sys/socket.h): Likewise.
65399         * modules/sys_stat (sys/stat.h): Likewise.
65400         * modules/sysexits (sysexits.h): Likewise.
65401         * modules/unistd (unistd.h): Likewise.
65402
65403 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65404
65405         * modules/closein-tests (Makefile.am): Distribute
65406         `test-closein.sh'.
65407
65408 2007-05-17  Bruno Haible  <bruno@clisp.org>
65409
65410         * tests/test-printf-posix.output: Renamed from
65411         tests/test-fprintf-posix.out.
65412         * modules/fprintf-posix-tests: Update.
65413         * modules/printf-posix-tests: Update.
65414         * modules/vfprintf-posix-tests: Update.
65415         * modules/vprintf-posix-tests: Update.
65416         * tests/test-fprintf-posix.sh: Update.
65417         * tests/test-printf-posix.sh: Update.
65418         * tests/test-vfprintf-posix.sh: Update.
65419         * tests/test-vprintf-posix.sh: Update.
65420         Reported by Ralf Wildenhues.
65421
65422 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65425         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65426         GCC 4.2, which otherwise issues a lot of warnings.
65427         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65428         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65429         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65430         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65431         it should no longer be needed.
65432         * lib/string_.h: Likewise.
65433         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65434         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65435         * modules/inttypes (inttypes.h): Likewise.
65436         * modules/math (math.h): Likewise.
65437         * modules/search (search.h): Likewise.
65438         * modules/signal (signal.h): Likewise.
65439         * modules/stdint (stdint.h): Likewise.
65440         * modules/stdio (stdio.h): Likewise.
65441         * modules/stdlib (stdlib.h): Likewise.
65442         * modules/string (string.h): Likewise.
65443         * modules/sys_time (sys/time.h): Likewise.
65444         * modules/time (time.h): Likewise.
65445         * modules/wchar (wchar.h): Likewise.
65446         * modules/wctype (wtype.h): Likewise.
65447
65448 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65449
65450         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65451
65452 2007-05-13  Bruno Haible  <bruno@clisp.org>
65453
65454         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65455         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65456         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65457         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65458         (gl_PREREQ_STRTOK_R): Don't require it here.
65459
65460 2007-05-13  Bruno Haible  <bruno@clisp.org>
65461
65462         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65463         when used in C++ mode.
65464
65465 2007-05-12  Bruno Haible  <bruno@clisp.org>
65466
65467         * lib/linebuffer.h: Tweak doc.
65468         * lib/linebuffer.c: Likewise.
65469
65470 2007-05-12  James Youngman  <jay@gnu.org>
65471
65472         * lib/linebuffer.c (readlinebuffer_delim): New function,
65473         like readlinebuffer, but use a caller-specified delimiter.
65474         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65475         as the delimiter.
65476         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65477
65478 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65479
65480         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65481         * modules/openat (Files): Remove openat-die.c.
65482         (Depends-on): Add openat-die.
65483         * modules/openat-die: New module.
65484
65485 2007-05-06  Bruno Haible  <bruno@clisp.org>
65486
65487         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65488         Update with info about Cygwin.
65489         * doc/functions/fprintf.texi: Update.
65490         * doc/functions/printf.texi: Update.
65491         * doc/functions/snprintf.texi: Update.
65492         * doc/functions/sprintf.texi: Update.
65493         * doc/functions/vfprintf.texi: Update.
65494         * doc/functions/vprintf.texi: Update.
65495         * doc/functions/vsnprintf.texi: Update.
65496         * doc/functions/vsprintf.texi: Update.
65497         Reported by Eric Blake.
65498
65499 2007-05-06  Bruno Haible  <bruno@clisp.org>
65500
65501         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65502         padding ourselves for the floating-point directives.
65503         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65506         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65507         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65508         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65509         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65511         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65512         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65513         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65514         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65515         * tests/test-snprintf-posix.h (test_function): Also check the width
65516         and some flags in the %f directive.
65517         * tests/test-sprintf-posix.h (test_function): Likewise.
65518         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65519         * tests/test-vasprintf-posix.c (test_function): Likewise.
65520         * doc/functions/fprintf.texi: Update.
65521         * doc/functions/printf.texi: Update.
65522         * doc/functions/snprintf.texi: Update.
65523         * doc/functions/sprintf.texi: Update.
65524         * doc/functions/vfprintf.texi: Update.
65525         * doc/functions/vprintf.texi: Update.
65526         * doc/functions/vsnprintf.texi: Update.
65527         * doc/functions/vsprintf.texi: Update.
65528
65529 2007-05-06  Bruno Haible  <bruno@clisp.org>
65530
65531         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65532         pass the ' flag character to sprintf or snprintf.
65533         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65536         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65537         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65538         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65539         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65540         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65541         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65542         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65544         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65545         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65546         flag.
65547         * tests/test-sprintf-posix.h (test_function): Likewise.
65548         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65549         * tests/test-vasprintf-posix.c (test_function): Likewise.
65550         * doc/functions/fprintf.texi: Update.
65551         * doc/functions/printf.texi: Update.
65552         * doc/functions/snprintf.texi: Update.
65553         * doc/functions/sprintf.texi: Update.
65554         * doc/functions/vfprintf.texi: Update.
65555         * doc/functions/vprintf.texi: Update.
65556         * doc/functions/vsnprintf.texi: Update.
65557         * doc/functions/vsprintf.texi: Update.
65558
65559 2007-05-01  Bruno Haible  <bruno@clisp.org>
65560
65561         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65562
65563 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65566         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65567
65568 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65571         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65572         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65573
65574 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65575
65576         * lib/argp-help.c (struct hol_entry): New member `ord'.
65577         (HOL_ENTRY_PTRCMP): Use ord for comparison
65578         (hol_sort): Initialize ord.
65579
65580 2007-05-01  Bruno Haible  <bruno@clisp.org>
65581
65582         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65583         Reported by Eric Blake.
65584         * doc/gnulib.texi (Function Substitutes): Update.
65585
65586 2007-05-01  Bruno Haible  <bruno@clisp.org>
65587
65588         * doc/functions.texi: Remove file, now redundant through
65589         doc/functions/*.texi.
65590
65591 2007-05-01  Bruno Haible  <bruno@clisp.org>
65592
65593         * modules/argp (Depends-on): Add sleep.
65594
65595 2007-05-01  Bruno Haible  <bruno@clisp.org>
65596
65597         * modules/sleep-tests: New file.
65598         * tests/test-sleep.c: New file.
65599
65600         * modules/sleep: New file.
65601         * lib/sleep.c: New file.
65602         * m4/sleep.m4: New file.
65603         * lib/unistd_.h (sleep): New declaration.
65604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65605         HAVE_SLEEP.
65606         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65607         * doc/functions/sleep.texi: Document the sleep module.
65608
65609 2007-05-01  Bruno Haible  <bruno@clisp.org>
65610
65611         * lib/sigprocmask.h: Remove file.
65612         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65613         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65614         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65615         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65616         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65617         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65618         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65619         HAVE_SIGSET_T as a shell variable.
65620         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65621         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65622         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65623         (Depends-on): Add signal. Remove verify.
65624         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65625         (Include): Mention <signal.h> instead of sigprocmask.h.
65626         * NEWS: Mention the change.
65627         * lib/fatal-signal.c: Don't include sigprocmask.h.
65628
65629 2007-05-01  Bruno Haible  <bruno@clisp.org>
65630
65631         * modules/signal: New file.
65632         * lib/signal_.h: New file.
65633         * m4/signal_h.m4: New file.
65634
65635 2007-05-01  Bruno Haible  <bruno@clisp.org>
65636
65637         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65638         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65639         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65640         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65641
65642 2007-05-01  Bruno Haible  <bruno@clisp.org>
65643
65644         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65645         configure time.
65646         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65647         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65648         * modules/sys_stat (Makefile.am): Substitute their values into
65649         sys/stat.h.
65650
65651 2007-05-01  Bruno Haible  <bruno@clisp.org>
65652
65653         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65654         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65655         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65656
65657 2007-05-01  Bruno Haible  <bruno@clisp.org>
65658
65659         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65660         'assert' module here.
65661
65662 2007-05-01  Bruno Haible  <bruno@clisp.org>
65663
65664         * doc/functions/*.texi: New files.
65665         * doc/functions/google-ranking.txt: New file.
65666         * doc/gnulib.texi (Function Substitutes): New chapter.
65667         (ctime, inet_ntoa): Remove sections.
65668         * doc/ctime.texi: Remove file.
65669         * doc/inet_ntoa.texi: Remove file.
65670         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65671         dependencies.
65672         (%.info): New rule, specifying a --reference-limit.
65673
65674 2007-05-01  Bruno Haible  <bruno@clisp.org>
65675
65676         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65677
65678 2007-05-01  Bruno Haible  <bruno@clisp.org>
65679
65680         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65681         the portability of 'mkdir' to mingw systems.
65682
65683 2007-05-01  Bruno Haible  <bruno@clisp.org>
65684
65685         * doc/headers/google-ranking.txt: New file.
65686
65687 2007-04-30  Eric Blake  <ebb9@byu.net>
65688
65689         Prefer fseeko to fseek.
65690         * modules/getpass (Depends-on): Add fseeko.
65691         * lib/getpass.c (getpass): Use fseeko, not fseek.
65692
65693 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65694
65695         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65696         assumes the sorting is stable, while most qsort implementations
65697         are not.  Use argument addresses to ensure they never compare as
65698         equal.
65699
65700         * tests/test-argp-2.sh (usage-indent test): Fix output
65701         (func_compare): Restore diff options
65702         * tests/test-argp.c: Restore #include "progname.h"
65703
65704 2007-04-29  Bruno Haible  <bruno@clisp.org>
65705
65706         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65708         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65709         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65710         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65711         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65712         (TESTS, check_PROGRAMS): Add test-snprintf.
65713         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65714         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65715         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65716         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65717         assertions that fail on HP-UX, OSF/1, or IRIX.
65718         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65719
65720 2007-04-29  Bruno Haible  <bruno@clisp.org>
65721
65722         * MODULES.html.sh (posix_functions): Remove 'contents'.
65723
65724 2007-04-29  Karl Berry  <karl@gnu.org>
65725
65726         * config/srclist.txt (gendocs_template_min): new entry.
65727
65728 2007-04-29  Bruno Haible  <bruno@clisp.org>
65729
65730         Work around fpurge bug on BSD systems.
65731         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65732         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65733         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65734         fpurge to rpl_fpurge if the system already has this function.
65735         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65736         the case where the system already has this function. Correct invariants
65737         on BSD systems.
65738         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65739         BSD systems.
65740
65741 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65742
65743         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65744         proposed by Sven Verdoolaege.
65745
65746         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65747         options.
65748         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65749         (usage and help tests): Update
65750
65751 2007-04-29  Bruno Haible  <bruno@clisp.org>
65752
65753         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65754         Print more information in case of failure. Disable a test on BeOS.
65755
65756 2007-04-29  Bruno Haible  <bruno@clisp.org>
65757
65758         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65759         This helps debugging on systems on which no gdb is available.
65760
65761 2007-04-29  Bruno Haible  <bruno@clisp.org>
65762
65763         * lib/freading.h: Improve comments.
65764         * lib/fwriting.h: Likewise.
65765         * tests/test-freading.c (main): Don't check freading immediately after
65766         repositioning. Needed for glibc.
65767
65768 2007-04-29  Bruno Haible  <bruno@clisp.org>
65769
65770         * lib/freading.c (freading): Trivial simplification.
65771
65772 2007-04-28  Bruno Haible  <bruno@clisp.org>
65773
65774         * tests/test-fwriting.c (main): Also test the interaction between
65775         fflush and fwriting.
65776         * modules/fwriting-tests (Depends-on): Add fflush.
65777
65778         * tests/test-freading.c (main): Also test the interaction between
65779         fflush and freading.
65780         * modules/freading-tests (Depends-on): Add fflush.
65781
65782 2007-04-28  Bruno Haible  <bruno@clisp.org>
65783
65784         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65785         fseeko and ftello.
65786         Suggested by Eric Blake.
65787
65788 2007-04-28  Jim Meyering  <jim@meyering.net>
65789
65790         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65791         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65792         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65793
65794 2007-04-27  Eric Blake  <ebb9@byu.net>
65795
65796         * doc/headers/assert.texi (assert.h): Document assert module use.
65797
65798 2007-04-27  Bruno Haible  <bruno@clisp.org>
65799
65800         * doc/headers/*.texi: New files.
65801         * doc/gnulib.texi (Header File Substitutes): New chapter.
65802         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65803         dependencies.
65804         (standards.info ,standards.html, standards.dvi): Update dependencies.
65805         (mostlyclean, clean): New targets.
65806
65807 2007-04-27  Bruno Haible  <bruno@clisp.org>
65808
65809         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65810         * modules/sysexits (Files, Makefile.am): Update.
65811
65812         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65813         * modules/sys_socket (Files, Makefile.am): Update.
65814
65815         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65816         * modules/sys_stat (Files, Makefile.am): Update.
65817
65818 2007-04-27  Eric Blake  <ebb9@byu.net>
65819
65820         * lib/freading.h: Improve comments.
65821         * lib/fwriting.h: Likewise.
65822         * lib/fflush.c: Likewise.
65823
65824         Fix closein for mingw.
65825         * modules/closein-tests: Add tests for closein.
65826         * tests/test-closein.c: New file.
65827         * tests/test-closein.sh: Likewise.
65828         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65829         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65830
65831 2007-04-27  Bruno Haible  <bruno@clisp.org>
65832
65833         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65834         version is < 6.
65835         * lib/math_.h [__DECC]: Likewise.
65836         * lib/stdio_.h [__DECC]: Likewise.
65837         * lib/stdlib_.h [__DECC]: Likewise.
65838         * lib/string_.h [__DECC]: Likewise.
65839         * lib/time_.h [__DECC]: Likewise.
65840         * lib/wchar_.h [__DECC]: Likewise.
65841         * lib/wctype_.h [__DECC]: Likewise.
65842
65843 2007-04-27  Bruno Haible  <bruno@clisp.org>
65844
65845         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65846
65847 2007-04-27  Bruno Haible  <bruno@clisp.org>
65848
65849         * lib/fflush.c: Add comments.
65850         * modules/fpurge-tests (Depends-on): Add fflush.
65851         * modules/freadable-tests (Depends-on): Likewise.
65852         * modules/fwritable-tests (Depends-on): Likewise.
65853
65854 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65855
65856         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65857         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65858         Report by Bruno Haible <bruno@clisp.org>.
65859
65860 2007-04-26  Eric Blake  <ebb9@byu.net>
65861
65862         Fix fflush on mingw.
65863         * modules/fflush (Depends-on): Add freading.
65864         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65865         but unread data.
65866
65867 2007-04-26  Eric Blake  <ebb9@byu.net>
65868         and Bruno Haible  <bruno@clisp.org>
65869
65870         Implement freading and fwriting.
65871         * lib/freading.c: New file.
65872         * lib/freading.h: Likewise.
65873         * m4/freading.m4: Likewise.
65874         * modules/freading: Likewise.
65875         * modules/freading-tests: Likewise.
65876         * tests/test-freading.c: Likewise.
65877         * lib/fwriting.c: New file.
65878         * lib/fwriting.h: Likewise.
65879         * m4/fwriting.m4: Likewise.
65880         * modules/fwriting: Likewise.
65881         * modules/fwriting-tests: Likewise.
65882         * tests/test-fwriting.c: Likewise.
65883         * MODULES.html.sh (File stream based Input/Output): Mention them.
65884
65885 2007-04-26  Bruno Haible  <bruno@clisp.org>
65886
65887         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65888         'long' when we assume it.
65889         Suggested by Eric Blake.
65890
65891 2007-04-26  Bruno Haible  <bruno@clisp.org>
65892
65893         Ensure fseeko, ftello are declared on glibc systems.
65894         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65895         * modules/fseeko (configure.ac-early): Likewise.
65896         * modules/ftello (configure.ac-early): Likewise.
65897         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65898         AC_FUNC_FSEEKO for this.
65899         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65900         (gl_CHECK_FSEEKO): Remove macro.
65901
65902 2007-04-26  Bruno Haible  <bruno@clisp.org>
65903
65904         * tests/test-fflush.c (main): Also check the ftell result after
65905         fflush and fseek/fseeko.
65906         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65907         file descriptor position cache in the stream.
65908         * lib/fseeko.c (rpl_fseeko): Likewise.
65909
65910 2007-04-26  Bruno Haible  <bruno@clisp.org>
65911
65912         * modules/fflush-tests (Depends-on): Add fseeko.
65913
65914 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65915             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65916
65917         * lib/argz_.h: ensure error_t definition is obtained in same
65918         mechanism system argz.h would have.
65919         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65920         argz facilities are known bad.  Err on the side of caution if
65921         cross-compiling.
65922
65923 2007-04-25  Eric Blake  <ebb9@byu.net>
65924
65925         * lib/fpurge.c (includes): Use stdlib.h for free.
65926         * tests/test-fflush.c (main): Also test fflush-fseeko.
65927
65928 2007-04-25  Bruno Haible  <bruno@clisp.org>
65929
65930         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65931         * lib/fseeko.c: New file.
65932         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65933         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65934         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65935         gl_FUNC_FSEEKO.
65936         (gl_FUNC_FSEEKO): Invoke it.
65937         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65938         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65939         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65940
65941 2007-04-25  Bruno Haible  <bruno@clisp.org>
65942
65943         * modules/fflush (Depends-on): Add ftello.
65944
65945 2007-04-25  Bruno Haible  <bruno@clisp.org>
65946
65947         * modules/ftello-tests: New file.
65948         * tests/test-ftello.c: New file.
65949
65950         * modules/ftello: New file.
65951         * m4/ftello.m4: New file.
65952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65953         HAVE_FTELLO.
65954         * lib/stdio_.h (ftello): New declaration.
65955         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65956         HAVE_FTELLO.
65957
65958 2007-04-25  Bruno Haible  <bruno@clisp.org>
65959
65960         * modules/fseeko-tests: New file.
65961         * tests/test-fseeko.c: New file.
65962
65963         * modules/fseeko: New file.
65964         * m4/fseeko.m4: New file.
65965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65966         HAVE_FSEEKO.
65967         * lib/stdio_.h (fseeko): New declaration.
65968         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65969         HAVE_FSEEKO.
65970
65971 2007-04-25  Bruno Haible  <bruno@clisp.org>
65972
65973         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65974
65975 2007-04-25  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65978         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65979         * tests/test-unistd.c: Likewise.
65980         * tests/test-fcntl.c: Likewise.
65981
65982 2007-04-23  Eric Blake  <ebb9@byu.net>
65983
65984         * lib/fflush.c: Fix missing include.
65985         Reported by Bruno Haible.
65986
65987 2007-04-23  Bruno Haible  <bruno@clisp.org>
65988
65989         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65990         Reported by Eric Blake.
65991
65992 2007-04-23  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65995
65996 2007-04-23  Bruno Haible  <bruno@clisp.org>
65997
65998         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65999
66000 2007-04-23  Bruno Haible  <bruno@clisp.org>
66001
66002         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66003         Needed on HP-UX 11.
66004
66005 2007-04-16  Eric Blake  <ebb9@byu.net>
66006
66007         Make fflush rely on fpurge.
66008         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66009         open coding all variants.
66010         * modules/fflush (Depends-on): Add fpurge and unistd.
66011         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66012         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66013
66014         Fix --with-tests compilation on cygwin.
66015         * modules/argmatch-tests (Makefile.am): List gnulib library first
66016         in LDADD.
66017         * modules/argp-tests (Makefile.am): Likewise.
66018         * modules/array-list-tests (Makefile.am): Likewise.
66019         * modules/array-oset-tests (Makefile.am): Likewise.
66020         * modules/avltree-list-tests (Makefile.am): Likewise.
66021         * modules/avltree-oset-tests (Makefile.am): Likewise.
66022         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66023         * modules/carray-list-tests (Makefile.am): Likewise.
66024         * modules/dirname-tests (Makefile.am): Likewise.
66025         * modules/frexp-tests (Makefile.am): Likewise.
66026         * modules/isnanl-tests (Makefile.am): Likewise.
66027         * modules/linked-list-tests (Makefile.am): Likewise.
66028         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66029         * modules/lock-tests (Makefile.am): Likewise.
66030         * modules/rbtree-list-tests (Makefile.am): Likewise.
66031         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66032         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66033         * modules/tls-tests (Makefile.am): Likewise.
66034         * modules/tsearch-tests (Makefile.am): Likewise.
66035         * modules/xvasprintf-tests (Makefile.am): Likewise.
66036
66037         Fix fpurge for cygwin.
66038         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66039         value.
66040         * modules/fpurge-tests (Depends-on): Clean up trash.
66041
66042 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66043
66044         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66045
66046         * m4/autobuild.m4: Re-indent.
66047
66048 2007-04-13  Bruno Haible  <bruno@clisp.org>
66049
66050         * modules/fpurge-tests: New file.
66051         * tests/test-fpurge.c: New file.
66052
66053         * modules/fpurge: New file.
66054         * lib/fpurge.h: New file.
66055         * lib/fpurge.c: New file.
66056         * m4/fpurge.m4: New file.
66057
66058 2007-04-13  Bruno Haible  <bruno@clisp.org>
66059
66060         * modules/fbufmode-tests: New file.
66061         * tests/test-fbufmode.c: New file.
66062
66063         * modules/fbufmode: New file.
66064         * lib/fbufmode.h: New file.
66065         * lib/fbufmode.c: New file.
66066         * m4/fbufmode.m4: New file.
66067
66068 2007-04-13  Bruno Haible  <bruno@clisp.org>
66069
66070         * modules/fwritable-tests: New file.
66071         * tests/test-fwritable.c: New file.
66072
66073         * modules/fwritable: New file.
66074         * lib/fwritable.h: New file.
66075         * lib/fwritable.c: New file.
66076         * m4/fwritable.m4: New file.
66077
66078 2007-04-13  Bruno Haible  <bruno@clisp.org>
66079
66080         * modules/freadable-tests: New file.
66081         * tests/test-freadable.c: New file.
66082
66083         * modules/freadable: New file.
66084         * lib/freadable.h: New file.
66085         * lib/freadable.c: New file.
66086         * m4/freadable.m4: New file.
66087
66088 2007-04-13  Bruno Haible  <bruno@clisp.org>
66089
66090         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66091         MOSTLYCLEANFILES.
66092
66093 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66096         gzip bootstrap.conf to avoid dragging in i18n machinery.
66097         (gnulib_tool_option): Use it.
66098
66099 2007-04-13  Bruno Haible  <bruno@clisp.org>
66100
66101         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66102         %F directives.
66103         * tests/test-vasprintf-posix.c (test_function): Likewise.
66104         * tests/test-snprintf-posix.h (test_function): Likewise.
66105         * tests/test-sprintf-posix.h (test_function): Likewise.
66106         * tests/test-fprintf-posix.h (test_function): Likewise.
66107         * tests/test-printf-posix.h (test_function): Likewise.
66108         * tests/test-fprintf-posix.out: Likewise.
66109
66110 2007-04-13  Bruno Haible  <bruno@clisp.org>
66111
66112         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66113         * modules/tls-tests (configure.ac): Likewise.
66114         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66115
66116 2007-04-13  Bruno Haible  <bruno@clisp.org>
66117
66118         * lib/tls.c (glthread_tls_get): Fix return type.
66119         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66120
66121 2007-04-12  Eric Blake  <ebb9@byu.net>
66122
66123         * modules/gettime (Depends-on): Remove gettime.
66124         Reported by Dmitry V. Levin.
66125
66126 2007-04-12  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/fflush (Include): Mention <stdio.h>.
66129         * modules/strtoimax (Include): Mention <inttypes.h>.
66130         * modules/strtoumax (Include): Likewise.
66131
66132 2007-04-12  Eric Blake  <ebb9@byu.net>
66133
66134         * .cvsignore: New file.
66135         * .gitignore: Likewise.
66136
66137 2007-04-12  Bruno Haible  <bruno@clisp.org>
66138
66139         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66140         not before, since $(LDADD) often contains libgnu.a.
66141         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66142         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66143         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66144         Needed on Cygwin.
66145
66146 2007-04-12  Eric Blake  <ebb9@byu.net>
66147
66148         Work around glibc's failure to flush stdin on fclose.
66149         * lib/closein.c (close_stdin): Flush stdin before closing.
66150
66151         Work around glibc's failure to reset seekable stdin on exit.
66152         * modules/closein: New module.
66153         * lib/closein.c: New file.
66154         * lib/closein.h: Likewise.
66155         * m4/closein.m4: Likewise.
66156         * MODULES.html.sh (File stream based Input/Output): Document it.
66157
66158 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66159
66160         * gnulib-tool: Rename generated 'autobuild' script to
66161         'do-autobuild' in --create-megatestdir output.
66162
66163         * doc/gnulib.texi (Build robot for gnulib): Fix.
66164
66165 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66166
66167         * modules/sysexits (Depends-on): Add absolute-header.
66168
66169 2007-04-12  Eric Blake  <ebb9@byu.net>
66170
66171         No need to preserve errno on success.
66172         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66173         Reported by Bruno Haible.
66174
66175 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66176
66177         * MODULES.html.sh (Support for maintaining and releasing
66178         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66179
66180 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66181
66182         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66183
66184 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66185
66186         * modules/autobuild: New module.
66187
66188         * m4/autobuild.m4: New file.
66189
66190 2007-04-11  Bruno Haible  <bruno@clisp.org>
66191
66192         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66193         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66194         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66196         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66197         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66198         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66200         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66201         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66203         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66204         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66205         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66206         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66207         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66209         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66210         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66212         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66213         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66214         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66215         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66216         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66218         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66219         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66220         Reported by Eric Blake.
66221
66222 2007-04-11  Bruno Haible  <bruno@clisp.org>
66223
66224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66225
66226 2007-04-10  Bruno Haible  <bruno@clisp.org>
66227
66228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66229         for NaN and Infinity. Needed on FreeBSD 6.1.
66230         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66231         regarding results for "%010a" of Infinity and NaN.
66232         * tests/test-vasprintf-posix.c (test_function): Likewise.
66233         * tests/test-snprintf-posix.h (test_function): Likewise.
66234         * tests/test-sprintf-posix.h (test_function): Likewise.
66235         * tests/test-fprintf-posix.h (test_function): Likewise.
66236         * tests/test-printf-posix.h (test_function): Likewise.
66237         * tests/test-fprintf-posix.out: Likewise.
66238
66239 2007-04-10  Bruno Haible  <bruno@clisp.org>
66240
66241         * modules/locale-tests: New file.
66242         * tests/test-locale.c: New file.
66243
66244         * modules/locale: New file.
66245         * lib/locale_.h: New file.
66246         * m4/locale_h.m4: New file.
66247
66248 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66249             Bruno Haible  <bruno@clisp.org>
66250
66251         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66252         be determined, test for availability of the copysignf, copysign,
66253         copysignl functions.
66254         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66255         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66256         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66257
66258 2007-04-09  Eric Blake  <ebb9@byu.net>
66259
66260         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66261         * modules/stdio (Makefile.am): Support fflush.
66262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66263         * modules/fflush: New file.
66264         * lib/fflush.c: Likewise.
66265         * m4/fflush.m4: Likewise.
66266         * modules/fflush-tests: New test.
66267         * tests/test-fflush.c: Likewise.
66268         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66269
66270 2007-04-06  Bruno Haible  <bruno@clisp.org>
66271
66272         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66273         (VASNPRINTF): Use signbit for faster determination whether to print a
66274         minus sign.
66275         * modules/vasnprintf (Files): Remove lib/float+.h.
66276         * modules/fprintf-posix (Depends-on): Add signbit.
66277         * modules/snprintf-posix (Depends-on): Likewise.
66278         * modules/sprintf-posix (Depends-on): Likewise.
66279         * modules/vasnprintf-posix (Depends-on): Likewise.
66280         * modules/vasprintf-posix (Depends-on): Likewise.
66281         * modules/vfprintf-posix (Depends-on): Likewise.
66282         * modules/vsnprintf-posix (Depends-on): Likewise.
66283         * modules/vsprintf-posix (Depends-on): Likewise.
66284
66285 2007-04-06  Bruno Haible  <bruno@clisp.org>
66286
66287         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66288         * tests/test-frexpl.c (main): Likewise.
66289         * tests/test-ldexpl.c (main): Likewise.
66290         * modules/frexp-tests (Depends-on): Add signbit.
66291         * modules/frexpl-tests (Depdends-on): Likewise.
66292         * modules/ldexpl-tests (Depdends-on): Likewise.
66293
66294 2007-04-06  Bruno Haible  <bruno@clisp.org>
66295
66296         * modules/signbit-tests: New file.
66297         * tests/test-signbit.c: New file.
66298
66299         * modules/signbit: New file.
66300         * lib/signbitf.c: New file.
66301         * lib/signbitd.c: New file.
66302         * lib/signbitl.c: New file.
66303         * m4/signbit.m4: New file.
66304         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66305         (signbit): New macro.
66306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66307         REPLACE_SIGNBIT.
66308         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66309         REPLACE_FREXPL into math.h.
66310
66311 2007-04-06  Bruno Haible  <bruno@clisp.org>
66312
66313         * modules/isnanf-nolibm-tests: New file.
66314         * tests/test-isnanf.c: New file.
66315
66316         * modules/isnanf-nolibm: New file.
66317         * lib/isnanf.h: New file.
66318         * lib/isnanf.c: New file.
66319         * lib/isnan.c: Consider the USE_FLOAT macro.
66320         * m4/isnanf.m4: New file.
66321
66322 2007-04-06  Bruno Haible  <bruno@clisp.org>
66323
66324         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66325         (Link): New section.
66326
66327         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66328
66329 2007-04-06  Bruno Haible  <bruno@clisp.org>
66330
66331         Assume the 'long double' type.
66332         * m4/longdouble.m4: Remove file.
66333         * config/srclist.txt: Don't mention longdouble.m4.
66334         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66335         * lib/float+.h: Likewise.
66336         * lib/frexp.c: Likewise.
66337         * lib/printf-args.h: Likewise.
66338         * lib/printf-args.c: Likewise.
66339         * lib/printf-frexp.c: Likewise.
66340         * lib/printf-parse.c: Likewise.
66341         * lib/vasnprintf.c: Likewise.
66342         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66343         * m4/intl.m4: Likewise.
66344         * m4/isnanl.m4: Likewise.
66345         * m4/printf.m4: Likewise.
66346         * m4/printf-frexpl.m4: Likewise.
66347         * m4/vasnprintf.m4: Likewise.
66348         * modules/allocsa (Files): Remove m4/longdouble.m4.
66349         * modules/gettext (Files): Likewise.
66350         * modules/relocatable-prog-wrapper (Files): Likewise.
66351         * modules/vasnprintf (Files): Likewise.
66352         * modules/isnanl (Files): Likewise.
66353         (Include): Simplify.
66354         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66355         (Include): Simplify.
66356         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66357         (Include): Simplify.
66358         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66359         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66360         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66361         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66362         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66363         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66364         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66365         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66366         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66367         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66368         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66369         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66370         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66371         * tests/test-isnanl.c: Likewise.
66372         * tests/test-snprintf-posix.h: Likewise.
66373         * tests/test-sprintf-posix.h: Likewise.
66374         * tests/test-vasnprintf-posix.c: Likewise.
66375         * tests/test-vasnprintf-posix2.c: Likewise.
66376         * tests/test-vasprintf-posix.c: Likewise.
66377
66378 2007-04-06  Bruno Haible  <bruno@clisp.org>
66379
66380         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66381         * lib/math_.h [__DECC]: Include the overridden include file through
66382         #include_next, outside the double-inclusion guard.
66383         * lib/stdio_.h [__DECC]: Likewise.
66384         * lib/stdlib_.h [__DECC]: Likewise.
66385         * lib/string_.h [__DECC]: Likewise.
66386         * lib/time_.h [__DECC]: Likewise.
66387         * lib/wchar_.h [__DECC]: Likewise.
66388         * lib/wctype_.h [__DECC]: Likewise.
66389         * lib/inttypes_.h [__DECC]: Likewise.
66390         Reported by Albert Chin <china@thewrittenword.com> in
66391         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66392
66393 2007-04-04  Eric Blake  <ebb9@byu.net>
66394
66395         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66396         1.5.x.
66397
66398 2007-04-04  Bruno Haible  <bruno@clisp.org>
66399
66400         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66401         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66402
66403 2007-04-04  Bruno Haible  <bruno@clisp.org>
66404
66405         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66406         results for "%010a" of Infinity and NaN.
66407         * tests/test-vasprintf-posix.c (test_function): Likewise.
66408         * tests/test-snprintf-posix.h (test_function): Likewise.
66409         * tests/test-sprintf-posix.h (test_function): Likewise.
66410         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66411         * tests/test-printf-posix.h (test_function): Likewise.
66412         * tests/test-fprintf-posix.out: Update.
66413         Needed for FreeBSD 6.1.
66414
66415 2007-04-04  Bruno Haible  <bruno@clisp.org>
66416
66417         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66418         directly used by the gnulib modules nor by gnulib-tool.
66419
66420 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66421
66422         * DEPENDENCIES: Give overall description of version dependency
66423         desirability.  Use more-typical names for apps.
66424         Add shell, coreutils, diffutils, grep, tar, gzip.
66425
66426 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66427
66428         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66429
66430 2007-04-04  Karl Berry  <karl@gnu.org>
66431
66432         * MODULES.html.sh (func_module): missing '.
66433
66434 2007-04-03  Bruno Haible  <bruno@clisp.org>
66435
66436         * modules/argmatch-tests (Makefile.am): New variable
66437         test_argmatch_LDADD.
66438         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66439         * modules/array-list-tests (Makefile.am): New variable
66440         test_array_list_LDADD.
66441         * modules/array-oset-tests (Makefile.am): New variable
66442         test_array_oset_LDADD.
66443         * modules/avltree-list-tests (Makefile.am): New variable
66444         test_avltree_list_LDADD.
66445         * modules/avltree-oset-tests (Makefile.am): New variable
66446         test_avltree_oset_LDADD.
66447         * modules/avltreehash-list-tests (Makefile.am): New variable
66448         test_avltreehash_list_LDADD.
66449         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66450         test_canonicalize_lgpl_LDADD.
66451         * modules/carray-list-tests (Makefile.am): New variable
66452         test_carray_list_LDADD.
66453         * modules/dirname-tests (Makefile.am): New variable
66454         test_dirname_LDADD.
66455         * modules/linked-list-tests (Makefile.am): New variable
66456         test_linked_list_LDADD.
66457         * modules/linkedhash-list-tests (Makefile.am): New variable
66458         test_linkedhash_list_LDADD.
66459         * modules/rbtree-list-tests (Makefile.am): New variable
66460         test_rbtree_list_LDADD.
66461         * modules/rbtree-oset-tests (Makefile.am): New variable
66462         test_rbtree_oset_LDADD.
66463         * modules/rbtreehash-list-tests (Makefile.am): New variable
66464         test_rbtreehash_list_LDADD.
66465         * modules/xvasprintf-tests (Makefile.am): New variable
66466         test_xvasprintf_LDADD.
66467         Reported by Eric Blake.
66468
66469 2007-04-03  Eric Blake  <ebb9@byu.net>
66470
66471         * DEPENDENCIES: Weaken m4 requirements.
66472
66473 2007-04-03  Bruno Haible  <bruno@clisp.org>
66474
66475         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66476         * modules/isnanl-tests (configure.ac): Likewise.
66477
66478 2007-04-03  Ben Pfaff  <blp@gnu.org>
66479
66480         * modules/iconv_open: Add $(srcdir)/ to source directory
66481         references in Makefile fragments that call gperf, to fix VPATH
66482         builds.
66483
66484 2007-04-03  Bruno Haible  <bruno@clisp.org>
66485
66486         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66487         * lib/ldexpl.c: Undo last change.
66488
66489 2007-04-03  Bruno Haible  <bruno@clisp.org>
66490
66491         * modules/printf-frexpl (Depends-on): Undo last change.
66492         (Files): Add m4/ldexpl.m4.
66493
66494 2007-04-03  Bruno Haible  <bruno@clisp.org>
66495
66496         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66497         * modules/isnanl (Link): New section.
66498
66499         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66500         * modules/frexp (Link): New section.
66501
66502         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66503         * modules/frexpl (Link): New section.
66504
66505         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66506         * modules/ldexpl (Link): New section.
66507
66508 2007-04-03  Bruno Haible  <bruno@clisp.org>
66509
66510         * modules/TEMPLATE-EXTENDED: New file.
66511         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66512
66513 2007-04-03  Bruno Haible  <bruno@clisp.org>
66514
66515         * DEPENDENCIES: New file.
66516         Suggested by Simon Josefsson.
66517
66518 2007-04-03  Bruno Haible  <bruno@clisp.org>
66519
66520         * doc/gnulib.texi: Escape @.
66521
66522 2007-04-03  James Youngman  <jay@gnu.org>
66523         and Paul Eggert  <eggert@cs.ucla.edu>
66524
66525         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66526         birthtime on all systems that have birthtime, not just those which
66527         use st_birthtimensec rather than st_birthtim.  Putting zero in
66528         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66529         that the birth time is not available for files on an NFS mount.
66530
66531 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66532
66533         * modules/memxor: Move back from crypto/, suggested by Bruno.
66534         * modules/crypto/hmac-sha1: Fix memxor dependency.
66535
66536         * modules/crypto/gc: Moved from ../.
66537
66538 2007-04-02  Eric Blake  <ebb9@byu.net>
66539
66540         * lib/ldexpl.c (includes): Avoid libm.
66541
66542         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66543
66544 2007-04-02  Bruno Haible  <bruno@clisp.org>
66545
66546         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66547         on IRIX.
66548
66549 2007-04-02  Bruno Haible  <bruno@clisp.org>
66550
66551         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66552         x86 or x86_64 platforms running MacOS X.
66553         Reported by Ryan Schmidt <@ryandesign.com>.
66554
66555 2007-04-02  Bruno Haible  <bruno@clisp.org>
66556
66557         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66558         i386.
66559
66560 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66561
66562         * modules/crypto/arcfour: Moved from ../.
66563         * modules/crypto/arcfour-tests: Moved from ../.
66564         * modules/crypto/arctwo: Moved from ../.
66565         * modules/crypto/arctwo-tests: Moved from ../.
66566         * modules/crypto/des: Moved from ../.
66567         * modules/crypto/des-tests: Moved from ../.
66568         * modules/crypto/gc-arcfour: Moved from ../.
66569         * modules/crypto/gc-arcfour-tests: Moved from ../.
66570         * modules/crypto/gc-arctwo: Moved from ../.
66571         * modules/crypto/gc-arctwo-tests: Moved from ../.
66572         * modules/crypto/gc-des: Moved from ../.
66573         * modules/crypto/gc-des-tests: Moved from ../.
66574         * modules/crypto/gc-hmac-md5: Moved from ../.
66575         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66576         * modules/crypto/gc-hmac-sha1: Moved from ../.
66577         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66578         * modules/crypto/gc-md2: Moved from ../.
66579         * modules/crypto/gc-md2-tests: Moved from ../.
66580         * modules/crypto/gc-md4: Moved from ../.
66581         * modules/crypto/gc-md4-tests: Moved from ../.
66582         * modules/crypto/gc-md5: Moved from ../.
66583         * modules/crypto/gc-md5-tests: Moved from ../.
66584         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66585         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66586         * modules/crypto/gc-random: Moved from ../.
66587         * modules/crypto/gc-rijndael: Moved from ../.
66588         * modules/crypto/gc-rijndael-tests: Moved from ../.
66589         * modules/crypto/gc-sha1: Moved from ../.
66590         * modules/crypto/gc-sha1-tests: Moved from ../.
66591         * modules/crypto/gc-tests: Moved from ../.
66592         * modules/crypto/hmac-md5: Moved from ../.
66593         * modules/crypto/hmac-md5-tests: Moved from ../.
66594         * modules/crypto/hmac-sha1: Moved from ../.
66595         * modules/crypto/hmac-sha1-tests: Moved from ../.
66596         * modules/crypto/md2: Moved from ../.
66597         * modules/crypto/md2-tests: Moved from ../.
66598         * modules/crypto/md4: Moved from ../.
66599         * modules/crypto/md4-tests: Moved from ../.
66600         * modules/crypto/md5: Moved from ../.
66601         * modules/crypto/md5-tests: Moved from ../.
66602         * modules/crypto/memxor: Moved from ../.
66603         * modules/crypto/rijndael: Moved from ../.
66604         * modules/crypto/rijndael-tests: Moved from ../.
66605         * modules/crypto/sha1: Moved from ../.
66606
66607 2007-03-30  James Youngman  <jay@gnu.org>
66608
66609         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66610         rename() to change the ctime of a file (because ctime is unaffected
66611         by rename on jfs2 on AIX 5.1).
66612         (main): Start by doing cleanup, in case a previous run failed leaving
66613         test files behind.
66614
66615 2007-03-31  Bruno Haible  <bruno@clisp.org>
66616
66617         Support old proprietary implementations of iconv.
66618         * modules/iconv_open: New file.
66619         * lib/iconv_.h: New file.
66620         * m4/iconv_h.m4: New file.
66621         * lib/iconv_open.c: New file.
66622         * lib/iconv_open-aix.gperf: New file.
66623         * lib/iconv_open-hpux.gperf: New file.
66624         * lib/iconv_open-irix.gperf: New file.
66625         * lib/iconv_open-osf.gperf: New file.
66626         * m4/iconv_open.m4: New file.
66627         * modules/linebreak (Depends-on): Add iconv_open.
66628         * modules/striconv (Depends-on): Likewise.
66629         * modules/striconveh (Depends-on): Likewise.
66630         * modules/unicodeio (Depends-on): Likewise.
66631         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66632         (iconv_t)(-1).
66633         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66634         conversion if cd is (iconv_t)(-1).
66635         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66636         is not possible.
66637
66638 2007-03-31  Bruno Haible  <bruno@clisp.org>
66639
66640         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66641         work on Solaris either. Protect also second use of "autodetect_jp".
66642
66643 2007-03-31  Bruno Haible  <bruno@clisp.org>
66644
66645         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66646         the function is not present.
66647
66648 2007-03-31  Bruno Haible  <bruno@clisp.org>
66649
66650         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66651         the function is not present.
66652
66653 2007-03-31  Bruno Haible  <bruno@clisp.org>
66654
66655         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66656         a bug in HP-UX iconv_open().
66657
66658 2007-03-31  Bruno Haible  <bruno@clisp.org>
66659
66660         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66661         (Mathematics <math.h>): New section, add fpieee.
66662         (Input/output <stdio.h>): Add fseterr.
66663         (Mathematics <math.h>): New section, add printf-frexp.
66664         (Container data structures): Add sublist.
66665         (Core language properties): Add fpucw, inline.
66666         (Functions for greatest-width integer types <inttypes.h>): Add
66667         imaxabs, imaxdiv, inttypes.
66668         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66669         isnanl-nolibm, ldexp.
66670         (Mathematics <math.h>): New section, add printf-frexpl.
66671         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66672         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66673         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66674         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66675         (Unicode string functions): Add unistr/u*-mbtoucr.
66676         (Java): Add javacomp-script, javaexec-script.
66677         (C#): Add csharpcomp-script, csharpexec-script.
66678         (Support for building libraries and executables): Add havelib,
66679         relocatable-*.
66680         (Support for maintaining and releasing projects): Renamed from
66681         'Support for maintaining and release projects'. Add announce-gen.
66682
66683 2007-03-31  Bruno Haible  <bruno@clisp.org>
66684
66685         * README: Talk primarily about git.
66686         (git and CVS): Renamed from CVS.
66687         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66688         gnulib is available through git.
66689         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66690
66691 2007-03-30  Bruno Haible  <bruno@clisp.org>
66692
66693         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66694         * lib/poll_.h: Likewise.
66695         * lib/stat_.h: Likewise.
66696         * lib/sys_time_.h: Likewise.
66697         * lib/sysexit_.h: Likewise.
66698         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66699         * lib/stdbool_.h: Likewise.
66700         * lib/byteswap_.h: Add double-inclusion guard.
66701
66702 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66703
66704         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66705
66706 2007-03-30  Karl Berry  <karl@gnu.org>
66707
66708         * config/srclist-update: double space after USA in the license
66709         substitution, since that's how it's usually (?) written.
66710
66711 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66712
66713         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66714         reported by Bruno Haible.
66715
66716 2007-03-29  Bruno Haible  <bruno@clisp.org>
66717
66718         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66719         a bug in AIX iconv().
66720
66721 2007-03-29  Bruno Haible  <bruno@clisp.org>
66722
66723         * modules/ldexpl-tests: New file.
66724         * tests/test-ldexpl.c: New file.
66725
66726 2007-03-29  Bruno Haible  <bruno@clisp.org>
66727
66728         * lib/ldexpl.c: Include fpucw.h.
66729         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66730         multiplication.
66731         * modules/ldexpl (Depends-on): Add fpucw.
66732
66733 2007-03-29  Bruno Haible  <bruno@clisp.org>
66734
66735         * modules/ldexpl: New file.
66736         * m4/ldexpl.m4: New file.
66737         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66738         set.
66739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66740         REPLACE_LDEXPL.
66741         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66742         REPLACE_LDEXPL.
66743         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66744         gl_FUNC_LDEXPL_WORKS.
66745         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66746         * modules/mathl (Files): Remove lib/ldexpl.c.
66747         (Depends-on): Add ldexpl.
66748
66749 2007-03-29  Bruno Haible  <bruno@clisp.org>
66750
66751         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66752
66753 2007-03-29  Bruno Haible  <bruno@clisp.org>
66754
66755         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66756         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66757         and possibly also HP-UX.
66758         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66759         work on AIX, IRIX, HP-UX, OSF/1.
66760         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66761         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66762         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66763         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66764         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66765         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66766
66767 2007-03-29  Bruno Haible  <bruno@clisp.org>
66768
66769         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66770
66771 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66772
66773         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66774         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66775
66776 2007-03-29  Eric Blake  <ebb9@byu.net>
66777
66778         * lib/acl-internal.h: Remove redundant include.
66779         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66780         Cygwin when a file is locked.
66781
66782 2007-03-29  Bruno Haible  <bruno@clisp.org>
66783
66784         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66785         file.
66786         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66787
66788 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66789
66790         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66791         try to remove a parent directory if the child couldn't be removed
66792         (except for the first rmdir, which could fail because the child
66793         doesn't exist).  Problem reported by Jeff Blaine in
66794         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66795
66796 2007-03-28  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/striconveh.c (utf8conv_carefully): New function.
66799         (mem_cd_iconveh_internal): Invoke it.
66800
66801 2007-03-28  Bruno Haible  <bruno@clisp.org>
66802
66803         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66804         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66805         input.
66806         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66807         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66808         unistr/u8-uctomb.
66809
66810 2007-03-28  Bruno Haible  <bruno@clisp.org>
66811
66812         * modules/unistr/u8-mbtoucr: New file.
66813         * lib/unistr/u8-mbtoucr.c: New file.
66814         * modules/unistr/u16-mbtoucr: New file.
66815         * lib/unistr/u16-mbtoucr.c: New file.
66816         * modules/unistr/u16-mbtoucr: New file.
66817         * lib/unistr/u16-mbtoucr.c: New file.
66818         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66819
66820 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66821             Bruno Haible  <bruno@clisp.org>
66822
66823         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66824         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66825         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66826
66827         * m4/stdio_h.m4: Add stubs for vasprintf too.
66828
66829         * modules/stdio: Support vasprintf in sed command.
66830
66831         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66832         vasprintf.h.  Add stdio module indicator.
66833
66834         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66835         vasprintf.h.
66836
66837         * lib/vasprintf.h: File removed.
66838
66839         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66840         * lib/vasprintf.c: Ditto.
66841         * lib/xvasprintf.c: Ditto.
66842         * tests/test-vasprintf-posix.c: Ditto.
66843         * tests/test-vasprintf.c: Ditto.
66844
66845 2007-03-27  Bruno Haible  <bruno@clisp.org>
66846
66847         Make vasnprintf multithread-safe.
66848         * lib/vasnprintf.c (decimal_point_char): New function.
66849         (VASNPRINTF): Use it.
66850         Suggested by Simon Josefsson.
66851
66852 2007-03-27  Eric Blake  <ebb9@byu.net>
66853
66854         Support sub-second birthtime on cygwin.
66855         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66856         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66857         (get_stat_birthtime): Also work with st_birthtim.
66858
66859 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66860
66861         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66862         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66863         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66864         (get_stat_birthtime_ns): Simplify compile-time tests.
66865         (get_stat_birthtime): Change the API to look like
66866         get_stat_mtime etc., except return a negative tv_nsec on error.
66867         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66868         Don't check for "spare" fields.
66869         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66870         or for struct stat.st_birthtime, as these tests aren't used.
66871         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66872
66873 2007-03-27  Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/stat-time.h: Include <sys/stat.h>.
66876
66877 2007-03-27  James Youngman  <jay@gnu.org>
66878
66879         * lib/stat-time.h (get_stat_birthtime): New function for
66880           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66881         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66882           and its variants.
66883         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66884         * modules/stat-time-test: New file.
66885         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66886
66887 2007-03-26  Bruno Haible  <bruno@clisp.org>
66888
66889         Better support of signalling NaNs.
66890         * lib/atanl.c: Include isnanl.h.
66891         (atanl): Perform test for NaN at the beginning of the function and
66892         through a call to isnanl.
66893         * lib/cosl.c: Include isnanl.h.
66894         (cosl): Perform test for NaN at the beginning of the function and
66895         through a call to isnanl.
66896         * lib/ldexpl.c: Include isnanl.h.
66897         (ldexpl): Perform test for NaN through a call to isnanl.
66898         * lib/logl.c: Include isnanl.h.
66899         (logl): Perform test for NaN at the beginning of the function and
66900         through a call to isnanl.
66901         * lib/sinl.c: Include isnanl.h.
66902         (sinl): Perform test for NaN at the beginning of the function and
66903         through a call to isnanl.
66904         * lib/sqrtl.c: Include isnanl.h.
66905         (sqrtl): Perform test for NaN at the beginning of the function and
66906         through a call to isnanl.
66907         * lib/tanl.c: Include isnanl.h.
66908         (tanl): Perform test for NaN at the beginning of the function and
66909         through a call to isnanl.
66910         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66911         * modules/mathl (Depends-on): Add isnanl.
66912
66913 2007-03-26  Eric Blake  <ebb9@byu.net>
66914
66915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66916         regression in logic sense of previous patch.
66917
66918 2007-03-26  Bruno Haible  <bruno@clisp.org>
66919
66920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66921         unportable shell command "if ! ...".
66922         Reported by Ralf Wildenhues.
66923
66924 2007-03-25  Bruno Haible  <bruno@clisp.org>
66925
66926         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66927         <sysexits.h> file, and only add EX_CONFIG.
66928         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66929         absolute file name and whether it is sufficient. Substitute also
66930         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66931         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66932         ABSOLUTE_SYSEXITS_H into sysexits.h.
66933
66934 2007-03-25  Bruno Haible  <bruno@clisp.org>
66935
66936         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66937         hints is NULL.
66938
66939 2007-03-25  Bruno Haible  <bruno@clisp.org>
66940
66941         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66942         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66943
66944 2007-03-25  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/vasnprintf.c: Include langinfo.h.
66947         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66948         multithread-safe.
66949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66950         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66951         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66953         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66954         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66955         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66956         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66957         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66958         Reported by Simon Josefsson.
66959
66960 2007-03-25  Bruno Haible  <bruno@clisp.org>
66961
66962         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66963         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66964         * modules/vasnprintf (Depends-on): Add stdint.
66965
66966 2007-03-25  Bruno Haible  <bruno@clisp.org>
66967
66968         * modules/fpieee: New file.
66969         * m4/fpieee.m4: New file.
66970         * modules/isnan-nolibm (Depends-on): Add fpieee.
66971         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66972         * modules/isnanl (Depends-on): Add fpieee.
66973
66974 2007-03-25  Bruno Haible  <bruno@clisp.org>
66975
66976         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66977
66978 2007-03-25  Bruno Haible  <bruno@clisp.org>
66979
66980         Avoid test failures on IRIX 6.5.
66981         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66982         (main): Use it.
66983         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66984         macros.
66985         (main): Use them.
66986
66987 2007-03-25  Bruno Haible  <bruno@clisp.org>
66988
66989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66990         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66991         exists but doesn't work.
66992         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66993         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66995         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66996         math.h.
66997
66998 2007-03-25  Bruno Haible  <bruno@clisp.org>
66999
67000         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67001         returns inf. Needed on IRIX 6.5.
67002
67003 2007-03-25  Bruno Haible  <bruno@clisp.org>
67004
67005         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67006         (main): Use isnanl instead of x != x idiom.
67007         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67008
67009         * tests/test-frexp.c: Include isnan.h.
67010         (main): Use isnan instead of x != x idiom.
67011         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67012
67013 2007-03-25  Bruno Haible  <bruno@clisp.org>
67014
67015         * tests/test-frexp.c (NaN): New function/macro.
67016         (main): Use it instead of 0.0 / 0.0.
67017         * tests/test-isnan.c (NaN): New function/macro.
67018         (main): Use it instead of 0.0 / 0.0.
67019         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67020         (test_function): Use it instead of 0.0 / 0.0.
67021         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67022         (test_function): Use it instead of 0.0 / 0.0.
67023         * tests/test-snprintf-posix.h (NaN): New function/macro.
67024         (test_function): Use it instead of 0.0 / 0.0.
67025         * tests/test-sprintf-posix.h (NaN): New function/macro.
67026         (test_function): Use it instead of 0.0 / 0.0.
67027         * tests/test-fprintf-posix.h (NaN): New function/macro.
67028         (test_function): Use it instead of 0.0 / 0.0.
67029         * tests/test-printf-posix.h (NaN): New function/macro.
67030         (test_function): Use it instead of 0.0 / 0.0.
67031
67032         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67033
67034 2007-03-25  Bruno Haible  <bruno@clisp.org>
67035
67036         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67037
67038 2007-03-25  Bruno Haible  <bruno@clisp.org>
67039
67040         * lib/regexec.c (merge_state_with_log): Make static.
67041
67042 2007-03-25  Bruno Haible  <bruno@clisp.org>
67043
67044         * lib/trigl.c (kernel_rem_pio2): Make static.
67045
67046 2007-03-25  Bruno Haible  <bruno@clisp.org>
67047
67048         * lib/sincosl.c (sincosl_table): Make static.
67049
67050 2007-03-25  Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67053         if the compiler does not support C99.
67054
67055 2007-03-25  Bruno Haible  <bruno@clisp.org>
67056
67057         * modules/time (Makefile.am): Ensure all rule action lines start with a
67058         tab.
67059
67060 2007-03-24  Bruno Haible  <bruno@clisp.org>
67061
67062         * modules/tsearch-tests: New file.
67063         * tests/test-tsearch.sh: New file.
67064         * tests/test-tsearch.c: New file, mostly copied from glibc.
67065
67066         * modules/search-tests: New file.
67067         * tests/test-search.c: New file.
67068
67069         * modules/search: New file.
67070         * lib/search_.h: New file, incorporating lib/tsearch.h.
67071         * m4/search_h.m4: New file.
67072         * lib/tsearch.h: Remove file.
67073         * lib/tsearch.c: Include search.h instead of tsearch.h.
67074         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67075         HAVE_TSEARCH.
67076         * modules/tsearch (Files): Remove lib/tsearch.h.
67077         (Depends-on): Add search.
67078         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67079         (Include): Change tsearch.h into search.h.
67080
67081 2007-03-24  Bruno Haible  <bruno@clisp.org>
67082
67083         * modules/fpucw: New file.
67084         * lib/fpucw.h: New file.
67085         * lib/frexp.c: Include fpucw.h.
67086         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67087         (FUNC): Use them.
67088         * lib/printf-frexp.c: Include fpucw.h.
67089         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67090         (FUNC): Use them.
67091         * lib/vasnprintf.c: Include fpucw.h.
67092         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67093         'long double' calculations.
67094         * tests/test-frexpl.c: Include fpucw.h.
67095         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67096         * tests/test-printf-frexpl.c: Include fpucw.h.
67097         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67098         * modules/frexpl (Depends-on): Add fpucw.
67099         * modules/printf-frexpl (Depends-on): Likewise.
67100         * modules/fprintf-posix (Depends-on): Likewise.
67101         * modules/snprintf-posix (Depends-on): Likewise.
67102         * modules/sprintf-posix (Depends-on): Likewise.
67103         * modules/vasnprintf-posix (Depends-on): Likewise.
67104         * modules/vasprintf-posix (Depends-on): Likewise.
67105         * modules/vfprintf-posix (Depends-on): Likewise.
67106         * modules/vsnprintf-posix (Depends-on): Likewise.
67107         * modules/vsprintf-posix (Depends-on): Likewise.
67108         * modules/frexpl-tests (Depends-on): Likewise.
67109         * modules/printf-frexpl-tests (Depends-on): Likewise.
67110
67111 2007-03-24  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/float+.h: New file.
67114         * lib/isnan.c: Include float+.h.
67115         (SIZE): New macro.
67116         (FUNC): Compare only SIZE bytes of the value.
67117         * lib/vasnprintf.c: Include float+.h.
67118         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67119         SIZEOF_LDBL or SIZEOF_DBL bytes.
67120         * modules/isnan-nolibm (Files): Add lib/float+.h.
67121         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67122         * modules/isnanl (Files): Add lib/float+.h.
67123         * modules/vasnprintf (Files): Add lib/float+.h.
67124
67125 2007-03-24  Bruno Haible  <bruno@clisp.org>
67126
67127         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67128         include isnanl-nolibm.h.
67129
67130 2007-03-24  Bruno Haible  <bruno@clisp.org>
67131
67132         * tests/test-read-file.c (main): Don't produce spurious output for
67133         expected situations. Make the test fail if it encountered unexpected
67134         results.
67135
67136 2007-03-24  Bruno Haible  <bruno@clisp.org>
67137
67138         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67139         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67140
67141 2007-03-24  Bruno Haible  <bruno@clisp.org>
67142
67143         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67144
67145 2007-03-24  Bruno Haible  <bruno@clisp.org>
67146
67147         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67148         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67149
67150         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67151         * modules/utf8-ucs4: Turn into a symbolic link to module
67152         unistr/u8-mbtouc.
67153
67154         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67155         utf8-ucs4-unsafe.
67156         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67157         unistr/u8-mbtouc-unsafe.
67158
67159         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67160         * modules/utf16-ucs4: Turn into a symbolic link to module
67161         unistr/u16-mbtouc.
67162
67163         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67164         utf16-ucs4-unsafe.
67165         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67166         unistr/u16-mbtouc-unsafe.
67167
67168         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67169         * modules/ucs4-utf8: Turn into a symbolic link to module
67170         unistr/u8-ubtomb.
67171
67172         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67173         * modules/ucs4-utf16: Turn into a symbolic link to module
67174         unistr/u16-ubtomb.
67175
67176 2007-03-24  Bruno Haible  <bruno@clisp.org>
67177
67178         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67179         Enable the function only if HAVE_INLINE.
67180         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67181         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67182         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67183         Enable the function only if HAVE_INLINE.
67184         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67185         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67186         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67187         Enable the function only if HAVE_INLINE.
67188         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67189         Enable the function only if HAVE_INLINE.
67190         * modules/utf8-ucs4: Update.
67191         * modules/utf8-ucs4-unsafe: Update.
67192         * modules/utf16-ucs4: Update.
67193         * modules/utf16-ucs4-unsafe: Update.
67194         * modules/ucs4-utf8: Update.
67195         * modules/ucs4-utf16: Update.
67196
67197 2007-03-24  Bruno Haible  <bruno@clisp.org>
67198
67199         * lib/utf8-ucs4.h: Remove file.
67200         * lib/utf8-ucs4-unsafe.h: Remove file.
67201         * lib/utf16-ucs4.h: Remove file.
67202         * lib/utf16-ucs4-unsafe.h: Remove file.
67203         * lib/ucs4-utf8.h: Remove file.
67204         * lib/ucs4-utf16.h: Remove file.
67205         * lib/unistr.h: Include their previous contents.
67206         * m4/utf-ucs4.m4: Remove file.
67207         * m4/ucs4-utf.m4: Remove file.
67208         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67209         (Depends-on): Add unistr/base.
67210         (configure.ac): Remove gl_UTF_UCS4.
67211         (Makefile.am): Update.
67212         (Include): Change to unistr.h.
67213         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67214         (Depends-on): Add unistr/base.
67215         (configure.ac): Remove gl_UTF_UCS4.
67216         (Makefile.am): Update.
67217         (Include): Change to unistr.h.
67218         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67219         (Depends-on): Add unistr/base.
67220         (configure.ac): Remove gl_UTF_UCS4.
67221         (Makefile.am): Update.
67222         (Include): Change to unistr.h.
67223         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67224         (Depends-on): Add unistr/base.
67225         (configure.ac): Remove gl_UTF_UCS4.
67226         (Makefile.am): Update.
67227         (Include): Change to unistr.h.
67228         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67229         (Depends-on): Add unistr/base.
67230         (configure.ac): Remove gl_UCS4_UTF.
67231         (Makefile.am): Update.
67232         (Include): Change to unistr.h.
67233         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67234         (Depends-on): Add unistr/base.
67235         (configure.ac): Remove gl_UCS4_UTF.
67236         (Makefile.am): Update.
67237         (Include): Change to unistr.h.
67238         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67239         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67240         utf8-ucs4-unsafe.h.
67241         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67242         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67243         utf16-ucs4-unsafe.h.
67244         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67245         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67246         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67247         * lib/unistr/u8-strchr.c: Likewise.
67248         * lib/unistr/u8-strrchr.c: Likewise.
67249         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67250         * lib/unistr/u16-strchr.c: Likewise.
67251         * lib/unistr/u16-strrchr.c: Likewise.
67252         * lib/striconveh.c: Update.
67253         * lib/linebreak.c: Update.
67254
67255 2007-03-24  Bruno Haible  <bruno@clisp.org>
67256
67257         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67258         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67259
67260 2007-03-22  Bruno Haible  <bruno@clisp.org>
67261
67262         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67263
67264 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67265
67266         * MODULES.html.sh (File system functions): New module write-any-file.
67267         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67268         * m4/write-any-file.m4: New files.
67269
67270 2007-03-23  Eric Blake  <ebb9@byu.net>
67271
67272         * gnulib-tool: Rearrange space-tab sequences, since some editors
67273         like to eat them.
67274
67275 2007-03-23  Eric Blake  <ebb9@byu.net>
67276
67277         * lib/version-etc.c (version_etc_va): Update license wording to
67278         be more concise.  Recommended by Richard Stallman.
67279
67280 2007-03-22  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/poll.c (MSG_PEEK): New fallback definition.
67283
67284 2007-03-22  Bruno Haible  <bruno@clisp.org>
67285
67286         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67287         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67288         (main): Update.
67289         Fixes a compilation error on BeOS.
67290
67291 2007-03-22  Bruno Haible  <bruno@clisp.org>
67292
67293         * modules/frexpl-tests: New file.
67294         * tests/test-frexpl.c: New file.
67295
67296         * modules/frexpl: New file.
67297         * m4/frexpl.m4: New file.
67298         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67299         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67301         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67302         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67303         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67304
67305 2007-03-22  Bruno Haible  <bruno@clisp.org>
67306
67307         * lib/frexpl.c: Share code with lib/frexp.c.
67308         * modules/mathl (Files): Add lib/frexp.c.
67309         (Depends-on): Add isnanl-nolibm.
67310
67311 2007-03-22  Bruno Haible  <bruno@clisp.org>
67312
67313         * modules/printf-frexp (Files): Add m4/frexp.m4.
67314         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67315         only if the found frexp function actually works.
67316
67317 2007-03-22  Bruno Haible  <bruno@clisp.org>
67318
67319         * lib/frexp.c: Remove older implementation that uses divisions.
67320
67321 2007-03-21  Bruno Haible  <bruno@clisp.org>
67322
67323         * modules/frexp-tests: New file.
67324         * tests/test-frexp.c: New file.
67325
67326         * modules/frexp: New file.
67327         * lib/frexp.c: New file.
67328         * m4/frexp.m4: New file.
67329         * lib/math_.h (frexp): New declaration.
67330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67331         REPLACE_FREXP.
67332         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67333
67334 2007-03-21  Bruno Haible  <bruno@clisp.org>
67335
67336         * modules/isnanl-tests: New file.
67337         * tests/test-isnanl.c: New file.
67338
67339         * modules/isnanl: New file.
67340         * lib/isnanl.h: New file.
67341         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67342         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67343         gl_FUNC_ISNANL_WORKS.
67344         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67345         New macros.
67346
67347 2007-03-21  Bruno Haible  <bruno@clisp.org>
67348
67349         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67350         lib/isnanl.h.
67351         (Include): Update.
67352         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67353         * lib/vasnprintf.c: Update.
67354         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67355         tests/test-isnanl.h, remove tests/test-isnanl.c.
67356         (Makefile.am): Update.
67357         * tests/test-isnanl-nolibm.c: New file.
67358         * tests/test-isnanl.h: New file.
67359         * tests/test-isnanl.c: Remove file.
67360
67361 2007-03-21  Jim Meyering  <jim@meyering.net>
67362
67363         When trying to open ".", treat ESTALE like EACCES.
67364         * lib/savewd.c (savewd_save): Resort to forking not just upon
67365         failure with EACCES, but also when errno is ESTALE.
67366
67367 2007-03-20  Bruno Haible  <bruno@clisp.org>
67368
67369         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67370         Needed on AIX 5.1. Reported by Matthew Woehlke.
67371
67372 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67373
67374         Suggestions by Bruno Haible:
67375         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67376         our own.
67377         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67378         * modules/acl (Depends-on): Add gettext.
67379
67380 2007-03-19  Bruno Haible  <bruno@clisp.org>
67381
67382         * modules/iconvme: Remove file.
67383         * lib/iconvme.h: Remove file.
67384         * lib/iconvme.c: Remove file.
67385         * m4/iconvme.m4: Remove file.
67386
67387 2007-03-19  Bruno Haible  <bruno@clisp.org>
67388
67389         * doc/relocatable-maint.texi: Break long shell script line.
67390         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67391
67392 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67395         handle file_has_acl.
67396         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67397         * lib/acl.c: Move header inclusions and related macro defns into
67398         lib/acl-internal.h.
67399         (S_ISLNK): Remove defn, since that's now done for us.
67400         (file_has_acl): Move to lib/file-has-acl.c.
67401         Call acl_trivial if available.  This is the crucial part of the fix.
67402         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67403         shared within the library.  Rewrite a bit, partly to make it compatible
67404         with the GNU coding style.
67405         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67406         Remove unnecessary double-quotes.
67407         Don't test for acl_to_text; the build will catch that.
67408         Replace acl_entries if it doesn't exist and it is needed.
67409         Check for -lsec and acl_trivial (as used on Solaris 10).
67410         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67411         lib/file-has-acl.c.
67412         (Depends-on): Add sys_stat, for S_ISLNK.
67413
67414 2007-03-19  Ben Pfaff  <blp@gnu.org>
67415
67416         * doc/gnulib.texi: Fix typos.
67417         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67418
67419 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67420
67421         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67422         If size is zero here, buf must be zero.
67423
67424 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67425
67426         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67427         <bruno@clisp.org>.
67428
67429 2007-03-18  Bruno Haible  <bruno@clisp.org>
67430
67431         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67432         Suggested by Eric Blake.
67433
67434 2007-03-18  Ben Pfaff  <blp@gnu.org>
67435
67436         * doc/relocatable.texi: Recommend using as prefix a directory
67437         that does not exist and will never be created.  Based on
67438         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67439         and others.
67440
67441 2007-03-17  Bruno Haible  <bruno@clisp.org>
67442
67443         * lib/fchownat.c: Include lchown.h.
67444
67445 2007-03-17  Bruno Haible  <bruno@clisp.org>
67446
67447         Fix endless loop when the given allocated size was > INT_MAX.
67448         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67449         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67450         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67451         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67452         * lib/sprintf.c (sprintf): Likewise.
67453
67454 2007-03-17  Bruno Haible  <bruno@clisp.org>
67455
67456         * tests/test-argp-2.sh (func_compare): Output a context diff.
67457
67458 2007-03-17  Bruno Haible  <bruno@clisp.org>
67459
67460         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67461         locale's decimal-point character.
67462
67463 2007-03-17  Bruno Haible  <bruno@clisp.org>
67464
67465         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67466         before comparing it. Needed because on some platforms (e.g. x86) a
67467         'long double' occupies less bytes than sizeof (long double).
67468
67469 2007-03-17  Bruno Haible  <bruno@clisp.org>
67470
67471         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67472         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67473         * tests/test-getaddrinfo.c (simple): Likewise.
67474         * tests/test-read-file.c (main): Likewise.
67475
67476 2007-03-17  Bruno Haible  <bruno@clisp.org>
67477
67478         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67479
67480 2007-03-17  Bruno Haible  <bruno@clisp.org>
67481
67482         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67483         unused variable.
67484
67485 2007-03-17  Bruno Haible  <bruno@clisp.org>
67486
67487         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67488         * tests/test-c-strncasecmp.c: Likewise.
67489
67490 2007-03-17  Bruno Haible  <bruno@clisp.org>
67491
67492         * modules/stdlib (Depends-on): Add unistd.
67493         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67494         Needed for MacOS X 10.3.
67495
67496 2007-03-17  Bruno Haible  <bruno@clisp.org>
67497
67498         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67499
67500 2007-03-17  Bruno Haible  <bruno@clisp.org>
67501
67502         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67503
67504 2007-03-17  Bruno Haible  <bruno@clisp.org>
67505
67506         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67507         to reflect files copied from gnulib (with or without modifications).
67508         Suggested by Jim Meyering.
67509
67510 2007-03-17  Eric Blake  <ebb9@byu.net>
67511
67512         * NEWS: Document stdlib change from 2007-02-18.
67513
67514 2007-03-17  Jim Meyering  <jim@meyering.net>
67515
67516         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67517         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67518         someone uses a name containing shell meta-characters.
67519         Reported by Alfred M. Szmidt.
67520
67521         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67522
67523 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67524
67525         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67526         and copy gettext configuration files only if configure.ac contains
67527         a use of AM_GNU_GETTEXT_VERSION.
67528
67529 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67530
67531         * build-aux/bootstrap (gnulib_name): New variable.
67532         (gnulib_tool_options): Use it.
67533
67534 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67535
67536         * tests/test-des.c: Use new namespace.
67537
67538 2007-03-15  Bruno Haible  <bruno@clisp.org>
67539
67540         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67541         Reported by James Youngman <jay@gnu.org>.
67542
67543 2007-03-15  Bruno Haible  <bruno@clisp.org>
67544
67545         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67546         declared prototype. Needed with cc on OSF/1 5.1.
67547
67548 2007-03-15  Bruno Haible  <bruno@clisp.org>
67549
67550         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67551         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67552         (struct gl_list_implementation): Add dispose_fn argument to the
67553         'create_empty', 'create' methods.
67554         (struct gl_list_impl_base): Add field 'dispose_fn'.
67555         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67556         argument.
67557         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67558         dispose_fn argument.
67559         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67560         dispose_fn on the dropped values.
67561         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67562         dispose_fn argument.
67563         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67564         dropped values.
67565         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67566         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67567         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67568         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67569         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67570         argument.
67571         (gl_tree_list_free): Call dispose_fn on the dropped values.
67572         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67573         the dropped values.
67574         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67575         Add dispose_fn argument.
67576         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67577         Call dispose_fn on the dropped values.
67578         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67579         Add dispose_fn argument.
67580         (gl_sublist_create): Initialize the 'dispose_fn' field.
67581         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67582         * tests/test-array_list.c (main): Update.
67583         * tests/test-carray_list.c (main): Update.
67584         * tests/test-avltree_list.c (main): Update.
67585         * tests/test-rbtree_list.c (main): Update.
67586         * tests/test-avltreehash_list.c (main): Update.
67587         * tests/test-rbtreehash_list.c (main): Update.
67588         * tests/test-linked_list.c (main): Update.
67589         * tests/test-linkedhash_list.c (main): Update.
67590         * tests/test-array_oset.c (main): Update.
67591
67592 2007-03-15  Bruno Haible  <bruno@clisp.org>
67593
67594         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67595         (gl_oset_create_empty): Add dispose_fn argument.
67596         (struct gl_oset_implementation): Add dispose_fn argument to
67597         'create_empty' method.
67598         (struct gl_oset_impl_base): Add dispose_fn field.
67599         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67600         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67601         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67602         values.
67603         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67604         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67605         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67606         dropped value.
67607         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67608         dropped value.
67609         * tests/test-array_oset.c (main): Update.
67610         * tests/test-avltree_oset.c (main): Update.
67611         * tests/test-rbtree_oset.c (main): Update.
67612         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67613
67614 2007-03-13  Bruno Haible  <bruno@clisp.org>
67615
67616         * tests/test-stdbool.c (i): Update after last patch.
67617
67618 2007-03-12  Bruno Haible  <bruno@clisp.org>
67619
67620         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67621         the iswprint macro. Needed on Solaris 2.5.1.
67622
67623 2007-03-12  Bruno Haible  <bruno@clisp.org>
67624
67625         * tests/test-printf-frexp.c (main): Declare x as volatile.
67626
67627 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67628
67629         * doc/gnulib.texi (Build robot for gnulib): New section.
67630
67631 2007-03-12  Jim Meyering  <jim@meyering.net>
67632
67633         * build-aux/bootstrap: New file.
67634         * build-aux/bootstrap.conf: New file, from coreutils.
67635
67636 2007-03-11  Bruno Haible  <bruno@clisp.org>
67637
67638         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67639
67640 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67641
67642         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67643         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67644         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67645
67646 2007-03-11  Bruno Haible  <bruno@clisp.org>
67647
67648         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67649         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67650
67651 2007-03-11  Bruno Haible  <bruno@clisp.org>
67652
67653         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67654         formula. Needed for SunPRO C 5.0.
67655
67656 2007-03-11  Bruno Haible  <bruno@clisp.org>
67657
67658         * modules/long-options (Depends-on): Add getopt.
67659
67660 2007-03-11  Bruno Haible  <bruno@clisp.org>
67661
67662         * modules/modechange (Depends-on): Add stdbool.
67663
67664 2007-03-11  Bruno Haible  <bruno@clisp.org>
67665
67666         * modules/i-ring (Depends-on): Add stdbool.
67667
67668 2007-03-11  Bruno Haible  <bruno@clisp.org>
67669
67670         * modules/gc-des (Depends-on): Add stdbool.
67671
67672 2007-03-11  Bruno Haible  <bruno@clisp.org>
67673
67674         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67675
67676 2007-03-11  Bruno Haible  <bruno@clisp.org>
67677
67678         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67679
67680 2007-03-11  Bruno Haible  <bruno@clisp.org>
67681
67682         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67683
67684 2007-03-11  Bruno Haible  <bruno@clisp.org>
67685
67686         * lib/vasnprintf.c (sprintf): Undefine.
67687
67688 2007-03-11  Bruno Haible  <bruno@clisp.org>
67689
67690         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67691         initializers in SunPRO C and Compaq C compilers.
67692
67693 2007-03-11  Bruno Haible  <bruno@clisp.org>
67694
67695         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67696         decrementing code ANSI C compliant.
67697
67698 2007-03-11  Bruno Haible  <bruno@clisp.org>
67699
67700         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67701         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67702
67703 2007-03-11  Bruno Haible  <bruno@clisp.org>
67704
67705         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67706         <stdbool.h> substitute doesn't pass.
67707
67708 2007-03-11  Bruno Haible  <bruno@clisp.org>
67709
67710         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67711
67712 2007-03-11  Bruno Haible  <bruno@clisp.org>
67713
67714         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67715         script, for submission to autobuild.josefsson.org.
67716
67717 2007-03-10  Bruno Haible  <bruno@clisp.org>
67718
67719         * modules/canonicalize-lgpl-tests: New file.
67720         * tests/test-canonicalize-lgpl.sh: New file.
67721         * tests/test-canonicalize-lgpl.c: New file.
67722
67723         * modules/c-strcase-tests: New file.
67724         * tests/test-c-strcase.sh: New file.
67725         * tests/test-c-strcasecmp.c: New file.
67726         * tests/test-c-strncasecmp.c: New file.
67727
67728         * modules/atexit-tests: New file.
67729         * tests/test-atexit.sh: New file.
67730         * tests/test-atexit.c: New file.
67731
67732 2007-03-10  Bruno Haible  <bruno@clisp.org>
67733
67734         * tests/test-binary-io.sh: Use temporary filenames that are not so
67735         likely to clash with those of other tests (in a parallel make).
67736         * tests/test-binary-io.c: Likewise.
67737
67738 2007-03-10  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67741         fallback; use #error instead.
67742         Suggested by Simon Josefsson.
67743
67744 2007-03-10  Bruno Haible  <bruno@clisp.org>
67745
67746         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67747         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67748         first and the last.
67749
67750 2007-03-10  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67753
67754 2007-03-10  Bruno Haible  <bruno@clisp.org>
67755
67756         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67757         "make distcheck".
67758         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67759         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67760         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67761
67762 2007-03-10  Bruno Haible  <bruno@clisp.org>
67763
67764         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67765         variable.
67766         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67767         variable.
67768
67769 2007-03-09  Eric Blake  <ebb9@byu.net>
67770         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67771
67772         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67773         types are not being provided by gnulib.
67774         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67775         types are supported.
67776
67777 2007-03-10  Bruno Haible  <bruno@clisp.org>
67778
67779         * lib/stdio_.h (__attribute__): New macro.
67780         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67781         vsprintf): Specify __attribute__ __format__ for GCC.
67782         Suggested by Eric Blake.
67783
67784 2007-03-09  Bruno Haible  <bruno@clisp.org>
67785
67786         * modules/printf-posix-tests: New file.
67787         * tests/test-printf-posix.sh: New file.
67788         * tests/test-printf-posix.c: New file.
67789
67790         * modules/printf-posix: New file.
67791         * lib/printf.c: New file.
67792         * m4/printf-posix-rpl.m4: New file.
67793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67794         REPLACE_PRINTF.
67795         * lib/stdio_.h (printf): New declaration.
67796         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67797         ____strfmon____): New macros.
67798         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67799         REPLACE_PRINTF.
67800
67801 2007-03-09  Bruno Haible  <bruno@clisp.org>
67802
67803         * tests/test-vasnprintf-posix2.sh: New file.
67804         * tests/test-vasnprintf-posix2.c: New file.
67805         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67806         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67807         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67808
67809         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67810         a locale dependent decimal point, rather than always '.'.
67811
67812 2007-03-09  Eric Blake  <ebb9@byu.net>
67813
67814         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67815         spite of platforms like Tandem/NSK that define it to -1.
67816
67817 2007-03-08  Bruno Haible  <bruno@clisp.org>
67818
67819         * modules/vprintf-posix-tests: New file.
67820         * tests/test-vprintf-posix.sh: New file.
67821         * tests/test-vprintf-posix.c: New file.
67822         * tests/test-printf-posix.h: New file.
67823
67824         * modules/vprintf-posix: New file.
67825         * lib/vprintf.c: New file.
67826         * m4/vprintf-posix.m4: New file.
67827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67828         REPLACE_VPRINTF.
67829         * lib/stdio_.h (vprintf): New declaration.
67830         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67831         REPLACE_VPRINTF.
67832
67833 2007-03-08  Bruno Haible  <bruno@clisp.org>
67834
67835         * modules/fprintf-posix-tests: New file.
67836         * tests/test-fprintf-posix.sh: New file.
67837         * tests/test-fprintf-posix.c: New file.
67838
67839         * modules/fprintf-posix: New file.
67840         * lib/fprintf.c: New file.
67841         * m4/fprintf-posix.m4: New file.
67842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67843         REPLACE_FPRINTF.
67844         * lib/stdio_.h (fprintf): New declaration.
67845         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67846         REPLACE_FPRINTF.
67847
67848 2007-03-08  Bruno Haible  <bruno@clisp.org>
67849
67850         * modules/vfprintf-posix-tests: New file.
67851         * tests/test-vfprintf-posix.sh: New file.
67852         * tests/test-vfprintf-posix.c: New file.
67853         * tests/test-fprintf-posix.h: New file.
67854         * tests/test-fprintf-posix.out: New file.
67855
67856         * modules/vfprintf-posix: New file.
67857         * lib/vfprintf.c: New file.
67858         * m4/vfprintf-posix.m4: New file.
67859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67860         REPLACE_VFPRINTF.
67861         * lib/stdio_.h (vfprintf): New declaration.
67862         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67863         REPLACE_VFPRINTF.
67864
67865 2007-03-08  Bruno Haible  <bruno@clisp.org>
67866
67867         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67868
67869 2007-03-08  Bruno Haible  <bruno@clisp.org>
67870
67871         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67872         instead of 'expr' invocations.
67873         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67874         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67875         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67876         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67877         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67878         Suggested by Paul Eggert.
67879
67880 2007-03-08  Bruno Haible  <bruno@clisp.org>
67881
67882         * modules/fseterr-tests: New file.
67883         * tests/test-fseterr.c: New file.
67884
67885         * modules/fseterr: New file.
67886         * lib/fseterr.h: New file.
67887         * lib/fseterr.c: New file.
67888
67889 2007-03-08  Bruno Haible  <bruno@clisp.org>
67890
67891         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67892         * lib/getopt_.h: Likewise.
67893         * lib/mbswidth.h: Likewise.
67894         * lib/setenv.h: Likewise.
67895         * lib/vasnprintf.h: Likewise.
67896         * lib/vasprintf.h: Likewise.
67897         * lib/verror.h: Likewise.
67898         * lib/xsetenv.h: Likewise.
67899         * lib/xvasprintf.h: Likewise.
67900
67901 2007-03-08  Jim Meyering  <jim@meyering.net>
67902
67903         * users.txt: Add parted.
67904
67905         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67906
67907 2007-03-07  Bruno Haible  <bruno@clisp.org>
67908
67909         * m4/printf.m4: Make the shell script snippets copy&pastable.
67910
67911 2007-03-02  Bruno Haible  <bruno@clisp.org>
67912
67913         * lib/netinet_in_.h: New file.
67914         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67915         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67916         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67917         (Depends-on): Add absolute-header.
67918         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67919         into netinet/in.h.
67920
67921 2007-03-03  Bruno Haible  <bruno@clisp.org>
67922
67923         * lib/sys_select_.h: New file.
67924         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67925         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67926         * modules/sys_select (Files): Add lib/sys_select_.h.
67927         (Depends-on): Add absolute-header.
67928         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67929         into sys/select.h.
67930
67931 2007-03-02  Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67934         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67935         values.
67936         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67937         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67938         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67939         * modules/sys_socket (Depends-on): Add absolute-header.
67940         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67941         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67942         (Include): Remove requirement of inclusion of <sys/types.h>.
67943
67944 2007-03-02  Bruno Haible  <bruno@clisp.org>
67945
67946         * lib/byteswap_.h (bswap_32): Fix formula.
67947
67948 2007-03-06  Bruno Haible  <bruno@clisp.org>
67949
67950         * modules/sprintf-posix-tests: New file.
67951         * tests/test-sprintf-posix.c: New file.
67952
67953         * modules/sprintf-posix: New file.
67954         * lib/sprintf.c: New file.
67955         * m4/sprintf-posix.m4: New file.
67956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67957         REPLACE_SPRINTF.
67958         * lib/stdio_.h (sprintf): New declaration.
67959         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67960         REPLACE_SPRINTF.
67961
67962 2007-03-06  Bruno Haible  <bruno@clisp.org>
67963
67964         * modules/vsprintf-posix-tests: New file.
67965         * tests/test-vsprintf-posix.c: New file.
67966         * tests/test-sprintf-posix.h: New file.
67967
67968         * modules/vsprintf-posix: New file.
67969         * lib/vsprintf.c: New file.
67970         * m4/vsprintf-posix.m4: New file.
67971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67972         REPLACE_VSPRINTF.
67973         * lib/stdio_.h (vsprintf): New declaration.
67974         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67975         REPLACE_VSPRINTF.
67976
67977 2007-03-06  Bruno Haible  <bruno@clisp.org>
67978
67979         * modules/vsnprintf (Depend-on): Remove minmax.
67980
67981 2007-03-06  Bruno Haible  <bruno@clisp.org>
67982
67983         * modules/snprintf-posix-tests: New file.
67984         * tests/test-snprintf-posix.c: New file.
67985
67986         * modules/snprintf-posix: New file.
67987         * m4/snprintf-posix.m4: New file.
67988         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67989         gl_FUNC_SNPRINTF.
67990         (gl_FUNC_SNPRINTF): Invoke it.
67991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67992         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67993         is set.
67994         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67995
67996 2007-03-06  Bruno Haible  <bruno@clisp.org>
67997
67998         * modules/vsnprintf-posix-tests: New file.
67999         * tests/test-vsnprintf-posix.c: New file.
68000         * tests/test-snprintf-posix.h: New file.
68001
68002         * modules/vsnprintf-posix: New file.
68003         * m4/vsnprintf-posix.m4: New file.
68004         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68005         gl_FUNC_VSNPRINTF.
68006         (gl_FUNC_VSNPRINTF): Invoke it.
68007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68008         * lib/stdio_.h (vsnprintf): Define as a replacement if
68009         REPLACE_VSNPRINTF is set.
68010         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68011
68012 2007-03-06  Bruno Haible  <bruno@clisp.org>
68013
68014         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68015         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68016
68017 2007-03-06  Bruno Haible  <bruno@clisp.org>
68018
68019         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68020         (asinl): Declare also if HAVE_DECL_ASINL is set.
68021         (atanl): Declare also if HAVE_DECL_ATANL is set.
68022         (ceill): Declare also if HAVE_DECL_CEILL is set.
68023         (cosl): Declare also if HAVE_DECL_COSL is set.
68024         (expl): Declare also if HAVE_DECL_EXPL is set.
68025         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68026         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68027         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68028         (logl): Declare also if HAVE_DECL_LOGL is set.
68029         (sinl): Declare also if HAVE_DECL_SINL is set.
68030         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68031         (tanl): Declare also if HAVE_DECL_TANL is set.
68032         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68034         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68035         declaration of frexpl, ldexpl.
68036         * modules/printf-frexpl (Depends-on): Add math.
68037         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68038
68039 2007-03-05  Bruno Haible  <bruno@clisp.org>
68040
68041         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68042         frexpl and ldexpl are declared.
68043         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68044
68045 2007-03-05  Bruno Haible  <bruno@clisp.org>
68046
68047         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68048         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68049
68050 2007-03-05  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/stdio_.h: Include <stddef.h>.
68053
68054 2007-03-05  Bruno Haible  <bruno@clisp.org>
68055
68056         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68057
68058 2007-03-05  Bruno Haible  <bruno@clisp.org>
68059
68060         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68061         NetBSD 4, from Ralf Wildenhues.
68062
68063 2007-03-04  Bruno Haible  <bruno@clisp.org>
68064
68065         * lib/vasprintf.h: Update #if logic for the case when the functions
68066         exist but are overridden.
68067
68068 2007-03-04  Bruno Haible  <bruno@clisp.org>
68069
68070         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68071         implementations: glibc-2.4 and MacOS X 10.3.
68072         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68073         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68074         * tests/test-vasprintf-posix.c (test_function): Likewise.
68075
68076 2007-03-04  Bruno Haible  <bruno@clisp.org>
68077
68078         * modules/vasprintf-posix-tests: New file.
68079         * tests/test-vasprintf-posix.c: New file.
68080
68081         * modules/vasprintf-posix: New file.
68082         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68083         defined.
68084         * m4/vasprintf-posix.m4: New file.
68085         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68086         gl_FUNC_VASPRINTF.
68087         (gl_FUNC_VASPRINTF): Invoke it.
68088         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68089         here.
68090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68091
68092 2007-03-04  Bruno Haible  <bruno@clisp.org>
68093
68094         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68095         REPLACE_GETTIMEOFDAY.
68096         * modules/sys_time (Makefile.am): Likewise.
68097         * m4/sys_time_h.m4: Likewise.
68098         * m4/gettimeofday.m4: Likewise.
68099
68100 2007-03-04  Bruno Haible  <bruno@clisp.org>
68101
68102         * modules/vasnprintf-posix-tests: New file.
68103         * tests/test-vasnprintf-posix.c: New file.
68104
68105         * modules/vasnprintf-posix: New file.
68106         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68107         printf-frexpl.h.
68108         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68109         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68110         REPLACE_VASNPRINTF is defined.
68111         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68112         gl_FUNC_VASNPRINTF.
68113         (gl_FUNC_VASNPRINTF): Invoke it.
68114         * m4/vasnprintf-posix.m4: New file.
68115         * m4/printf.m4: New file.
68116
68117 2007-03-04  Bruno Haible  <bruno@clisp.org>
68118
68119         Compile progreloc.c only if --enable-relocatable is specified.
68120         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68121         if --enable-relocatable was specified.
68122         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68123         lib_SOURCES.
68124
68125 2007-03-04  Jim Meyering  <jim@meyering.net>
68126
68127         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68128         Use it consistently, rather than enumerating errno constants.
68129
68130 2007-03-04  Bruno Haible  <bruno@clisp.org>
68131
68132         * modules/xvasprintf-tests: New file.
68133         * tests/test-xvasprintf.c: New file.
68134
68135         * modules/vasprintf-tests: New file.
68136         * tests/test-vasprintf.c: New file.
68137
68138         * modules/vasnprintf-tests: New file.
68139         * tests/test-vasnprintf.c: New file.
68140
68141         * modules/vsnprintf-tests: New file.
68142         * tests/test-vsnprintf.c: New file.
68143
68144         * modules/snprintf-tests: New file.
68145         * tests/test-snprintf.c: New file.
68146
68147 2007-03-04  Bruno Haible  <bruno@clisp.org>
68148
68149         Compile relocatable.c only if --enable-relocatable is specified.
68150         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68151         gl_RELOCATABLE_LIBRARY.
68152         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68153         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68154         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68155         gl_RELOCATABLE_LIBRARY.
68156         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68157         (Makefile.am): Remove lib_SOURCES.
68158         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68159         gl_RELOCATABLE_LIBRARY.
68160         (Makefile.am): Remove lib_SOURCES.
68161         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68162         always.
68163         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68164         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68165
68166 2007-03-04  Bruno Haible  <bruno@clisp.org>
68167
68168         * modules/argmatch-tests: New file.
68169         * tests/test-argmatch.c: New file.
68170
68171         * tests/test-allocsa.c (main): Halve the number of loop runs.
68172
68173         * modules/alloca-opt-tests: New file.
68174         * tests/test-alloca-opt.c: New file.
68175
68176 2007-03-04  Jim Meyering  <jim@meyering.net>
68177
68178         Work around difference between Linux ACLs and Solaris 10 ZFS.
68179         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68180         for EINVAL.
68181
68182 2007-03-03  Bruno Haible  <bruno@clisp.org>
68183
68184         * modules/relocatable-prog (Depends-on): Add back progreloc's
68185         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68186
68187 2007-03-03  Bruno Haible  <bruno@clisp.org>
68188
68189         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68190         * modules/relocatable-lib: New file.
68191
68192 2007-03-03  Bruno Haible  <bruno@clisp.org>
68193
68194         * modules/relocatable-prog: Renamed from modules/relocatable.
68195         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68196
68197 2007-03-03  Bruno Haible  <bruno@clisp.org>
68198
68199         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68200         m4/relocatable-lib.m4.
68201         (Depends-on): Remove 'relocatable'.
68202         (configure.ac): Add gl_RELOCATABLE_NOP.
68203
68204 2007-03-03  Bruno Haible  <bruno@clisp.org>
68205
68206         * modules/relocatable-prog-wrapper: New file.
68207         * modules/relocatable (Depends-on): Add it. Remove all other
68208         dependencies except progname.
68209         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68210
68211         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68212         (gl_FUNC_STRERROR): Nop.
68213         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68214
68215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68216         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68217
68218         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68219         (gl_FUNC_READLINK): Update.
68220
68221         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68222
68223 2007-03-03  Bruno Haible  <bruno@clisp.org>
68224
68225         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68226         * modules/xreadlink (Depends-on): Add unistd.
68227         * modules/xreadlink-with-size (Depends-on): Likewise.
68228
68229 2007-03-03  Bruno Haible  <bruno@clisp.org>
68230
68231         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68232         extracted from gt_FUNC_SETENV.
68233         (gt_FUNC_SETENV): Remove macro.
68234         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68235         remove gt_FUNC_SETENV.
68236
68237 2007-03-03  Bruno Haible  <bruno@clisp.org>
68238
68239         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68240         ENABLE_RELOCATABLE here.
68241         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68242
68243 2007-03-03  Bruno Haible  <bruno@clisp.org>
68244
68245         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68246         * tests/test-rbtreehash_list.c: Include progname.h.
68247         (main): Call set_program_name.
68248
68249         * modules/rbtree-oset-tests (Depends-on): Add progname.
68250         * tests/test-rbtree_oset.c: Include progname.h.
68251         (main): Call set_program_name.
68252
68253         * modules/rbtree-list-tests (Depends-on): Add progname.
68254         * tests/test-rbtree_list.c: Include progname.h.
68255         (main): Call set_program_name.
68256
68257         * modules/linked-list-tests (Depends-on): Add progname.
68258         * tests/test-linked_list.c: Include progname.h.
68259         (main): Call set_program_name.
68260
68261 2007-03-03  Bruno Haible  <bruno@clisp.org>
68262
68263         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68264         All uses of __restrict changed to _Restrict_.
68265         * lib/glob_.h (__restrict): Remove macro.
68266
68267 2007-03-02  Bruno Haible  <bruno@clisp.org>
68268
68269         * modules/gettext (configure.ac): Require gettext infrastructure
68270         from version 0.16.1.
68271
68272 2007-03-02  Bruno Haible  <bruno@clisp.org>
68273
68274         * modules/linkedhash-list-tests (Depends-on): Add progname.
68275         * tests/test-linkedhash_list.c: Include progname.h.
68276         (main): Call set_program_name.
68277
68278         * modules/carray-list-tests (Depends-on): Add progname.
68279         * tests/test-carray_list.c: Include progname.h.
68280         (main): Call set_program_name.
68281
68282         * modules/avltreehash-list-tests (Depends-on): Add progname.
68283         * tests/test-avltreehash_list.c: Include progname.h.
68284         (main): Call set_program_name.
68285
68286         * modules/avltree-oset-tests (Depends-on): Add progname.
68287         * tests/test-avltree_oset.c: Include progname.h.
68288         (main): Call set_program_name.
68289
68290         * modules/avltree-list-tests (Depends-on): Add progname.
68291         * tests/test-avltree_list.c: Include progname.h.
68292         (main): Call set_program_name.
68293
68294         * modules/array-oset-tests (Depends-on): Add progname.
68295         * tests/test-array_oset.c: Include progname.h.
68296         (main): Call set_program_name.
68297
68298         * modules/array-list-tests (Depends-on): Add progname.
68299         * tests/test-array_list.c: Include progname.h.
68300         (main): Call set_program_name.
68301
68302         * modules/argp-tests (Depends-on): Add progname.
68303         * tests/test-argp.c: Include argp.h first. Include progname.h.
68304         (main): Call set_program_name.
68305
68306 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * doc/gnulib-tool.texi (Initial import): Reword description of
68309         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68310         limited effect even if defined after the first system include.
68311
68312 2007-03-01  Bruno Haible  <bruno@clisp.org>
68313
68314         * build-aux/config.libpath: Update to libtool-1.5.22.
68315         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68316
68317 2007-03-01  Bruno Haible  <bruno@clisp.org>
68318
68319         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68320         foo_CFLAGS.
68321         Reported by Ralf Wildenhues.
68322
68323 2007-03-01  Bruno Haible  <bruno@clisp.org>
68324
68325         * build-aux/install-reloc: Remove object files left over by some
68326         compilers.
68327         Reported by Ralf Wildenhues.
68328
68329 2007-03-01  Bruno Haible  <bruno@clisp.org>
68330
68331         * build-aux/install-reloc: Break long lines.
68332
68333 2007-03-01  Bruno Haible  <bruno@clisp.org>
68334
68335         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68336         Reported by Ralf Wildenhues.
68337
68338 2007-03-01  Bruno Haible  <bruno@clisp.org>
68339
68340         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68341         include ordering constraints.
68342
68343 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68347         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68348         as another example.
68349         * lib/time_.h: Fix misspelling.
68350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68351         Require gl_HEADER_TIME_H_DEFAULTS.
68352         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68353         * m4/time_r.m4 (gl_TIME_R): Likewise.
68354         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68355
68356 2007-03-01  Bruno Haible  <bruno@clisp.org>
68357
68358         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68359         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68360
68361 2007-03-01  Jim Meyering  <jim@meyering.net>
68362
68363         * modules/xreadlink (Maintainer): Add my name.
68364         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68365
68366 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68367             Bruno Haible  <bruno@clisp.org>
68368
68369         * build-aux/install-reloc: Compile also c-ctype.c.
68370         * build-aux/relocatable.sh.in: New file.
68371         * doc/relocatable.texi: New file.
68372         * doc/relocatable-maint.texi: New file.
68373         * doc/gnulib.texi: Include relocatable-maint.texi.
68374         * lib/progreloc.c: Include unistd.h unconditionally.
68375         * lib/relocwrapper.c: Include unistd.h unconditionally.
68376         Include c-ctype.h.
68377         (add_dotbin): Use c_tolower.
68378         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68379         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68380         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68381         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68382         to m4/relocatable-lib.m4.
68383         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68384         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68385         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68386         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68387         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68388         * modules/relocatable: New file.
68389         * modules/relocatable-lib: New file.
68390         * modules/relocatable-script: New file.
68391
68392 2007-02-28  Bruno Haible  <bruno@clisp.org>
68393
68394         Import --enable-relocatable infrastructure.
68395         * build-aux/config.libpath: New file, from GNU gettext.
68396         * build-aux/install-reloc: New file, from GNU gettext.
68397         * build-aux/reloc-ldflags: New file, from GNU gettext.
68398         * lib/relocatable.h: New file, from GNU gettext.
68399         * lib/relocatable.c: New file, from GNU gettext.
68400         * lib/relocwrapper.c: New file, from GNU gettext.
68401         * m4/relocatable.m4: New file, from GNU gettext.
68402
68403 2007-02-28  Bruno Haible  <bruno@clisp.org>
68404
68405         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68406
68407         * modules/xreadlink: New file, from GNU gettext with modifications.
68408         * lib/xreadlink.c: New file, from GNU gettext.
68409         * lib/xreadlink.h: Add comments.
68410         (xreadlink): New declaration.
68411
68412         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68413         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68414         lib/xreadlink-with-size.c.
68415         (configure.ac): Remove gl_XREADLINK invocation.
68416         (Makefile.am): Augment lib_SOURCES.
68417         * m4/xreadlink.m4: Remove file.
68418         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68419         (xreadlink_with_size): Renamed from xreadink.
68420         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68421         * modules/canonicalize (Depends-on): Replace xreadlink with
68422         xreadlink-with-size.
68423         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68424
68425 2007-02-25  Jim Meyering  <jim@meyering.net>
68426
68427         * build-aux/announce-gen: When complaining about excess arguments,
68428         list them.
68429
68430 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68431
68432         * README: Document signed integer overflow situation more
68433         accurately.
68434
68435 2007-02-25  Bruno Haible  <bruno@clisp.org>
68436
68437         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68438         'a' or 'A' conversion.
68439
68440 2007-02-25  Bruno Haible  <bruno@clisp.org>
68441
68442         * modules/filename: Renamed from modules/pathname.
68443         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68444         lib/concatpath.c with lib/concat-filename.c.
68445         (Makefile.am): Update.
68446         (Include): Replace pathname.h with filename.h.
68447         * lib/filename.h: Renamed from lib/pathname.h.
68448         (concatenated_filename): Renamed from concatenated_pathname.
68449         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68450         (concatenated_filename): Renamed from concatenated_pathname.
68451         * lib/findprog.c: Include filename.h instead of pathname.h.
68452         (find_in_path): Update.
68453         * lib/javacomp.c: Include filename.h instead of pathname.h.
68454         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68455         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68456         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68457         is_oldgcj_14_13_usable, is_javac_usable): Update.
68458         * lib/javaexec.c: Include filename.h instead of pathname.h.
68459         (execute_java_class): Update.
68460         * modules/findprog: Update.
68461         * modules/javacomp: Update.
68462         * modules/javaexec: Update.
68463         * MODULES.html.sh (File system functions): Add 'filename', remove
68464         'pathname'.
68465
68466 2007-02-25  Bruno Haible  <bruno@clisp.org>
68467
68468         * modules/printf-frexpl-tests: New file.
68469         * tests/test-printf-frexpl.c: New file.
68470
68471         * modules/printf-frexpl: New file.
68472         * lib/printf-frexpl.h: New file.
68473         * lib/printf-frexpl.c: New file.
68474         * m4/printf-frexpl.m4: New file.
68475
68476 2007-02-25  Bruno Haible  <bruno@clisp.org>
68477
68478         * modules/printf-frexp-tests: New file.
68479         * tests/test-printf-frexp.c: New file.
68480
68481         * modules/printf-frexp: New file.
68482         * lib/printf-frexp.h: New file.
68483         * lib/printf-frexp.c: New file.
68484         * m4/printf-frexp.m4: New file.
68485
68486 2007-02-25  Bruno Haible  <bruno@clisp.org>
68487
68488         Assume automake >= 1.10 for the tests.
68489         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68490         * modules/arctwo-tests: Likewise.
68491         * modules/argp-tests: Likewise.
68492         * modules/avltree-list-tests: Likewise.
68493         * modules/avltree-oset-tests: Likewise.
68494         * modules/avltreehash-list-tests: Likewise.
68495         * modules/carray-list-tests: Likewise.
68496         * modules/crc-tests: Likewise.
68497         * modules/des-tests: Likewise.
68498         * modules/gc-arcfour-tests: Likewise.
68499         * modules/gc-arctwo-tests: Likewise.
68500         * modules/gc-des-tests: Likewise.
68501         * modules/gc-hmac-md5-tests: Likewise.
68502         * modules/gc-hmac-sha1-tests: Likewise.
68503         * modules/gc-md2-tests: Likewise.
68504         * modules/gc-md4-tests: Likewise.
68505         * modules/gc-md5-tests: Likewise.
68506         * modules/gc-pbkdf2-sha1-tests: Likewise.
68507         * modules/gc-rijndael-tests: Likewise.
68508         * modules/gc-sha1-tests: Likewise.
68509         * modules/gc-tests: Likewise.
68510         * modules/getaddrinfo-tests: Likewise.
68511         * modules/hmac-md5-tests: Likewise.
68512         * modules/hmac-sha1-tests: Likewise.
68513         * modules/linked-list-tests: Likewise.
68514         * modules/linkedhash-list-tests: Likewise.
68515         * modules/lock-tests: Likewise.
68516         * modules/md2-tests: Likewise.
68517         * modules/md4-tests: Likewise.
68518         * modules/md5-tests: Likewise.
68519         * modules/rbtree-list-tests: Likewise.
68520         * modules/rbtree-oset-tests: Likewise.
68521         * modules/rbtreehash-list-tests: Likewise.
68522         * modules/read-file-tests: Likewise.
68523         * modules/rijndael-tests: Likewise.
68524         * modules/stdint-tests: Likewise.
68525         * modules/tls-tests: Likewise.
68526
68527 2007-02-24  Bruno Haible  <bruno@clisp.org>
68528
68529         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68530         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68531         function; instead check whether isnan with a double argument links.
68532         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68533         function; instead check whether isnan with a 'long double' argument
68534         links.
68535         Reported by Eric Blake <ebb9@byu.net>.
68536
68537 2007-02-24  Bruno Haible  <bruno@clisp.org>
68538
68539         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68540         defined.
68541         * lib/isnanl.c: Remove all code. Just include isnan.c.
68542         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68543
68544 2007-02-25  Jim Meyering  <jim@meyering.net>
68545
68546         Avoid conflicting types for 'unsetenv' on FreeBSD.
68547         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68548         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68549         in stdlib.h.
68550
68551 2007-02-24  Bruno Haible  <bruno@clisp.org>
68552
68553         * modules/isnanl-nolibm-tests: New file.
68554         * tests/test-isnanl.c: New file.
68555
68556         * modules/isnanl-nolibm: New file.
68557         * lib/isnanl.h: New file.
68558         * lib/isnanl.c: New file.
68559         * m4/isnanl.m4: New file.
68560
68561 2007-02-24  Bruno Haible  <bruno@clisp.org>
68562
68563         * modules/isnan-nolibm-tests: New file.
68564         * tests/test-isnan.c: New file.
68565
68566         * modules/isnan-nolibm: New file.
68567         * lib/isnan.h: New file.
68568         * lib/isnan.c: New file.
68569         * m4/isnan.m4: New file.
68570
68571 2007-02-24  Bruno Haible  <bruno@clisp.org>
68572
68573         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68574         assume that an exponent fits in 20 bits.
68575
68576 2007-02-24  Jim Meyering  <jim@meyering.net>
68577
68578         * m4/regex.m4: Update the description of the configure-time option,
68579         --without-included-regex, to state accurately what the defaults are,
68580         and perhaps to give people an idea why using this option is risky.
68581
68582 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68585         loops on small arguments.  This attempts to avoid the problem
68586         Bruno Haible reported for AIX 4.3.2 in
68587         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68588
68589 2007-02-23  Bruno Haible  <bruno@clisp.org>
68590
68591         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68592         Needed for help2man.
68593
68594 2007-02-23  Karl Berry  <karl@gnu.org>
68595
68596         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68597         exists, foo.h should be cvs-ignored, not committed.
68598
68599 2007-02-23  Eric Blake  <ebb9@byu.net>
68600
68601         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68602         * lib/stat-time.h (includes): Likewise.
68603         * lib/utimecmp.c (includes): Likewise.
68604         * lib/utimens.h (includes): Likewise.
68605         * lib/getdate.y (includes): Also include "timespec.h" for use
68606         internal to the module.
68607         * modules/utimens (Depends-on): Revert yesterday's patch.
68608         * modules/nanosleep (Depends-on): Add missing dependency.
68609
68610 2007-02-22  Bruno Haible  <bruno@clisp.org>
68611
68612         * lib/glob.c: Don't include getlogin_r.h.
68613
68614 2007-02-22  Jim Meyering  <jim@meyering.net>
68615
68616         * modules/utimens (Depends-on): Add timespec, required for
68617         utimens.h's inclusion of timespec.h.
68618
68619 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68620
68621         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68622         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68623         Schwab in
68624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68625         I'll try to think of a better way to fix the Solaris problem.
68626
68627         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68628         like glibc; on Solaris 10, it fails with errno == EINVAL.
68629         POSIX says the behavior is unspecified if the first argument is NULL,
68630         so play it safe and never pass NULL to the system getcwd.
68631
68632 2007-02-21  Jim Meyering  <jim@meyering.net>
68633
68634         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68635         of gettimeofday.  It would conflict with the one now always
68636         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68637         an IRIX 6.5 build failure.
68638
68639 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         Minor fixups to port to Solaris 10 with Sun C 5.8.
68642         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68643         * modules/getcwd (Depends-on): Add dirfd.
68644         * lib/putenv.c (putenv): #undef it.
68645         (rpl_putenv): New decl.
68646         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68647
68648 2007-02-20  Bruno Haible  <bruno@clisp.org>
68649
68650         * modules/stdio-tests: New file.
68651         * tests/test-stdio.c: New file.
68652
68653         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68654         (Depends-on): Add stdio.
68655         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68656         (Include): Use <stdio.h> instead of vsnprintf.h.
68657         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68658         HAVE_DECL_VSNPRINTF.
68659         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68660
68661         * modules/snprintf (Files): Remove lib/snprintf.h.
68662         (Depends-on): Add stdio.
68663         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68664         (Include): Use <stdio.h> instead of snprintf.h.
68665         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68666         HAVE_DECL_SNPRINTF.
68667         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68668         * lib/getaddrinfo.c: Likewise.
68669
68670         * modules/stdio: New file.
68671         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68672         * lib/snprintf.h: Remove file.
68673         * lib/vsnprintf.h: Remove file.
68674         * lib/.cppi-disable: Remove snprintf.h.
68675         * m4/stdio_h.m4: New file.
68676         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68677
68678 2007-02-20  Jim Meyering  <jim@meyering.net>
68679
68680         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68681         used by e.g., mingw.  From Bruno Haible.
68682
68683 2007-02-19  Bruno Haible  <bruno@clisp.org>
68684
68685         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68686         warnings.
68687         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68688
68689 2007-02-19  Bruno Haible  <bruno@clisp.org>
68690
68691         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68692         from mingw users.
68693
68694 2007-02-19  Bruno Haible  <bruno@clisp.org>
68695
68696         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68697         warnings.
68698         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68699
68700 2007-02-19  Jim Meyering  <jim@meyering.net>
68701
68702         Don't use FD after a successful "fdopendir (fd)".
68703         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68704         Reset it by calling dirfd on the just-obtained DIR*.
68705
68706         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68707         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68708
68709 2007-02-18  Bruno Haible  <bruno@clisp.org>
68710
68711         * lib/readlink.c: Include <unistd.h>.
68712         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68713         HAVE_READLINK.
68714         * modules/readlink (Depends-on): Add unistd.
68715         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68716         (Include): Add <unistd.h>.
68717
68718         * lib/getlogin_r.h: Remove file.
68719         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68720         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68721         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68722         HAVE_DECL_GETLOGIN_R.
68723         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68725         (Include): Use <unistd.h> instead of getlogin_r.h.
68726
68727         * lib/getcwd.h: Remove file.
68728         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68729         * lib/xgetcwd.c: Likewise.
68730         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68731         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68732         * modules/getcwd (Files): Remove lib/getcwd.h.
68733         (Depends-on): Add unistd.
68734         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68735         (Include): Use <unistd.h> instad of getcwd.h.
68736
68737         * lib/ftruncate.c: Include <unistd.h> first.
68738         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68739         Set HAVE_FTRUNCATE.
68740         * modules/ftruncate (Depends-on): Add unistd.
68741         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68742
68743         * lib/fchdir.c: Include <unistd.h> first.
68744         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68746         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68747         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68748         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68749
68750         * lib/dup2.c: Include <unistd.h> first.
68751         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68752         HAVE_DUP2.
68753         * modules/dup2 (Depends-on): Add unistd.
68754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68755
68756         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68757         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68758         REPLACE_CHOWN. Don't define chown as a macro here.
68759         * modules/chown (Depends-on): Add unistd.
68760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68761
68762         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68763         Add definition for GL_LINK_WARNING.
68764         (chown, dup2): New declarations.
68765         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68766         link warning.
68767         (ftruncate): New declaration.
68768         (getcwd): New declaration, taken from old getcwd.h.
68769         (getlogin_r): New declaration, taken from old getlogin_r.h.
68770         (readlink): New declaration.
68771         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68772         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68773         (gl_PREREQ_UNISTD): Remove macro.
68774         (gl_UNISTD_MODULE_INDICATOR): New macro.
68775         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68776         many new variables. Don't set UNISTD_H.
68777         * modules/unistd (Description): Change.
68778         (Depends-on): Add link-warning.
68779         (configure.ac): Update.
68780         (Makefile.am): Create unistd.h always. Substitute many new variables
68781         into it.
68782
68783 2007-02-18  Bruno Haible  <bruno@clisp.org>
68784
68785         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68786         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68787         HAVE_GETSUBOPT.
68788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68789         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68790         * lib/getsubopt.h: Remove file.
68791         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68792         (Depends-on): Add stdlib.
68793         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68794         (Includes): Use <stdlib.h> instead of getsubopt.h.
68795         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68796         Set HAVE_GETSUBOPT.
68797         * lib/getsubopt.c: Don't include getsubopt.h.
68798
68799 2007-02-18  Bruno Haible  <bruno@clisp.org>
68800
68801         * modules/fchdir (Depends-on): Add dup2.
68802
68803 2007-02-18  Bruno Haible  <bruno@clisp.org>
68804
68805         * lib/stdlib_.h: Handle glibc's special invocation convention
68806         specially.
68807
68808 2007-02-18  Bruno Haible  <bruno@clisp.org>
68809
68810         * modules/stdlib-tests: New file.
68811         * tests/test-stdlib.c: New file.
68812
68813         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68814         (Depends-on): Add stdlib.
68815         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68816         (Includes): Use <stdlib.h> instead of mkstemp.h.
68817         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68818         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68819         * lib/mkstemp.c: Don't include mkstemp.h.
68820         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68821         * lib/stdlib--.h: Don't include mkstemp.h.
68822
68823         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68824         (Depends-on): Add stdlib.
68825         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68826         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68827         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68828         HAVE_MKDTEMP.
68829         * lib/mkdtemp.c: Don't include mkdtemp.h.
68830         * lib/clean-temp.c: Don't include mkdtemp.h.
68831
68832         * modules/exit (Files): Remove lib/exit.h.
68833         (Depends-on): Add stdlib.
68834         (Makefile.am): Remove lib_SOURCES.
68835         (Include): Use <stdlib.h> instead of exit.h.
68836         * lib/argmatch.c: Don't include exit.h.
68837         * lib/execute.c: Likewise.
68838         * lib/pagealign_alloc.c: Likewise.
68839         * lib/pipe.c: Likewise.
68840         * lib/wait-process.c: Likewise.
68841         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68842         * lib/exitfail.c: Likewise.
68843         * lib/savewd.c: Likewise.
68844         * lib/xsetenv.c: Likewise.
68845
68846         * modules/stdlib: New file.
68847         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68848         and extra comments about mkstemp().
68849         * lib/exit.h: Remove file.
68850         * lib/mkdtemp.h: Remove file.
68851         * lib/mkstemp.h: Remove file.
68852         * m4/stdlib_h.m4: New file.
68853         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68854
68855 2007-02-18  Bruno Haible  <bruno@clisp.org>
68856
68857         * modules/math-tests: New file.
68858         * tests/test-math.c: New file.
68859
68860         * modules/math: New file.
68861         * modules/mathl (Files): Remove lib/mathl.h.
68862         (Depends-on): Add math.
68863         (Makefile.am): Don't mention mathl.h.
68864         (Include): Use <math.h> instead of mathl.h.
68865         * lib/math_.h: New file.
68866         * lib/mathl.h: Remove file.
68867         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68868         mathl.h.
68869         * lib/asinl.c: Likewise.
68870         * lib/atanl.c: Likewise.
68871         * lib/ceill.c: Likewise.
68872         * lib/cosl.c: Likewise.
68873         * lib/expl.c: Likewise.
68874         * lib/floorl.c: Likewise.
68875         * lib/frexpl.c: Likewise.
68876         * lib/ldexpl.c: Likewise.
68877         * lib/logl.c: Likewise.
68878         * lib/sincosl.c: Likewise.
68879         * lib/sinl.c: Likewise.
68880         * lib/sqrtl.c: Likewise.
68881         * lib/tanl.c: Likewise.
68882         * lib/trigl.c: Likewise.
68883         * m4/math_h.m4: New file.
68884         * MODULES.html.sh (Mathematics): Add math.
68885
68886 2007-02-17  Bruno Haible  <bruno@clisp.org>
68887
68888         * modules/wctype-tests: New file.
68889         * tests/test-wctype.c: New file.
68890
68891         * modules/wchar-tests: New file.
68892         * tests/test-wchar.c: New file.
68893
68894         * modules/unistd-tests: New file.
68895         * tests/test-unistd.c: New file.
68896
68897         * modules/time-tests: New file.
68898         * tests/test-time.c: New file.
68899
68900         * modules/sysexits-tests: New file.
68901         * tests/test-sysexits.c: New file.
68902
68903         * modules/sys_time-tests: New file.
68904         * tests/test-sys_time.c: New file.
68905
68906         * modules/sys_stat-tests: New file.
68907         * tests/test-sys_stat.c: New file.
68908
68909         * modules/sys_socket-tests: New file.
68910         * tests/test-sys_socket.c: New file.
68911
68912         * modules/sys_select-tests: New file.
68913         * tests/test-sys_select.c: New file.
68914
68915         * modules/string-tests: New file.
68916         * tests/test-string.c: New file.
68917
68918         * modules/stdbool-tests: New file.
68919         * tests/test-stdbool.c: New file.
68920
68921         * modules/netinet_in-tests: New file.
68922         * tests/test-netinet_in.c: New file.
68923
68924         * modules/inttypes-tests: New file.
68925         * tests/test-inttypes.c: New file.
68926
68927         * modules/fcntl-tests: New file.
68928         * tests/test-fcntl.c: New file.
68929
68930         * modules/byteswap-tests: New file.
68931         * tests/test-byteswap.c: New file.
68932
68933         * modules/arpa_inet-tests: New file.
68934         * tests/test-arpa_inet.c: New file.
68935
68936 2007-02-17  Bruno Haible  <bruno@clisp.org>
68937
68938         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68939         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68940         if the corresponding module is not enabled. Emit link warnings if
68941         the function is used nevertheless.
68942         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68943         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68944         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68945         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68946         * modules/inttypes (Depends-on): Add link-warning.
68947         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68948         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68949         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68950         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68951         * modules/imaxdiv (configure.ac): Likewise.
68952         * modules/strtoimax (configure.ac): Likewise.
68953         * modules/strtoumax (configure.ac): Likewise.
68954
68955 2007-02-17  Bruno Haible  <bruno@clisp.org>
68956
68957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68958         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68959         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68960         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68961
68962 2007-02-17  Bruno Haible  <bruno@clisp.org>
68963
68964         * modules/link-warning: New file.
68965         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68966         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68967         * modules/string (Depends-on): Add link-warning.
68968         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68969         string.h.
68970         * MODULES.html.sh (Support for building libraries and executables): Add
68971         link-warning.
68972
68973 2007-02-17  Bruno Haible  <bruno@clisp.org>
68974
68975         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68976         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68977         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68978         long lines.
68979
68980 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68981             Bruno Haible  <bruno@clisp.org>
68982
68983         * modules/tmpfile: New file.
68984         * lib/tmpfile.c: New file.
68985         * m4/tmpfile.m4: New file.
68986         * MODULES.html.sh (func_all_modules): New section "Input/output".
68987
68988 2007-02-15  Bruno Haible  <bruno@clisp.org>
68989
68990         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68991         (supports_delete_on_close): New function.
68992         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68993
68994 2007-02-14  Bruno Haible  <bruno@clisp.org>
68995
68996         * modules/mbspcasecmp-tests: New file.
68997         * tests/test-mbspcasecmp.sh: New file.
68998         * tests/test-mbspcasecmp.c: New file.
68999
69000         New module mbspcasecmp.
69001         * modules/mbspcasecmp: New file.
69002         * lib/mbspcasecmp.c: New file.
69003         * lib/string_.h (strncasecmp): Change warning message.
69004         (mbspcasecmp): New declaration.
69005         * m4/mbspcasecmp.m4: New file.
69006         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69007         GNULIB_MBSPCASECMP.
69008         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69009         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69010
69011 2007-02-14  Bruno Haible  <bruno@clisp.org>
69012
69013         * modules/mbsncasecmp-tests: New file.
69014         * tests/test-mbsncasecmp.sh: New file.
69015         * tests/test-mbsncasecmp.c: New file.
69016
69017         New module mbsncasecmp.
69018         * modules/mbsncasecmp: New file.
69019         * lib/mbsncasecmp.c: New file.
69020         * lib/string_.h (mbsncasecmp): New declaration.
69021         * m4/mbsncasecmp.m4: New file.
69022         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69023         GNULIB_MBSNCASECMP.
69024         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69025         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69026
69027 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69030         Verify that it doesn't overlap with our flags.
69031         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69032         do not have the desired effect in multibyte locales; instead, use
69033         mbscasecmp.
69034         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69035         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69036         we don't require GNU fnmatch ourselves (if our users require it, they
69037         should do so explicitly).
69038
69039         Fix regex code so it doesn't rely on strcasecmp.
69040         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69041         Otherwise, include gnulib's langinfo.h.
69042         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69043         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69044         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69045         * modules/regex (FILES): Remove m4/codeset.m4.
69046         (Depends-on): Add localcharset.  Remove strcase.
69047
69048 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69049
69050         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69051         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69052
69053 2007-02-13  Bruno Haible  <bruno@clisp.org>
69054
69055         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69056         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69057
69058 2007-02-12  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69061         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69062         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69063         time warning rather than a link error.
69064
69065 2007-02-12  Bruno Haible  <bruno@clisp.org>
69066
69067         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69068         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69070
69071 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69072
69073         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69074         args, not 2.
69075
69076 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69077
69078         New module 'time', so that apps can include <time.h> as per
69079         POSIX and GNU instead of separate include files like time_r.h
69080         and timegm.h.  This implementation tries out a simpler approach
69081         for replacing decls in standard include files (as compared to
69082         the string module), somewhat as an experiment.
69083
69084         * config/srclist.txt: Comment out mktime.c for now.
69085         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69086         since it doesn't apply any more.  Use generic wording instead.
69087         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69088         'time'.
69089         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69090         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69091         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69092         Don't include <sys/types.h>; no longer needed since we assume C89.
69093         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69094         * lib/strftime.c: Likewise.
69095         * lib/time_r.c: Likewise.
69096         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69097         * lib/nanosleep.c: Include <time.h> first, to check interface.
69098         * lib/strptime.c: Likewise.
69099         * lib/time_r.c: Likewise.
69100         * lib/timegm.c: Likewise.
69101         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69102         needed.
69103         * lib/timegm.c: Don't include timegm.h; no longer needed.
69104         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69105         time.h now handles any problems in that area.
69106         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69107         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69108         that time.h defines struct timespec.
69109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69110         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69111         handles that.
69112         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69113         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69114         needed.  Set REPLACE_LOCALTIME.
69115         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69116         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69117         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69118         nanosleep; time_h.m4 now does that.  Don't require
69119         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69120         module handles this now.
69121         * modules/getdate (Depends-on): Remove timespec.  Add time.
69122         * modules/nanosleep (Depends-on): Likewise.
69123         * modules/stat-time (Depends-on): Likewise.
69124         * modules/nanosleep (Include): Include time.h, not timespec.h.
69125         * modules/strptime (Files): Remove lib/strptime.h.
69126         (Depends-on): Add extensions, time.
69127         (Include): Include time.h, not strptime.h.
69128         * modules/time_r (Files): Remove lib/time_r.h.
69129         (Depends-on): Add time.
69130         (Include): Include time.h, not time_r.h.
69131         * modules/timegm: Likewise.
69132         * modules/timespec (Description): Now does timespec-related decls
69133         of our own, instead of struct timespec itself.
69134         (Depends-on): Add time; remove extensions.
69135         (Maintainer): Add self.
69136         * modules/utimecmp (Depends-on): Add time; remove timespec.
69137         * modules/utimens (Depends-on): Likewise.
69138         * modules/xnanosleep (Depends-on): Likewise.
69139
69140 2007-02-11  Bruno Haible  <bruno@clisp.org>
69141
69142         * lib/c-strstr.c: Include allocsa.h.
69143         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69144         * lib/c-strcasestr.c: Include allocsa.h.
69145         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69146         * lib/strcasestr.c: Include allocsa.h.
69147         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69148         * lib/mbsstr.c: Include allocsa.h.
69149         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69150         allocsa/freesa instead of malloc/free.
69151         * lib/mbscasestr.c: Include allocsa.h.
69152         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69153         allocsa/freesa instead of malloc/free.
69154         * modules/c-strstr (Depends-on): Add allocsa.
69155         * modules/c-strcasestr (Depends-on): Likewise.
69156         * modules/strcasestr (Depends-on): Likewise.
69157         * modules/mbsstr (Depends-on): Likewise.
69158         * modules/mbscasestr (Depends-on): Likewise.
69159
69160 2007-02-11  Bruno Haible  <bruno@clisp.org>
69161
69162         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69163
69164         * modules/mbsspn-tests: New file.
69165         * tests/test-mbsspn.sh: New file.
69166         * tests/test-mbsspn.c: New file.
69167
69168 2007-02-11  Bruno Haible  <bruno@clisp.org>
69169
69170         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69171
69172         * modules/mbspbrk-tests: New file.
69173         * tests/test-mbspbrk.sh: New file.
69174         * tests/test-mbspbrk.c: New file.
69175
69176 2007-02-11  Bruno Haible  <bruno@clisp.org>
69177
69178         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69179         unneeded cast.
69180
69181         * modules/mbscspn-tests: New file.
69182         * tests/test-mbscspn.sh: New file.
69183         * tests/test-mbscspn.c: New file.
69184
69185 2007-02-11  Bruno Haible  <bruno@clisp.org>
69186
69187         * modules/mbscasecmp-tests: New file.
69188         * tests/test-mbscasecmp.sh: New file.
69189         * tests/test-mbscasecmp.c: New file.
69190
69191 2007-02-11  Bruno Haible  <bruno@clisp.org>
69192
69193         Ensure O(n) worst-case complexity of mbscasestr.
69194         * lib/mbscasestr.c: Include stdbool.h.
69195         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69196         functions.
69197         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69198         the bookkeeping indicates that it's worth it.
69199         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69200
69201         * modules/mbscasestr-tests: New file.
69202         * tests/test-mbscasestr1.c: New file.
69203         * tests/test-mbscasestr2.sh: New file.
69204         * tests/test-mbscasestr2.c: New file.
69205         * tests/test-mbscasestr3.sh: New file.
69206         * tests/test-mbscasestr3.c: New file.
69207         * tests/test-mbscasestr4.sh: New file.
69208         * tests/test-mbscasestr4.c: New file.
69209         * m4/locale-tr.m4: New file.
69210
69211 2007-02-11  Bruno Haible  <bruno@clisp.org>
69212
69213         Ensure O(n) worst-case complexity of mbsstr.
69214         * lib/mbsstr.c: Include stdbool.h.
69215         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69216         functions.
69217         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69218         bookkeeping indicates that it's worth it.
69219         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69220
69221         * modules/mbsstr-tests: New file.
69222         * tests/test-mbsstr1.c: New file.
69223         * tests/test-mbsstr2.sh: New file.
69224         * tests/test-mbsstr2.c: New file.
69225         * tests/test-mbsstr3.sh: New file.
69226         * tests/test-mbsstr3.c: New file.
69227         * m4/locale-fr.m4: New file.
69228
69229 2007-02-11  Bruno Haible  <bruno@clisp.org>
69230
69231         * lib/mbsrchr.c (mbsrchr): Fix bug.
69232
69233         * modules/mbsrchr-tests: New file.
69234         * tests/test-mbsrchr.sh: New file.
69235         * tests/test-mbsrchr.c: New file.
69236
69237 2007-02-11  Bruno Haible  <bruno@clisp.org>
69238
69239         * lib/mbschr.c (mbschr): Fix bug.
69240
69241         * modules/mbschr-tests: New file.
69242         * tests/test-mbschr.sh: New file.
69243         * tests/test-mbschr.c: New file.
69244         * m4/locale-zh.m4: New file.
69245
69246 2007-02-11  Bruno Haible  <bruno@clisp.org>
69247
69248         Support for copying multibyte string iterators.
69249         * lib/mbiter.h: Include <string.h>.
69250         (mbiter_multi_copy): New function.
69251         (mbi_copy): New macro.
69252         * lib/mbuiter.h: Include <string.h>.
69253         (mbuiter_multi_copy): New function.
69254         (mbui_copy): New macro.
69255
69256 2007-02-11  Bruno Haible  <bruno@clisp.org>
69257
69258         New module mbslen.
69259         * modules/mbslen: New file.
69260         * lib/mbslen.c: New file.
69261         * lib/string_.h (mbslen): New declaration.
69262         * m4/mbslen.m4: New file.
69263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69264         GNULIB_MBSLEN.
69265         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69266         * MODULES.html.sh (Internationalization functions): Add mbslen.
69267
69268 2007-02-11  Bruno Haible  <bruno@clisp.org>
69269
69270         Ensure O(n) worst-case complexity of strcasestr substitute.
69271         * lib/strcasestr.c: Include stdbool.h.
69272         (knuth_morris_pratt): New function.
69273         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69274         bookkeeping indicates that it's worth it.
69275         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69276
69277         * modules/strcasestr-tests: New file.
69278         * tests/test-strcasestr.c: New file.
69279
69280 2007-02-11  Bruno Haible  <bruno@clisp.org>
69281
69282         Ensure O(n) worst-case complexity of c_strcasestr.
69283         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69284         (knuth_morris_pratt): New function.
69285         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69286         the bookkeeping indicates that it's worth it.
69287         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69288
69289         * modules/c-strcasestr-tests: New file.
69290         * tests/test-c-strcasestr.c: New file.
69291
69292 2007-02-11  Bruno Haible  <bruno@clisp.org>
69293
69294         Ensure O(n) worst-case complexity of c_strstr.
69295         * lib/c-strstr.c: Include stdbool.h, string.h.
69296         (knuth_morris_pratt): New function.
69297         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69298         bookkeeping indicates that it's worth it.
69299         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69300
69301         * lib/c-strstr.c: Complete rewrite for maintainability.
69302
69303         * modules/c-strstr-tests: New file.
69304         * tests/test-c-strstr.c: New file.
69305
69306 2007-02-11  Bruno Haible  <bruno@clisp.org>
69307
69308         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69309         5.2.1 and earlier, whereby \055 was treated just like the range
69310         delimiter '-'.
69311         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69312
69313 2007-02-08  Bruno Haible  <bruno@clisp.org>
69314
69315         * modules/regex (Depends-on): Add stdbool.
69316         Reported by Dalibor Topic <robilad@kaffe.org>.
69317
69318 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69321         Prefer returning from main to exiting from it.
69322         Remove unnecessary parens after sizeof.
69323
69324 2007-02-05  Bruno Haible  <bruno@clisp.org>
69325
69326         New module mbssep.
69327         * modules/mbssep: New file.
69328         * lib/mbssep.c: New file.
69329         * lib/string_.h (strsep): Add a conditional link warning.
69330         (mbssep): New declaration.
69331         * m4/mbssep.m4: New file.
69332         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69333         GNULIB_MBSSEP.
69334         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69335         * MODULES.html.sh (Internationalization functions): Add mbssep.
69336
69337 2007-02-05  Bruno Haible  <bruno@clisp.org>
69338
69339         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69340         Optimize search in case of 1 delimiter.
69341
69342 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69343
69344         * lib/acl.h: Include sys/types.h before sys/acl.h.
69345
69346 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69347
69348         Merge upstream fix for glibc bugzilla #3957:
69349
69350         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69351
69352         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69353         bit for RE_HAT_LISTS_NOT_NEWLINE.
69354         (build_charclass_op): Remove bogus comment.
69355
69356 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69357
69358         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69359
69360 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69363         * lib/memmem.c [!defined _LIBC]: Include config.h.
69364
69365 2007-02-04  Bruno Haible  <bruno@clisp.org>
69366
69367         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69368         warning message.
69369
69370 2007-02-04  Bruno Haible  <bruno@clisp.org>
69371
69372         New module mbstok_r.
69373         * modules/mbstok_r: New file.
69374         * lib/mbstok_r.c: New file.
69375         * lib/string_.h (strtok_r): Change argument names to match the
69376         comments. Add a conditional link warning.
69377         (mbstok_r): New declaration.
69378         * m4/mbstok_r.m4: New file.
69379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69380         GNULIB_MBSTOK_R.
69381         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69382         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69383
69384 2007-02-04  Bruno Haible  <bruno@clisp.org>
69385
69386         New module mbsspn.
69387         * modules/mbsspn: New file.
69388         * lib/mbsspn.c: New file.
69389         * lib/string_.h (strspn): Add a conditional link warning.
69390         (mbsspn): New declaration.
69391         * m4/mbsspn.m4: New file.
69392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69393         GNULIB_MBSSPN.
69394         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69395         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69396
69397 2007-02-04  Bruno Haible  <bruno@clisp.org>
69398
69399         New module mbspbrk.
69400         * modules/mbspbrk: New file.
69401         * lib/mbspbrk.c: New file.
69402         * lib/string_.h (strpbrk): Add a conditional link warning.
69403         (mbspbrk): New declaration.
69404         * m4/mbspbrk.m4: New file.
69405         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69406         GNULIB_MBSPBRK.
69407         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69408         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69409
69410 2007-02-04  Bruno Haible  <bruno@clisp.org>
69411
69412         New module mbscspn.
69413         * modules/mbscspn: New file.
69414         * lib/mbscspn.c: New file.
69415         * lib/string_.h (strcspn): Add a conditional link warning.
69416         (mbscspn): New declaration.
69417         * m4/mbscspn.m4: New file.
69418         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69419         GNULIB_MBSCSPN.
69420         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69421         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69422
69423 2007-02-04  Bruno Haible  <bruno@clisp.org>
69424
69425         New module mbscasestr, reduced goal of strcasestr.
69426         * modules/mbscasestr: New file.
69427         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69428         (mbscasestr): Renamed from strcasestr.
69429         * lib/strcasestr.c: Don't include mbuiter.h.
69430         (strcasestr): Remove support for multibyte locales.
69431         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69432         Change the conditional link warning.
69433         (mbscasestr): New declaration.
69434         * m4/mbscasestr.m4: New file.
69435         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69436         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69437         REPLACE_STRCASESTR.
69438         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69440         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69441         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69442         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69443         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69444         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69445         (Depends-on): Remove mbuiter.
69446         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69447
69448 2007-02-04  Bruno Haible  <bruno@clisp.org>
69449
69450         Simplify handling of strncasecmp.
69451         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69452         the conditional link warning.
69453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69454         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69455         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69456         * modules/strcase (configure.ac): Don't invoke
69457         gl_STRING_MODULE_INDICATOR.
69458         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69459
69460 2007-02-04  Bruno Haible  <bruno@clisp.org>
69461
69462         New module mbscasecmp, reduced goal of strcasecmp.
69463         * modules/mbscasecmp: New file.
69464         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69465         (mbscasecmp): Renamed from strcasecmp.
69466         * lib/strcasecmp.c: Don't include mbuiter.h.
69467         (strcasecmp): Remove support for multibyte locales.
69468         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69469         Change the conditional link warning.
69470         (mbscasecmp): New declaration.
69471         * m4/mbscasecmp.m4: New file.
69472         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69473         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69474         REPLACE_STRCASECMP.
69475         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69477         GNULIB_MBSCASECMP.
69478         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69479         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69480         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69481         (Depends-on): Remove mbuiter.
69482         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69483
69484 2007-02-04  Bruno Haible  <bruno@clisp.org>
69485
69486         New module mbsstr. Remove module strstr.
69487         * modules/mbsstr: New file.
69488         * modules/strstr: Remove file.
69489         * lib/mbsstr.c: Renamed from lib/strstr.c.
69490         (mbsstr): Renamed from strstr.
69491         * lib/string_.h (strstr): Remove declaration. Change the conditional
69492         link warning.
69493         (mbsstr): New declaration.
69494         * m4/mbsstr.m4: New file.
69495         * m4/strstr.m4: Remove file.
69496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69497         REPLACE_STRSTR.
69498         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69499         Don't initialize GNULIB_STRSTR.
69500         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69501         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69502         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69503         (Support for systems lacking ANSI C 89): Remove strstr.
69504
69505 2007-02-04  Bruno Haible  <bruno@clisp.org>
69506
69507         New module mbsrchr.
69508         * modules/mbsrchr: New file.
69509         * lib/mbsrchr.c: New file.
69510         * lib/string_.h (strrchr): Add a conditional link warning.
69511         (mbsrchr): New declaration.
69512         * m4/mbsrchr.m4: New file.
69513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69514         GNULIB_MBSRCHR.
69515         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69516         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69517
69518 2007-02-04  Bruno Haible  <bruno@clisp.org>
69519
69520         New module mbschr.
69521         * modules/mbschr: New file.
69522         * lib/mbschr.c: New file.
69523         * lib/string_.h (strchr): Add a conditional link warning.
69524         (mbschr): New declaration.
69525         * m4/mbschr.m4: New file.
69526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69527         GNULIB_MBSCHR.
69528         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69529         * MODULES.html.sh (Internationalization functions): Add mbschr.
69530
69531 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69534
69535         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69536
69537 2007-02-04  Bruno Haible  <bruno@clisp.org>
69538
69539         New module description section 'configure.ac-early'.
69540         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69541         (func_get_autoconf_early_snippet): New function.
69542         (func_import, func_create_testdir): Use it. Remove special cases for
69543         modules 'extensions' and 'lock'.
69544         * modules/extensions (configure.ac-early): Require
69545         gl_USE_SYSTEM_EXTENSIONS.
69546         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69547
69548 2007-02-04  Bruno Haible  <bruno@clisp.org>
69549
69550         Make use of gcj-4.3's -fsource and -ftarget option.
69551         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69552         and if so try the options -fsource and -ftarget.
69553         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69554         source_version, ftarget_option, target_version arguments.
69555         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69556         (is_envjavac_oldgcj_14_14_usable): Renamed from
69557         is_envjavac_gcj_14_14_usable.
69558         (is_envjavac_oldgcj_14_13_usable): Renamed from
69559         is_envjavac_gcj_14_13_usable.
69560         (is_gcj_present): Update.
69561         (is_gcj_43, is_gcj43_usable): New functions.
69562         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69563         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69564         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69565         try the options -fsource and -ftarget.
69566
69567 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69570         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69571         larger value.
69572
69573 2007-02-03  Jim Meyering  <jim@meyering.net>
69574
69575         Give tools a better chance to allocate space for very large buffers.
69576         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69577
69578         Make pwd and readlink work also when run with an unreadable parent dir
69579         on systems with openat support.
69580         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69581         provided getcwd function, even when we have openat support.
69582         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69583
69584 2007-02-02  Bruno Haible  <bruno@clisp.org>
69585
69586         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69587         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69588         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69589         portability problems if one of these functions is only used on specific
69590         platforms.
69591         Reported by Paul Eggert.
69592
69593 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69594
69595         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69596         is causing more trouble than it's curing.
69597         * lib/regex_internal.h (__mempcpy): Remove.
69598         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69599         (and make the code a tad smaller to boot).
69600         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69601
69602 2007-02-02  Jim Meyering  <jim@meyering.net>
69603
69604         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69605         section, not in the Makefile.am: one.
69606
69607 2007-02-02  Eric Blake  <ebb9@byu.net>
69608
69609         * lib/strchrnul.c: Always include config.h first.
69610
69611         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69612         gnulib strstr is not necessary here.
69613
69614 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69615
69616         * m4/socklen.m4: Fix typo.
69617
69618 2007-02-02  Eric Blake  <ebb9@byu.net>
69619
69620         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69621         * modules/netinet_in (Makefile.am): Likewise.
69622
69623 2007-02-01  Bruno Haible  <bruno@clisp.org>
69624
69625         * lib/string_.h (GL_LINK_WARNING): New macro.
69626         (strcasecmp, strstr, strcasestr): If provided by the system,
69627         conditionally define as a macro that leads to a warning instead of to
69628         an error.
69629         (strncasecmp): Conditionally define as a macro that leads to a warning.
69630
69631 2007-02-01  Karl Berry  <karl@gnu.org>
69632
69633         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69634
69635 2007-02-01  Bruno Haible  <bruno@clisp.org>
69636
69637         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69638         renamings.
69639
69640 2007-02-01  Eric Blake  <ebb9@byu.net>
69641
69642         * modules/regex (Depends-on): Revert dependence on mempcpy.
69643         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69644         module's definition of mempcpy.
69645         Reported by Paul Eggert.
69646
69647 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69648
69649         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69650         the symbol XYZ before redefining it.  This fixes a problem with
69651         programs that don't use XYZ, when compiled on systems that define
69652         XYZ to something else.
69653
69654 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69655
69656         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69657         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69658         writeable to group or other and (2) is intended to have a special
69659         mode bit that is set or cleared.  In such a case, the directory
69660         should be neither group- nor other-writeable until the special
69661         mode bits are right.
69662
69663 2007-01-31  Eric Blake  <ebb9@byu.net>
69664
69665         * modules/mountlist (Depends-on): Add strstr.
69666
69667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69668         bug.
69669         * modules/string (Makefile.am): Remove redundant replacement.
69670         * modules/regex (Depends-on): Add mempcpy.
69671
69672 2007-01-31  Bruno Haible  <bruno@clisp.org>
69673
69674         New module description field 'Link'.
69675         * gnulib-tool (func_usage): Document --extract-link-directive.
69676         (sed_extract_prog): Recognize 'Link' directive.
69677         (func_get_link_directive): New function.
69678         (func_import): Show summary of link directives.
69679         Handle --extract-link-directive option.
69680         * modules/acl (Link): New section.
69681         * modules/clock-time (Link): New section.
69682         * modules/euidaccess (Link): New section.
69683         * modules/gettext (Link): New section.
69684         * modules/iconv (Link): New section.
69685         * modules/lock (Link): New section.
69686         * modules/nanosleep (Link): New section.
69687         * modules/readline (Link): New section.
69688
69689 2007-01-27  Bruno Haible  <bruno@clisp.org>
69690
69691         Enforce the use of gnulib modules for unportable <string.h> functions.
69692         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69693         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69694         (gl_HEADER_STRING_H_BODY): Require it.
69695         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69696         the symbol XYZ to one that gives a link error.
69697         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69698         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69699         * modules/mempcpy (configure.ac): Likewise.
69700         * modules/memrchr (configure.ac): Likewise.
69701         * modules/stpcpy (configure.ac): Likewise.
69702         * modules/stpncpy (configure.ac): Likewise.
69703         * modules/strcase (configure.ac): Likewise.
69704         * modules/strcasestr (configure.ac): Likewise.
69705         * modules/strchrnul (configure.ac): Likewise.
69706         * modules/strdup (configure.ac): Likewise.
69707         * modules/strndup (configure.ac): Likewise.
69708         * modules/strnlen (configure.ac): Likewise.
69709         * modules/strpbrk (configure.ac): Likewise.
69710         * modules/strsep (configure.ac): Likewise.
69711         * modules/strstr (configure.ac): Likewise.
69712         * modules/strtok_r (configure.ac): Likewise.
69713
69714 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69715
69716         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69717
69718 2007-01-30  Jim Meyering  <jim@meyering.net>
69719
69720         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69721
69722 2007-01-29  Bruno Haible  <bruno@clisp.org>
69723
69724         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69725         * lib/execute.c: Likewise.
69726         * lib/pipe.c: Likewise.
69727         * lib/printf-args.h: Likewise.
69728         * lib/printf-args.c: Likewise.
69729         * lib/printf-parse.c: Likewise.
69730         * lib/vasnprintf.c: Likewise.
69731
69732 2007-01-29  Eric Blake  <ebb9@byu.net>
69733
69734         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69735         declaration.
69736
69737 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69738
69739         * lib/strptime.h (strptime): Use 'restrict' for args where
69740         POSIX requires this.
69741         * lib/strptime.c (strptime): Likewise.
69742         Change license notice from LGPL to GPL, since gnulib-tool will
69743         change this as needed.
69744         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69745         defined.
69746         Include "strptime.h" first, to check interface.
69747         Do not #undef _LIBC and _NL_CURRENT.
69748         Do not include <stdlib.h>; no longer needed.
69749         Include "time_r.h" and declare ptime_locale_status
69750         only if _LIBC is not defined.
69751         (__P): Remove unused macro.
69752         (match_string): Bring back glibc version, but use it only if _LIBC
69753         is defined.
69754         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69755         Remove unnecessary assertion and abort() call.
69756         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69757         * m4/strptime.m4: Fix serial number comment.
69758         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69759         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69760         (Depends-on): Add time_r.
69761
69762 2007-01-29  Bruno Haible  <bruno@clisp.org>
69763
69764         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69765         strptime.
69766         * modules/strptime (Depends-on): Add stdbool.
69767         * lib/strptime.h: Include <time.h> always. Add comments.
69768
69769 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69770
69771         * modules/strptime: New file.
69772         * lib/strptime.h: New file.
69773         * lib/strptime.c: New file.
69774         * m4/strptime.m4: New file.
69775
69776 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * MODULES.html.sh: New module mpsort.
69779         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69780
69781         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69782         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69784         All uses changed.
69785         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69786         All uses changed.
69787         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69788         to _Restrict_.
69789         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69790         the parameter matches the prototype.
69791
69792 2007-01-28  Jim Meyering  <jim@meyering.net>
69793
69794         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69795         sys/time.h here, reverting that part of the previous patch:
69796         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69797
69798 2007-01-28  Bruno Haible  <bruno@clisp.org>
69799
69800         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69801         value of $(SYS_TIME_H).
69802         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69803         remove it conditionally, too. [added by Jim Meyering]
69804         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69805         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69806         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69807         GETTIMEOFDAY_REPLACEMENT to 1.
69808
69809 2007-01-28  Bruno Haible  <bruno@clisp.org>
69810
69811         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69812         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69814         Set UNISTD_H instead of UNISTD_H2.
69815         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69816
69817 2007-01-28  Bruno Haible  <bruno@clisp.org>
69818
69819         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69820         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69821
69822 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69823
69824         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69825         (func_create_testdir): Ensure C locale for `grep' and `tr'
69826         character ranges.
69827         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69828         ACLOCAL_AMFLAGS parsing state machine.
69829
69830 2007-01-27  Bruno Haible  <bruno@clisp.org>
69831
69832         * modules/unistr/base: Update.
69833
69834 2007-01-27  Bruno Haible  <bruno@clisp.org>
69835
69836         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69837         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69838         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69839         modules/unistr/u32-mbtouc.
69840         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69841         * lib/unistr.h: Update.
69842         * lib/linebreak.c: Update.
69843         * modules/unistr/u32-mbtouc: Renamed from
69844         modules/unistr/u32-mbtouc-safe.
69845         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69846         * lib/unistr.h: Update.
69847         * lib/unistr/u32-to-u8.c: Update.
69848         * lib/unistr/u32-to-u16.c: Update.
69849
69850 2007-01-27  Bruno Haible  <bruno@clisp.org>
69851
69852         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69853         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69854         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69855         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69856         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69857         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69858         modules/unistr/u16-mbtouc.
69859         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69860         * lib/unistr.h: Update.
69861         * lib/linebreak.c: Update.
69862         * modules/linebreak: Update.
69863         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69864         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69865         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69866         * modules/unistr/u16-mbtouc: Renamed from
69867         modules/unistr/u16-mbtouc-safe.
69868         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69869         * lib/unistr.h: Update.
69870         * lib/unistr/u16-to-u8.c: Update.
69871         * modules/unistr/u16-to-u8: Update.
69872         * lib/unistr/u16-to-u32.c: Update.
69873         * modules/unistr/u16-to-u32: Update.
69874
69875 2007-01-27  Bruno Haible  <bruno@clisp.org>
69876
69877         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69878         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69879         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69880         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69881         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69882         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69883         modules/unistr/u8-mbtouc.
69884         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69885         * lib/unistr.h: Update.
69886         * lib/striconveh.c: Update.
69887         * modules/striconveh: Update.
69888         * lib/linebreak.c: Update.
69889         * modules/linebreak: Update.
69890         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69891         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69892         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69893         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69894         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69895         * lib/unistr.h: Update.
69896         * lib/striconveh.c: Update.
69897         * modules/striconveh: Update.
69898         * lib/unistr/u8-to-u16.c: Update.
69899         * modules/unistr/u8-to-u16: Update.
69900         * lib/unistr/u8-to-u32.c: Update.
69901         * modules/unistr/u8-to-u32: Update.
69902
69903 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69904
69905         Sync from Libtool.
69906         * lib/argz.c: Do not include strings.h nor memory.h, include
69907         string.h unconditionally.  Patch by Simon Josefsson.
69908
69909 2007-01-27  Bruno Haible  <bruno@clisp.org>
69910
69911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69912         from gl_HEADER_STRING_H_BODY.
69913         (gl_HEADER_STRING_H_BODY): Require it.
69914         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69915         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69916         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69917         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69918         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69919         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69920         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69921         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69922         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69923         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69924         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69925         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69926         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69927         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69928         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69929
69930 2007-01-27  Bruno Haible  <bruno@clisp.org>
69931
69932         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69933         check_PROGRAMS into noinst_PROGRAMS.
69934         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69935         check_PROGRAMS in this case.
69936         (func_import): Set for_test to false.
69937         (func_create_testdir): Set for_test to true.
69938
69939 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69940             Bruno Haible  <bruno@clisp.org>
69941
69942         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69943         (Depends-on): Add string.
69944         (Includes): Use <string.h> instead of strcasestr.h.
69945         * modules/string (Makefile.am): Also substitute the value of
69946         REPLACE_STRCASESTR.
69947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69948         assume strcasestr is declared in <string.h> not <strings.h>. Also
69949         set REPLACE_STRCASESTR.
69950         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69951         REPLACE_STRCASESTR.
69952         * lib/strcasestr.h: Remove file.
69953         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69954         * lib/string_.h (strcasestr): New declaration.
69955
69956 2007-01-27  Bruno Haible  <bruno@clisp.org>
69957
69958         * lib/string_.h: Use 'extern'.
69959
69960 2007-01-27  Jim Meyering  <jim@meyering.net>
69961
69962         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69963         of set-but-not-used local, "q".
69964
69965         * lib/mempcpy.c: Include <config.h> before <string.h>.
69966         This fixes a compilation error on HP-UX, due to the system's
69967         "restrict"-using mempcpy prototype.
69968
69969 2007-01-26  Bruno Haible  <bruno@clisp.org>
69970
69971         Small optimization.
69972         * lib/javacomp.c: Include c-strstr.h.
69973          (is_envjavac_gcj): Use c_strstr instead of strstr.
69974         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69975
69976 2007-01-26  Bruno Haible  <bruno@clisp.org>
69977
69978         * MODULES.html.sh (Unicode string functions): Add the new modules.
69979
69980         * modules/uniconv/u32-strconv-to-locale: New file.
69981         * lib/uniconv/u32-strconv-to-locale.c: New file.
69982
69983         * modules/uniconv/u16-strconv-to-locale: New file.
69984         * lib/uniconv/u16-strconv-to-locale.c: New file.
69985
69986         * modules/uniconv/u8-strconv-to-locale: New file.
69987         * lib/uniconv/u8-strconv-to-locale.c: New file.
69988
69989         * modules/uniconv/u32-strconv-from-locale: New file.
69990         * lib/uniconv/u32-strconv-from-locale.c: New file.
69991
69992         * modules/uniconv/u16-strconv-from-locale: New file.
69993         * lib/uniconv/u16-strconv-from-locale.c: New file.
69994
69995         * modules/uniconv/u8-strconv-from-locale: New file.
69996         * lib/uniconv/u8-strconv-from-locale.c: New file.
69997
69998         * modules/uniconv/u32-strconv-to-enc: New file.
69999         * lib/uniconv/u32-strconv-to-enc.c: New file.
70000         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70001         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70002
70003         * modules/uniconv/u16-strconv-to-enc: New file.
70004         * lib/uniconv/u16-strconv-to-enc.c: New file.
70005         * lib/uniconv/u-strconv-to-enc.h: New file.
70006         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70007         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70008
70009         * modules/uniconv/u8-strconv-to-enc: New file.
70010         * lib/uniconv/u8-strconv-to-enc.c: New file.
70011         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70012         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70013
70014         * modules/uniconv/u32-strconv-from-enc: New file.
70015         * lib/uniconv/u32-strconv-from-enc.c: New file.
70016         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70017         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70018
70019         * modules/uniconv/u16-strconv-from-enc: New file.
70020         * lib/uniconv/u16-strconv-from-enc.c: New file.
70021         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70022         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70023
70024         * modules/uniconv/u8-strconv-from-enc: New file.
70025         * lib/uniconv/u8-strconv-from-enc.c: New file.
70026         * lib/uniconv/u-strconv-from-enc.h: New file.
70027         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70028         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70029
70030         * modules/uniconv/u32-conv-from-enc: New file.
70031         * lib/uniconv/u32-conv-from-enc.c: New file.
70032         * modules/uniconv/u32-conv-from-enc-tests: New file.
70033         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70034
70035         * modules/uniconv/u16-conv-from-enc: New file.
70036         * lib/uniconv/u16-conv-from-enc.c: New file.
70037         * lib/uniconv/u-conv-from-enc.h: New file.
70038         * modules/uniconv/u16-conv-from-enc-tests: New file.
70039         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70040
70041         * modules/uniconv/u8-conv-from-enc: New file.
70042         * lib/uniconv/u8-conv-from-enc.c: New file.
70043         * modules/uniconv/u8-conv-from-enc-tests: New file.
70044         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70045
70046         * modules/uniconv/base: New file.
70047         * lib/uniconv.h: New file.
70048
70049 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70050
70051         * doc/gnulib-tool.texi (Initial import): Update to match current
70052         behavior with strdup module.
70053         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70054         * lib/memmem.h: Remove; all uses removed.  This is now done
70055         by <string.h>.
70056         * lib/mempcpy.h: Likewise.
70057         * lib/memrchr.h: Likewise.
70058         * lib/stpcpy.h: Likewise.
70059         * lib/stpncpy.h: Likewise.
70060         * lib/strcase.h: Likewise.
70061         * lib/strchrnul.h: Likewise.
70062         * lib/strdup.h: Likewise.
70063         * lib/strndup.h: Likewise.
70064         * lib/strnlen.h: Likewise.
70065         * lib/strpbrk.h: Likewise.
70066         * lib/strsep.h: Likewise.
70067         * lib/strstr.h: Likewise.
70068         * lib/strtok_r.h: Likewise.
70069         * lib/string_.h: New file.
70070         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70071         Rely on <string.h> instead.
70072         * lib/canon-host.c: Likewise.
70073         * lib/chdir-long.c: Likewise.
70074         * lib/concatpath.c: Likewise.
70075         * lib/exclude.c: Likewise.
70076         * lib/fchdir.c: Likewise.
70077         * lib/getaddrinfo.c: Likewise.
70078         * lib/getcwd.c: Likewise.
70079         * lib/getsubopt.c: Likewise.
70080         * lib/glob.c: Likewise.
70081         * lib/hard-locale.c: Likewise.
70082         * lib/iconvme.c: Likewise.
70083         * lib/javacomp.c: Likewise.
70084         * lib/mempcpy.c: Likewise.
70085         * lib/memrchr.c: Likewise.
70086         * lib/regex_internal.h: Likewise.
70087         * lib/stpncpy.c: Likewise.
70088         * lib/strcasecmp.c: Likewise.
70089         * lib/strchrnul.c: Likewise.
70090         * lib/strdup.c: Likewise.
70091         * lib/striconv.c: Likewise.
70092         * lib/striconveh.c: Likewise.
70093         * lib/striconveha.c: Likewise.
70094         * lib/strncasecmp.c: Likewise.
70095         * lib/strndup.c: Likewise.
70096         * lib/strnlen.c: Likewise.
70097         * lib/strsep.c: Likewise.
70098         * lib/strstr.c: Likewise.
70099         * lib/strtok_r.c: Likewise.
70100         * lib/userspec.c: Likewise.
70101         * lib/w32spawn.h: Likewise.
70102         * lib/xstrndup.c: Likewise.
70103         * lib/mountlist.c (strstr): Remove decl.
70104         * m4/string_h.m4: New file.
70105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70106         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70107         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70108         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70109         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70110         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70111         Set REPLACE_STRCASECMP if necessary.
70112         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70113         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70114         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70115         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70116         HAVE_DECL_STRDUP if necessary.
70117         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70118         since gl_FUNC_STRNDUP does that now.
70119         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70120         Check for decl here...
70121         (gl_PREREQ_STRNLEN): ... not here.
70122         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70123         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70124         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70125         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70126         necessary.
70127         * modules/string: New file.
70128         * modules/memmem (Files): Remove special-purpose include file.
70129         (Depends-on): Add string.
70130         (Include): Include <string.h>, not the removed file.
70131         * modules/mempcpy: Likewise.
70132         * modules/memrchr: Likewise.
70133         * modules/stpcpy: Likewise.
70134         * modules/stpncpy: Likewise.
70135         * modules/strcase: Likewise.
70136         * modules/strchrnul: Likewise.
70137         * modules/strdup: Likewise.
70138         * modules/strndup: Likewise.
70139         * modules/strnlen: Likewise.
70140         * modules/strpbrk: Likewise.
70141         * modules/strsep: Likewise.
70142         * modules/strstr: Likewise.
70143         * modules/strtok_r: Likewise.
70144         * tests/test-dirname.c: Don't include "strdup.h", since
70145         <string.h> now suffices.
70146         * tests/test-memmem.c: Don't include "memmem.h", since
70147         <string.h> now suffices.
70148
70149 2007-01-25  Bruno Haible  <bruno@clisp.org>
70150
70151         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70152         *resultp is 0.
70153
70154         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70155         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70156         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70157         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70158
70159         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70160         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70161         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70162         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70163         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70164         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70165
70166 2007-01-24  Bruno Haible  <bruno@clisp.org>
70167
70168         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70169         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70170         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70171         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70172         gl_FUNC_FTS_CORE.
70173         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70174         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70175         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70176         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70177         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70178         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70179         gl_FUNC_FCHOWNAT.
70180         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70181         gl_FUNC_STRFTIME.
70182         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70183         Reported by Ralf Wildenhues.
70184
70185 2007-01-24  Bruno Haible  <bruno@clisp.org>
70186
70187         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70188         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70189         gl_GETADDRINFO.
70190         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70191         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70192         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70193
70194 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70195
70196         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70197         Don't use 'exit'; just return from 'main'.
70198         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70199
70200         * lib/fnmatch_.h: Readjust white space and comments to match
70201         glibc, to avoid spurious diffs.
70202
70203 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70204
70205         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70206         2004-12-01 change by Jakub Jelinek, since this code won't compile
70207         if !LIBC.  Problem reported by Bob Proulx.
70208
70209 2007-01-23  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/striconveh.c: Include c-strcaseeq.h.
70212         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70213         * modules/striconveh (Depends-on): Add c-strcaseeq.
70214
70215 2007-01-23  Bruno Haible  <bruno@clisp.org>
70216
70217         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70218
70219         * modules/c-strcaseeq: New file.
70220         * lib/c-strcaseeq.h: New file.
70221
70222         * modules/streq: New file.
70223         * lib/streq.h: New file.
70224
70225 2007-01-23  Bruno Haible  <bruno@clisp.org>
70226
70227         * modules/striconveha-tests: New file.
70228         * tests/test-striconveha.c: New file.
70229
70230         * lib/striconveha.h: Include <stdbool.h>.
70231         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70232         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70233         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70234         (mem_iconveha): New function.
70235         (str_iconveha_notranslit): Renamed from str_iconveha.
70236         (str_iconveha): New function.
70237         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70238         c-strcase.
70239
70240 2007-01-23  Bruno Haible  <bruno@clisp.org>
70241
70242         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70243         encodings without forgiving before trying any encoding with handler.
70244         (str_iconveha): Try all encodings without forgiving before trying any
70245         encoding with handler.
70246
70247 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70248
70249         Import the following changes from libc.
70250
70251         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70252
70253         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70254
70255         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70256
70257         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70258         normal_bracket label.
70259
70260         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70261
70262         [BZ #361]
70263         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70264         to normal_bracket after fetching the next character.
70265
70266 2007-01-22  Bruno Haible  <bruno@clisp.org>
70267
70268         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70269         argument.
70270         * lib/striconveh.c (iconv_carefully_1): New function.
70271         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70272         argument.
70273         (str_cd_iconveh): Update.
70274         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70275         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70276         * tests/test-striconveh.c (MAGIC): New macro.
70277         (new_offsets): New function.
70278         (main): Test call with and without offsets.
70279
70280 2007-01-22  Bruno Haible  <bruno@clisp.org>
70281
70282         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70283         * modules/sys_select (Makefile.am): Likewise.
70284         * modules/sys_socket (Makefile.am): Likewise.
70285         * modules/sys_time (Makefile.am): Likewise.
70286
70287 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70288
70289         * modules/gettimeofday (License): Change from GPL to LGPL, since
70290         gettimeofday is a library function.
70291
70292 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70293
70294         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70295
70296 2007-01-21  Bruno Haible  <bruno@clisp.org>
70297
70298         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70299
70300 2007-01-21  Bruno Haible  <bruno@clisp.org>
70301
70302         * modules/striconveha: New file.
70303         * lib/striconveha.h: New file.
70304         * lib/striconveha.c: New file.
70305         * MODULES.html.sh (Internationalization functions): Add striconveha.
70306         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70307         string.
70308         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70309
70310 2007-01-21  Bruno Haible  <bruno@clisp.org>
70311
70312         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70313         * lib/striconveh.c (str_iconveh): Likewise.
70314
70315 2007-01-21  Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/striconveh.h (mem_iconveh): New declaration.
70318         * lib/striconveh.c (mem_iconveh): New function.
70319         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70320
70321 2007-01-21  Bruno Haible  <bruno@clisp.org>
70322
70323         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70324
70325         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70326         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70327         original result buffer.
70328         (str_cd_iconveh): Update.
70329         * tests/test-striconveh.c (main): Update.
70330
70331         * lib/striconv.h (mem_cd_iconv): Change specification.
70332         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70333         result buffer.
70334         (str_cd_iconv): Update.
70335         * tests/test-striconv.c (main): Update.
70336
70337 2007-01-21  Bruno Haible  <bruno@clisp.org>
70338
70339         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70340
70341 2007-01-20  Jim Meyering  <jim@meyering.net>
70342
70343         * lib/userspec.c (parse_with_separator): If a user or group string
70344         starts with "+", skip the corresponding name-to-ID look-up, since
70345         such a look-up must fail: user and group names may not include "+".
70346
70347 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70350         since we now assume the sys_time module.
70351         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70352         check for sys/time.h; no longer needed.
70353         * modules/poll (Depends-on): Depend on sys_time.
70354
70355 2007-01-18  Bruno Haible  <bruno@clisp.org>
70356
70357         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70358         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70359
70360         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70361         gettimeofday.
70362
70363         * tests/test-gettimeofday.c: Include <time.h>.
70364         (dummy): Remove variable.
70365
70366         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70367         gl_HEADER_SYS_TIME_H.
70368         (gl_HEADER_SYS_TIME_H): New macro.
70369
70370         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70371         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70372         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70373         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70374         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70375         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70376         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70377         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70378         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70379         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70380         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70381
70382         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70383         last change; it caused a compilation error when cross-compiling to
70384         Cygwin.
70385
70386 2007-01-18  Jim Meyering  <jim@meyering.net>
70387
70388         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70389         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70390         than the race-prone "test -d sys || mkdir sys".
70391         (configure.ac): Use AC_PROG_MKDIR_P.
70392         * modules/sys_select: Likewise.
70393         * modules/sys_socket: Likewise.
70394         * modules/sys_time: Likewise.
70395
70396 2007-01-18  Eric Blake  <ebb9@byu.net>
70397
70398         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70399         replace gettimeofday.
70400         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70401         name, to avoid infinite recursion.
70402
70403 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70404
70405         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70406         module sys_time.
70407         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70408         assume timespec.h defines struct timeval.
70409         * lib/settime.c: Likewise.
70410         * lib/utimens.c: Likewise.
70411         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70412         since we now assume the gettimeofday module.
70413         * lib/tempname.c (__gen_tempname): Likewise.
70414         * lib/gettimeofday.h: Remove.
70415         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70416         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70417         Include <time.h>, for 'time()'.
70418         (localtime_buffer_addr): Also use this workaround if
70419         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70420         to simplify the uses.  All uses changed.
70421         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70422         that #undef is inside {}, and 'const' follows type name consistently.
70423         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70424         (gettimeofday): Do not use the maximum possible value for
70425         tv->tv_usec, since that might break usages other than ls.c.
70426         Instead, we'll leave ls.c alone.  This undoes today's patch
70427         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70428         we've never observed the problem but might as well keep the
70429         canary.
70430         * lib/nanosleep.c: Include timespec.h first, for interface check.
70431         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70432         now assume the sys_time module.
70433         * lib/tempname.c: Likewise.
70434         * lib/timespec.h: Likewise.
70435         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70436         needed.
70437         * lib/strftime.c: Likewise.
70438         * lib/timespec.h: Likewise.
70439         * lib/posixtm.c: Include posixtm.h first, for interface check.
70440         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70441         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70442         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70443         * lib/sys_time_.h: New file.
70444         * lib/timespec.h (struct timespec): Use long int, not long.
70445         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70446         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70447         Remove obsolescent call to AC_HEADER_TIME.
70448         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70449         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70450         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70451         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70452         Likewise.
70453         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70454         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70455         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70456         into the sys_time module.  Check for gettimeofday just once.
70457         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70458         for gettimeofday signature to just check the signature.  Merely
70459         compile it, since linking doesn't test signature.  Improve test for
70460         whether gettimeofday.o is actually needed.
70461         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70462         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70463         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70464         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70465         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70466         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70467         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70468         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70469         than worrying about sys/time.h.
70470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70471         Don't bother worrying about TIME_WITH_SYS_TIME.
70472         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70473         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70474         * m4/sys_time_h.m4: New file.
70475         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70476         Don't include sys/time.h.  Return from main rather than exiting.
70477         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70478         all uses changed.
70479         * modules/gethrxtime (Depends-on): Add sys_time.
70480         * modules/gettime (Depends-on): Likewise.
70481         * modules/gettimeofday (Depends-on): Likewise.
70482         * modules/nanosleep (Depends-on): Likewise.
70483         * modules/settime (Depends-on): Likewise.
70484         * modules/tempname (Depends-on): Likewise.
70485         * modules/utimens (Depends-on): Likewise.
70486         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70487         (Include): Change back to <sys/time.h>.
70488         (Maintainer): Add self.
70489         * modules/sys_time: New file.
70490         * modules/tempname (Depends-on): Add gettimeofday.
70491         * tests/test-gettimeofday.c: Include <sys/time.h>
70492         rather than gettimeofday.h.
70493
70494 2007-01-17  Bruno Haible  <bruno@clisp.org>
70495
70496         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70497         the license default to GPL.
70498         (func_create_testdir): Don't complain if a module is LGPL and its
70499         tests module depends on GPLed modules.
70500
70501 2007-01-17  Bruno Haible  <bruno@clisp.org>
70502
70503         * lib/gettimeofday.c (gettimeofday): Add code for the case
70504         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70505         maximum possible value for tv->tv_usec, rather than the minimum one.
70506
70507 2005-10-08  Martin Lambers  <marlam@marlam.de>
70508 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70509 2007-01-16  Bruno Haible  <bruno@clisp.org>
70510
70511         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70512         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70513         gl_FUNC_GETTIMEOFDAY.
70514         (Include): Add gettimeofday.h.
70515         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70516         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70517         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70518         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70519         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70520         * lib/gettimeofday.h: New file.
70521         * lib/gettimeofday.c: Include <sys/timeb.h>.
70522         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70523         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70524         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70525         fall back on time().
70526
70527         * tests/test-gettimeofday.c: New file.
70528         * modules/gettimeofday-tests: New file.
70529
70530 2007-01-16  Eric Blake  <ebb9@byu.net>
70531
70532         * modules/fnmatch (Depends-on): Depend on wchar.
70533         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70534         * m4/fnmatch.m4: Likewise.
70535         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70536         * m4/mbchar.m4: Likewise.
70537         * modules/mbswidth (Depends-on): Depend on wchar.
70538         * lib/mbswidth.c: Assume <wchar.h>.
70539         * m4/mbswidth.m4: Likewise.
70540         * modules/quotearg (Depends-on): Depend on wchar.
70541         * lib/quotearg.c: Assume <wchar.h>.
70542         * m4/quotearg.m4: Likewise.
70543         * modules/regex (Depends-on): Depend on wchar.
70544         * lib/regex_internal.h: Assume <wchar.h>.
70545         * m4/regex.m4: Likewise.
70546         * modules/stdint (Depends-on): Depend on wchar.
70547         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70548         * m4/stdint.m4: Likewise.
70549         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70550         * modules/strftime (Depends-on): Depend on wchar.
70551         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70552         * modules/strtol (Depends-on): Depend on wchar.
70553         * lib/strtol.c: Assume <wchar.h>.
70554         * modules/wcwidth (Depends-on): Depend on wchar.
70555         * lib/wcwidth.h: Assume <wchar.h>.
70556         * m4/wcwidth.m4: Likewise.
70557
70558 2007-01-16  Bruno Haible  <bruno@clisp.org>
70559
70560         * modules/csharpexec-script: New, created from...
70561         * modules/csharpexec: ... this.
70562
70563 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70564
70565         * modules/javaexec-script: New, created from...
70566         * modules/javaexec: ... this.
70567
70568 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70569
70570         * modules/poll (Dependencies): Add sys_select.
70571
70572 2007-01-15  Jim Meyering  <jim@meyering.net>
70573
70574         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70575         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70576         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70577         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70578
70579 2007-01-15  Bruno Haible  <bruno@clisp.org>
70580
70581         * modules/striconveh: New file.
70582         * lib/striconveh.h: New file.
70583         * lib/striconveh.c: New file.
70584         * MODULES.html.sh (Internationalization functions): Add striconveh.
70585
70586         * modules/striconveh-tests: New file.
70587         * tests/test-striconveh.c: New file.
70588
70589 2007-01-15  Bruno Haible  <bruno@clisp.org>
70590
70591         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70592         not from GNU libiconv or GNU libc.
70593
70594 2007-01-15  Bruno Haible  <bruno@clisp.org>
70595
70596         * doc/gnulib-intro.texi (Copyright): Explain the different license
70597         terms for module descriptions, autoconf macros, tests, documentation.
70598
70599 2007-01-14  Bruno Haible  <bruno@clisp.org>
70600
70601         * modules/striconv-tests: New file.
70602         * tests/test-striconv.c: New file.
70603
70604 2007-01-14  Bruno Haible  <bruno@clisp.org>
70605
70606         * modules/iconv-tests: New file.
70607         * tests/test-iconv.c: New file.
70608
70609 2007-01-14  Bruno Haible  <bruno@clisp.org>
70610
70611         * gnulib-tool (func_get_license): For test modules, use the license of
70612         the main module.
70613
70614 2007-01-14  Bruno Haible  <bruno@clisp.org>
70615
70616         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70617         if iconv is found to exist.
70618
70619 2007-01-14  Bruno Haible  <bruno@clisp.org>
70620
70621         * modules/c-ctype-tests: New file.
70622         * tests/test-c-ctype.c: New file.
70623
70624 2007-01-14  Bruno Haible  <bruno@clisp.org>
70625
70626         * modules/binary-io-tests: New file.
70627         * tests/test-binary-io.sh: New file.
70628         * tests/test-binary-io.c: New file.
70629
70630 2007-01-14  Bruno Haible  <bruno@clisp.org>
70631
70632         * modules/array-oset-tests: New file.
70633         * tests/test-array_oset.c: New file.
70634
70635 2007-01-14  Bruno Haible  <bruno@clisp.org>
70636
70637         * modules/array-list-tests: New file.
70638         * tests/test-array_list.c: New file.
70639
70640 2007-01-14  Bruno Haible  <bruno@clisp.org>
70641
70642         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70643         and make.
70644         Reported by Simon Josefsson in
70645         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70646
70647 2007-01-14  Bruno Haible  <bruno@clisp.org>
70648
70649         * modules/allocsa-tests: New file.
70650         * tests/test-allocsa.c: New file.
70651
70652 2007-01-14  Bruno Haible  <bruno@clisp.org>
70653
70654         * modules/fchdir (Depends-on): Add absolute-header.
70655         * modules/unistd (Depends-on): Likewise.
70656
70657 2006-12-30  Bruno Haible  <bruno@clisp.org>
70658
70659         * modules/fchdir: New file.
70660         * modules/unistd (Files): Add lib/unistd_.h.
70661         (Makefile.am): Generate unistd.h from unistd_.h.
70662         * lib/fchdir.c: New file.
70663         * lib/dirent_.h: New file.
70664         * lib/unistd_.h: New file.
70665         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70666         * m4/fchdir.m4: New file.
70667         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70668         (gl_HEADER_UNISTD): Invoke it.
70669         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70670         function.
70671         * lib/backupfile.c (opendir, closedir): Undefine.
70672         * lib/chown.c (open, close): Undefine.
70673         * lib/clean-temp.c (open, close): Undefine.
70674         * lib/copy-file.c (open, close): Undefine.
70675         * lib/execute.c (open, close): Undefine.
70676         * lib/fsusage.c (open, close): Undefine.
70677         * lib/gc-gnulib.c (open, close): Undefine.
70678         * lib/getcwd.c (opendir, closedir): Undefine.
70679         * lib/glob.c (opendir, closedir): Undefine.
70680         * lib/javacomp.c (open, close): Undefine.
70681         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70682         * lib/openat-proc.c (open, close): Undefine.
70683         * lib/pagealign_alloc.c (open, close): Undefine.
70684         * lib/pipe.c (open, close): Undefine.
70685         * lib/progreloc.c (open, close): Undefine.
70686         * lib/savedir.c (opendir, closedir): Undefine.
70687         * lib/utime.c (open, close): Undefine.
70688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70689
70690 2007-01-10  Bruno Haible  <bruno@clisp.org>
70691
70692         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70693
70694 2007-01-12  Eric Blake  <ebb9@byu.net>
70695
70696         Provide a robust <wchar.h>.  Further simplifications are now
70697         possible in other modules, but not included here.
70698         * modules/wchar: New module.
70699         * m4/wchar.m4: New file.
70700         * lib/wchar_.h: Likewise.
70701         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70702         of the new module.
70703         * MODULES.html.sh (Extended multibyte and wide character utilities):
70704         New section.
70705
70706 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70707
70708         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70709         to a reasonable default for memory allocation.
70710         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70711         file system that reports garbage st_size values for symlinks.
70712         Problem reported by Liyang Hu.
70713
70714 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70715
70716         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70717         Emacs .#* auto-save files).
70718
70719 2007-01-11  Bruno Haible  <bruno@clisp.org>
70720
70721         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70722         directory.
70723
70724 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70725
70726         Use @...@ consistently in lib/wctype_.h.
70727         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70728         on it being set to 1 or 0.
70729         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70730         go back to AC_SUBSTing it.
70731         * modules/wctype (Makefile.am): Undo previous change.
70732
70733 2007-01-10  Eric Blake  <ebb9@byu.net>
70734
70735         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70736         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70737         * modules/wctype (Makefile.am): Likewise.
70738         Reported by Chris McGuire.
70739
70740 2007-01-10  Jim Meyering  <jim@meyering.net>
70741
70742         fts.c: a small readability/maintainability improvement
70743         * lib/fts.c (fts_read): Make this code slightly more readable and
70744         maintainable by hoisting the "sp->fts_cur = p" assignments to
70745         immediately follow the statements that set P.  Derived from
70746         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70747
70748 2007-01-10  Eric Blake  <ebb9@byu.net>
70749
70750         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70751         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70752         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70753         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70754         Reported by Chris McGuire.
70755
70756 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70757
70758         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70759         in sed script.
70760
70761 2007-01-09  Bruno Haible  <bruno@clisp.org>
70762
70763         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70764         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70765         variables.
70766         (func_module): Use them.
70767
70768 2007-01-09  Bruno Haible  <bruno@clisp.org>
70769
70770         * modules/unistr/base: New file.
70771         * lib/unistr.h: New file.
70772
70773         * modules/unistr/u8-to-u16: New file.
70774         * lib/unistr/u8-to-u16.c: New file.
70775
70776         * modules/unistr/u8-to-u32: New file.
70777         * lib/unistr/u8-to-u32.c: New file.
70778
70779         * modules/unistr/u16-to-u8: New file.
70780         * lib/unistr/u16-to-u8.c: New file.
70781
70782         * modules/unistr/u16-to-u32: New file.
70783         * lib/unistr/u16-to-u32.c: New file.
70784
70785         * modules/unistr/u32-to-u8: New file.
70786         * lib/unistr/u32-to-u8.c: New file.
70787
70788         * modules/unistr/u32-to-u16: New file.
70789         * lib/unistr/u32-to-u16.c: New file.
70790
70791         * modules/unistr/u8-check: New file.
70792         * modules/unistr/u16-check: New file.
70793         * modules/unistr/u32-check: New file.
70794         * lib/unistr/u8-check.c: New file.
70795         * lib/unistr/u16-check.c: New file.
70796         * lib/unistr/u32-check.c: New file.
70797
70798         * modules/unistr/u8-chr: New file.
70799         * modules/unistr/u16-chr: New file.
70800         * modules/unistr/u32-chr: New file.
70801         * lib/unistr/u8-chr.c: New file.
70802         * lib/unistr/u16-chr.c: New file.
70803         * lib/unistr/u32-chr.c: New file.
70804
70805         * modules/unistr/u8-cmp: New file.
70806         * modules/unistr/u16-cmp: New file.
70807         * modules/unistr/u32-cmp: New file.
70808         * lib/unistr/u8-cmp.c: New file.
70809         * lib/unistr/u16-cmp.c: New file.
70810         * lib/unistr/u32-cmp.c: New file.
70811
70812         * modules/unistr/u8-cpy: New file.
70813         * modules/unistr/u16-cpy: New file.
70814         * modules/unistr/u32-cpy: New file.
70815         * lib/unistr/u8-cpy.c: New file.
70816         * lib/unistr/u16-cpy.c: New file.
70817         * lib/unistr/u32-cpy.c: New file.
70818         * lib/unistr/u-cpy.h: New file.
70819
70820         * modules/unistr/u8-cpy-alloc: New file.
70821         * modules/unistr/u16-cpy-alloc: New file.
70822         * modules/unistr/u32-cpy-alloc: New file.
70823         * lib/unistr/u8-cpy-alloc.c: New file.
70824         * lib/unistr/u16-cpy-alloc.c: New file.
70825         * lib/unistr/u32-cpy-alloc.c: New file.
70826         * lib/unistr/u-cpy-alloc.h: New file.
70827
70828         * modules/unistr/u8-endswith: New file.
70829         * modules/unistr/u16-endswith: New file.
70830         * modules/unistr/u32-endswith: New file.
70831         * lib/unistr/u8-endswith.c: New file.
70832         * lib/unistr/u16-endswith.c: New file.
70833         * lib/unistr/u32-endswith.c: New file.
70834         * lib/unistr/u-endswith.h: New file.
70835
70836         * modules/unistr/u8-mblen: New file.
70837         * modules/unistr/u16-mblen: New file.
70838         * modules/unistr/u32-mblen: New file.
70839         * lib/unistr/u8-mblen.c: New file.
70840         * lib/unistr/u16-mblen.c: New file.
70841         * lib/unistr/u32-mblen.c: New file.
70842
70843         * modules/unistr/u8-mbtouc: New file.
70844         * modules/unistr/u16-mbtouc: New file.
70845         * modules/unistr/u32-mbtouc: New file.
70846         * lib/unistr/u8-mbtouc.c: New file.
70847         * lib/unistr/u16-mbtouc.c: New file.
70848         * lib/unistr/u32-mbtouc.c: New file.
70849
70850         * modules/unistr/u8-mbtouc-safe: New file.
70851         * modules/unistr/u16-mbtouc-safe: New file.
70852         * modules/unistr/u32-mbtouc-safe: New file.
70853         * lib/unistr/u8-mbtouc-safe.c: New file.
70854         * lib/unistr/u16-mbtouc-safe.c: New file.
70855         * lib/unistr/u32-mbtouc-safe.c: New file.
70856
70857         * modules/unistr/u8-move: New file.
70858         * modules/unistr/u16-move: New file.
70859         * modules/unistr/u32-move: New file.
70860         * lib/unistr/u8-move.c: New file.
70861         * lib/unistr/u16-move.c: New file.
70862         * lib/unistr/u32-move.c: New file.
70863         * lib/unistr/u-move.h: New file.
70864
70865         * modules/unistr/u8-next: New file.
70866         * modules/unistr/u16-next: New file.
70867         * modules/unistr/u32-next: New file.
70868         * lib/unistr/u8-next.c: New file.
70869         * lib/unistr/u16-next.c: New file.
70870         * lib/unistr/u32-next.c: New file.
70871
70872         * modules/unistr/u8-prev: New file.
70873         * modules/unistr/u16-prev: New file.
70874         * modules/unistr/u32-prev: New file.
70875         * lib/unistr/u8-prev.c: New file.
70876         * lib/unistr/u16-prev.c: New file.
70877         * lib/unistr/u32-prev.c: New file.
70878
70879         * modules/unistr/u8-set: New file.
70880         * modules/unistr/u16-set: New file.
70881         * modules/unistr/u32-set: New file.
70882         * lib/unistr/u8-set.c: New file.
70883         * lib/unistr/u16-set.c: New file.
70884         * lib/unistr/u32-set.c: New file.
70885         * lib/unistr/u-set.h: New file.
70886
70887         * modules/unistr/u8-startswith: New file.
70888         * modules/unistr/u16-startswith: New file.
70889         * modules/unistr/u32-startswith: New file.
70890         * lib/unistr/u8-startswith.c: New file.
70891         * lib/unistr/u16-startswith.c: New file.
70892         * lib/unistr/u32-startswith.c: New file.
70893         * lib/unistr/u-startswith.h: New file.
70894
70895         * modules/unistr/u8-stpcpy: New file.
70896         * modules/unistr/u16-stpcpy: New file.
70897         * modules/unistr/u32-stpcpy: New file.
70898         * lib/unistr/u8-stpcpy.c: New file.
70899         * lib/unistr/u16-stpcpy.c: New file.
70900         * lib/unistr/u32-stpcpy.c: New file.
70901         * lib/unistr/u-stpcpy.h: New file.
70902
70903         * modules/unistr/u8-stpncpy: New file.
70904         * modules/unistr/u16-stpncpy: New file.
70905         * modules/unistr/u32-stpncpy: New file.
70906         * lib/unistr/u8-stpncpy.c: New file.
70907         * lib/unistr/u16-stpncpy.c: New file.
70908         * lib/unistr/u32-stpncpy.c: New file.
70909         * lib/unistr/u-stpncpy.h: New file.
70910
70911         * modules/unistr/u8-strcat: New file.
70912         * modules/unistr/u16-strcat: New file.
70913         * modules/unistr/u32-strcat: New file.
70914         * lib/unistr/u8-strcat.c: New file.
70915         * lib/unistr/u16-strcat.c: New file.
70916         * lib/unistr/u32-strcat.c: New file.
70917         * lib/unistr/u-strcat.h: New file.
70918
70919         * modules/unistr/u8-strchr: New file.
70920         * modules/unistr/u16-strchr: New file.
70921         * modules/unistr/u32-strchr: New file.
70922         * lib/unistr/u8-strchr.c: New file.
70923         * lib/unistr/u16-strchr.c: New file.
70924         * lib/unistr/u32-strchr.c: New file.
70925
70926         * modules/unistr/u8-strcmp: New file.
70927         * modules/unistr/u16-strcmp: New file.
70928         * modules/unistr/u32-strcmp: New file.
70929         * lib/unistr/u8-strcmp.c: New file.
70930         * lib/unistr/u16-strcmp.c: New file.
70931         * lib/unistr/u32-strcmp.c: New file.
70932
70933         * modules/unistr/u8-strcpy: New file.
70934         * modules/unistr/u16-strcpy: New file.
70935         * modules/unistr/u32-strcpy: New file.
70936         * lib/unistr/u8-strcpy.c: New file.
70937         * lib/unistr/u16-strcpy.c: New file.
70938         * lib/unistr/u32-strcpy.c: New file.
70939         * lib/unistr/u-strcpy.h: New file.
70940
70941         * modules/unistr/u8-strcspn: New file.
70942         * modules/unistr/u16-strcspn: New file.
70943         * modules/unistr/u32-strcspn: New file.
70944         * lib/unistr/u8-strcspn.c: New file.
70945         * lib/unistr/u16-strcspn.c: New file.
70946         * lib/unistr/u32-strcspn.c: New file.
70947         * lib/unistr/u-strcspn.h: New file.
70948
70949         * modules/unistr/u8-strdup: New file.
70950         * modules/unistr/u16-strdup: New file.
70951         * modules/unistr/u32-strdup: New file.
70952         * lib/unistr/u8-strdup.c: New file.
70953         * lib/unistr/u16-strdup.c: New file.
70954         * lib/unistr/u32-strdup.c: New file.
70955         * lib/unistr/u-strdup.h: New file.
70956
70957         * modules/unistr/u8-strlen: New file.
70958         * modules/unistr/u16-strlen: New file.
70959         * modules/unistr/u32-strlen: New file.
70960         * lib/unistr/u8-strlen.c: New file.
70961         * lib/unistr/u16-strlen.c: New file.
70962         * lib/unistr/u32-strlen.c: New file.
70963         * lib/unistr/u-strlen.h: New file.
70964
70965         * modules/unistr/u8-strmblen: New file.
70966         * modules/unistr/u16-strmblen: New file.
70967         * modules/unistr/u32-strmblen: New file.
70968         * lib/unistr/u8-strmblen.c: New file.
70969         * lib/unistr/u16-strmblen.c: New file.
70970         * lib/unistr/u32-strmblen.c: New file.
70971
70972         * modules/unistr/u8-strmbtouc: New file.
70973         * modules/unistr/u16-strmbtouc: New file.
70974         * modules/unistr/u32-strmbtouc: New file.
70975         * lib/unistr/u8-strmbtouc.c: New file.
70976         * lib/unistr/u16-strmbtouc.c: New file.
70977         * lib/unistr/u32-strmbtouc.c: New file.
70978
70979         * modules/unistr/u8-strncat: New file.
70980         * modules/unistr/u16-strncat: New file.
70981         * modules/unistr/u32-strncat: New file.
70982         * lib/unistr/u8-strncat.c: New file.
70983         * lib/unistr/u16-strncat.c: New file.
70984         * lib/unistr/u32-strncat.c: New file.
70985         * lib/unistr/u-strncat.h: New file.
70986
70987         * modules/unistr/u8-strncmp: New file.
70988         * modules/unistr/u16-strncmp: New file.
70989         * modules/unistr/u32-strncmp: New file.
70990         * lib/unistr/u8-strncmp.c: New file.
70991         * lib/unistr/u16-strncmp.c: New file.
70992         * lib/unistr/u32-strncmp.c: New file.
70993
70994         * modules/unistr/u8-strncpy: New file.
70995         * modules/unistr/u16-strncpy: New file.
70996         * modules/unistr/u32-strncpy: New file.
70997         * lib/unistr/u8-strncpy.c: New file.
70998         * lib/unistr/u16-strncpy.c: New file.
70999         * lib/unistr/u32-strncpy.c: New file.
71000         * lib/unistr/u-strncpy.h: New file.
71001
71002         * modules/unistr/u8-strnlen: New file.
71003         * modules/unistr/u16-strnlen: New file.
71004         * modules/unistr/u32-strnlen: New file.
71005         * lib/unistr/u8-strnlen.c: New file.
71006         * lib/unistr/u16-strnlen.c: New file.
71007         * lib/unistr/u32-strnlen.c: New file.
71008         * lib/unistr/u-strnlen.h: New file.
71009
71010         * modules/unistr/u8-strpbrk: New file.
71011         * modules/unistr/u16-strpbrk: New file.
71012         * modules/unistr/u32-strpbrk: New file.
71013         * lib/unistr/u8-strpbrk.c: New file.
71014         * lib/unistr/u16-strpbrk.c: New file.
71015         * lib/unistr/u32-strpbrk.c: New file.
71016         * lib/unistr/u-strpbrk.h: New file.
71017
71018         * modules/unistr/u8-strrchr: New file.
71019         * modules/unistr/u16-strrchr: New file.
71020         * modules/unistr/u32-strrchr: New file.
71021         * lib/unistr/u8-strrchr.c: New file.
71022         * lib/unistr/u16-strrchr.c: New file.
71023         * lib/unistr/u32-strrchr.c: New file.
71024
71025         * modules/unistr/u8-strspn: New file.
71026         * modules/unistr/u16-strspn: New file.
71027         * modules/unistr/u32-strspn: New file.
71028         * lib/unistr/u8-strspn.c: New file.
71029         * lib/unistr/u16-strspn.c: New file.
71030         * lib/unistr/u32-strspn.c: New file.
71031         * lib/unistr/u-strspn.h: New file.
71032
71033         * modules/unistr/u8-strstr: New file.
71034         * modules/unistr/u16-strstr: New file.
71035         * modules/unistr/u32-strstr: New file.
71036         * lib/unistr/u8-strstr.c: New file.
71037         * lib/unistr/u16-strstr.c: New file.
71038         * lib/unistr/u32-strstr.c: New file.
71039         * lib/unistr/u-strstr.h: New file.
71040
71041         * modules/unistr/u8-strtok: New file.
71042         * modules/unistr/u16-strtok: New file.
71043         * modules/unistr/u32-strtok: New file.
71044         * lib/unistr/u8-strtok.c: New file.
71045         * lib/unistr/u16-strtok.c: New file.
71046         * lib/unistr/u32-strtok.c: New file.
71047         * lib/unistr/u-strtok.h: New file.
71048
71049         * modules/unistr/u8-uctomb: New file.
71050         * modules/unistr/u16-uctomb: New file.
71051         * modules/unistr/u32-uctomb: New file.
71052         * lib/unistr/u8-uctomb.c: New file.
71053         * lib/unistr/u16-uctomb.c: New file.
71054         * lib/unistr/u32-uctomb.c: New file.
71055
71056         * MODULES.html.sh (Unicode string functions): Add the new modules.
71057
71058 2007-01-08  Bruno Haible  <bruno@clisp.org>
71059
71060         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71061         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71062         subdirectories.
71063
71064 2007-01-08  Karl Berry  <karl@gnu.org>
71065
71066         * doc/error.texi: mention that main() fns must set program_name
71067         when progname is used.
71068
71069 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71070
71071         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71072         WCTYPE_H is empty, for the benefit of builds from non-distclean
71073         directories.  Problem reported by Eric Blake in
71074         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71075
71076 2007-01-08  Bruno Haible  <bruno@clisp.org>
71077
71078         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71079         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71080         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71081         PROVIDE_CANONICALIZE_FILENAME_MODE.
71082         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71083
71084 2007-01-08  Bruno Haible  <bruno@clisp.org>
71085
71086         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71087         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71088         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71089         * lib/fts.c: Likewise.
71090         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71091
71092 2006-12-25  Bruno Haible  <bruno@clisp.org>
71093
71094         * modules/utf8-ucs4-safe: New file.
71095         * lib/utf8-ucs4-safe.h: New file.
71096         * lib/unistr/utf8-ucs4-safe.c: New file.
71097
71098         * modules/utf16-ucs4-safe: New file.
71099         * lib/utf16-ucs4-safe.h: New file.
71100         * lib/unistr/utf16-ucs4-safe.c: New file.
71101
71102         * MODULES.html.sh (Unicode string functions): Add the new modules.
71103
71104 2007-01-08  Bruno Haible  <bruno@clisp.org>
71105
71106         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71107         (Depends-on): Add unitypes.
71108         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71109         (u8_mbtouc_aux): Move out to separate file.
71110         (u8_mbtouc): Use ucs4_t, uint8_t types.
71111         * lib/unistr/utf8-ucs4.c: New file.
71112
71113         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71114         (Depends-on): Add unitypes.
71115         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71116         (u16_mbtouc_aux): Move out to separate file.
71117         (u16_mbtouc): Use ucs4_t, uint16_t types.
71118         * lib/unistr/utf16-ucs4.c: New file.
71119
71120         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71121         (Depends-on): Add unitypes.
71122         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71123         (u8_uctomb_aux): Move out to separate file.
71124         (u8_uctomb): Use ucs4_t, uint8_t types.
71125         * lib/unistr/ucs4-utf8.c: New file.
71126
71127         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71128         (Depends-on): Add unitypes.
71129         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71130         (u16_uctomb_aux): Move out to separate file.
71131         (u16_uctomb): Use ucs4_t, uint16_t types.
71132         * lib/unistr/ucs4-utf16.c: New file.
71133
71134 2006-12-25  Bruno Haible  <bruno@clisp.org>
71135
71136         * modules/unitypes: New file.
71137         * lib/unitypes.h: New file.
71138         * MODULES.html.sh (func_all_modules): New section "Unicode string
71139         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71140         this section. Add unitypes.
71141
71142 2007-01-08  Bruno Haible  <bruno@clisp.org>
71143
71144         Avoid variable names that conflict with those from libtool.
71145         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71146         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71147         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71148         library_names_spec to acl_library_names_spec, hardcode_* to
71149         acl_hardcode_*.
71150         Reported by Ralf Wildenhues.
71151
71152 2007-01-08  Bruno Haible  <bruno@clisp.org>
71153
71154         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71155         definition.
71156         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71157         definition.
71158         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71159         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71160         definition.
71161         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71162         definition.
71163         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71164         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71165         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71166         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71167         definition.
71168         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71169         definition.
71170         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71171         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71172         GC_USE_<algorithm>.
71173         * lib/gc-libgcrypt.c: Likewise.
71174         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71175         * modules/gc-arctwo (configure.ac): Likewise.
71176         * modules/gc-des (configure.ac): Likewise.
71177         * modules/gc-hmac-md5 (configure.ac): Likewise.
71178         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71179         * modules/gc-md2 (configure.ac): Likewise.
71180         * modules/gc-md4 (configure.ac): Likewise.
71181         * modules/gc-md5 (configure.ac): Likewise.
71182         * modules/gc-random (configure.ac): Likewise.
71183         * modules/gc-rijndael (configure.ac): Likewise.
71184         * modules/gc-sha1 (configure.ac): Likewise.
71185
71186 2007-01-08  Bruno Haible  <bruno@clisp.org>
71187
71188         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71189         macro definition.
71190         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71191         definition.
71192         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71193         definition.
71194         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71195         * modules/fcntl-safer (configure.ac): Likewise.
71196         * modules/fopen-safer (configure.ac): Likewise.
71197         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71198         GNULIB_FWRITEERROR macro definition.
71199
71200 2007-01-08  Bruno Haible  <bruno@clisp.org>
71201
71202         * m4/gnulib-common.m4: New file.
71203         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71204         (func_get_filelist): Add m4/gnulib-common.m4.
71205
71206 2007-01-08  Bruno Haible  <bruno@clisp.org>
71207
71208         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71209         command.
71210
71211 2007-01-08  Jim Meyering  <jim@meyering.net>
71212
71213         Use a more robust test for a "can't happen" condition.
71214         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71215         narrowed the st_size value.  Presuming the "can't happen" condition
71216         is true, that narrowing could conceivably convert an invalid st_size
71217         value into a valid one.  Instead, use a change based on Matthew
71218         Woehlke's original patch.
71219
71220         Slight readability improvement: use an assert-like macro
71221         in place of literal "abort ()" uses.
71222         * lib/fts.c (fts_assert): Define.
71223         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71224         Use this macro instead of a bare 'abort'.
71225
71226 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71229         simply work around them.
71230         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71231         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71232         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71233         declaring.
71234         Don't bother to define as macros, since the standard doesn't require it.
71235         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71236         longer worry about IRIX 5.3.
71237         (HAVE_WCTYPE_CTMP_BUG): Remove.
71238
71239 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71240
71241         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71242         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71243         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71244         Problems reported by Georg Schwarz for IRIX 5.3.
71245
71246         * gnulib-tool (autoconf_minversion): Take the maximum version number
71247         found, not the minimum.  Problem reported by James Youngman.
71248
71249 2007-01-03  Karl Berry  <karl@gnu.org>
71250
71251         * doc/error.texi: new file, explaining interaction with progname.
71252         * doc/gnulib.texi: include it.  Update copyright.
71253
71254 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71255
71256         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71257         AC_CANONICAL_HOST, to improve autobuild outputs.
71258
71259 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71260             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71261
71262         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71263         sockets, server sockets, and other file descriptors.  Count errors
71264         to compute the return value.  Reorder the code a bit to be easier
71265         to follow.  Don't set event bits that were not requested (except
71266         POLLERR and POLLHUP).
71267
71268 2007-01-01  Bruno Haible  <bruno@clisp.org>
71269
71270         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71271
71272 2007-01-03  Jim Meyering  <jim@meyering.net>
71273
71274         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71275
71276 2007-01-02  Bruno Haible  <bruno@clisp.org>
71277
71278         * modules/settime (Include): Require timespec.h.
71279         * modules/nanosleep (Include): Likewise.
71280
71281 2007-01-01  Bruno Haible  <bruno@clisp.org>
71282
71283         * gnulib-tool (func_emit_copyright_notice): Bump year.
71284         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71285
71286 2007-01-01  Bruno Haible  <bruno@clisp.org>
71287
71288         Improve support for OpenBSD.
71289         * build-aux/config.rpath (libname_spec): Export.
71290         (library_names_spec): New variable. Export.
71291         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71292         library_names_spec from the config.rpath output. Locate shared library
71293         through the name pattern in library_names_spec.
71294
71295 2007-01-01  Eric Blake  <ebb9@byu.net>
71296
71297         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71298
71299 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71302         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71303         assume the C locale, and avoid an "eval" that could cause trouble.
71304         Problem with SORT reported by Bob Proulx.
71305
71306         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71307         Define.  Trivial patch from Henning Nielsen Lund, originally
71308         sent to bug-grep@gnu.org today.
71309
71310 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71313         struct stat.  Problem reported by Henning Nielsen Lund.
71314         * lib/acl.c: Include acl.h first, to check interface.  Don't
71315         bother to include sys/types.h and sys/stat.h again.
71316
71317 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         Import the following change from libc; problem reported by
71320         Sven Verdoolaege.
71321
71322         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71323
71324         [BZ #1373]
71325         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71326
71327 2006-12-28  Jim Meyering  <jim@meyering.net>
71328
71329         * build-aux/announce-gen: Do not assume that the package
71330         builds any of tar.gz, tar.bz2, and .xdelta files.
71331         Suggestion from Simon Josefsson.
71332
71333 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71334
71335         * modules/announce-gen: New file.
71336
71337 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71340         handles its gotchas now.
71341         * lib/mbswidth.c: Likewise.
71342         * lib/wcwidth.h: Likewise.
71343         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71344         and iswcntrl; the wctype module does this stuff now.
71345         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71347         * modules/mbchar (Depends-on): Add wctype.
71348         * modules/mbswidth (Depends-on): Likewise.
71349         * modules/wcwidth (Depends-on): Likewise.
71350
71351 2006-12-27  Eric Blake  <ebb9@byu.net>
71352
71353         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71354         module uses more than what <wctype.h> is required to provide.
71355
71356 2006-12-26  Eric Blake  <ebb9@byu.net>
71357
71358         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71359
71360 2006-12-26  Eric Blake  <ebb9@byu.net>
71361
71362         * modules/absolute-header: New module.
71363         * modules/fcntl (Depends-on): Depend on it.
71364         * modules/inttypes (Depends-on): Likewise.
71365         * modules/stdint (Depends-on): Likewise.
71366         * modules/sys_stat (Depends-on): Likewise.
71367         * modules/wctype (Depends-on): Likewise.
71368         * MODULES.html.sh (Support for building libraries and
71369         executables): Document it.
71370
71371 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71372
71373         * gnulib-tool (SED): Remove, undoing previous change.
71374         The problem was that it broke coreutils on Solaris, because
71375         "sed --posix" leaked into a makefile.
71376         (sed): New alias, if 'alias' and GNU sed.
71377
71378 2006-12-24  Jim Meyering  <jim@meyering.net>
71379
71380         Work around an fchownat bug in glibc-2.4:
71381         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71382         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71383         in spite of the -P option.
71384         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71385         New macros.
71386         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71387         * modules/openat (Files): Add lib/fchownat.c.
71388         * lib/openat.c (fchownat): Don't define here.  Move to...
71389         * lib/fchownat.c: ...this new file.
71390
71391 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71392
71393         Fix bug reported by Bruno Haible in
71394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71395         where quotearg.c didn't compile on Mac OS X 10.2 because it
71396         lacks <wchar.h> and wint_t.
71397         * lib/wctype_.h (__wctype_wint_t): New type.
71398         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71399         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71400         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71401         Arg is now of type __wctype_wint_t, not wint_t.
71402         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71403         substitute HAVE_WINT_T.
71404         * modules/wctype (Files): Add m4/wint_t.m4.
71405         (wctype.h): Substitute HAVE_WINT_T.
71406
71407 2006-12-23  Bruno Haible  <bruno@clisp.org>
71408
71409         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71410
71411 2006-12-23  Bruno Haible  <bruno@clisp.org>
71412
71413         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71414         S_ISLNK.
71415         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71416         mingw.
71417
71418 2006-12-22  Bruno Haible  <bruno@clisp.org>
71419
71420         * lib/copy-file.c: Include acl.h.
71421         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71422         Close the file descriptors only after being done with copy_acl.
71423         * modules/copy-file (Depends-on): Add acl.
71424
71425 2006-12-22  Bruno Haible  <bruno@clisp.org>
71426
71427         * gnulib-tool (SED): New variable.
71428         Use $SED instead of sed everywhere.
71429
71430 2006-12-22  Bruno Haible  <bruno@clisp.org>
71431
71432         * modules/no-c++: New file.
71433         * m4/no-c++.m4: New file.
71434         * MODULES.html.sh (Support for building libraries and executables):
71435         Add no-c++.
71436
71437 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71440         Include <limits.h>, and use its INT_MAX to rewrite the
71441         j loop so that it does not overflow 'int'.  Problem reported by
71442         Ralf Wildenhues in
71443         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71444         Play it safe by shifting left by 1 rather than multiplying by 2,
71445         as GCC is less likely to optimize this away when the value
71446         is signed (when it assumes overflow leads to undefined behavior).
71447         Also, don't assume time_t uses two's complement.
71448
71449 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71450
71451         * MODULES.html.sh: New module wctype.
71452         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71453         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71454         <wctype.h>, since the new wctype module should fix this.
71455         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71456         the wctype module should arrange for it.
71457         * lib/regex_internal.h: Likewise.
71458         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71459         since the wctype module should handle this now.
71460         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71461         * modules/fnmatch (Depends-on): Add wctype.
71462         * modules/quotearg (Depends-on): Likewise.
71463         * modules/regex (Depends-on): Likewise.
71464
71465 2006-12-19  Bruno Haible  <bruno@clisp.org>
71466
71467         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71468         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71469
71470 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71471
71472         * modules/savewd (Depends-on): Fix dependency on fcntl.
71473
71474 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71475
71476         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71477         conforms to C99, rather than relying on the user's environment
71478         setting of STDINT_H.
71479
71480 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71481         and Eric Blake  <ebb9@byu.net>
71482
71483         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71484         This is more consistent with the other defines here.
71485         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71486         Port to z/OS.  Problem reported by Paul Gilmartin.
71487         Change local vars to use gl_ prefix rather than ac_.
71488         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71489         with other defines.
71490         * modules/double-slash-root: New module.
71491         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71492         (Depends-on): Add double-slash-root.
71493         * MODULES.html.sh (File system functions): Mention new module.
71494
71495 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71498         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71499         This is for the benefit of gzip, which doesn't do i18n.
71500
71501 2006-12-12  Jim Meyering  <jim@meyering.net>
71502
71503         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71504         Reported by Andreas Schwab <schwab@suse.de>.
71505
71506 2006-12-12  Bruno Haible  <bruno@clisp.org>
71507
71508         Merge these changes.
71509         2006-09-05  Bruno Haible  <bruno@clisp.org>
71510         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71511         iconv_alloc succeeded.
71512         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71513         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71514         test for " && dest " at the end - dest is always != NULL there. Call
71515         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71516         with 2xNULL arguments, also to flush the state storage. Handle the
71517         IRIX iconv behaviour. Realloc the final result, to throw away unused
71518         memory.
71519
71520 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71523         and fchmodat unconditionally, since glibc 2.4 has them.
71524         Problem reported by Arkadiusz Miskiewicz.
71525
71526 2006-12-10  Bruno Haible  <bruno@clisp.org>
71527
71528         * gnulib-tool (func_import): Show the include files only for those
71529         modules that are copied and specified.
71530         Reported by Karl Berry.
71531
71532 2006-12-08  Jim Meyering  <jim@meyering.net>
71533
71534         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71535         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71536
71537         * build-aux/announce-gen: Add two new options, both optional:
71538         --bootstrap-tools=TOOL_LIST
71539               a comma-separated list of tools, e.g.,
71540               autoconf,automake,bison,gnulib
71541         --gnulib-snapshot-date=DATE
71542               if gnulib is in the bootstrap tool list,
71543               then report this as the snapshot date.
71544               If not specified, use the current date/time.
71545               If you specify a date here, be sure it's UTC.
71546
71547 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71548
71549         * tests/test-argp-2.sh: Fix test to match actual output.
71550         (func_compare): Fix sed script to be portable.
71551
71552 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71553
71554         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71555         workaround for this case.  It is not autoconfigured now; offhand
71556         it's hard to see how to autoconfigure it.
71557
71558 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71561         a directory that is about to be chowned.  Such a directory's
71562         initial file permissions should permit the owner only and this
71563         should not be changed until after the chown, since the group and
71564         other bits would be incorrect if they granted permission before
71565         the chown.
71566
71567         Fix porting problem for iswctype reported by Georg Schwarz in:
71568         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71569         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71570         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71571         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71572         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71573
71574 2006-12-03  Jim Meyering  <jim@meyering.net>
71575
71576         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71577         p->fts_statp may not yet be defined.
71578         (fts_read): Instead, set it in the caller, once p->fts_statp is
71579         sure to be defined, and corresponds to a top-level directory.
71580         This bug made du -x fail.  Here's the coreutils test case:
71581         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71582         Reported by Mike Frysinger.
71583
71584 2006-12-01  Jim Meyering  <jim@meyering.net>
71585
71586         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71587         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71588         Reported by Simon Josefsson.
71589
71590 2006-11-30  Jim Meyering  <jim@meyering.net>
71591
71592         * m4/warning.m4: Use the all-permissive copyright notice
71593         recommended by RMS (rather than LGPL).
71594         * m4/vararrays.m4: Likewise.
71595         * m4/flexmember.m4: Likewise.
71596
71597 2006-11-29  Bruno Haible  <bruno@clisp.org>
71598
71599         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71600         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71601         using +=.
71602         Reported by Simon Josefsson <simon@josefsson.org>.
71603
71604 2006-11-28  James Youngman <jay@gnu.org>
71605
71606         * README: Advise users that they might find the bug-gnulib@gnu.org
71607         and autotools-announce@gnu.org mailing lists useful.
71608
71609 2006-11-28  Bruno Haible  <bruno@clisp.org>
71610
71611         * m4/ptrdiff_max.m4: Remove file.
71612
71613 2006-11-21  Bruno Haible  <bruno@clisp.org>
71614
71615         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71616         _AC_COMPUTE_INT.
71617         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71618         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71619         _AC_COMPUTE_INT.
71620         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71621         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71622         _AC_COMPUTE_INT.
71623         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71624
71625 2006-11-28  Jim Meyering  <jim@meyering.net>
71626
71627         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71628         warning from "gcc -Wshadow" about shadowing the builtin.
71629
71630 2006-11-27  Bruno Haible  <bruno@clisp.org>
71631
71632         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71633         _AC_COMPUTE_INT.
71634         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71635
71636 2006-11-27  Bruno Haible  <bruno@clisp.org>
71637             Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71640
71641 2006-11-26  Bruno Haible  <bruno@clisp.org>
71642
71643         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71644         noinst_LTLIBRARIES.
71645
71646 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71647             Bruno Haible  <bruno@clisp.org>
71648
71649         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71650         if compiling with "gcc -ansi".
71651
71652 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71653
71654         Fix some incompatibilities with gcc -ansi -pedantic.
71655         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71656         if compiling pedantically with GCC, unless it's C99 or later.
71657         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71658         it mishandles gcc -ansi -pedantic as well.
71659         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71660         if gcc -pedantic.
71661         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71662         initializers for struct if -pedantic, unless it's C99 or later.
71663
71664 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71665
71666         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71667         Don't close an fd more than once. Identical atimes indicate
71668         success, not failure.
71669
71670 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71671
71672         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71673
71674 2006-11-23  Jim Meyering  <jim@meyering.net>
71675
71676         * build-aux/announce-gen: New file.  From coreutils.
71677
71678 2006-11-22  Jim Meyering  <jim@meyering.net>
71679
71680         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71681         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71682         (fts_read): Use a temporary to narrow the overused st_size member
71683         before using it in a switch statement.  Reported by Matthew Woehlke.
71684
71685         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71686         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71687
71688 2006-11-20  Bruno Haible  <bruno@clisp.org>
71689
71690         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71691         changequote instead of pairs of brackets.
71692         Reported by Andreas Schwab <schwab@suse.de>.
71693
71694 2006-11-21  Jim Meyering  <jim@meyering.net>
71695
71696         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71697         so as to remain compatible with older compilers.
71698         Patch from Michael Deutschmann.
71699
71700 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71701
71702         * MODULES.html.sh (File system functions): Add openat.
71703
71704         * lib/openat.h (rpl_fstatat): New macro, if
71705         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71706         (fstatat): Define to rpl_fstatat under the same conditions,
71707         unless COMPILING_FSTATAT.
71708         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71709         seems to have the bug.
71710         * lib/fstatat.c: New file.
71711         * modules/openat (Files): Add it.
71712
71713 2006-11-20  Bruno Haible  <bruno@clisp.org>
71714
71715         * Makefile: New file.
71716
71717 2006-11-20  Jim Meyering  <jim@meyering.net>
71718
71719         The beginnings of syntax-related checks for gnulib.
71720         * lib/Makefile: New file.
71721         * lib/t-idcache: New script.  Ensure that the two halves of
71722         idcache.c stay in sync.
71723
71724         * lib/idcache.c: Adjust comments in user- and group- portions to
71725         be more accurate, and to be consistent with one another.
71726
71727 2006-11-20  Jim Meyering  <jim@meyering.net>
71728
71729         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71730         continue using the flexible array member (thus, this module performs
71731         half as many malloc calls), with the addition that...
71732         (getgroup, getuser): Consistently record a non-match via an empty
71733         "name" string, and map an empty string match to a NULL return value.
71734         * modules/idcache (Depends-on): Re-add flexmember.
71735
71736         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71737         (getuidbyname, getgroup, getgidbyname): Likewise.
71738
71739         Use cleaner syntax: NULL rather than 0.
71740         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71741
71742 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71745         It mishandled the case where the group was missing.
71746         Problem reported by Greg Schafer.
71747         * modules/idcache: Likewise.
71748
71749 2006-11-18  Jim Meyering  <jim@meyering.net>
71750
71751         * check-module (%exempt_header): Add exception for some
71752         conditionally-included headers.
71753
71754         * modules/i-ring (Depends-on): Add verify.
71755         (License): Change to LGPL.
71756
71757 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71758
71759         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71760         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71761         and inttostr.h.  Use snprintf rather than uinttostr, so that
71762         LGPLed code doesn't depend on GPLed.
71763
71764 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71765
71766         * modules/inline (License): Change from GPL to LGPL.
71767
71768 2006-11-17  Jim Meyering  <jim@meyering.net>
71769
71770         * modules/d-type (License): Switch to LGPL.
71771
71772 2006-11-15  Bruno Haible  <bruno@clisp.org>
71773
71774         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71775
71776 2006-11-15  Eric Blake  <ebb9@byu.net>
71777
71778         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71779         the module dependency.
71780
71781 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71782             Bruno Haible  <bruno@clisp.org>
71783
71784         * gnulib-tool (func_create_testdir): Add license consistency check.
71785
71786 2006-11-15  Eric Blake  <ebb9@byu.net>
71787
71788         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71789         random "(cached)" in configure output.
71790
71791 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71792
71793         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71794         test for conforming inttypes.h is both announced and cached.
71795
71796         * MODULES.html.sh (seen_modules, seen_files): New variables.
71797         (func_module): Rewrite to use a few less gnulib-tool and sed
71798         invocations.  Avoid a couple of quadratic algorithms for ...
71799         (missed_modules, missed_files): ... these, with ...
71800         (func_append, func_tmpdir): ... these new functions, from
71801         gnulib-tool.  Analogously, install traps for cleanup.
71802
71803         * tests/test-gc.c (main): Remove unused variables.
71804         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71805
71806 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71807
71808         * modules/inttostr (License): Change to LGPL.
71809
71810 2006-11-14  Eric Blake  <ebb9@byu.net>
71811
71812         * modules/tempname (License): Change to LGPL.
71813
71814 2006-11-14  Eric Blake  <ebb9@byu.net>
71815
71816         * doc/functions.texi (Function Portability): *printf functions on
71817         Cygwin now understand all POSIX size specifiers.
71818
71819 2006-11-14  Bruno Haible  <bruno@clisp.org>
71820
71821         * modules/c-ctype (License): Change to LGPL.
71822
71823 2006-11-12  Bruno Haible  <bruno@clisp.org>
71824
71825         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71826         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71827         for GNOME libraries, for which the include files are installed in
71828         subdirectories of $prefix/include.
71829
71830 2006-11-12  Bruno Haible  <bruno@clisp.org>
71831
71832         * m4/lib-link.m4: Require at least autoconf-2.54.
71833         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71834         name to underscores for the --with option.
71835
71836 2006-11-13  Bruno Haible  <bruno@clisp.org>
71837
71838         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71839         the tests directory.
71840         Reported by Ralf Wildenhues.
71841
71842 2006-11-13  Bruno Haible  <bruno@clisp.org>
71843
71844         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71845         (func_emit_initmacro_end): Undo the override here.
71846         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71847         Works around the famous automake error in coreutils.
71848
71849 2006-11-13  Eric Blake  <ebb9@byu.net>
71850
71851         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71852         element, not its node.
71853
71854 2006-11-12  Bruno Haible  <bruno@clisp.org>
71855
71856         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71857         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71858
71859 2006-11-12  Bruno Haible  <bruno@clisp.org>
71860
71861         * gnulib-tool: New option --local-symlink.
71862         (func_usage): Document it.
71863         (lsymbolic): New variable.
71864         (func_import, func_create_testdir): If --symlink was not specified,
71865         test whether --local-symlink was specified and the file comes from
71866         the local_gnulib_dir.
71867
71868 2006-11-12  Bruno Haible  <bruno@clisp.org>
71869
71870         * gnulib-tool (func_ln): New function.
71871         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71872
71873 2006-11-12  Bruno Haible  <bruno@clisp.org>
71874
71875         Finish support for source files in subdirectories.
71876         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71877         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71878         AUTOMAKE_OPTIONS.
71879         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71880
71881 2006-11-12  Bruno Haible  <bruno@clisp.org>
71882
71883         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71884         EXTRA_lib_SOURCES augmentation.
71885         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71886
71887 2006-11-12  Jim Meyering  <jim@meyering.net>
71888
71889         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71890         file descriptors.  This also averts a failure on systems with
71891         native openat support when a traversed directory lacks "x" access.
71892         * lib/fts_.h: Include "i-ring.h"
71893         (struct FTS) [fts_fd_ring]: New member.
71894         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71895         (FCHDIR): Add parentheses.
71896         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71897         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71898         When descending, rather than simply closing the previous
71899         fts_cwd_fd value, push that file descriptor onto the ring.
71900         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71901         (fts_open): Initialize the new fd_ring member.
71902         (fts_close): Clear the ring.
71903         (fts_safe_changedir): When possible, use our new fd_ring to skip
71904         the diropen and fstat and dev/ino comparison that would normally
71905         accompany a virtual `chdir ("..")'.
71906
71907         * modules/fts (Depends-on): Add i-ring.
71908         * modules/i-ring: New module.
71909         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71910         * m4/i-ring.m4: New file.
71911
71912 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71913
71914         * gnulib-tool (func_create_testdir): Fix replacement of
71915         `build-aux' in configure.ac.  Run autotools in gltests
71916         subdirectory.
71917         (func_create_testdir, func_create_megatestdir, test): There is
71918         no need for '--force' in most autotool invocations in a new
71919         tree.  Actually fail the whole test if any of the tools, or the
71920         configure or make stages fail.
71921
71922         Sync from Automake.
71923         * build-aux/gnupload: Revert last change.  Add pointer to upload
71924         instructions of the GNU Maintenance Instructions.
71925         Suggestion by Karl Berry.
71926
71927 2006-11-10  Jim Meyering  <jim@meyering.net>
71928
71929         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71930
71931 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71932
71933         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71934         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71935         (bind_textdomain_codeset) [! ENABLE_NLS]:
71936         Evaluate all the arguments.  That way, callers get compatible behavior
71937         if the arguments have side effects.  Also, it avoids some GCC
71938         diagnostics in some cases; Joel E. Denny reported problems when Bison
71939         was configured with --enable-gcc-warnigs.
71940
71941 2006-11-10  Jim Meyering  <jim@meyering.net>
71942
71943         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71944         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71945         account.
71946
71947 2006-11-10  Jim Meyering  <jim@meyering.net>
71948
71949         * modules/inline: New file/module.
71950         * modules/xalloc (Files): Remove m4/inline.m4.
71951         (Depends-on): Add inline, instead.
71952         * modules/oset: Likewise.
71953         * modules/list: Likewise.
71954
71955 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71956
71957         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71958         Problem reported by Matthew Woehlke.
71959
71960 2006-11-09  Bruno Haible  <bruno@clisp.org>
71961
71962         * lib/tempname.c (gen_tempname): Remove variant that invokes
71963         __gen_tempname.
71964         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71965         __gen_tempname.
71966
71967 2006-11-08  Bruno Haible  <bruno@clisp.org>
71968
71969         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71970         to 'yes' instead of 'cross-compiling'.
71971
71972 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71973
71974         * lib/quotearg.h (quotearg_free): New decl.
71975         * lib/quotearg.c (quotearg_free): New function.
71976         (slot0, nslots, slotvec0, slotvec):
71977         Now file-scope so that quotearg_free can get at them.
71978
71979 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71980
71981         Sync from Automake.
71982         * build-aux/gnupload: Add missing 'gnu' to example URL.
71983         Report by Karl Berry.
71984
71985 2006-11-08  Bruno Haible  <bruno@clisp.org>
71986
71987         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71988         Suggested by Paul Eggert.
71989
71990 2006-11-08  Jim Meyering  <jim@meyering.net>
71991
71992         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71993         It's already included if !_LIBC.
71994         (fts_safe_changedir): Add a comment.
71995
71996 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71997
71998         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71999         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72000         Matthew Woehlke.
72001
72002         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72003         definitions up, to avoid colliding with change below.
72004         (static_inline) [HAVE_INLINE]: New macro.
72005         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72006         Provide extern decls when !HAVE_INLINE.  Do not define unless
72007         static_inline is defined, either by us or by xmalloc.c.  Use
72008         static_inline rather than static inline.
72009         (XCALLOC): Optimize sizeof(T) = 1 case.
72010         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72011
72012 2006-11-07  Bruno Haible  <bruno@clisp.org>
72013
72014         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72015         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72016         AC_C_INLINE.
72017         * modules/xalloc (Files): Add m4/inline.m4.
72018
72019 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72020
72021         * README: Fix typo.
72022         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72023         (Miscellanous Notes): ...from this.
72024
72025 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72028         Mention that offsetof should be used instead of sizeof.
72029         From Bruno Haible.
72030
72031 2006-11-07  Bruno Haible  <bruno@clisp.org>
72032
72033         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72034
72035 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72036
72037         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72038         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72039         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72040         (gl_tree_add_before, gl_tree_add_after):
72041         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72042         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72043         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72044         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72045         (gl_linked_add_after, gl_linked_add_at): Likewise.
72046         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72047         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72048         (gl_tree_add_before, gl_tree_add_after): Likewise.
72049         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72050         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72051         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72052
72053 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72054
72055         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72056
72057 2006-11-06  Bruno Haible  <bruno@clisp.org>
72058
72059         * m4/inline.m4: New file.
72060         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72061         * modules/list (Files): Add m4/inline.m4.
72062         * modules/oset (Files): Likewise.
72063
72064 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         * lib/idcache.c: Include <stddef.h>, for offsetof.
72067         (struct userid.name): Change from char * to a flexible array member.
72068         All uses changed.
72069         * modules/idcache (Depends-on): Add flexmember.
72070
72071         * MODULES.html.sh (Core language properties): New module flexmember.
72072         * modules/flexmember, m4/flexmember.m4: New files.
72073
72074         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72075         inline functions that are identical with the old xnmalloc_inline,
72076         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72077         that we can avoid some unnecessary integer multiplications and
72078         divisions in the common case where the element size is known at
72079         compile time.
72080         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72081         needed.
72082         (xnboundedmalloc): Remove.
72083         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72084         arguments, for consistency with rest of this header.
72085         (xcharalloc): Rewrite using XNMALLOC.
72086         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72087         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72088         versions have been moved to lib/xalloc.h and renamed to be the
72089         non-*_inline versions.
72090         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72091         and xnrealloc functions, since those functions are now inline and
72092         now call us.
72093         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72094         renaming described above.
72095         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72096         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72097         captures the dependency in AC_C_INLINE.
72098
72099         New module canonicalize-lgpl, proposed by Charles Wilson in
72100         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72101         with a few small changes afterwards.
72102         * MODULES.html.sh (File system functions): New module
72103         canonicalize-lgpl.
72104         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72105         and canonicalize_file_name.
72106         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72107         * modules/canonicalize-lgpl: New files.
72108
72109 2006-11-05  Bruno Haible  <bruno@clisp.org>
72110
72111         * gnulib-tool (func_import, func_create_testdir): Create directories
72112         also for files in subdirectories of lib/.
72113
72114 2006-11-05  Bruno Haible  <bruno@clisp.org>
72115
72116         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72117         ANSI C compliant.
72118
72119 2006-11-03  Bruno Haible  <bruno@clisp.org>
72120
72121         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72122         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72123         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72124         (xnboundedmalloc): New inline function.
72125         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72126         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72127         xmalloc.
72128         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72129         xmalloc.
72130         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72131         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72132         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72133         xmalloc.
72134         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72135         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72136         xmalloc.
72137         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72138         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72139         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72140         xmalloc.
72141         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72142         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72143         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72144         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72145         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72146         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72147         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72148
72149 2006-11-03  Bruno Haible  <bruno@clisp.org>
72150
72151         * lib/c-ctype.h [C++]: Define functions without name mangling.
72152         * lib/fwriteerror.h [C++]: Likewise.
72153         * lib/gcd.h [C++]: Likewise.
72154         * lib/linebreak.h [C++]: Likewise.
72155
72156 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72159         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72160         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72161         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72162         Check for functions and headers just once.
72163         Check for declaration of canonicalize_file_name.
72164         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72165
72166 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72167
72168         * gnulib-tool (func_import): Fix typo in actioncmd.
72169
72170 2006-11-02  Bruno Haible  <bruno@clisp.org>
72171
72172         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72173         newline sequence in the Makefile.am snippet as a space, like "make"
72174         does.
72175         Reported by Roger Persson <perrog@gmail.com>.
72176
72177 2006-11-01  Bruno Haible  <bruno@clisp.org>
72178
72179         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72180         already declared in <string.h>.
72181         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72182
72183 2006-11-01  Bruno Haible  <bruno@clisp.org>
72184
72185         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72186         * lib/strcase.h: Include <string.h>.
72187         (strcasecmp): Define to rpl_strcasecmp here.
72188
72189 2006-11-01  Bruno Haible  <bruno@clisp.org>
72190
72191         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72192
72193 2006-11-01  Eric Blake  <ebb9@byu.net>
72194
72195         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72196
72197         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72198
72199 2006-10-29  Bruno Haible  <bruno@clisp.org>
72200
72201         Make it compile in C++ mode.
72202         * lib/full-write.c (full_rw): Add a cast.
72203
72204 2006-11-01  Bruno Haible  <bruno@clisp.org>
72205
72206         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72207         be POSIX compliant.
72208         Reported by Roger Persson <perrog@gmail.com>.
72209
72210 2006-11-01  Eric Blake  <ebb9@byu.net>
72211
72212         * lib/getopt_.h: Fix comments.
72213
72214 2006-10-31  Eric Blake  <ebb9@byu.net>
72215
72216         * modules/tmpdir (Depends-on): Add sys_stat.
72217         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72218         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72219         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72220         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72221         tempname.
72222
72223 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72224
72225         Avoid some C++ diagnostics reported by Bruno Haible.
72226         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72227         xmalloc.
72228         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72229         (struct slotvec): Move to top level.
72230         (quotearg_n_options): Rewrite to avoid xmalloc.
72231         * lib/xalloc.h (xcharalloc): New function.
72232         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72233         [defined __cplusplus]: Add function template that provides result
72234         type propagation.  This part of the change is from Bruno Haible.
72235
72236 2006-10-29  Bruno Haible  <bruno@clisp.org>
72237
72238         Make it compile in C++ mode.
72239         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72240         * lib/strnlen1.c (strnlen1): Cast memchr result.
72241         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72242         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72243         (create_temp_dir): Rename local variable 'template'.
72244         (compile_csharp_using_sscli): Add cast.
72245         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72246         * lib/findprog.c (find_in_path): Likewise.
72247         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72248         * lib/wait-process.c (register_slave_subprocess): Likewise.
72249
72250 2006-10-22  Bruno Haible  <bruno@clisp.org>
72251
72252         * modules/tsearch: New file.
72253         * lib/tsearch.h: New file.
72254         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72255         * m4/tsearch.m4: New file.
72256         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72257
72258 2006-10-29  Eric Blake  <ebb9@byu.net>
72259
72260         * lib/arcfour.c: Assume config.h.
72261         * lib/arctwo.c: Likewise.
72262         * lib/base64.c: Likewise.
72263         * lib/check-version.c: Likewise.
72264         * lib/crc.c: Likewise.
72265         * lib/des.c: Likewise.
72266         * lib/gc-gnulib.c: Likewise.
72267         * lib/gc-libgcrypt.c: Likewise.
72268         * lib/gc-pbkdf2-sha1.c: Likewise.
72269         * lib/getaddrinfo.c: Likewise.
72270         * lib/getdelim.c: Likewise.
72271         * lib/getline.c: Likewise.
72272         * lib/hmac-md5.c: Likewise.
72273         * lib/hmac-sha1.c: Likewise.
72274         * lib/iconvme.c: Likewise.
72275         * lib/md2.c: Likewise.
72276         * lib/md4.c: Likewise.
72277         * lib/memxor.c: Likewise.
72278         * lib/read-file.c: Likewise.
72279         * lib/readline.c: Likewise.
72280         * lib/rijndael-alg-fst.c: Likewise.
72281         * lib/rijndael-api-fst.c: Likewise.
72282         * lib/xgetdomainname.c: Likewise.
72283
72284 2006-10-28  Eric Blake  <ebb9@byu.net>
72285
72286         * lib/xstrndup.c: Assume config.h.
72287
72288 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72291         stat-macros.h is now for our own macros, whereas stat_h is for
72292         macros in the <sys/stat.h> name space.
72293         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72294         (STAT_MACROS_H): Remove.
72295         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72296         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72297         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72298         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72299         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72300         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72301         Move these macros to ...
72302         * lib/stat_.h: here.  Don't include stat-macros.h.
72303         * lib/canonicalize.c: Don't include stat-macros.h.
72304         * lib/chown.c: Likewise.
72305         * lib/euidaccess.c: Likewise.
72306         * lib/file-type.c: Likewise.
72307         * lib/filemode.c: Likewise.
72308         * lib/glob.c: Likewise.
72309         * lib/isapipe.c: Likewise.
72310         * lib/lchown.c: Likewise.
72311         * lib/lstat.c: Likewise.
72312         * lib/mkdir-p.c: Likewise.
72313         * lib/rmdir.c: Likewise.
72314         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72315         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72316         unless mkdir isn't declared, to speed up 'configure'.
72317         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72318         would define all the S_* symbols.
72319         * modules/canonicalize (Depends-on):
72320         Depend on sys_stat, not stat-macros.
72321         * modules/chown: Likewise.
72322         * modules/euidaccess: Likewise.
72323         * modules/filemode: Likewise.
72324         * modules/file-type: Likewise.
72325         * modules/glob: Likewise.
72326         * modules/isapipe: Likewise.
72327         * modules/lchown: Likewise.
72328         * modules/lstat: Likewise.
72329         * modules/mkancesdirs: Likewise.
72330         * modules/rmdir: Likewise.
72331         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72332         * modules/modechange: Likewise.
72333         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72334         (configure.ac): Remove gl_STAT_MACROS.
72335         * modules/sys_stat (Depends-on): Remove stat-macros.
72336
72337 2006-10-27  Bruno Haible  <bruno@clisp.org>
72338
72339         * m4/signed.m4: Remove file.
72340         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72341         invocation.
72342         * modules/vasnprintf (Files): Remove m4/signed.m4.
72343
72344 2006-10-27  Bruno Haible  <bruno@clisp.org>
72345
72346         Update to GNU gettext 0.16.
72347         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72348         m4/inttypes-h.m4, m4/signed.m4.
72349         * m4/gettext.m4: Update to GNU gettext 0.16.
72350         * m4/intl.m4: New file, from GNU gettext.
72351         * m4/intldir.m4: New file, from GNU gettext.
72352         * config/srclist.txt: Update
72353
72354 2006-10-27  Eric Blake  <ebb9@byu.net>
72355
72356         * MODULES.html.sh: Document tempname.
72357         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72358         dependencies.
72359         (Files): Move lib/tempname.c...
72360         * modules/tempname: ...to this new module.
72361         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72362         (gl_PREREQ_TEMPNAME): Move...
72363         * m4/tempname.m4: ...to this new file.
72364         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72365         * modules/sys_stat (Depends-on): Add stat-macros.
72366         * lib/stat_.h (includes): Pick up stat macros.
72367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72368         if stat macros are broken.
72369         * lib/tempname.c (includes): No need to include "stat-macros.h".
72370         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72371         (direxists, __path_search) [!_LIBC]: Don't compile these in
72372         gnulib; the tmpdir module covers that.
72373         * lib/tempname.h: New file.
72374
72375 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * COPYING: Explain how gnulib-tool converts licence headers.
72378         Almost all wording by Eric Blake.
72379
72380 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         * lib/mbchar.h (is_basic_table): Make read-only.
72383         * lib/mbchar.c (is_basic_table): Likewise.
72384         Reported by John Darrington.
72385
72386 2006-10-25  Bruno Haible  <bruno@clisp.org>
72387
72388         * lib/progname.h (set_program_name): Undefine before defining.
72389
72390 2006-10-25  Bruno Haible  <bruno@clisp.org>
72391
72392         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72393         false for non-gcc C++ compilers.
72394         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72395
72396 2006-10-24  Bruno Haible  <bruno@clisp.org>
72397
72398         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72399         iconv implementations like Irix iconv.
72400
72401 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * modules/vararrays: New file.
72404         * m4/vararrays.m4: New file, taken from diffutils.
72405         * MODULES.html.sh: New module vararrays.
72406
72407 2006-10-24  Karl Berry  <karl@gnu.org>
72408
72409         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72410         Don't call GNU Unix.
72411
72412 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72413
72414         * users.txt: Add Libtool.
72415
72416         Sync from Libtool:
72417
72418         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72421         to gnulib's policy of including config.h unconditionally.
72422
72423 2006-10-24  Bruno Haible  <bruno@clisp.org>
72424
72425         * modules/wcwidth (Files): Add m4/wint_t.m4.
72426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72427         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72428
72429 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72430
72431         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72432         to pacify GCC with some -W flags enabled.  Problem reported by
72433         Bruno Haible.
72434
72435 2006-10-24  Jim Meyering  <jim@meyering.net>
72436
72437         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72438         Reported by Karl Berry.
72439
72440 2006-10-23  Bruno Haible  <bruno@clisp.org>
72441
72442         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72443
72444 2006-10-24  Bruno Haible  <bruno@clisp.org>
72445
72446         * lib/gl_list.h: Use C comment style, not C++ comment style.
72447
72448 2006-10-23  Eric Blake  <ebb9@byu.net>
72449
72450         * lib/getaddrinfo.c (includes): Add missing include.
72451
72452 2006-10-23  Bruno Haible  <bruno@clisp.org>
72453             Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         Ability to rename obstack_free.
72456         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72457         obstack_free.
72458         (obstack_free): Invoke the __obstack_free macro.
72459         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72460
72461 2006-10-23  Bruno Haible  <bruno@clisp.org>
72462             Paul Eggert  <eggert@cs.ucla.edu>
72463
72464         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72465         __argc, __argv from the declaration. (They are defined as macros on
72466         mingw.)
72467
72468 2006-10-22  Bruno Haible  <bruno@clisp.org>
72469
72470         * doc/gnulib-intro.texi: New file.
72471         * doc/gnulib.texi: Include it.
72472
72473 2006-10-21  Bruno Haible  <bruno@clisp.org>
72474
72475         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72476         "Introduction", "Miscellanous Notes", "Particular Modules".
72477
72478 2006-10-21  Bruno Haible  <bruno@clisp.org>
72479
72480         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72481         Change mostlyclean-local rule to avoid sh syntax error from bash
72482         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72483
72484 2006-10-23  Jim Meyering  <jim@meyering.net>
72485
72486         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72487         in place of snprintf.
72488
72489         * modules/inttostr (Files): Add lib/uinttostr.c.
72490         * lib/uinttostr.c (inttostr): New file/function.
72491         * lib/inttostr.h (uinttostr): Declare.
72492         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72493         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72494         Add uinttostr.
72495         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72496
72497 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72498
72499         * lib/canonicalize.c (ELOOP): Define if not already defined.
72500         Problem reported by Bruno Haible in
72501         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72502
72503 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72504
72505         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72506         Problem reported by Perry Smith and Ville Laurikari.
72507
72508         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72509         uses.
72510
72511 2006-10-19  Bruno Haible  <bruno@clisp.org>
72512
72513         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72514         for mingw.
72515
72516 2006-10-19  Bruno Haible  <bruno@clisp.org>
72517
72518         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72519         Needed for mingw.
72520
72521 2006-10-19  Bruno Haible  <bruno@clisp.org>
72522
72523         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72524
72525 2006-10-19  Bruno Haible  <bruno@clisp.org>
72526
72527         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72528         it.
72529
72530 2006-10-19  Bruno Haible  <bruno@clisp.org>
72531
72532         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72533         invocation.
72534
72535 2006-10-19  Bruno Haible  <bruno@clisp.org>
72536
72537         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72538         mountlist by default.
72539
72540 2006-10-16  Bruno Haible  <bruno@clisp.org>
72541
72542         * lib/c-strstr.c: Include c-strstr.h.
72543
72544 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72545
72546         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72547         in a slash.
72548
72549 2006-10-18  Bruno Haible  <bruno@clisp.org>
72550
72551         * lib/lock.h [C++]: Wrap definitions in extern "C".
72552
72553 2006-10-18  Bruno Haible  <bruno@clisp.org>
72554
72555         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72556         gl_LIBOBJS list.
72557
72558 2006-10-18  Bruno Haible  <bruno@clisp.org>
72559
72560         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72561
72562 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         * lib/xstrtol.h: Include gettext.h.
72565         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72566         Problem reported by Eric Blake.
72567         * modules/xstrtol (Depends-on): Add gettext-h.
72568
72569 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72570
72571         * lib/strftime.c (advance): New macro.
72572         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72573         incomplete type, so you can't add 0 to it.  Problem and patch
72574         reported by Eelco Dolstra for dietlibc.
72575
72576 2006-10-18  Jim Meyering  <jim@meyering.net>
72577
72578         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72579         type for a local, and rename it: s/up/user_proc/.
72580
72581 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72582
72583         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72584         READ_UTMP_USER_PROCESS.
72585         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72586
72587 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72590         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72591
72592 2006-10-17  Eric Blake  <ebb9@byu.net>
72593
72594         * lib/sigprocmask.c (sigprocmask): Fix typo.
72595
72596         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72597
72598         * modules/clean-temp (Makefile.am): Don't add to make output...
72599         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72600         config.h.
72601
72602 2006-10-17  Bruno Haible  <bruno@clisp.org>
72603
72604         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72605         differently if DEFAULT_TEXT_DOMAIN is set.
72606
72607 2006-10-16  Bruno Haible  <bruno@clisp.org>
72608
72609         * lib/clean-temp.c: Include fwriteerror.h.
72610
72611 2006-10-16  Bruno Haible  <bruno@clisp.org>
72612
72613         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72614
72615 2006-10-16  Bruno Haible  <bruno@clisp.org>
72616
72617         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72618         * lib/sigprocmask.h: Include <sys/types.h>.
72619         (sigset_t): Use the system's definition if present.
72620
72621 2006-10-17  Eric Blake  <ebb9@byu.net>
72622
72623         * lib/xvasprintf.c (includes): Assume config.h.
72624         * lib/xasprintf.c (includes): Likewise.
72625
72626 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72627
72628         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72629         at least as wide as intmax_t.
72630
72631 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72632
72633         (Imported from Automake.)
72634         * build-aux/gnupload: Update to version 1.1 of directive file.
72635
72636 2006-10-16  Eric Blake  <ebb9@byu.net>
72637
72638         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72639         match Automake 1.10a.
72640
72641 2006-10-14  Bruno Haible  <bruno@clisp.org>
72642
72643         * modules/sigprocmask: New file.
72644         * lib/sigprocmask.h: New file.
72645         * lib/sigprocmask.c: New file.
72646         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72647         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72648         request sigprocmask.o.
72649         (gl_PREREQ_SIGPROCMASK): New macro.
72650         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72651         (Depends-on): Add sigprocmask.
72652         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72653         gt_SIGNALBLOCKING. Test for 'raise' only once.
72654         * lib/fatal-signal.c: Include sigprocmask.h.
72655         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72656         unblock_fatal_signals): Define always.
72657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72658         sigprocmask.
72659
72660 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         Sync from Automake.
72663         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72664         which incorrectly sets the mode of an existing destination
72665         directory.  In some cases the unpatched install-sh could do the
72666         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72667         system.  We hope this is rare in practice, but it's clearly worth
72668         fixing.  Problem reported by Alex Unleashed in
72669         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72670         Also, don't bother to check for -m bugs unless we're using -m;
72671         suggested by Stepan Kasal.
72672
72673 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72674
72675         Sync from Automake.
72676         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72677         `-c' flag, so they appear at the same position as in %FASTDEP%
72678         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72679         which ignores unknown options only after the first non-option.
72680         Bug report against M4 by Nelson H. F. Beebe.
72681
72682 2006-10-13  Jim Meyering  <jim@meyering.net>
72683
72684         Fix a bug in yesterday's change.
72685         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72686         p->fts_statp->st_dev would be used uninitialized.
72687         Ensures that we always call fts_stat on the very first entry.
72688         Miklos Szeredi reported that find -xdev stopped working.
72689
72690 2006-10-12  Bruno Haible  <bruno@clisp.org>
72691
72692         * gnulib-tool (func_get_automake_snippet): Append an automatically
72693         computed EXTRA_DIST augmentation.
72694         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72695         * modules/alloca-opt (Makefile.am): Likewise.
72696         * modules/allocsa (Makefile.am): Likewise.
72697         * modules/arcfour (Makefile.am): Likewise.
72698         * modules/arctwo (Makefile.am): Likewise.
72699         * modules/argmatch (Makefile.am): Likewise.
72700         * modules/argz (Makefile.am): Likewise.
72701         * modules/atexit (Makefile.am): Likewise.
72702         * modules/backupfile (Makefile.am): Likewise.
72703         * modules/byteswap (Makefile.am): Likewise.
72704         * modules/c-strtod (Makefile.am): Likewise.
72705         * modules/c-strtold (Makefile.am): Likewise.
72706         * modules/calloc (Makefile.am): Likewise.
72707         * modules/canon-host (Makefile.am): Likewise.
72708         * modules/canonicalize (Makefile.am): Likewise.
72709         * modules/chdir-long (Makefile.am): Likewise.
72710         * modules/chdir-safer (Makefile.am): Likewise.
72711         * modules/check-version (Makefile.am): Likewise.
72712         * modules/chown (Makefile.am): Likewise.
72713         * modules/cloexec (Makefile.am): Likewise.
72714         * modules/close-stream (Makefile.am): Likewise.
72715         * modules/closeout (Makefile.am): Likewise.
72716         * modules/crc (Makefile.am): Likewise.
72717         * modules/csharpexec (Makefile.am): Likewise.
72718         * modules/cycle-check (Makefile.am): Likewise.
72719         * modules/des (Makefile.am): Likewise.
72720         * modules/dev-ino (Makefile.am): Likewise.
72721         * modules/dirfd (Makefile.am): Likewise.
72722         * modules/dirname (Makefile.am): Likewise.
72723         * modules/dup2 (Makefile.am): Likewise.
72724         * modules/eealloc (Makefile.am): Likewise.
72725         * modules/error (Makefile.am): Likewise.
72726         * modules/euidaccess (Makefile.am): Likewise.
72727         * modules/exclude (Makefile.am): Likewise.
72728         * modules/exitfail (Makefile.am): Likewise.
72729         * modules/fcntl-safer (Makefile.am): Likewise.
72730         * modules/fcntl (Makefile.am): Likewise.
72731         * modules/file-type (Makefile.am): Likewise.
72732         * modules/fileblocks (Makefile.am): Likewise.
72733         * modules/filemode (Makefile.am): Likewise.
72734         * modules/filenamecat (Makefile.am): Likewise.
72735         * modules/fnmatch (Makefile.am): Likewise.
72736         * modules/fopen-safer (Makefile.am): Likewise.
72737         * modules/fpending (Makefile.am): Likewise.
72738         * modules/fprintftime (Makefile.am): Likewise.
72739         * modules/free (Makefile.am): Likewise.
72740         * modules/fsusage (Makefile.am): Likewise.
72741         * modules/ftruncate (Makefile.am): Likewise.
72742         * modules/fts (Makefile.am): Likewise.
72743         * modules/gc-arcfour (Makefile.am): Likewise.
72744         * modules/gc-des (Makefile.am): Likewise.
72745         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72746         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72747         * modules/gc-md4 (Makefile.am): Likewise.
72748         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72749         * modules/gc-sha1 (Makefile.am): Likewise.
72750         * modules/gc (Makefile.am): Likewise.
72751         * modules/getaddrinfo (Makefile.am): Likewise.
72752         * modules/getcwd (Makefile.am): Likewise.
72753         * modules/getdelim (Makefile.am): Likewise.
72754         * modules/getdomainname (Makefile.am): Likewise.
72755         * modules/getgroups (Makefile.am): Likewise.
72756         * modules/gethostname (Makefile.am): Likewise.
72757         * modules/gethrxtime (Makefile.am): Likewise.
72758         * modules/getline (Makefile.am): Likewise.
72759         * modules/getloadavg (Makefile.am): Likewise.
72760         * modules/getlogin_r (Makefile.am): Likewise.
72761         * modules/getndelim2 (Makefile.am): Likewise.
72762         * modules/getopt (Makefile.am): Likewise.
72763         * modules/getpagesize (Makefile.am): Likewise.
72764         * modules/getpass-gnu (Makefile.am): Likewise.
72765         * modules/getpass (Makefile.am): Likewise.
72766         * modules/getsubopt (Makefile.am): Likewise.
72767         * modules/gettime (Makefile.am): Likewise.
72768         * modules/gettimeofday (Makefile.am): Likewise.
72769         * modules/getugroups (Makefile.am): Likewise.
72770         * modules/getusershell (Makefile.am): Likewise.
72771         * modules/glob (Makefile.am): Likewise.
72772         * modules/group-member (Makefile.am): Likewise.
72773         * modules/hard-locale (Makefile.am): Likewise.
72774         * modules/hash (Makefile.am): Likewise.
72775         * modules/hmac-md5 (Makefile.am): Likewise.
72776         * modules/hmac-sha1 (Makefile.am): Likewise.
72777         * modules/human (Makefile.am): Likewise.
72778         * modules/idcache (Makefile.am): Likewise.
72779         * modules/imaxabs (Makefile.am): Likewise.
72780         * modules/imaxdiv (Makefile.am): Likewise.
72781         * modules/inet_ntop (Makefile.am): Likewise.
72782         * modules/inet_pton (Makefile.am): Likewise.
72783         * modules/intprops (Makefile.am): Likewise.
72784         * modules/inttostr (Makefile.am): Likewise.
72785         * modules/inttypes (Makefile.am): Likewise.
72786         * modules/isapipe (Makefile.am): Likewise.
72787         * modules/javaversion (Makefile.am): Likewise.
72788         * modules/lchmod (Makefile.am): Likewise.
72789         * modules/lchown (Makefile.am): Likewise.
72790         * modules/localcharset (Makefile.am): Likewise.
72791         * modules/long-options (Makefile.am): Likewise.
72792         * modules/lstat (Makefile.am): Likewise.
72793         * modules/malloc (Makefile.am): Likewise.
72794         * modules/mathl (Makefile.am): Likewise.
72795         * modules/mbchar (Makefile.am): Likewise.
72796         * modules/md2 (Makefile.am): Likewise.
72797         * modules/md4 (Makefile.am): Likewise.
72798         * modules/md5 (Makefile.am): Likewise.
72799         * modules/memcasecmp (Makefile.am): Likewise.
72800         * modules/memchr (Makefile.am): Likewise.
72801         * modules/memcmp (Makefile.am): Likewise.
72802         * modules/memcoll (Makefile.am): Likewise.
72803         * modules/memcpy (Makefile.am): Likewise.
72804         * modules/memmem (Makefile.am): Likewise.
72805         * modules/memmove (Makefile.am): Likewise.
72806         * modules/mempcpy (Makefile.am): Likewise.
72807         * modules/memrchr (Makefile.am): Likewise.
72808         * modules/memset (Makefile.am): Likewise.
72809         * modules/memxor (Makefile.am): Likewise.
72810         * modules/mkancesdirs (Makefile.am): Likewise.
72811         * modules/mkdir-p (Makefile.am): Likewise.
72812         * modules/mkdir (Makefile.am): Likewise.
72813         * modules/mkdtemp (Makefile.am): Likewise.
72814         * modules/mkstemp (Makefile.am): Likewise.
72815         * modules/mktime (Makefile.am): Likewise.
72816         * modules/modechange (Makefile.am): Likewise.
72817         * modules/mountlist (Makefile.am): Likewise.
72818         * modules/nanosleep (Makefile.am): Likewise.
72819         * modules/obstack (Makefile.am): Likewise.
72820         * modules/openat (Makefile.am): Likewise.
72821         * modules/pagealign_alloc (Makefile.am): Likewise.
72822         * modules/pathmax (Makefile.am): Likewise.
72823         * modules/physmem (Makefile.am): Likewise.
72824         * modules/poll (Makefile.am): Likewise.
72825         * modules/posixtm (Makefile.am): Likewise.
72826         * modules/posixver (Makefile.am): Likewise.
72827         * modules/putenv (Makefile.am): Likewise.
72828         * modules/quote (Makefile.am): Likewise.
72829         * modules/quotearg (Makefile.am): Likewise.
72830         * modules/raise (Makefile.am): Likewise.
72831         * modules/read-file (Makefile.am): Likewise.
72832         * modules/readline (Makefile.am): Likewise.
72833         * modules/readlink (Makefile.am): Likewise.
72834         * modules/readtokens (Makefile.am): Likewise.
72835         * modules/readutmp (Makefile.am): Likewise.
72836         * modules/realloc (Makefile.am): Likewise.
72837         * modules/regex (Makefile.am): Likewise.
72838         * modules/rename-dest-slash (Makefile.am): Likewise.
72839         * modules/rename (Makefile.am): Likewise.
72840         * modules/rijndael (Makefile.am): Likewise.
72841         * modules/rmdir (Makefile.am): Likewise.
72842         * modules/rpmatch (Makefile.am): Likewise.
72843         * modules/safe-read (Makefile.am): Likewise.
72844         * modules/safe-write (Makefile.am): Likewise.
72845         * modules/same-inode (Makefile.am): Likewise.
72846         * modules/same (Makefile.am): Likewise.
72847         * modules/save-cwd (Makefile.am): Likewise.
72848         * modules/savedir (Makefile.am): Likewise.
72849         * modules/setenv (Makefile.am): Likewise.
72850         * modules/settime (Makefile.am): Likewise.
72851         * modules/sha1 (Makefile.am): Likewise.
72852         * modules/sig2str (Makefile.am): Likewise.
72853         * modules/snprintf (Makefile.am): Likewise.
72854         * modules/stat-macros (Makefile.am): Likewise.
72855         * modules/stat-time (Makefile.am): Likewise.
72856         * modules/stdbool (Makefile.am): Likewise.
72857         * modules/stdint (Makefile.am): Likewise.
72858         * modules/stdlib-safer (Makefile.am): Likewise.
72859         * modules/stpcpy (Makefile.am): Likewise.
72860         * modules/stpncpy (Makefile.am): Likewise.
72861         * modules/strcase (Makefile.am): Likewise.
72862         * modules/strcasestr (Makefile.am): Likewise.
72863         * modules/strchrnul (Makefile.am): Likewise.
72864         * modules/strcspn (Makefile.am): Likewise.
72865         * modules/strdup (Makefile.am): Likewise.
72866         * modules/strerror (Makefile.am): Likewise.
72867         * modules/strftime (Makefile.am): Likewise.
72868         * modules/strndup (Makefile.am): Likewise.
72869         * modules/strnlen (Makefile.am): Likewise.
72870         * modules/strpbrk (Makefile.am): Likewise.
72871         * modules/strsep (Makefile.am): Likewise.
72872         * modules/strstr (Makefile.am): Likewise.
72873         * modules/strtod (Makefile.am): Likewise.
72874         * modules/strtoimax (Makefile.am): Likewise.
72875         * modules/strtok_r (Makefile.am): Likewise.
72876         * modules/strtol (Makefile.am): Likewise.
72877         * modules/strtoll (Makefile.am): Likewise.
72878         * modules/strtoul (Makefile.am): Likewise.
72879         * modules/strtoull (Makefile.am): Likewise.
72880         * modules/strtoumax (Makefile.am): Likewise.
72881         * modules/strverscmp (Makefile.am): Likewise.
72882         * modules/sys_socket (Makefile.am): Likewise.
72883         * modules/sys_stat (Makefile.am): Likewise.
72884         * modules/sysexits (Makefile.am): Likewise.
72885         * modules/time_r (Makefile.am): Likewise.
72886         * modules/timegm (Makefile.am): Likewise.
72887         * modules/timespec (Makefile.am): Likewise.
72888         * modules/tmpfile-safer (Makefile.am): Likewise.
72889         * modules/trim (Makefile.am): Likewise.
72890         * modules/unistd-safer (Makefile.am): Likewise.
72891         * modules/unlinkdir (Makefile.am): Likewise.
72892         * modules/unlocked-io (Makefile.am): Likewise.
72893         * modules/userspec (Makefile.am): Likewise.
72894         * modules/utime (Makefile.am): Likewise.
72895         * modules/utimecmp (Makefile.am): Likewise.
72896         * modules/utimens (Makefile.am): Likewise.
72897         * modules/vasnprintf (Makefile.am): Likewise.
72898         * modules/vasprintf (Makefile.am): Likewise.
72899         * modules/vsnprintf (Makefile.am): Likewise.
72900         * modules/xalloc (Makefile.am): Likewise.
72901         * modules/xgetcwd (Makefile.am): Likewise.
72902         * modules/xnanosleep (Makefile.am): Likewise.
72903         * modules/xreadlink (Makefile.am): Likewise.
72904         * modules/xstrtod (Makefile.am): Likewise.
72905         * modules/xstrtol (Makefile.am): Likewise.
72906         * modules/xstrtold (Makefile.am): Likewise.
72907         * modules/yesno (Makefile.am): Likewise.
72908         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72909
72910 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72911
72912         * modules/error (Makefile.am): Distribute files through
72913         EXTRA_DIST, not lib_SOURCES.
72914
72915 2006-10-12  Eric Blake  <ebb9@byu.net>
72916
72917         * modules/error (Makefile.am): Distribute files in /lib.
72918         * modules/obstack (Makefile.am): Likewise.
72919
72920 2006-10-12  Bruno Haible  <bruno@clisp.org>
72921
72922         * modules/acl (Makefile.am): Distribute all files in lib/ through
72923         EXTRA_DIST.
72924         * modules/arcfour (Makefile.am): Likewise.
72925         * modules/arctwo (Makefile.am): Likewise.
72926         * modules/argmatch (Makefile.am): Likewise.
72927         * modules/argz (Makefile.am): Likewise.
72928         * modules/atexit (Makefile.am): Likewise.
72929         * modules/backupfile (Makefile.am): Likewise.
72930         * modules/c-strtod (Makefile.am): Likewise.
72931         * modules/c-strtold (Makefile.am): Likewise.
72932         * modules/calloc (Makefile.am): Likewise.
72933         * modules/canon-host (Makefile.am): Likewise.
72934         * modules/canonicalize (Makefile.am): Likewise.
72935         * modules/chdir-long (Makefile.am): Likewise.
72936         * modules/chdir-safer (Makefile.am): Likewise.
72937         * modules/check-version (Makefile.am): Likewise.
72938         * modules/chown (Makefile.am): Likewise.
72939         * modules/cloexec (Makefile.am): Likewise.
72940         * modules/close-stream (Makefile.am): Likewise.
72941         * modules/closeout (Makefile.am): Likewise.
72942         * modules/crc (Makefile.am): Likewise.
72943         * modules/cycle-check (Makefile.am): Likewise.
72944         * modules/des (Makefile.am): Likewise.
72945         * modules/dirfd (Makefile.am): Likewise.
72946         * modules/dirname (Makefile.am): Likewise.
72947         * modules/dup2 (Makefile.am): Likewise.
72948         * modules/euidaccess (Makefile.am): Likewise.
72949         * modules/exclude (Makefile.am): Likewise.
72950         * modules/exitfail (Makefile.am): Likewise.
72951         * modules/fcntl-safer (Makefile.am): Likewise.
72952         * modules/file-type (Makefile.am): Likewise.
72953         * modules/fileblocks (Makefile.am): Likewise.
72954         * modules/filemode (Makefile.am): Likewise.
72955         * modules/filenamecat (Makefile.am): Likewise.
72956         * modules/fnmatch (Makefile.am): Likewise.
72957         * modules/fopen-safer (Makefile.am): Likewise.
72958         * modules/fpending (Makefile.am): Likewise.
72959         * modules/fprintftime (Makefile.am): Likewise.
72960         * modules/free (Makefile.am): Likewise.
72961         * modules/fsusage (Makefile.am): Likewise.
72962         * modules/ftruncate (Makefile.am): Likewise.
72963         * modules/fts (Makefile.am): Likewise.
72964         * modules/gc (Makefile.am): Likewise.
72965         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72966         * modules/getaddrinfo (Makefile.am): Likewise.
72967         * modules/getcwd (Makefile.am): Likewise.
72968         * modules/getdelim (Makefile.am): Likewise.
72969         * modules/getdomainname (Makefile.am): Likewise.
72970         * modules/getgroups (Makefile.am): Likewise.
72971         * modules/gethostname (Makefile.am): Likewise.
72972         * modules/gethrxtime (Makefile.am): Likewise.
72973         * modules/getline (Makefile.am): Likewise.
72974         * modules/getloadavg (Makefile.am): Likewise.
72975         * modules/getlogin_r (Makefile.am): Likewise.
72976         * modules/getopt (Makefile.am): Likewise.
72977         * modules/getpass (Makefile.am): Likewise.
72978         * modules/getpass-gnu (Makefile.am): Likewise.
72979         * modules/getsubopt (Makefile.am): Likewise.
72980         * modules/gettime (Makefile.am): Likewise.
72981         * modules/gettimeofday (Makefile.am): Likewise.
72982         * modules/getugroups (Makefile.am): Likewise.
72983         * modules/getusershell (Makefile.am): Likewise.
72984         * modules/glob (Makefile.am): Likewise.
72985         * modules/group-member (Makefile.am): Likewise.
72986         * modules/hard-locale (Makefile.am): Likewise.
72987         * modules/hash (Makefile.am): Likewise.
72988         * modules/hmac-md5 (Makefile.am): Likewise.
72989         * modules/hmac-sha1 (Makefile.am): Likewise.
72990         * modules/human (Makefile.am): Likewise.
72991         * modules/idcache (Makefile.am): Likewise.
72992         * modules/imaxabs (Makefile.am): Likewise.
72993         * modules/imaxdiv (Makefile.am): Likewise.
72994         * modules/inet_ntop (Makefile.am): Likewise.
72995         * modules/inet_pton (Makefile.am): Likewise.
72996         * modules/inttostr (Makefile.am): Likewise.
72997         * modules/isapipe (Makefile.am): Likewise.
72998         * modules/lchown (Makefile.am): Likewise.
72999         * modules/long-options (Makefile.am): Likewise.
73000         * modules/lstat (Makefile.am): Likewise.
73001         * modules/malloc (Makefile.am): Likewise.
73002         * modules/mathl (Makefile.am): Likewise.
73003         * modules/mbchar (Makefile.am): Likewise.
73004         * modules/md2 (Makefile.am): Likewise.
73005         * modules/md4 (Makefile.am): Likewise.
73006         * modules/md5 (Makefile.am): Likewise.
73007         * modules/memcasecmp (Makefile.am): Likewise.
73008         * modules/memchr (Makefile.am): Likewise.
73009         * modules/memcmp (Makefile.am): Likewise.
73010         * modules/memcoll (Makefile.am): Likewise.
73011         * modules/memcpy (Makefile.am): Likewise.
73012         * modules/memmem (Makefile.am): Likewise.
73013         * modules/memmove (Makefile.am): Likewise.
73014         * modules/mempcpy (Makefile.am): Likewise.
73015         * modules/memrchr (Makefile.am): Likewise.
73016         * modules/memset (Makefile.am): Likewise.
73017         * modules/memxor (Makefile.am): Likewise.
73018         * modules/mkancesdirs (Makefile.am): Likewise.
73019         * modules/mkdir (Makefile.am): Likewise.
73020         * modules/mkdir-p (Makefile.am): Likewise.
73021         * modules/mkdtemp (Makefile.am): Likewise.
73022         * modules/mkstemp (Makefile.am): Likewise.
73023         * modules/mktime (Makefile.am): Likewise.
73024         * modules/modechange (Makefile.am): Likewise.
73025         * modules/mountlist (Makefile.am): Likewise.
73026         * modules/nanosleep (Makefile.am): Likewise.
73027         * modules/openat (Makefile.am): Likewise.
73028         * modules/pagealign_alloc (Makefile.am): Likewise.
73029         * modules/physmem (Makefile.am): Likewise.
73030         * modules/poll (Makefile.am): Likewise.
73031         * modules/posixtm (Makefile.am): Likewise.
73032         * modules/posixver (Makefile.am): Likewise.
73033         * modules/putenv (Makefile.am): Likewise.
73034         * modules/quote (Makefile.am): Likewise.
73035         * modules/quotearg (Makefile.am): Likewise.
73036         * modules/raise (Makefile.am): Likewise.
73037         * modules/read-file (Makefile.am): Likewise.
73038         * modules/readline (Makefile.am): Likewise.
73039         * modules/readlink (Makefile.am): Likewise.
73040         * modules/readtokens (Makefile.am): Likewise.
73041         * modules/readutmp (Makefile.am): Likewise.
73042         * modules/realloc (Makefile.am): Likewise.
73043         * modules/regex (Makefile.am): Likewise.
73044         * modules/rename (Makefile.am): Likewise.
73045         * modules/rename-dest-slash (Makefile.am): Likewise.
73046         * modules/rijndael (Makefile.am): Likewise.
73047         * modules/rmdir (Makefile.am): Likewise.
73048         * modules/rpmatch (Makefile.am): Likewise.
73049         * modules/safe-read (Makefile.am): Likewise.
73050         * modules/safe-write (Makefile.am): Likewise.
73051         * modules/same (Makefile.am): Likewise.
73052         * modules/save-cwd (Makefile.am): Likewise.
73053         * modules/savedir (Makefile.am): Likewise.
73054         * modules/setenv (Makefile.am): Likewise.
73055         * modules/settime (Makefile.am): Likewise.
73056         * modules/sha1 (Makefile.am): Likewise.
73057         * modules/sig2str (Makefile.am): Likewise.
73058         * modules/snprintf (Makefile.am): Likewise.
73059         * modules/stdlib-safer (Makefile.am): Likewise.
73060         * modules/stpcpy (Makefile.am): Likewise.
73061         * modules/stpncpy (Makefile.am): Likewise.
73062         * modules/strcase (Makefile.am): Likewise.
73063         * modules/strcasestr (Makefile.am): Likewise.
73064         * modules/strchrnul (Makefile.am): Likewise.
73065         * modules/strcspn (Makefile.am): Likewise.
73066         * modules/strdup (Makefile.am): Likewise.
73067         * modules/strerror (Makefile.am): Likewise.
73068         * modules/strftime (Makefile.am): Likewise.
73069         * modules/strndup (Makefile.am): Likewise.
73070         * modules/strnlen (Makefile.am): Likewise.
73071         * modules/strpbrk (Makefile.am): Likewise.
73072         * modules/strsep (Makefile.am): Likewise.
73073         * modules/strstr (Makefile.am): Likewise.
73074         * modules/strtod (Makefile.am): Likewise.
73075         * modules/strtoimax (Makefile.am): Likewise.
73076         * modules/strtok_r (Makefile.am): Likewise.
73077         * modules/strtol (Makefile.am): Likewise.
73078         * modules/strtoll (Makefile.am): Likewise.
73079         * modules/strtoul (Makefile.am): Likewise.
73080         * modules/strtoull (Makefile.am): Likewise.
73081         * modules/strtoumax (Makefile.am): Likewise.
73082         * modules/strverscmp (Makefile.am): Likewise.
73083         * modules/time_r (Makefile.am): Likewise.
73084         * modules/timegm (Makefile.am): Likewise.
73085         * modules/tmpfile-safer (Makefile.am): Likewise.
73086         * modules/unistd-safer (Makefile.am): Likewise.
73087         * modules/unlinkdir (Makefile.am): Likewise.
73088         * modules/userspec (Makefile.am): Likewise.
73089         * modules/utime (Makefile.am): Likewise.
73090         * modules/utimecmp (Makefile.am): Likewise.
73091         * modules/utimens (Makefile.am): Likewise.
73092         * modules/vasnprintf (Makefile.am): Likewise.
73093         * modules/vasprintf (Makefile.am): Likewise.
73094         * modules/vsnprintf (Makefile.am): Likewise.
73095         * modules/xalloc (Makefile.am): Likewise.
73096         * modules/xgetcwd (Makefile.am): Likewise.
73097         * modules/xnanosleep (Makefile.am): Likewise.
73098         * modules/xreadlink (Makefile.am): Likewise.
73099         * modules/xstrtod (Makefile.am): Likewise.
73100         * modules/xstrtol (Makefile.am): Likewise.
73101         * modules/xstrtold (Makefile.am): Likewise.
73102         * modules/yesno (Makefile.am): Likewise.
73103
73104 2006-10-12  Jim Meyering  <jim@meyering.net>
73105
73106         * m4/getloadavg.m4: Revert the change below.
73107
73108         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73109         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73110         fail with a symlink, which is what coreutils' ./bootstrap now
73111         creates by default.
73112
73113 2006-10-12  Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73116         mingw.
73117         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73118         MSVC and mingw explicitly.
73119
73120 2006-10-11  Simon Josefsson  <jas@extundo.com>
73121             Bruno Haible  <bruno@clisp.org>
73122
73123         Add support for multiple gnulib-tool invocations in the scope of a
73124         single configure.ac file.
73125         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73126         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73127         with the same contents as the _LIBADD variable.
73128         (func_emit_initmacro_start, func_emit_initmacro_end,
73129         func_emit_initmacro_done): New functions.
73130         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73131         gl_LIBOBJS and gl_LTLIBOBJS.
73132
73133 2006-10-11  Bruno Haible  <bruno@clisp.org>
73134
73135         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73136         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73137         autoreconf. Instead, invoke autopoint explicitly but move back the
73138         *.m4 files from gnulib.
73139
73140 2006-10-11  Bruno Haible  <bruno@clisp.org>
73141
73142         * gnulib-tool (func_usage): Make module names after --create-testdir
73143         optional.
73144         (func_create_testdir): If no module was specified, use nearly all
73145         modules.
73146
73147 2006-10-12  Jim Meyering  <jim@meyering.net>
73148
73149         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73150         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73151         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73152         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73153         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73154         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73155         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73156         (fts_set_stat_required): New function.
73157         (fts_open): Defer the calls to fts_stat, if possible or requested.
73158         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73159         into fts_stat itself.
73160         (fts_read): Perform any required (deferred) fts_stat call.
73161         (fts_build): Likewise, for the directory we're about to open and read.
73162         In the readdir loop, carefully decide whether each entry will require
73163         an eventual call to fts_stat, using dirent.d_type info if available.
73164         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73165         a command line argument into this function.  Update all callers.
73166         Map a return value of FTS_DOT to FTS_D for a command line argument.
73167         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73168         Thanks to Miklos Szeredi for his tenacity and for the initial
73169         bug report about "find" failing on a FUSE-based file system.
73170
73171         * lib/fts.c (fts_open): Use consistent indentation.
73172
73173 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73174
73175         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73176         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73177         reported by Jim Meyering.  All uses of cache variables renamed
73178         to match Autoconf's.
73179         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73180         the other one.
73181
73182         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73183         Fix misspelling in diagnostic.
73184
73185 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73188         defined.  Problem reported by Matthew Woehlke.
73189
73190         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73191         Add support for Tandem NonStop R series.
73192         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73193         Use new macro.
73194
73195         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73196         (has_trailing_slash): Omit size arg; all callers changed.
73197         Omit 'inline', since it doesn't help performance and we'd
73198         need to configure it.
73199         Don't count //, ///, etc. as having a trailing slash.
73200         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73201         (rpl_rename_dest_slash): On failure, use rename's errno rather
73202         than (in some cases) an incorrect or junk errno.
73203         Simplify code by removing need to compute length; this does
73204         cause it to make two passes instead of one over the file name,
73205         but it's worth it.
73206
73207         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73208         change, since Autoconf's version may no longer be appropriate now
73209         that we are using CVS Autoconf's version.  Add support for Tandem.
73210
73211 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73212             Bruno Haible  <bruno@clisp.org>
73213
73214         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73215         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73216         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73217         gl_AC_TYPE_LONG_LONG.
73218
73219         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73220         instead of HAVE_LONG_LONG.
73221         * lib/printf-args.c (printf_fetchargs): Likewise.
73222         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73223         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73224         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73225         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73226         gl_AC_TYPE_LONG_LONG.
73227
73228 2006-10-11  Bruno Haible  <bruno@clisp.org>
73229
73230         * m4/longlong.m4: Add comments.
73231         * m4/ulonglong.m4: Likewise.
73232
73233 2006-10-10  Bruno Haible  <bruno@clisp.org>
73234
73235         Make it possible to #define stpcpy, strdup to aliases.
73236         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73237         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73238
73239 2006-10-10  Bruno Haible  <bruno@clisp.org>
73240
73241         Make it possible to #define gcd to an alias.
73242         * lib/gcd.c: Include config.h.
73243
73244 2006-10-10  Bruno Haible  <bruno@clisp.org>
73245
73246         Make it possible to #define c_isascii to an alias.
73247         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73248         defined. Undefine the macros before defining them, to avoid gcc
73249         warnings.
73250         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73251         define NO_C_CTYPE_MACROS early.
73252
73253 2006-10-10  Bruno Haible  <bruno@clisp.org>
73254
73255         Make it possible to #define set_program_name to an alias.
73256         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73257         ENABLE_RELOCATABLE early.
73258
73259 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73260
73261         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73262         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73263         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73264         More generally, don't assume that 64-bit signed int is available
73265         if unsigned int is, and vice versa.
73266         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73267         unsigned symbols, not on their signed counterparts.
73268         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73269         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73270         (UINT64_C, UINTMAX_C):
73271         Likewise.
73272         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73273         unsigned counterparts.
73274         (Have_long_long, Unsigned): New macros.
73275         (Int): Renamed from INT.
73276         (strtoimax): Use the new macros.
73277         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73278         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73279         * modules/inttypes (inttypes.h): Substitute
73280         HAVE_UNSIGNED_LONG_LONG_INT.
73281         * modules/stdint (stdint.h): Likewise.
73282         (Files): Add m4/ulonglong.m4.
73283
73284 2006-10-10  Bruno Haible  <bruno@clisp.org>
73285
73286         Fix a gcc -Wshadow warning.
73287         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73288         to 'bucket'.
73289         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73290         gl_linked_indexof_from_to): Likewise.
73291         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73292         Likewise.
73293         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73294         Likewise.
73295         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73296         Reported by Eric Blake.
73297
73298 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73301         for NetBSD.  Problem reported by Bruno Haible.
73302
73303 2006-10-09  Jim Meyering  <jim@meyering.net>
73304
73305         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73306         Patch from Bruno Haible.
73307
73308 2006-10-09  Jim Meyering  <jim@meyering.net>
73309
73310         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73311         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73312         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73313
73314 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         Don't include <config.h> twice; this doesn't work in some cases,
73317         e.g., when config.h has "#define intmax_t long long int" and
73318         we include <config.h>, <inttypes.h>, <config.h> in that order.
73319         Problem reported by Matthew Woehlke in:
73320         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73321         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73322         * lib/fts-cycle.c: Don't include config.h.
73323         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73324         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73325         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73326         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73327         inttypes.h.
73328         * lib/xstrtoumax.c: Likewise.
73329         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73330         __strtol and the like, so that this module is more like its siblings.
73331         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73332         Remove; no longer needed now that we assume gnulib inttypes.h.
73333
73334 2006-10-08  Bruno Haible  <bruno@clisp.org>
73335
73336         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73337         option.
73338
73339 2006-10-07  Jim Meyering  <jim@meyering.net>
73340
73341         * modules/inttypes (inttypes.h): Revert what seems to have been
73342         an inadvertent part of today's change: use "|", not "/" in the
73343         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73344
73345 2006-10-07  Bruno Haible  <bruno@clisp.org>
73346
73347         * modules/sublist: New file.
73348
73349 2006-10-07  Bruno Haible  <bruno@clisp.org>
73350
73351         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73352         * modules/argz (argz.h): Likewise.
73353         * modules/arpa_inet (arpa/inet.h): Likewise.
73354         * modules/byteswap (byteswap.h): Likewise.
73355         * modules/configmake (configmake.h): Likewise.
73356         * modules/fcntl (fcntl.h): Likewise.
73357         * modules/fnmatch (fnmatch.h): Likewise.
73358         * modules/getopt (getopt.h): Likewise.
73359         * modules/glob (glob.h): Likewise.
73360         * modules/inttypes (inttypes.h): Likewise.
73361         * modules/netinet_in (netinet/in.h): Likewise.
73362         * modules/poll (poll.h): Likewise.
73363         * modules/stdbool (stdbool.h): Likewise.
73364         * modules/stdint (stdint.h): Likewise.
73365         * modules/sys_select (sys/select.h): Likewise.
73366         * modules/sys_socket (sys/socket.h): Likewise.
73367         * modules/sys_stat (sys/stat.h): Likewise.
73368         * modules/sysexits (sysexits.h): Likewise.
73369         * modules/unistd (unistd.h): Likewise.
73370         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73371         Add a "DO NOT EDIT" comment to the generated file.
73372         (func_import): Likewise for gnulib-comp.m4.
73373
73374 2006-10-07  Bruno Haible  <bruno@clisp.org>
73375
73376         * lib/gl_sublist.h: New file.
73377         * lib/gl_sublist.c: New file.
73378
73379 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73382         name (relative to the original working directory) and the file
73383         name component (relative to the temporary working directory).  All
73384         callers changed.
73385         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73386         * lib/mkdir-p.c (make_dir_parents): Likewise.
73387         * lib/mkdir-p.h (make_dir_parents): Likewise.
73388
73389 2006-10-06  Eric Blake  <ebb9@byu.net>
73390
73391         Define several macros for use by the clean-temp module.
73392         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73393         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73394         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73395
73396         * lib/clean-temp.h (close_stream_temp): New declaration.
73397         * lib/clean-temp.c (includes): Pull in headers according to what
73398         other modules are in use.
73399         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73400
73401 2006-10-06  Bruno Haible  <bruno@clisp.org>
73402
73403         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73404         instead of fopen, fwriteerror.
73405
73406 2006-10-06  Bruno Haible  <bruno@clisp.org>
73407
73408         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73409         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73410         int.
73411         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73412         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73413         Return an error indicator.
73414         Suggested by Eric Blake.
73415
73416 2006-10-06  Bruno Haible  <bruno@clisp.org>
73417
73418         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73419         Reported by Eric Blake.
73420
73421 2006-10-06  Bruno Haible  <bruno@clisp.org>
73422
73423         * modules/closeout (Description): Mention stderr too.
73424
73425 2006-10-06  Bruno Haible  <bruno@clisp.org>
73426         and Paul Eggert  <eggert@cs.ucla.edu>
73427
73428         * lib/closeout.c (close_stdout): Also close stderr.
73429         * lib/closeout.h: Update comment.
73430
73431 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73432
73433         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73434         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73435         * lib/dirchownmod.c: Include lchown.h.
73436         * lib/lchown.c: Don't include files that lchown.h now includes.
73437         Don't declare chown, since lchown.h now does that.
73438         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73439         (lchown): Define to rpl_chown if lchown is declared but
73440         does not exist.  Declare using a prototype if lchown is not
73441         declared.  Add a copyright notice.
73442         * lib/mkstemp.h: Include <unistd.h>.
73443         * lib/openat.c: Include lchown.h.
73444
73445         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73446         we now test for that separately.
73447         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73448         rather than O_NOFOLLOW, when testing whether it's possible to
73449         avoid a race condition reliably.
73450         * lib/savewd.c (savewd_chdir): Likewise.
73451
73452         Remove macros that are no longer needed now that stdint.h is
73453         reliable.
73454         * lib/fsusage.c (UINTMAX_MAX): Remove.
73455         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73456         * lib/utimecmp.c (SIZE_MAX): Remove.
73457
73458         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73459
73460         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73461         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73462         O_NOATIME works.
73463
73464 2006-10-05  Bruno Haible  <bruno@clisp.org>
73465
73466         * lib/gl_list.h (gl_sortedlist_search_from_to,
73467         gl_sortedlist_indexof_from_to): New declarations.
73468         (gl_list_implementation): New fields sortedlist_search_from_to,
73469         sortedlist_indexof_from_to.
73470         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73471         inline functions.
73472         * lib/gl_list.c (gl_sortedlist_search_from_to,
73473         gl_sortedlist_indexof_from_to): New functions.
73474         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73475         function.
73476         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73477         (gl_array_sortedlist_search_from_to): New function.
73478         (gl_array_list_implementation): Update.
73479         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73480         function.
73481         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73482         (gl_carray_sortedlist_search_from_to): New function.
73483         (gl_carray_list_implementation): Update.
73484         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73485         gl_linked_sortedlist_indexof_from_to): New functions.
73486         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73487         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73488         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73489         gl_tree_sortedlist_indexof_from_to): New functions.
73490         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73491         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73492         Update.
73493         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73494         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73495         Update.
73496
73497 2006-10-05  Bruno Haible  <bruno@clisp.org>
73498
73499         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73500         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73501         (struct gl_list_implementation): Add fields search_from_to,
73502         indexof_from_to. Remove fields search, indexof.
73503         (gl_list_search): Use the search_from_to method.
73504         (gl_list_search_from, gl_list_search_from_to): New functions.
73505         (gl_list_indexof): Use the indexof_from_to method.
73506         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73507         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73508         (gl_list_search_from, gl_list_search_from_to): New functions.
73509         (gl_list_indexof): Use the indexof_from_to method.
73510         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73511         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73512         gl_array_indexof. Add start_index, end_index arguments.
73513         (gl_array_search_from_to): Renamed from gl_array_search. Add
73514         start_index, end_index arguments.
73515         (gl_array_remove, gl_array_list_implementation): Update.
73516         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73517         gl_carray_indexof. Add start_index, end_index arguments.
73518         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73519         start_index, end_index arguments.
73520         (gl_carray_remove, gl_carray_list_implementation): Update.
73521         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73522         gl_linked_search. Add start_index, end_index arguments.
73523         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73524         start_index, end_index arguments.
73525         (gl_linked_remove): Update.
73526         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73527         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73528         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73529         field to 'size_t'.
73530         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73531         gl_tree_search. Add start_index, end_index arguments.
73532         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73533         start_index, end_index arguments.
73534         (gl_tree_remove): Update.
73535         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73536         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73537         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73538         function.
73539         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73540         gl_tree_search. Add start_index, end_index arguments.
73541         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73542         start_index, end_index arguments.
73543         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73544         Update.
73545         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73546
73547 2006-10-05  Bruno Haible  <bruno@clisp.org>
73548
73549         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73550
73551         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73552         fwriteerror_temp): New declarations.
73553         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73554         (descriptors): New variable.
73555         (cleanup): First, close the descriptors.
73556         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73557         fclose_temp, fwriteerror_temp): New functions.
73558
73559 2006-10-04  Jim Meyering  <jim@meyering.net>
73560
73561         * lib/fts.c (fts_open): Tiny comment change.
73562
73563 2006-10-04  Bruno Haible  <bruno@clisp.org>
73564
73565         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73566         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73567         gl_LOCK_BODY.
73568         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73569         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73570         gl_LOCK_EARLY_BODY.
73571         (gl_LOCK): Require gl_LOCK_BODY.
73572
73573 2006-10-04  Bruno Haible  <bruno@clisp.org>
73574
73575         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73576         (gl_oset_search_atleast): New declaration.
73577         (struct gl_oset_implementation): Add field 'search_atleast'.
73578         (gl_oset_search_atleast): New inline function.
73579         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73580         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73581         (gl_array_oset_implementation): Update.
73582         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73583         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73584         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73585
73586 2006-10-04  Bruno Haible  <bruno@clisp.org>
73587
73588         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73589
73590 2006-10-03  Bruno Haible  <bruno@clisp.org>
73591
73592         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73593         from gl_avltreehash_list_implementation.
73594
73595 2006-10-03  Bruno Haible  <bruno@clisp.org>
73596
73597         * lib/gl_oset.c (gl_oset_add): Fix return type.
73598
73599 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73600
73601         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73602
73603 2006-10-02  Eric Blake  <ebb9@byu.net>
73604
73605         * modules/strnlen (Depends-on): Add extensions.
73606
73607 2006-10-02  Eric Blake  <ebb9@byu.net>
73608
73609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73610         definition in 2.60+.
73611
73612 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73613
73614         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73615         checks.
73616
73617 2006-10-02  Bruno Haible  <bruno@clisp.org>
73618
73619         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73620         to the AUTOMAKE_OPTIONS.
73621         Reported by Jim Meyering.
73622
73623 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         Work around bug in Solaris 10 /proc file system:
73626         /proc/self/fd/NNN/.. isn't the parent directory of
73627         the directory whose file descriptor is NNN.  This needs to
73628         be worked around at run time, not compile time, since a
73629         program might be built on Solaris 8, where things work, and
73630         run on Solaris 10.
73631         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73632         to use the following interface instead:
73633         (OPENAT_BUFFER_SIZE): New macro.
73634         (openat_proc_name): New function.
73635         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73636         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73637         Likewise.
73638         * lib/openat-proc.c: New file.
73639         * modules/openat (Files): Add lib/openat-proc.c.
73640         (Depends-on): Add same-inode, stdbool.
73641         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73642
73643 2006-09-29  Bruno Haible  <bruno@clisp.org>
73644
73645         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73646         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73647         argument. Set stdout_closed before testing for ferror, not after.
73648         (fwriteerror, fwriteerror_no_ebadf): New functions.
73649
73650 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73651
73652         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73653
73654 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73655
73656         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73657         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73658
73659 2006-09-28  Jim Meyering  <jim@meyering.net>
73660
73661         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73662         Include <unistd.h>.
73663
73664 2006-09-28  Bruno Haible  <bruno@clisp.org>
73665
73666         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73667         * modules/linkedhash-list (Depends-on): Likewise.
73668         * modules/rbtreehash-list (Depends-on): Likewise.
73669
73670 2006-09-28  Bruno Haible  <bruno@clisp.org>
73671
73672         * lib/strndup.h: Simplify the redefinition of strndup.
73673         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73674         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73675
73676 2006-09-28  Bruno Haible  <bruno@clisp.org>
73677
73678         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73679         * lib/gl_linkedhash_list.c: Likewise.
73680         * lib/gl_rbtreehash_list.c: Likewise.
73681
73682 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73683
73684         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73685         getaddrinfo.
73686
73687         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73688         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73689         it causes <stdio_ext.h> to cause a compile-time error.
73690         Problem reported by Nelson H. F. Beebe.
73691         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73692         of HAVE_DECL___PENDING.
73693
73694         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73695         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73696         declaration.
73697
73698 2006-09-27  Jim Meyering  <jim@meyering.net>
73699
73700         This file could end up with a definition for a function
73701         named __strndup, rather than rpl_strndup on a system with
73702         incomplete weak_alias support.
73703         * lib/strndup.c (strndup): Rename from __strndup.
73704         Remove #defines that used to map __strndup to strndup.
73705         Don't use K&R prototypes.
73706         Remove LIBC-related code, since this file is not sync'd with glibc.
73707         * lib/strndup.h: Revamp, accordingly.
73708         * m4/strndup.m4: Modernize.
73709
73710 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * modules/savewd (Depends-on): Add 'raise'.
73713         * lib/savewd.c: Include <signal.h>, for 'raise'.
73714
73715 2006-09-26  Jim Meyering  <jim@meyering.net>
73716
73717         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73718         when we detect Darwin 8.7.0's acl_get_file bug.
73719         Rearrange to perform the new (below) run-test while $LIBS
73720         contains any acl-related library.  Set USE_ACL at the end.
73721         (gl_ACL_GET_FILE): New function.
73722
73723 2006-09-26  Eric Blake  <ebb9@byu.net>
73724
73725         * lib/verror.c: Include <config.h> unconditionally.
73726
73727 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73728
73729         * modules/clock-time (Maintainer): Add self.
73730         * modules/getlogin_r (Depends-on): Add extensions.
73731
73732 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73733
73734         * modules/clock-time: New module.
73735         * modules/nanosleep (Depends-on): Add clock-time.
73736         * modules/gethrxtime (Depends-on): Likewise.
73737         * modules/gettime (Depends-on): Likewise.
73738         * modules/settime (Depends-on): Likewise.
73739
73740         * modules/fts-lgpl: Depend on openat.
73741         * modules/mkancesdirs: Depend on savewd.
73742         * modules/mkdir-p: Likewise.
73743
73744 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73745
73746         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73747
73748         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73749         `gl_have_arbitrary_file_name_length_limit' to
73750         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73751         actually works between configure runs.
73752
73753 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73754             Bruno Haible  <bruno@clisp.org>
73755
73756         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73757
73758 2006-09-25  Jim Meyering  <jim@meyering.net>
73759
73760         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73761         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73762
73763 2006-09-25  Eric Blake  <ebb9@byu.net>
73764
73765         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73766         exec's in 2006-09-18 patch when shuffling fds.
73767
73768 2006-09-25  Bruno Haible  <bruno@clisp.org>
73769
73770         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73771         Reported by Jim Meyering.
73772
73773 2006-09-24  Jim Meyering  <jim@meyering.net>
73774
73775         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73776         compare a pointer against a literal "0".  That caused failures with
73777         at least HP-UX's hpcc.
73778
73779 2006-09-22  Simon Josefsson  <jas@extundo.com>
73780
73781         * modules/gc-sha1:
73782         * modules/gc-md4:
73783         * modules/gc-hmac-sha1:
73784         * modules/gc-hmac-md5:
73785         * modules/gc-des:
73786         * modules/gc-arcfour: Distribute more files.
73787
73788 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73789
73790         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73791         (gl_linked_iterator_from_to): Initialize struct completely.
73792         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73793         (gl_tree_iterator_from_to): Likewise
73794         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73795         * lib/gl_array_list.c [lint] (gl_array_iterator)
73796         (gl_array_iterator_from_to): Likewise.
73797         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73798         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73799         (gl_carray_iterator_from_to): Likewise.
73800
73801         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73802         * lib/md4.c (md4_process_block): Remove unused variable.
73803         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73804         parentheses for clarity.
73805
73806 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73807
73808         * modules/bison-i18n (Depends-on): Add gettext.
73809
73810 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73811
73812         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73813         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73814         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73815         also add missing comma that caused broken test.
73816         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73817         stdlib.h, for `abort'.
73818         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73819         variables.
73820         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73821         include unistd.h if present, for `rmdir'.
73822         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73823         variables.
73824         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73825         in the process include standard headers for prototypes.
73826         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73827         gets declared on GNU/Linux.
73828         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73829         unistd.h, for `rmdir'.
73830         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73831
73832         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73833         always true.
73834         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73835
73836         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73837
73838 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73839
73840         * gnulib-tool (func_version): Create output all at once.  This
73841         may help avoid triggering unnecessary SIGPIPEs, and at any
73842         rate it doesn't hurt.
73843
73844 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73845             Bruno Haible  <bruno@clisp.org>
73846
73847         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73848         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73849         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73850
73851         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73852         (gl_FUNC_VASPRINTF): Invoke it.
73853
73854 2006-09-22  Bruno Haible  <bruno@clisp.org>
73855
73856         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73857         getloadavg.c as first argument.
73858
73859 2006-09-22  Bruno Haible  <bruno@clisp.org>
73860
73861         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73862         at the beginning of the gl_INIT macro.
73863         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73864         gl_GETLOADAVG.
73865
73866 2006-09-22  Bruno Haible  <bruno@clisp.org>
73867
73868         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73869         module.
73870         Suggested by Ralf Wildenhues.
73871
73872 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         Import this patch from libc:
73875
73876         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73877
73878         * lib/regex_internal.c (re_string_reconstruct): Handle
73879         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73880         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73881         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73882         re_string_context_at.
73883
73884         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73885         now requires it.
73886         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73887         gl_REGEX now does it for us.
73888         (gl_REGEX): Add test taken from
73889         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73890
73891         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73892         Check that large offsets work.  Modernize Autoconf usages.
73893         Prefer "yes" to mean a good thing rather than a bad.
73894         Don't put "#define mkstemp" in config.h, as this might interfere
73895         with standard system headers that "#define mkstemp mkstemp64".
73896
73897         * modules/mkstemp (Depends-on): Add extensions, so that
73898         mkstemp is visible on some platforms.
73899         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73900         (Include): Change to "mkstemp.h" from <stdlib.h>.
73901         (Files): Add mkstemp.h.
73902
73903         * lib/mkstemp.h: New file, since some standard headers
73904         #define mkstemp.
73905         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73906         Include "mkstemp.h".
73907         Make the _LIBC code resemble glibc original more,
73908         e.g., use K&R style.
73909         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73910         (mkstemp): Remove, since mkstemp.h does this for us.
73911         * lib/stdlib--.h: Include mkstemp.h.
73912
73913         Import this patch from libc:
73914
73915         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73916
73917         * lib/tempname.c (__gen_tempname): Change attempts_min
73918         into a macro.  Use preprocessor to decide how to initialize
73919         attempts [Coverity CID 67].
73920
73921 2006-09-20  Bruno Haible  <bruno@clisp.org>
73922
73923         * lib/mkdtemp.c: Import from libc.
73924         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73925                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73926                 attempts_min into a macro.  Use preprocessor to decide how to
73927                 initialize attempts [Coverity CID 67].
73928         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73929                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73930                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73931
73932 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73933
73934         * gnulib-tool (func_exit): New function, to allow to pass the
73935         exit status portably through the trap.  Use everywhere.
73936         (--help, --version): Signal a write error.
73937         (trap): catch SIGPIPE, for write errors.
73938         Exit at the end of the trap, with the correct exit status.
73939
73940 2006-09-19  Karl Berry  <karl@gnu.org>
73941
73942         * doc/gnulib.texi: note about the license texinfo files.
73943
73944 2006-09-19  Eric Blake  <ebb9@byu.net>
73945
73946         * gnulib-tool: Avoid space-tab.
73947
73948 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73951         that prevented coreutils 6.1 from building.  Problem reported
73952         by Petter Reinholdtsen.
73953
73954 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73955
73956         * gnulib-tool (avoidlist): Fix typo that broke options like
73957         --avoid=lock that are used by coreutils bootstrap.
73958
73959 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73960
73961         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73962         more systematically.
73963
73964 2006-09-18  Jim Meyering  <jim@meyering.net>
73965
73966         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73967
73968 2006-09-18  Bruno Haible  <bruno@clisp.org>
73969
73970         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73971
73972 2006-09-18  Bruno Haible  <bruno@clisp.org>
73973
73974         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73975         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73976         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73977         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73978         * m4/gettext.m4: Require autoconf >= 2.52.
73979         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73980         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73981         of gl_cv_header_inttypes_h.
73982
73983 2006-09-18  Bruno Haible  <bruno@clisp.org>
73984
73985         * lib/javaversion.c: Include configmake.h.
73986
73987 2006-09-18  Bruno Haible  <bruno@clisp.org>
73988
73989         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73990         avoid that the while loops be executed in a subshell.
73991
73992 2006-09-18  Bruno Haible  <bruno@clisp.org>
73993
73994         * MODULES.html.sh (func_module): Break long lines.
73995         Suggested by Bruce Korb <bkorb@gnu.org>.
73996
73997 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73998
73999         Speed up by a factor of 1.12.
74000         * gnulib-tool (nl): New variable.
74001         (func_import): Rewrite include directive extraction to only read each
74002         directive once.
74003
74004 2006-09-17  Bruno Haible  <bruno@clisp.org>
74005
74006         * modules/javaversion (Makefile.am): Remove DEFS setting.
74007         (Depends-on): Add configmake, for PKGDATADIR definition.
74008
74009 2006-09-17  Bruno Haible  <bruno@clisp.org>
74010
74011         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74012
74013 2006-09-17  Bruno Haible  <bruno@clisp.org>
74014
74015         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74016         (func_modules_transitive_closure, func_modules_add_dummy,
74017         func_modules_to_filelist, func_import, func_create_testdir,
74018         func_create_megatestdir, ...): Use it wherever possible.
74019         Suggested by Ralf Wildenhues.
74020
74021 2006-09-16  Karl Berry  <karl@gnu.org>
74022
74023         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74024         to avoid sectioning errors.
74025         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74026         [ifinfo]: blank line after @center-ed titles.
74027         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74028         Spell FSF address consistently with others.
74029         (These changes approved by rms.)
74030
74031 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74032
74033         Speed up by a factor of 1.61.
74034         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74035         already checked module names again.
74036
74037 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74038
74039         Speed up by a factor of 1.13.
74040         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74041         for new_files, and the input to func_add_or_update.
74042
74043 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74044
74045         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74046         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74047
74048 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * modules/mkancesdirs (Depends-on): Add fcntl.
74051         * modules/savewd: New file.
74052         * MODULES.html.sh (File system functions): Add savewd.
74053
74054         * modules/configmake (Makefile.am): Add support for the
74055         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74056
74057 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74058
74059         * m4/savewd.m4: New file.
74060
74061 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74062
74063         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74064         (dirchownmod): New arg FD.  All callers changed.
74065         Use FD rather than opening the directory ourself, as opening is
74066         now the caller's responsibility.
74067         * lib/dirchownmod.h: Likewise.
74068         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74069         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74070         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74071         (test_dir): Remove.
74072         (mkancesdirs): Return length of prefix of FILE that has already
74073         been made, or -2 if there is a child doing the work.  Redo
74074         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74075         ".", and treat ".." specially since it might stray back into
74076         already-created areas.  Use a subprocess if necessary.  New arg
74077         WD; all users changed.  MAKE_DIR function should now return 1
74078         if it creates a directory that is not readable.  Return -2 if
74079         a child process is spun off.
74080         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74081         Adjust signature to match code.
74082         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74083         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74084         all users changed.
74085         * lib/savewd.c, lib/savewd.h: New files.
74086
74087 2006-09-15  Jim Meyering  <jim@meyering.net>
74088
74089         * modules/rename-dest-slash: New module.
74090         * MODULES.html.sh (posix_compat): Add it here.
74091
74092         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74093
74094 2006-09-15  Jim Meyering  <jim@meyering.net>
74095
74096         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74097         file.
74098
74099         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74100
74101 2006-09-15  Jim Meyering  <jim@meyering.net>
74102
74103         * lib/rename-dest-slash.c (has_trailing_slash): Use
74104         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74105         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74106         test before testing whether SRC is a directory.
74107         Suggestions from Bruno Haible.
74108
74109         Avoid a warning about an unused variable.
74110         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74111         into the #ifdef block where it's used.
74112
74113         * lib/rename-dest-slash.c: New file.
74114
74115 2006-09-14  Bruno Haible  <bruno@clisp.org>
74116
74117         * lib/allocsa.c: Include <config.h> unconditionally.
74118         * lib/asnprintf.c: Likewise.
74119         * lib/asprintf.c: Likewise.
74120         * lib/c-strcasecmp.c: Likewise.
74121         * lib/c-strcasestr.c: Likewise.
74122         * lib/c-strncasecmp.c: Likewise.
74123         * lib/c-strstr.c: Likewise.
74124         * lib/classpath.c: Likewise.
74125         * lib/clean-temp.c: Likewise.
74126         * lib/concatpath.c: Likewise.
74127         * lib/copy-file.c: Likewise.
74128         * lib/csharpcomp.c: Likewise.
74129         * lib/csharpexec.c: Likewise.
74130         * lib/execute.c: Likewise.
74131         * lib/fatal-signal.c: Likewise.
74132         * lib/findprog.c: Likewise.
74133         * lib/fwriteerror.c: Likewise.
74134         * lib/gl_array_list.c: Likewise.
74135         * lib/gl_array_oset.c: Likewise.
74136         * lib/gl_avltree_list.c: Likewise.
74137         * lib/gl_avltree_oset.c: Likewise.
74138         * lib/gl_avltreehash_list.c: Likewise.
74139         * lib/gl_carray_list.c: Likewise.
74140         * lib/gl_linked_list.c: Likewise.
74141         * lib/gl_linkedhash_list.c: Likewise.
74142         * lib/gl_list.c: Likewise.
74143         * lib/gl_oset.c: Likewise.
74144         * lib/gl_rbtree_list.c: Likewise.
74145         * lib/gl_rbtree_oset.c: Likewise.
74146         * lib/gl_rbtreehash_list.c: Likewise.
74147         * lib/imaxabs.c: Likewise.
74148         * lib/imaxdiv.c: Likewise.
74149         * lib/javacomp.c: Likewise.
74150         * lib/javaexec.c: Likewise.
74151         * lib/javaversion.c: Likewise.
74152         * lib/linebreak.c: Likewise.
74153         * lib/localcharset.c: Likewise.
74154         * lib/lock.c: Likewise.
74155         * lib/mbchar.c: Likewise.
74156         * lib/mbswidth.c: Likewise.
74157         * lib/mkdtemp.c: Likewise.
74158         * lib/pipe.c: Likewise.
74159         * lib/printf-args.c: Likewise.
74160         * lib/printf-parse.c: Likewise.
74161         * lib/progname.c: Likewise.
74162         * lib/progreloc.c: Likewise.
74163         * lib/readlink.c: Likewise.
74164         * lib/sh-quote.c: Likewise.
74165         * lib/stpcpy.c: Likewise.
74166         * lib/stpncpy.c: Likewise.
74167         * lib/strcasecmp.c: Likewise.
74168         * lib/strcasestr.c: Likewise.
74169         * lib/strcspn.c: Likewise.
74170         * lib/striconv.c: Likewise.
74171         * lib/strncasecmp.c: Likewise.
74172         * lib/strnlen1.c: Likewise.
74173         * lib/strstr.c: Likewise.
74174         * lib/strtok_r.c: Likewise.
74175         * lib/tls.c: Likewise.
74176         * lib/tmpdir.c: Likewise.
74177         * lib/unicodeio.c: Likewise.
74178         * lib/unsetenv.c: Likewise.
74179         * lib/vasnprintf.c: Likewise.
74180         * lib/vasprintf.c: Likewise.
74181         * lib/wait-process.c: Likewise.
74182         * lib/xallocsa.c: Likewise.
74183         * lib/xsetenv.c: Likewise.
74184         * lib/xstriconv.c: Likewise.
74185
74186 2006-09-13  Simon Josefsson  <jas@extundo.com>
74187
74188         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74189         that internally, suggested by Ralf Wildenhues
74190         <Ralf.Wildenhues@gmx.de>.
74191
74192 2006-09-13  Simon Josefsson  <jas@extundo.com>
74193
74194         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74195         @LIBOBJS@.
74196         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74197
74198 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74199
74200         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74201         longer worry about uses that don't define HAVE_CONFIG_H.
74202         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74203         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74204         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74205         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74206         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74207         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74208         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74209         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74210         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74211         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74212         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74213         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74214         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74215         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74216         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74217         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74218         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74219         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74220         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74221         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74222         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74223         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74224         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74225         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74226         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74227         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74228         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74229         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74230         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74231         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74232         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74233         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74234         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74235         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74236         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74237         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74238         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74239         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74240         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74241         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74242         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74243         Likewise.
74244
74245 2006-09-13  Eric Blake  <ebb9@byu.net>
74246
74247         * lib/getopt.c: Fix typo in last commit.
74248
74249 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74250
74251         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74252         dgettext.
74253
74254 2006-09-12  Jim Meyering  <jim@meyering.net>
74255
74256         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74257         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74258         Reported by Nelson H. F. Beebe.
74259
74260 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74261
74262         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74263         program_invocation_name and program_invocation_short_name are
74264         initialized.
74265         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74266         and program_invocation_short_name to argp.h, so they are visible
74267         to user programs.
74268         * lib/argp.h: Likewise
74269
74270 2006-09-10  Bruno Haible  <bruno@clisp.org>
74271
74272         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74273         m4/inttypes_h.m4, m4/uintmax_t.m4.
74274
74275 2006-09-10  Bruno Haible  <bruno@clisp.org>
74276
74277         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74278         gl_AC_TYPE_UINTMAX_T.
74279
74280 2006-09-10  Bruno Haible  <bruno@clisp.org>
74281
74282         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74283
74284 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74285
74286         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74287         convention.  Text proposed by Bruno Haible.
74288         (struct argp_option): Document the use of N_() wrappers.
74289
74290         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74291         '\v', and translate the two parts separately, instead of feeding
74292         the whole string to gettext.  This allows to exclude
74293         '\v' from the strings visible to the translator by writing doc
74294         strings as N_("..") "\v" N_("..").
74295
74296 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74297
74298         * config/srclist.txt: Undo latest change; the bug was fixed.
74299
74300 2006-09-09  Bruno Haible  <bruno@clisp.org>
74301
74302         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74303         assignments if building a library without libtool.
74304         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74305         in func_emit_lib_Makefile_am.
74306         (func_import): When building a static library libfoo.a, arrange to
74307         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74308         (func_create_testdir): Likewise.
74309         * modules/gc (configure.ac, Makefile.am): If building statically,
74310         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74311         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74312         * modules/striconv (configure.ac, Makefile.am): Likewise.
74313         Based on a suggestion by Ralf Wildenhues.
74314
74315 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74318         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74319         Also:
74320
74321         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74322         Add year_2050_test to catch glibc bug 2821
74323         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74324
74325         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74326         Prefer #ifdef to #if.
74327
74328         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74329         Return from 'main' instead of calling 'exit'.
74330
74331 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74332
74333         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74334         returned the maximum time_t value rather than (time_t) -1.
74335         Problem originally reported by William Bardwell
74336         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74337
74338         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74339         Moved to here ...
74340         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74341         ... from here.
74342
74343 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74346         2821 is fixed.
74347
74348 2006-09-08  Jim Meyering  <jim@meyering.net>
74349
74350         Don't make generated files read-only.  That would bother too many
74351         people.  However, do retain the ability to work when targets are
74352         read-only: remove the destination and temporary files before writing
74353         them (when generated via sed or echo), or by using the -f option for
74354         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74355         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74356         * modules/byteswap, modules/configmake, modules/fcntl:
74357         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74358         * modules/localcharset, modules/netinet_in, modules/poll:
74359         * modules/stdbool, modules/stdint, modules/sys_select:
74360         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74361
74362 2006-09-08  Jim Meyering  <jim@meyering.net>
74363
74364         Avoid new build failure on FreeBSD 6.0.
74365         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74366         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74367         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74368
74369 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74370
74371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74372
74373 2006-09-07  Jim Meyering  <jim@meyering.net>
74374
74375         Fix global typo in last change: use chmod u-w, not chmod u-x.
74376         Spotted by Paul Eggert and Bruce Korb.
74377         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74378         * modules/byteswap, modules/configmake, modules/fcntl:
74379         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74380         * modules/localcharset, modules/netinet_in, modules/poll:
74381         * modules/stdbool, modules/stdint, modules/sys_select:
74382         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74383
74384 2006-09-06  Jim Meyering  <jim@meyering.net>
74385
74386         Make generated files be read-only.
74387         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74388         Ensure that each generated file is now read-only.
74389         * modules/argz: Likewise.
74390         * modules/arpa_inet: Likewise.
74391         * modules/byteswap: Likewise.
74392         * modules/configmake: Likewise.
74393         * modules/fcntl: Likewise.
74394         * modules/fnmatch: Likewise.
74395         * modules/getopt: Likewise.
74396         * modules/glob: Likewise.
74397         * modules/inttypes: Likewise.
74398         * modules/netinet_in: Likewise.
74399         * modules/poll: Likewise.
74400         * modules/stdbool: Likewise.
74401         * modules/stdint: Likewise.
74402         * modules/sys_select: Likewise.
74403         * modules/sys_socket: Likewise.
74404         * modules/sys_stat: Likewise.
74405         * modules/sysexits: Likewise.
74406         * modules/localcharset: Same as above, but continue using temporary
74407         file named "t-$@" (why different?) rather than the "$@-t" used
74408         everywhere else.
74409
74410         * modules/sysexits (Makefile.am): Replace literal occurrences
74411         of "sysexit.h" more readable, and more consistent, "$@".
74412
74413 2006-09-06  Bruno Haible  <bruno@clisp.org>
74414
74415         * modules/striconv: New file.
74416         * modules/xstriconv: New file.
74417         * MODULES.html.sh (Internationalization functions): Add striconv,
74418         xstriconv.
74419
74420 2006-09-06  Bruno Haible  <bruno@clisp.org>
74421
74422         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74423         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74424         not using libtool correctly.
74425
74426 2006-09-06  Bruno Haible  <bruno@clisp.org>
74427
74428         * lib/striconv.h: New file.
74429         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74430         iconvstring.c.
74431         * lib/xstriconv.h: New file.
74432         * lib/xstriconv.c: New file.
74433
74434 2006-09-06  Bruno Haible  <bruno@clisp.org>
74435
74436         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74437         lib_..._LDFLAGS.
74438
74439 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74440
74441         * lib/argz_.h: Sync from Libtool.
74442
74443         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74444                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74445
74446         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74447
74448 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74449
74450         * modules/trim: New file.
74451
74452 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74453
74454         * lib/trim.h: New file.
74455         * lib/trim.c: New file.
74456
74457 2006-09-05  Bruno Haible  <bruno@clisp.org>
74458
74459         * MODULES.html.sh (String handling): Add trim.
74460
74461 2006-09-04  Karl Berry  <karl@gnu.org>
74462
74463         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74464         until next release.
74465
74466 2006-09-03  Bruno Haible  <bruno@clisp.org>
74467
74468         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74469         correctly.
74470
74471 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74472
74473         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74474         not gl_GETLOADAVG.  Omit unneeded semicolons.
74475         Problems reported by Ralf Wildenhues in
74476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74477         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74478         at the end, which is the usual gnulib style.
74479
74480         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74481         of doing all the work ourselves.
74482         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74483         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74484
74485 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74486
74487         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74488         Problem reported by Ralf Wildenhues in
74489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74490
74491         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74492         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74493
74494 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74495
74496         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74497         yesterday's patch by changing test -n to test -z.
74498
74499 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74502         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74503         the former is now obsolescent.
74504
74505         * modules/chdir-long (Depends-on): Add fcntl.
74506
74507 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74508
74509         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74510         obsolescent, and programs should use gnulib instead.
74511         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74512         but with prefixes changed.
74513
74514 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74517         or stdbool.h, because they might not exist while configuring.
74518
74519         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74520         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74521         does that for us.
74522         (O_DIRECTORY): Remove.
74523
74524 2006-08-31  Eric Blake  <ebb9@byu.net>
74525
74526         * gnulib-tool: Don't let emacs change spaces to TAB.
74527
74528 2006-08-31  Bruno Haible  <bruno@clisp.org>
74529
74530         * gnulib-tool: When calling func_import more than once, do it in a
74531         subshell.
74532         Reported by Eric Blake <ebb9@byu.net>.
74533
74534 2006-08-31  Bruno Haible  <bruno@clisp.org>
74535
74536         * gnulib-tool (nl): Remove variable.
74537         (sed_transform_lib_file): Use more robust test for config-h module.
74538         (func_import): Fix typo in 2006-08-25 patch.
74539
74540 2006-08-31  Bruno Haible  <bruno@clisp.org>
74541
74542         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74543         specified, augment Makefile.am variables instead of assigning them.
74544
74545 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         Work around a bug in both the Linux and SunOS 64-bit kernels:
74548         nanosleep mishandles sleeps for longer than 2**31 seconds.
74549         Problem reported by Frank v Waveren in
74550         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74551         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74552         Check for nanosleep bug.
74553         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74554
74555 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74556
74557         Work around a bug in both the Linux and SunOS 64-bit kernels:
74558         nanosleep mishandles sleeps for longer than 2**31 seconds.
74559         Problem reported by Frank v Waveren in
74560         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74561         * lib/nanosleep.c (BILLION): New constant.
74562         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74563         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74564         implementation.
74565
74566 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * modules/nanosleep (Depends-on): Add gettime.
74569
74570 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74571         and Simon Josefsson  <jas@extundo.com>
74572         and Oskar Liljeblad  <oskar@osk.mine.nu>
74573
74574         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74575         * gnulib-tool (func_import): New license type 'unmodifiable license
74576         text'.
74577         * modules/fdl: Use it.  Longer description.
74578         * module/gpl, module/lgpl: New files.
74579
74580 2006-08-30  Jim Meyering  <jim@meyering.net>
74581
74582         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74583         shadowing the parameter.
74584
74585 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74586
74587         Sync from Libtool:
74588
74589         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74590
74591         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74592         sharing with gnulib.  Report by Eric Blake.
74593
74594 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * modules/isapipe: New file.
74597         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74598
74599 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74600
74601         * modules/configmake (Makefile.am): Add a comment, and omit
74602         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74603         by Bruno Haible.
74604
74605 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * m4/isapipe.m4: New file.
74608
74609 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74610
74611         * lib/isapipe.c, lib/isapipe.h: New files.
74612
74613 2006-08-29  Jim Meyering  <jim@meyering.net>
74614
74615         * modules/configmake (Makefile.am): Make configmake.h depend on
74616         Makefile.  Otherwise, a stale configmake.h could hang around.
74617
74618 2006-08-29  Eric Blake  <ebb9@byu.net>
74619
74620         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74621         resolution of upstream bug 3044.
74622
74623 2006-08-29  Bruno Haible  <bruno@clisp.org>
74624
74625         * modules/localcharset (Depends-on): Add configmake.
74626         (Makefile.am): Remove setting of LIBDIR through DEFS.
74627
74628 2006-08-29  Bruno Haible  <bruno@clisp.org>
74629
74630         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74631         defined.
74632
74633 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74634
74635         * modules/fcntl: New file.
74636         * modules/chdir-safer (Depends-on): Add fcntl.
74637         * modules/fts: Likewise.
74638         * modules/mkdir-p: Likewise.
74639
74640         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74641         This undoes the most recent change, since we're now addressing the
74642         problem in a different way.
74643
74644         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74645         into output, since the output might be called Makefile.am even
74646         if $makefile_name is something different.
74647         (func_import): Use $makefile_am rather than
74648         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74649         empty.
74650
74651         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74652
74653 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74654
74655         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74656         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74657         recent change to stdint.m4, since we're now addressing the problem in a
74658         different way.
74659
74660 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74661
74662         * m4/fcntl_h.m4: New file.
74663
74664 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * lib/fcntl_.h: New file.
74667         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74668         the fcntl module.
74669         * lib/dirchownmod.c: Likewise.
74670         * lib/fts.c: Likewise.
74671
74672         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74673         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74674         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74675         just before including <inttypes.h>, to avoid circular inclusion.
74676
74677 2006-08-28  Jim Meyering  <jim@meyering.net>
74678
74679         * doc/visibility.texi: Actually read and correct the grammar of the
74680         sentence affected by yesterday's change.
74681
74682 2006-08-28  Eric Blake  <ebb9@byu.net>
74683
74684         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74685         needs wrapper.
74686
74687 2006-08-28  Eric Blake  <ebb9@byu.net>
74688
74689         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74690
74691 2006-08-28  Eric Blake  <ebb9@byu.net>
74692
74693         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74694
74695 2006-08-28  Bruno Haible  <bruno@clisp.org>
74696
74697         * modules/c-strstr: New file, from GNU gettext.
74698         * MODULES.html.sh (String handling): Add c-strstr.
74699
74700 2006-08-28  Bruno Haible  <bruno@clisp.org>
74701
74702         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74703         macros.
74704         Reported by Eric Blake.
74705
74706 2006-08-28  Bruno Haible  <bruno@clisp.org>
74707
74708         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74709         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74710         * lib/vasprintf.c: Include errno.h, limits.h.
74711         (EOVERFLOW): New fallback definition.
74712         (vasprintf): Test here whether the string length is > INT_MAX.
74713         * lib/vsnprintf.c: Include errno.h, limits.h.
74714         (EOVERFLOW): New fallback definition.
74715         (vsnprintf): Fix bug when generated string was too long for the buffer.
74716         Test here whether the string length is > INT_MAX.
74717
74718 2006-08-28  Bruno Haible  <bruno@clisp.org>
74719
74720         * lib/inttypes_.h (SCNX*): Remove definitions.
74721         Reported by Eric Blake.
74722
74723 2006-08-28  Bruno Haible  <bruno@clisp.org>
74724
74725         * lib/c-strstr.h: New file, from GNU gettext.
74726         * lib/c-strstr.c: New file, from GNU gettext.
74727
74728 2006-08-28  Bruno Haible  <bruno@clisp.org>
74729
74730         * gnulib-tool: Reorder some statements.
74731
74732 2006-08-28  Bruno Haible  <bruno@clisp.org>
74733
74734         * gnulib-tool: New option --makefile-name.
74735         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74736         $makefile_name.
74737         (func_import): Write $makefile_name to the cache file, and read it from
74738         there unless explicitly specified. Use $makefile_name as file name
74739         instead of Makefile.am. Adjust the recommendations accordingly.
74740
74741 2006-08-28  Bruno Haible  <bruno@clisp.org>
74742
74743         * gnulib-tool (func_verify_module): Check against misapplying patch.
74744
74745 2006-08-28  Bruno Haible  <bruno@clisp.org>
74746
74747         * gnulib-tool (func_relativize, func_relconcat): New functions.
74748         Give an error if --local-dir is given with --update.
74749         Remove trailing slashes from $local_gnulib_dir.
74750         (func_import): Store the relativized $local_gnulib_dir in
74751         gnulib-cache.m4, and read it from there if not specified explicitly.
74752
74753 2006-08-28  Bruno Haible  <bruno@clisp.org>
74754
74755         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74756         is the current directory. Respect also $local_gnulib_dir.
74757
74758 2006-08-28  Bruno Haible  <bruno@clisp.org>
74759             Simon Josefsson  <jas@extundo.com>
74760
74761         BeOS portability.
74762         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74763
74764 2006-08-27  Jim Meyering  <jim@meyering.net>
74765
74766         * doc/visibility.texi: Remove duplicate word: "pointer".
74767
74768 2006-08-26  Bruno Haible  <bruno@clisp.org>
74769
74770         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74771         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74772         (Makefile.am): Create inttypes.h from inttypes_.h.
74773         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74774
74775         * modules/imaxabs: New file.
74776
74777         * modules/imaxdiv: New file.
74778
74779 2006-08-26  Bruno Haible  <bruno@clisp.org>
74780
74781         * m4/inttypes.m4: New file.
74782         * m4/_inttypes_h.m4: Remove file.
74783         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74784         PRI_MACROS_BROKEN.
74785         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74786
74787         * m4/imaxabs.m4: New file.
74788
74789         * m4/imaxdiv.m4: New file.
74790
74791 2006-08-26  Bruno Haible  <bruno@clisp.org>
74792
74793         * lib/inttypes_.h: New file.
74794         * lib/inttypes.h: Remove file.
74795         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74796
74797         * lib/imaxabs.c: New file.
74798
74799         * lib/imaxdiv.c: New file.
74800
74801 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74802
74803         New config-h module, so that "make" output needn't be cluttered
74804         by -DHAVE_CONFIG_H.
74805         * MODULES.html.sh (Support for building libraries and executables):
74806         Add config-h.
74807         * modules/config-h: New file.
74808         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74809         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74810         the config-h module is used.
74811
74812         New configmake module, so that "make" output needn't be cluttered
74813         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74814         * MODULES.html.sh (Support for building libraries and executables):
74815         Add configmake.
74816         * modules/configmake: New file.
74817
74818 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         * m4/config-h.m4: New file.
74821
74822 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * config/srclist.txt: Add elisp-comp.
74825
74826 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74827
74828         * MODULES.html.sh (Support for building libraries and executables):
74829         Add elisp-comp.
74830         * build-aux/elisp-comp: New file.
74831         * modules/elisp-comp: New file.
74832
74833 2006-08-24  Bruno Haible  <bruno@clisp.org>
74834
74835         * gnulib-tool (func_create_testdir): Use non-default values of
74836         sourcebase and m4base.
74837
74838 2006-08-24  Bruno Haible  <bruno@clisp.org>
74839
74840         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74841         HTML structure.
74842
74843 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74844
74845         * modules/openat (Depends-on): Add lchown.
74846
74847 2006-08-23  Bruno Haible  <bruno@clisp.org>
74848
74849         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74850         of gl_LOCK_EARLY instead of gl_LOCK.
74851
74852 2006-08-23  Bruno Haible  <bruno@clisp.org>
74853
74854         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74855         on OSF/1 to no.
74856         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74857
74858 2006-08-23  Bruno Haible  <bruno@clisp.org>
74859
74860         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74861         as unusable.
74862
74863         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74864         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74865         (gl_LOCK): New macro.
74866
74867 2006-08-22  Simon Josefsson  <jas@extundo.com>
74868
74869         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74870         to md5 module.
74871
74872 2006-08-22  Simon Josefsson  <jas@extundo.com>
74873
74874         * MODULES.html.sh: Add "Support for maintaining and release
74875         projects".
74876
74877         * build-aux/gnupload: New file, from coreutils.
74878
74879 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         Avoid the need for AC_LIBSOURCES in m4 macros.
74882         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74883         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74884         * modules/check-version (EXTRA_DIST): Add check-version.h.
74885         * modules/crc (EXTRA_DIST): Add crc.h.
74886         * modules/des (EXTRA_DIST): Add des.h.
74887         * modules/gc (EXTRA_DIST): Add gc.h.
74888         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74889         * modules/getline (EXTRA_DIST): Add getline.h.
74890         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74891         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74892         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74893         * modules/md2 (EXTRA_DIST): Add md2.h.
74894         * modules/md4 (EXTRA_DIST): Add md4.h.
74895         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74896         * modules/read-file (EXTRA_DIST): Add read-file.h.
74897         * modules/readline (EXTRA_DIST): Add readline.h.
74898         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74899         rijndael-api-fst.h.
74900
74901 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74902
74903         * m4/rijndael.m4 (gl_ARCFOUR):
74904         * m4/arctwo.m4 (gl_ARCTWO):
74905         * m4/check-version.m4 (gl_CHECK_VERSION):
74906         * m4/crc.m4 (gl_CRC):
74907         * m4/des.m4 (gl_DES):
74908         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74909         * m4/gc.m4 (gl_GC):
74910         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74911         * m4/getline.m4 (gl_FUNC_GETLINE):
74912         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74913         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74914         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74915         * m4/md2.m4 (gl_MD2):
74916         * m4/md4.m4 (gl_MD4):
74917         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74918         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74919         * m4/readline.m4 (gl_FUNC_READLINE):
74920         * m4/rijndael.m4 (gl_RIJNDAEL):
74921         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74922         to get the necessary .h files and whatnot.
74923
74924 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74925
74926         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74927         gnulib rather than the other way around.
74928         * config/srclistvars.sh (COREUTILS): Remove.
74929
74930 2006-08-22  Jim Meyering  <jim@meyering.net>
74931
74932         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74933
74934         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74935
74936 2006-08-22  Eric Blake  <ebb9@byu.net>
74937
74938         * modules/regexprops-generic: New file.
74939         * MODULES.html.sh (Support for building documentation): List it.
74940
74941 2006-08-22  Eric Blake  <ebb9@byu.net>
74942
74943         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74944         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74945         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74946         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74947
74948 2006-08-22  Bruno Haible  <bruno@clisp.org>
74949
74950         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74951         and lib_LTLIBRARIES like the other lib_* variables.
74952
74953 2006-08-22  Bruno Haible  <bruno@clisp.org>
74954
74955         * build-aux/x-to-1.in: New file, from GNU gettext.
74956
74957 2006-08-22  Bruno Haible  <bruno@clisp.org>
74958
74959         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74960         <utmpx.h> exists.
74961
74962 2006-08-22  Bruno Haible  <bruno@clisp.org>
74963
74964         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74965         <utmpx.h> exists.
74966
74967 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         BeOS portability.
74970         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74971         exist.
74972         Problem reported by Bruno Haible.
74973
74974 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74975
74976         Avoid the need for AC_LIBSOURCES in m4 macros.
74977         * modules/acl (EXTRA_DIST): Add acl.h.
74978         * modules/argmatch (Files): Add m4/argmatch.m4.
74979         (configure.ac): Add gl_ARGMATCH.
74980         (EXTRA_DIST): Renamed from lib_SOURCES, for
74981         consistency with the other modules.  Remove argmatch.c.
74982         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74983         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74984         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74985         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74986         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74987         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74988         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74989         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74990         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74991         * modules/closeout (EXTRA_DIST): Add closeout.h.
74992         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74993         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74994         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74995         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74996         dirname.h; remove basename.c and stripslash.c.
74997         * modules/exclude (EXTRA_DIST): Add exclude.h.
74998         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74999         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75000         * modules/file-type (EXTRA_DIST): Add file-type.h.
75001         * modules/filemode (EXTRA_DIST): Add filemode.h.
75002         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75003         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75004         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75005         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75006         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75007         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75008         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75009         * modules/getdate (EXTRA_DIST): Add getdate.c.
75010         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75011         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75012         * modules/getpass (EXTRA_DIST): Add getpass.h.
75013         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75014         * modules/group-member (EXTRA_DIST): Add group-member.h.
75015         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75016         * modules/hash (EXTRA_DIST): Add hash.h.
75017         * modules/human (EXTRA_DIST): Add human.h.
75018         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75019         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75020         * modules/lchown (EXTRA_DIST): Add lchown.h.
75021         * modules/long-options (EXTRA_DIST): Add long-options.h.
75022         * modules/lstat (EXTRA_DIST): Add lstat.h.
75023         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75024         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75025         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75026         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75027         * modules/memxor (EXTRA_DIST): Add memxor.h.
75028         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75029         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75030         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75031         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75032         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75033         * modules/physmem (EXTRA_DIST): Add physmem.h.
75034         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75035         * modules/posixver (EXTRA_DIST): Add posixver.h.
75036         * modules/quote (EXTRA_DIST): Add quote.h.
75037         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75038         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75039         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75040         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75041         regex_internal.h regexec.c.
75042         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75043         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75044         * modules/same (EXTRA_DIST): Add same.h.
75045         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75046         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75047         * modules/savedir (EXTRA_DIST): Add savedir.h.
75048         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75049         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75050         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75051         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75052         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75053         * modules/strdup (EXTRA_DIST): Add strdup.h.
75054         * modules/strftime (EXTRA_DIST): Add strftime.h.
75055         * modules/strndup (EXTRA_DIST): Add strndup.h.
75056         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75057         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75058         * modules/time_r (EXTRA_DIST): Add time_r.h.
75059         * modules/timespec (EXTRA_DIST): Add timespec.h.
75060         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75061         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75062         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75063         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75064         * modules/userspec (EXTRA_DIST): Add userspec.h.
75065         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75066         * modules/utimens (EXTRA_DIST): Add utimens.h.
75067         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75068         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75069         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75070         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75071         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75072         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75073         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75074         * modules/yesno (EXTRA_DIST): Add yesno.h.
75075
75076 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75079
75080         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75081         * m4/dev-ino.m4, same-inode.m4: Remove.
75082
75083         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75084         * m4/acl.m4 (AC_FUNC_ACL):
75085         * m4/backupfile.m4 (gl_BACKUPFILE):
75086         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75087         * m4/canon-host.m4 (gl_CANON_HOST):
75088         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75089         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75090         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75091         * m4/cloexec.m4 (gl_CLOEXEC):
75092         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75093         * m4/closeout.m4 (gl_CLOSEOUT):
75094         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75095         * m4/dirname.m4 (gl_DIRNAME):
75096         * m4/exclude.m4 (gl_EXCLUDE):
75097         * m4/exitfail.m4 (gl_EXITFAIL):
75098         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75099         * m4/file-type.m4 (gl_FILE_TYPE):
75100         * m4/filemode.m4 (gl_FILEMODE):
75101         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75102         * m4/fpending.m4 (gl_FUNC_FPENDING):
75103         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75104         * m4/fts.m4 (gl_FUNC_FTS):
75105         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75106         * m4/getdate.m4 (gl_GETDATE):
75107         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75108         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75109         * m4/getpass.m4 (gl_FUNC_GETPASS):
75110         * m4/gettime.m4 (gl_GETTIME):
75111         * m4/getugroups.m4 (gl_GETUGROUPS):
75112         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75113         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75114         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75115         * m4/hash.m4 (gl_HASH):
75116         * m4/idcache.m4 (gl_IDCACHE):
75117         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75118         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75119         * m4/long-options.m4 (gl_LONG_OPTIONS):
75120         * m4/lstat.m4 (gl_FUNC_LSTAT):
75121         * m4/md5.m4 (gl_MD5):
75122         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75123         * m4/memcoll.m4 (gl_MEMCOLL):
75124         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75125         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75126         * m4/memxor.m4 (gl_MEMXOR):
75127         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75128         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75129         * m4/modechange.m4 (gl_MODECHANGE):
75130         * m4/mountlist.m4 (gl_MOUNTLIST):
75131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75132         * m4/openat.m4 (gl_FUNC_OPENAT):
75133         * m4/pathmax.m4 (gl_PATHMAX):
75134         * m4/physmem.m4 (gl_PHYSMEM):
75135         * m4/posixtm.m4 (gl_POSIXTM):
75136         * m4/posixver.m4 (gl_POSIXVER):
75137         * m4/quote.m4 (gl_QUOTE):
75138         * m4/quotearg.m4 (gl_QUOTEARG):
75139         * m4/readtokens.m4 (gl_READTOKENS):
75140         * m4/readutmp.m4 (gl_READUTMP):
75141         * m4/regex.m4 (gl_REGEX):
75142         * m4/safe-read.m4 (gl_SAFE_READ):
75143         * m4/safe-write.m4 (gl_SAFE_WRITE):
75144         * m4/same.m4 (gl_SAME):
75145         * m4/save-cwd.m4 (gl_SAVE_CWD):
75146         * m4/savedir.m4 (gl_SAVEDIR):
75147         * m4/settime.m4 (gl_SETTIME):
75148         * m4/sha1.m4 (gl_SHA1):
75149         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75150         * m4/stat-macros.m4 (gl_STAT_MACROS):
75151         * m4/stat-time.m4 (gl_STAT_TIME):
75152         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75153         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75154         * m4/strdup.m4 (gl_FUNC_STRDUP):
75155         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75156         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75157         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75158         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75159         * m4/time_r.m4 (gl_TIME_R):
75160         * m4/timespec.m4 (gl_TIMESPEC):
75161         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75162         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75163         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75164         * m4/userspec.m4 (gl_USERSPEC):
75165         * m4/utimecmp.m4 (gl_UTIMECMP):
75166         * m4/utimens.m4 (gl_UTIMENS):
75167         * m4/xalloc.m4 (gl_XALLOC):
75168         * m4/xgetcwd.m4 (gl_XGETCWD):
75169         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75170         * m4/xreadlink.m4 (gl_XREADLINK):
75171         * m4/xstrtod.m4 (gl_XSTRTOD):
75172         * m4/yesno.m4 (gl_YESNO):
75173         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75174         to get the necessary .h files and whatnot.
75175
75176 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75177             Bruno Haible  <bruno@clisp.org>
75178
75179         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75180         /bin/sh understanding of '!' conditional negation.
75181
75182 2006-08-21  Jim Meyering  <jim@meyering.net>
75183
75184         * modules/openat (Depends-on): Really alphabetize.
75185
75186         * modules/acl (Depends-on): Add error and quote.
75187
75188         * check-module (find_included_lib_files): Add at-func.c to the
75189         ok-to-include-more-than-once white list.
75190
75191         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75192
75193 2006-08-21  Bruno Haible  <bruno@clisp.org>
75194
75195         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75196         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75197         Reported by Martin Lambers <marlam@marlam.de>.
75198
75199 2006-08-21  Bruno Haible  <bruno@clisp.org>
75200
75201         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75202         specify an installation location, don't emit a noinst_LIBRARIES or
75203         noinst_LTLIBRARIES assignment.
75204
75205 2006-08-21  Bruno Haible  <bruno@clisp.org>
75206
75207         BeOS portability.
75208         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75209         BeOS has mbrtowc() but no <wctype.h>.
75210
75211 2006-08-21  Bruno Haible  <bruno@clisp.org>
75212
75213         BeOS portability.
75214         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75215         exist.
75216
75217 2006-08-21  Bruno Haible  <bruno@clisp.org>
75218
75219         BeOS portability.
75220         * lib/mbchar.h: Include <wctype.h> only if it exists.
75221
75222 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         Remove files that are no longer needed by their respective modules.
75225         * m4/obstack.m4: Remove.
75226         * m4/strerror_r.m4: Remove.
75227         * m4/uint32_t.m4: Remove.
75228         * m4/uintptr_t.m4: Remove.
75229         * m4/ullong_max.m4: Remove.
75230         * m4/xstrtoimax.m4: Remove.
75231         * m4/xstrtoumax.m4: Remove.
75232
75233         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75234         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75235         dependencies now capture this.
75236
75237         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75238         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75239         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75240         * m4/human.m4 (gl_HUMAN): Likewise.
75241         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75242         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75243
75244         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75245
75246         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75247         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75248         stdint.
75249         * m4/human.m4 (gl_HUMAN): Likewise.
75250         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75251         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75252         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75253         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75254         * m4/xstrtol (gl_XSTRTOL): Likewise.
75255
75256         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75257         AC_TYPE_LONG_LONG_INT.
75258         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75259         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75260         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75261         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75262
75263         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75264         on stdbool.
75265
75266         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75267         (gl_PREREQ_XSTRTOUL): Remove.
75268
75269         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75270
75271         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75272         mode.
75273
75274 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75275
75276         Add and change modules to make it easier for coreutils to use
75277         gnulib-tool.
75278         * modules/backupfile (Files): Remove m4/d-ino.m4.
75279         (Depends-on): Add d-ino.
75280         * modules/cycle-check (Depends-on): Add stdint.
75281         (lib_SOURCES): Add cycle-check.h.
75282         * modules/d-ino: New module.
75283         * modules/d-type: New module.
75284         * modules/error (Files): Remove m4/strerror_r.m4.
75285         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75286         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75287         m4/inttypes_h.m4, m4/uintmax_t.m4.
75288         (Depends-on): Add stdint.
75289         (lib_SOURCES): Add fsusage.h.
75290         * modules/getcwd (Files): Remove d-ino.m4.
75291         (Depends-on): Add d-ino.
75292         * modules/getndelim2 (Depends-on): Add stdint.
75293         * modules/glob (Files): Remove m4/d-type.m4.
75294         (Depends-on): Add d-type.
75295         * modules/host-os: New module.
75296         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75297         m4/inttypes_h.m4, m4/uintmax_t.m4.
75298         * Depends-on: Add stdint.
75299         (lib_SOURCES): Add human.h.
75300         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75301         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75302         m4/uintmax_t.m4, m4/ulonglong.m4.
75303         (Depends-on): Add stdint.
75304         (EXTRA_DIST): Add inttostr.h.
75305         * modules/lchmod: New module.
75306         * modules/link-follow: New module.
75307         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75308         (Depends-on): Add lchmod.
75309         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75310         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75311         (Depends-on): Add stdint.
75312         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75313         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75314         (Depends-on): Add stdint.
75315         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75316         * modules/perl: New module.
75317         * modules/regex (Depends-on): Add stdint.
75318         * modules/rmdir-errno: New module.
75319         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75320         m4/intmax_t.m4.
75321         (Depends-on): Add stdint.
75322         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75323         m4/uintmax_t.m4.
75324         (Depends-on): Add stdint.
75325         * modules/unlink-busy: New module.
75326         * modules/utimecmp (Depends-on): Add stdint.
75327         * modules/uptime: New module.
75328         * modules/winsz-ioctl: New module.
75329         * modules/winsz-termios: New module.
75330         * modules/xnanosleep (Depends-on): Add nanosleep.
75331         * modules/ullong_max: Remove.
75332         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75333         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75334         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75335         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75336         (Depends-on): Add inttypes.
75337         (lib_SOURCES): Add xstrtol.h.
75338         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75339         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75340         * MODULES.html.sh: Move 'assert' into the assert section.
75341         Move 'dummy' into the linking section.
75342         Remove ullong_max.
75343         Add section for compatibility checks for POSIX:2001 functions,
75344         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75345         winsz-ioctl, and winsz-termios into it.
75346         Add lchmod.
75347         Add top-level Misc section and put host-os, perl, and uptime
75348         into it.
75349
75350 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75353         now assume the stdint module.  Do not include inttypes.h.
75354         * lib/fsusage.h: Likewise.
75355         * lib/getndelim2.c: Likewise.
75356         * lib/human.h: Likewise.
75357         * lib/inttostr.h: Likewise.
75358         * lib/obstack.c: Likewise.
75359         * lib/regex_internal.h: Likewise.
75360         * lib/tempname.c: Likewise.
75361         * lib/utimecmp.c: Likewise.
75362         * lib/xstrtol.h: Likewise.
75363
75364         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75365
75366         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75367         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75368         * lib/xtime.h: Likewise.
75369
75370 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         * modules/openat (Files): Add lib/fchmodat.c.
75373         Fixes problem reported by Jay Youngman.
75374
75375 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75378         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75379
75380 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75381             Bruno Haible  <bruno@clisp.org>
75382
75383         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75384         and is a script that invokes bison. Tighten the code. Add comments.
75385
75386 2006-08-18  Jim Meyering  <jim@meyering.net>
75387
75388         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75389         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75390         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75391         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75392
75393 2006-08-18  Bruno Haible  <bruno@clisp.org>
75394
75395         * modules/bison-i18n: New file.
75396         * MODULES.html.sh (Internationalization functions): Add it.
75397
75398 2006-08-18  Bruno Haible  <bruno@clisp.org>
75399
75400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75401         sys/statvfs.h. When getmntinfo was found, check its declaration and
75402         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75403
75404 2006-08-18  Bruno Haible  <bruno@clisp.org>
75405
75406         * m4/bison-i18n.m4: New file, from bison.
75407
75408 2006-08-18  Bruno Haible  <bruno@clisp.org>
75409
75410         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75411         (ME_DUMMY): Treat "kernfs" as a dummy.
75412         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75413
75414 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         Update from coreutils.
75417
75418         2006-08-15  Jim Meyering  <jim@meyering.net>
75419
75420         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75421
75422         2006-01-17  Jim Meyering  <jim@meyering.net>
75423
75424         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75425
75426         2006-01-11  Jim Meyering  <jim@meyering.net>
75427
75428         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75429         Check for the lchmod function.
75430
75431 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         Update from coreutils.
75434
75435         * lib/__fpending.h: Add copyright notice.
75436         * lib/fprintftime.h: Likewise.
75437         * lib/savedir.c: Use (C) in copyright notice.
75438         * lib/savedir.h: Likewise.
75439
75440         2006-08-15  Jim Meyering  <jim@meyering.net>
75441
75442         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75443         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75444         in support of the EXPECTED_ERRNO macro.
75445         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75446         definitions.  Instead, define the appropriate symbols and include
75447         "at-func.c".
75448         * lib/mkdirat.c (mkdirat): Likewise.
75449         * lib/fchmodat.c (fchmodat): Likewise.
75450         (ENOSYS): Remove definition.
75451         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75452         it.  Don't include "unistd--.h" -- it wasn't ever used.
75453
75454         2006-01-17  Jim Meyering  <jim@meyering.net>
75455
75456         Rewrite fts.c not to change the current working directory,
75457         by using openat, fstatat, fdopendir, etc..
75458
75459         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75460         (HAVE_OPENAT_SUPPORT): Define.
75461         [_LIBC] (fchdir): Don't undef or define; no longer used.
75462         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75463         Now, this `function' always succeeds, and consumes its file descriptor
75464         parameter -- so callers must not close such FDs.  Update callers.
75465         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75466         (diropen): Add parameter, SP.  Adjust all callers.
75467         Implement using diropen_fd, rather than open.
75468         (fts_open): Initialize new member, fts_cwd_fd.
75469         Remove fts_rft-setting code.
75470         (fts_close): Close fts_cwd_fd, if necessary.
75471         (__opendir2): Define in terms of opendir or opendirat,
75472         depending on whether the FST_NOCHDIR flag is set.
75473         (fts_build): Since fts_safe_changedir consumes its FD, and since
75474         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75475         and close the dup'd file descriptor upon failure.
75476         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75477         (fts_safe_changedir): Tweak semantics to reflect that this function
75478         now calls cwd_advance_fd and hence consumes its FD argument.
75479         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75480         [struct FTS] (fts_rft): Remove now-unused member.
75481         [struct FTS] (fts_cycle.state): Improve comment.
75482
75483         * lib/openat.c (openat_needs_fchdir): New function.
75484         * lib/openat.h (openat_needs_fchdir): Declare it.
75485
75486 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75487
75488         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75489         Problem and fix reported by Pádraig Brady in
75490         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75491
75492 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75495
75496 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75497
75498         * lib/memcoll.c (memcoll): Optimize for the common case where the
75499         arguments are bytewise equal.
75500
75501 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75502
75503         * doc/regexprops-generic.texi: Add a copyright notice.
75504
75505 2006-08-15  Bruno Haible  <bruno@clisp.org>
75506
75507         * modules/tmpdir (License): Change to LGPL.
75508
75509 2006-08-15  Bruno Haible  <bruno@clisp.org>
75510
75511         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75512         module.
75513
75514 2006-08-14  Simon Josefsson  <jas@extundo.com>
75515
75516         * config/srclist.txt: Add gnupload.
75517
75518 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75519
75520         Change copyright notice from LGPL 2 to GPL 2, since that's the
75521         standard form used in the gnulib repository.
75522         * tests/test-lock.c: Likewise.
75523         * tests/test-stdint.c: Likewise.
75524         * tests/test-tls.c: Likewise.
75525
75526         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75527         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75528         Add copyright notice.
75529
75530         * check-module: Add copyright notice.  Output a copyright
75531         notice if "--version" is specified.
75532         * modules/COPYING: New file.
75533         * tests/test-getaddrinfo.c: Add copyright notice.
75534         * tests/test-verify.c: Likewise.
75535
75536 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         Change copyright notice from LGPL 2 to GPL 2, since that's the
75539         standard form used in the gnulib repository.
75540         * lib/lock.c: LGPL -> GPL.
75541         * lib/lock.h: Likewise.
75542         * lib/strnlen1.c: Likewise.
75543         * lib/strnlen1.h: Likewise.
75544         * lib/tls.c: Likewise.
75545         * lib/tls.h: Likewise.
75546         * lib/tmpdir.c: Likewise.
75547
75548         * lib/TODO: Remove; this belongs only in coreutils.
75549
75550 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75551
75552         Add copyright notices to long-enough files that lack them, since
75553         otherwise the files aren't clearly free.  Use the same notice that
75554         getdate.texi already uses.
75555         * doc/alloca-opt.texi: Add copyright notice.
75556         * doc/alloca.texi: Likewise.
75557         * doc/ctime.texi: Likewise.
75558         * doc/functions.texi: Likewise.
75559         * doc/gcd.texi: Likewise.
75560         * doc/gnulib-tool.texi: Likewise.
75561         * doc/inet_ntoa.texi: Likewise.
75562         * doc/visibility.texi: Likewise.
75563
75564         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75565         * doc/quote.texi: Add copyright notice.
75566
75567         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75568         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75569         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75570         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75571         is now obsolete, and give a pointer to the Sun list.
75572         Add copyright notice.
75573
75574 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75575
75576         * config/srclistvars.sh: Add copyright notice.
75577
75578 2006-08-14  Eric Blake  <ebb9@byu.net>
75579
75580         Import the following change from libc:
75581
75582         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75583
75584         Upstream bug 2997.
75585         * lib/misc/error.c: Add space between program name and message if file
75586         name is missing.
75587
75588 2006-08-12  Karl Berry  <karl@gnu.org>
75589
75590         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75591         remove, these originate in gnulib now.
75592
75593 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75594
75595         * doc/Makefile (standards.info standards.html standards.dvi):
75596         Also depend on make-stds.texi.
75597
75598 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75599
75600         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75601         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75602
75603         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75604         in wchar_t.  Problem reported by Eric Blake.
75605
75606         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75607         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75608         Also, help the compiler to keep LEN in a register.
75609
75610 2006-08-11  Eric Blake  <ebb9@byu.net>
75611
75612         * users.txt: Sort.  Add tar.
75613
75614 2006-08-11  Bruno Haible  <bruno@clisp.org>
75615
75616         * users.txt: New file.
75617
75618 2006-08-11  Bruno Haible  <bruno@clisp.org>
75619
75620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75621         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75622
75623 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * modules/snprintf (Depends-on): Remove minmax.
75626         (Maintainer): Add self and Bruno.
75627
75628 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75629
75630         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75631         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75632         (EOVERFLOW): Define if the system does not.
75633         Do not include "minmax.h"; it wasn't used.
75634         (snprintf): Don't assume size_t promotes to an unsigned type.
75635         Fix bug when generated string was too long for the buffer: the
75636         buffer's contents are supposed to be the initial prefix of the
75637         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75638         exceeds INT_MAX; do the check ourselves.
75639
75640         Import the following changes from libc:
75641
75642         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75643
75644         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75645         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75646         set wc to the byte which couldn't be converted.
75647         (re_string_reconstruct): Don't clear valid_raw_len before calling
75648         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75649         tip_context using re_string_context_at.
75650
75651         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75652
75653         * lib/posix/regex.h: g++ still cannot handled [restrict].
75654
75655         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75656
75657         * lib/posix/regex.h: Remove special handling for VMS.
75658
75659 2006-08-10  Jim Meyering  <jim@meyering.net>
75660
75661         * modules/same-inode: New module.
75662         * modules/dev-ino: New module.
75663         * modules/cycle-check: Depend on these modules, rather than simply
75664         including their .h files.
75665         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75666         required via m4/cycle-check.m4.
75667         * modules/same: Depend on new same-inode module, rather than
75668         including same-inode.h.
75669         * modules/chdir-safer: New file.
75670
75671         * modules/chown (Depends-on): Add stat-macros.
75672
75673 2006-08-10  Jim Meyering  <jim@meyering.net>
75674
75675         * m4/cycle-check.m4: New file.
75676         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75677         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75678
75679 2006-08-10  Eric Blake  <ebb9@byu.net>
75680
75681         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75682         in from original proposal.
75683
75684 2006-08-10  Eric Blake  <ebb9@byu.net>
75685         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75686
75687         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75688         namespace.
75689
75690 2006-08-10  Bruno Haible  <bruno@clisp.org>
75691
75692         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75693         as well.
75694
75695 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75696
75697         Sync from coreutils.
75698
75699         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75700
75701         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75702         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75703
75704 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75705
75706         * modules/restrict: Remove; no longer needed now that we assume
75707         Autoconf 2.59 or later.
75708         * MODULES.html.sh: Remove 'restrict'.
75709         * modules/argp (Depends-on): Remove 'restrict'.
75710         * modules/base64 (Depends-on): Likewise.
75711         * modules/gc (Depends-on): Likewise.
75712         * modules/getaddrinfo (Depends-on): Likewise.
75713         * modules/glob (Depends-on): Likewise.
75714         * modules/inet_ntop (Depends-on): Likewise.
75715         * modules/inet_pton (Depends-on): Likewise.
75716         * modules/memxor (Depends-on): Likewise.
75717         * modules/regex (Depends-on): Likewise.
75718         * modules/strtok_r (Depends-on): Likewise.
75719         * modules/time_r (Depends-on): Likewise.
75720
75721 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75724         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75725         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75726         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75727         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75728         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75729         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75730         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75731
75732         Merge from coreutils.
75733         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75734         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75735         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75736         * m4/time_r.m4 (gl_TIME_R): Likewise.
75737
75738 2006-08-09  Karl Berry  <karl@gnu.org>
75739
75740         * config/srclist.txt: no more gettext-tools, per Bruno.
75741
75742 2006-08-08  Eric Blake  <ebb9@byu.net>
75743
75744         * modules/verror: New module.
75745         * MODULES.html.sh: Document it.
75746
75747 2006-08-08  Eric Blake  <ebb9@byu.net>
75748
75749         * lib/verror.h, lib/verror.c: New files.
75750
75751 2006-08-08  Eric Blake  <ebb9@byu.net>
75752
75753         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75754         verror_at_line output complies with GNU Coding Standards even when
75755         file is NULL.
75756
75757 2006-08-07  Bruno Haible  <bruno@clisp.org>
75758
75759         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75760         versions of AIX.
75761         Reported by Ralf Wildenhues.
75762
75763 2006-08-07  Bruno Haible  <bruno@clisp.org>
75764
75765         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75766         in an AC_DEFUN. Needed so that the autoconf snippets can use
75767         AC_REQUIRE.
75768
75769 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75770
75771         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75772         Initialize pkgdata_DATA.
75773         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75774         overriding it.
75775
75776 2006-08-06  Eric Blake  <ebb9@byu.net>
75777
75778         * lib/error.h: Fold in some upstream changes from glibc.
75779         * lib/error.c: Likewise.
75780
75781 2006-08-04  Bruno Haible  <bruno@clisp.org>
75782
75783         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75784         Make the mostlyclean-local rule depend on mostlyclean-generic.
75785         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75786
75787 2006-07-31  Bruno Haible  <bruno@clisp.org>
75788
75789         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75790         <stdlib.h>, <string.h>.
75791
75792 2006-07-30  Bruno Haible  <bruno@clisp.org>
75793
75794         * modules/readlink (License): Change to LGPL.
75795
75796 2006-07-30  Bruno Haible  <bruno@clisp.org>
75797
75798         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75799         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75800         set PKGDATADIR to point to it.
75801
75802 2006-07-30  Bruno Haible  <bruno@clisp.org>
75803
75804         * modules/csharpexec (configure.ac): Comment out macro invocation.
75805         * modules/javaexec (configure.ac): Likewise.
75806         * modules/javacomp-script (configure.ac): Likewise.
75807
75808         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75809
75810 2006-07-30  Bruno Haible  <bruno@clisp.org>
75811
75812         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75813         linked-list.
75814
75815 2006-07-30  Bruno Haible  <bruno@clisp.org>
75816
75817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75818
75819 2006-07-30  Bruno Haible  <bruno@clisp.org>
75820
75821         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75822         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75823         get removed.
75824
75825 2006-07-29  Bruno Haible  <bruno@clisp.org>
75826
75827         Make it possible for gnulib-tool to work with locally modified or
75828         augmented gnulib repositories.
75829         * gnulib-tool (func_usage): Document --local-dir option.
75830         (local_gnulib_dir): New variable.
75831         Handle --local-dir option.
75832         (func_lookup_file): New function.
75833         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75834         (func_get_description, func_get_filelist, func_get_description,
75835         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75836         func_get_automake_snippet, func_get_include_directive,
75837         func_get_license, func_get_maintainer): Use func_lookup_file.
75838         (func_import, func_create_testdir): Use func_lookup_file.
75839
75840 2006-07-29  Bruno Haible  <bruno@clisp.org>
75841
75842         * modules/setenv (Depends-on): Add unistd.
75843
75844 2006-07-29  Bruno Haible  <bruno@clisp.org>
75845
75846         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75847
75848 2006-07-29  Bruno Haible  <bruno@clisp.org>
75849
75850         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75851
75852 2006-07-29  Bruno Haible  <bruno@clisp.org>
75853
75854         * gnulib-tool (import, update): If there is no Makefile.am, look at
75855         aclocal.m4, instead of bailing out.
75856
75857 2006-07-29  Bruno Haible  <bruno@clisp.org>
75858
75859         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75860         Categorize the options by when they are useful.
75861
75862 2006-07-29  Bruno Haible  <bruno@clisp.org>
75863
75864         * gnulib-tool (func_usage): Document option --no-libtool.
75865         Handle option --no-libtool.
75866         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75867         for changed semantics of $libtool variable.
75868         (func_import): Likewise. If libtool is not used, show this through
75869         an option --no-libtool.
75870         (func_create_testdir): Update.
75871
75872 2006-07-29  Bruno Haible  <bruno@clisp.org>
75873
75874         * gnulib-tool (func_import): Extend error message about missing
75875         --doc-base.
75876
75877 2006-07-29  Bruno Haible  <bruno@clisp.org>
75878
75879         * gnulib-tool (func_import): Don't create the $docbase directory if
75880         there is no file to store there.
75881
75882 2006-07-29  Bruno Haible  <bruno@clisp.org>
75883
75884         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75885         relevant, look for configure.ac there, not in the current directory.
75886         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75887
75888 2006-07-29  Bruno Haible  <bruno@clisp.org>
75889
75890         * gnulib-tool (SORT): New variable.
75891         (func_usage): Undocument --assume-autoconf option.
75892         Remove --assume-autoconf option handling.
75893         (autoconf_minversion): Determine from the contents of configure.ac.
75894         (func_import): Remove autoconf_minversion handling.
75895         Suggested by Eric Blake.
75896
75897 2006-07-29  Bruno Haible  <bruno@clisp.org>
75898
75899         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75900
75901 2006-07-29  Bruno Haible  <bruno@clisp.org>
75902
75903         * config/srclist.txt (*setenv.[ch]): Remove rules.
75904
75905 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75906
75907         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75908
75909 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75910
75911         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75912         arpa/inet.h.
75913
75914 2006-07-28  Simon Josefsson  <jas@extundo.com>
75915
75916         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75917         * modules/inet_pton (Depends-on): Likewise.
75918
75919 2006-07-28  Simon Josefsson  <jas@extundo.com>
75920
75921         * m4/netinet_in_h.m4: New file.
75922
75923 2006-07-28  Simon Josefsson  <jas@extundo.com>
75924
75925         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75926         #include's.
75927
75928 2006-07-28  Simon Josefsson  <jas@extundo.com>
75929
75930         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75931         #include's.
75932
75933 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75936         setgid on directories only if they set these bits.
75937         * lib/modechange.h: Remove obsolete comment about masks.
75938
75939 2006-07-28  Eric Blake  <ebb9@byu.net>
75940
75941         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75942         macro expansion.
75943
75944 2006-07-28  Bruno Haible  <bruno@clisp.org>
75945
75946         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75947
75948 2006-07-28  Bruno Haible  <bruno@clisp.org>
75949
75950         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75951
75952 2006-07-28  Bruno Haible  <bruno@clisp.org>
75953
75954         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75955         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75956         Define fallbacks.
75957         Avoids link error on FreeBSD 4.x.
75958         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75959
75960         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75961         encoding.
75962         * lib/mbswidth.c (iswcntrl): Likewise.
75963
75964 2006-07-27  Bruno Haible  <bruno@clisp.org>
75965
75966         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75967         test.
75968
75969 2006-07-27  Bruno Haible  <bruno@clisp.org>
75970
75971         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75972         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75973         defined.
75974
75975 2006-07-26  Eric Blake  <ebb9@byu.net>
75976
75977         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75978
75979 2006-07-26  Eric Blake  <ebb9@byu.net>
75980
75981         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75982         like mingw that lack mkstemp.
75983         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75984         avoid compilation warning on mingw.
75985
75986 2006-07-26  Bruno Haible  <bruno@clisp.org>
75987
75988         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75989         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75990         INT_FAST*_MIN, INTPTR_MIN.
75991
75992 2006-07-25  Bruno Haible  <bruno@clisp.org>
75993
75994         * modules/version-etc (Depends-on): Add stdarg.
75995
75996 2006-07-25  Bruno Haible  <bruno@clisp.org>
75997
75998         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75999         complex commands.
76000
76001 2006-07-25  Bruno Haible  <bruno@clisp.org>
76002
76003         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76004         defined in <stdarg.h> or config.h.
76005
76006 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76009         (gl_STDIO_SAFER): Remove.
76010
76011 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76012
76013         * MODULES.html.sh (File stream based Input/Output):
76014         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76015         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76016         * modules/fopen-safer, modules/tmpfile-safer: New files.
76017         * modules/stdio-safer: Remove.
76018
76019 2006-07-24  Bruno Haible  <bruno@clisp.org>
76020
76021         * modules/tmpdir: New file.
76022         * MODULES.html.sh (File system functions): Add it.
76023
76024 2006-07-24  Bruno Haible  <bruno@clisp.org>
76025
76026         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76027         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76028
76029 2006-07-24  Bruno Haible  <bruno@clisp.org>
76030
76031         * modules/clean-temp: New file.
76032
76033 2006-07-24  Bruno Haible  <bruno@clisp.org>
76034
76035         * m4/tmpdir.m4: New file, from GNU gettext.
76036
76037 2006-07-24  Bruno Haible  <bruno@clisp.org>
76038
76039         * lib/tmpdir.h: New file, from GNU gettext.
76040         * lib/tmpdir.c: New file, from GNU gettext.
76041
76042 2006-07-24  Bruno Haible  <bruno@clisp.org>
76043
76044         * lib/clean-temp.h: New file, from GNU gettext.
76045         * lib/clean-temp.c: New file, from GNU gettext.
76046
76047 2006-07-23  Eric Blake  <ebb9@byu.net>
76048
76049         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76050         (Depends-on): Add binary-io.
76051
76052 2006-07-23  Eric Blake  <ebb9@byu.net>
76053
76054         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76055
76056 2006-07-23  Eric Blake  <ebb9@byu.net>
76057
76058         * lib/tmpfile-safer.c: New file.
76059         * lib/stdio-safer.h (fopen_safer): Add prototype.
76060         * lib/stdio--.h (tmpfile): Make safer.
76061
76062 2006-07-23  Bruno Haible  <bruno@clisp.org>
76063
76064         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76065         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76066         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76067         gl_linked_remove_at): Use it.
76068
76069 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76070         and Simon Josefsson <jas@extundo.com>
76071
76072         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76073
76074         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76075
76076 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76077
76078         * modules/close-stream: New file.
76079         * modules/closeout (Description): Make it clear that it exits
76080         with a diagnostic on error.
76081         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76082         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76083
76084 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76085
76086         * m4/close-stream.m4: New file.
76087
76088 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76089
76090         * lib/close-stream.c, lib/close-stream.h: New files.
76091
76092 2006-07-22  Bruno Haible  <bruno@clisp.org>
76093
76094         Merge from GNU gettext 0.15.
76095
76096         2006-05-01  Bruno Haible  <bruno@clisp.org>
76097
76098                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76099
76100         2006-07-22  Bruno Haible  <bruno@clisp.org>
76101
76102                 * modules/javaversion: New file.
76103                 * MODULES.html.sh (Java): Add javaversion.
76104
76105         2006-03-12  Bruno Haible  <bruno@clisp.org>
76106
76107                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76108
76109         2005-12-04  Bruno Haible  <bruno@clisp.org>
76110
76111                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76112                 (untested).
76113
76114         2006-06-21  Bruno Haible  <bruno@clisp.org>
76115
76116                 Avoid warnings from recent versions of mcs.
76117                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76118                 -o, -L, -r any more. Use options documented since mcs-1.0
76119                 instead. Similarly for -g.
76120
76121         2005-12-04  Bruno Haible  <bruno@clisp.org>
76122
76123                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76124                 .resources, not .resource.
76125
76126         2005-07-09  Bruno Haible  <bruno@clisp.org>
76127
76128                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76129                 add a .dll suffix.
76130                 Reported by Mark Junker <mjscod@gmx.de>.
76131
76132         2006-07-22  Bruno Haible  <bruno@clisp.org>
76133
76134                 * modules/gettext: Upgrade to gettext-0.15.
76135                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76136                 m4/visibility.m4.
76137                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76138
76139 2006-07-22  Bruno Haible  <bruno@clisp.org>
76140
76141         Merge from GNU gettext 0.15.
76142
76143         2006-03-25  Bruno Haible  <bruno@clisp.org>
76144
76145                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76146
76147         2006-07-21  Bruno Haible  <bruno@clisp.org>
76148
76149                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76150                 "1.1".
76151
76152         2006-05-09  Bruno Haible  <bruno@clisp.org>
76153
76154                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76155                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76156                 for the conftestver execution.
76157
76158         2006-05-01  Bruno Haible  <bruno@clisp.org>
76159
76160                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76161                 optional target-version argument. Verify that the compiler
76162                 groks source of the specified source-version, or add -source
76163                 option as necessary. Verify that the compiler produces
76164                 bytecode in the specified target-version, or add -target and
76165                 -source options as necessary. Make the result of the test
76166                 available as variable CONF_JAVAC. Also log error output in
76167                 config.log.
76168
76169         2006-03-11  Bruno Haible  <bruno@clisp.org>
76170
76171                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76172
76173         2006-05-09  Bruno Haible  <bruno@clisp.org>
76174
76175                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76176                 CLASSPATH_SEPARATOR to a semicolon.
76177
76178         2006-03-12  Bruno Haible  <bruno@clisp.org>
76179
76180                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76181                 available as variable CONF_JAVA, for subsequent autoconf
76182                 tests. Also log error output in config.log.
76183
76184         2006-07-19  Bruno Haible  <bruno@clisp.org>
76185
76186                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76187                 that getline works on glibc2 systems. Needed to avoid trouble
76188                 in relocatable.c.
76189                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76190
76191         2005-12-04  Bruno Haible  <bruno@clisp.org>
76192
76193                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76194                 launcher (untested).
76195
76196         2005-12-04  Bruno Haible  <bruno@clisp.org>
76197
76198                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76199
76200         2006-07-22  Bruno Haible  <bruno@clisp.org>
76201
76202                 * gettext.m4: Update from GNU gettext-0.15.
76203                 * nls.m4: Likewise.
76204                 * po.m4: Likewise.
76205                 * inttypes-pri.m4: Likewise.
76206                 * inttypes-h.m4: Renamed from inttypes.m4.
76207                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76208
76209 2006-07-22  Bruno Haible  <bruno@clisp.org>
76210
76211         Merge from GNU gettext 0.15.
76212
76213         2005-07-05  Bruno Haible  <bruno@clisp.org>
76214
76215                 * printf-args.c (printf_fetchargs): Work around broken
76216                 definition of wint_t on mingw.
76217
76218         2005-02-12  Bruno Haible  <bruno@clisp.org>
76219
76220                 * xallocsa.h: Add extern "C" for C++.
76221
76222         2006-05-17  Bruno Haible  <bruno@clisp.org>
76223
76224                 Cygwin portability.
76225                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76226
76227         2006-04-30  Bruno Haible  <bruno@clisp.org>
76228
76229                 * progreloc.c: Include <mach-o/dyld.h> if available.
76230                 (find_executable): Use _NSGetExecutablePath when possible.
76231
76232         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76233
76234                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76235                 function.
76236
76237         2005-12-29  Bruno Haible  <bruno@clisp.org>
76238
76239                 * progreloc.c (set_program_name_and_installdir): Fix
76240                 compilation error.
76241
76242         2005-12-04  Bruno Haible  <bruno@clisp.org>
76243
76244                 Cygwin portability.
76245                 * progreloc.c: Include <windows.h> also on Cygwin.
76246                 (find_executable): Add support for Cygwin.
76247                 (set_program_name_and_installdir): Handle also platforms with
76248                 nonempty EXEEXT.
76249
76250         2006-07-11  Bruno Haible  <bruno@clisp.org>
76251
76252                 * javacomp.c: Fix a comment.
76253                 Reported by Jim Meyering.
76254
76255         2006-04-30  Bruno Haible  <bruno@clisp.org>
76256
76257                 * javacomp.h (compile_java_class): Add source_version,
76258                 target_version arguments.
76259                 * javacomp.c: Rewritten to choose only a compiler that
76260                 respects the specified source_version and target_version.
76261
76262         2006-06-27  Bruno Haible  <bruno@clisp.org>
76263
76264                 Assume correct S_ISDIR macro.
76265                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76266
76267         2006-07-22  Bruno Haible  <bruno@clisp.org>
76268
76269                 * javaversion.h: New file, from GNU gettext.
76270                 * javaversion.c: New file, from GNU gettext.
76271                 * javaversion.java: New file, from GNU gettext.
76272                 * javaversion.class: New file, from GNU gettext.
76273
76274         2006-05-17  Bruno Haible  <bruno@clisp.org>
76275
76276                 Cygwin portability.
76277                 * javaexec.c (execute_java_class): Test for jview program
76278                 also on Cygwin.
76279
76280         2006-04-09  Bruno Haible  <bruno@clisp.org>
76281
76282                 * fatal-signal.c: Don't include string.h.
76283                 (at_fatal_signal): Use a copying loop instead of memcpy.
76284
76285         2005-12-04  Bruno Haible  <bruno@clisp.org>
76286
76287                 * csharpexec.c: Add support for 'clix' launcher (untested).
76288                 (execute_csharp_using_sscli): New function.
76289                 (execute_csharp_program): Call it.
76290
76291         2006-06-21  Bruno Haible  <bruno@clisp.org>
76292
76293                 Avoid warnings from recent versions of mcs.
76294                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76295                 -o, -L, -r any more. Use options documented since mcs-1.0
76296                 instead. Similarly for -g.
76297
76298         2005-07-09  Bruno Haible  <bruno@clisp.org>
76299
76300                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76301                 add a .dll suffix.
76302                 Reported by Mark Junker <mjscod@gmx.de>.
76303
76304         2006-06-17  Bruno Haible  <bruno@clisp.org>
76305
76306                 * config.charset: Update for NetBSD 3.0.
76307
76308         2006-05-17  Bruno Haible  <bruno@clisp.org>
76309
76310                 Cygwin portability.
76311                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76312
76313         2006-05-16  Bruno Haible  <bruno@clisp.org>
76314
76315                 * localcharset.c [CYGWIN]: Include <windows.h>.
76316                 (get_charset_aliases): For Cygwin, return the same CPxxx
76317                 aliases list as under WIN32.
76318                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76319                 the environment variables. Fall back to GetACP().
76320
76321         2006-04-05  Bruno Haible  <bruno@clisp.org>
76322
76323                 * config.charset: Update Juan Manuel Guerrero's address.
76324
76325         2005-02-12  Bruno Haible  <bruno@clisp.org>
76326
76327                 * allocsa.h: Add extern "C" for C++.
76328
76329         2005-02-10  Bruno Haible  <bruno@clisp.org>
76330
76331                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76332                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76333
76334         2006-07-22  Bruno Haible  <bruno@clisp.org>
76335
76336                 * gettext.h: Update to GNU gettext-0.15.
76337
76338 2006-07-22  Bruno Haible  <bruno@clisp.org>
76339
76340         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76341         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76342         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76343
76344 2006-07-21  Eric Blake  <ebb9@byu.net>
76345
76346         * modules/stdlib-safer: New file.
76347         * MODULES.html.sh (File stream based Input/Output): Add
76348         stdlib-safer.
76349
76350 2006-07-21  Eric Blake  <ebb9@byu.net>
76351
76352         * lib/stdlib-safer.h: New file from coreutils, required by
76353         stdlib--.h.
76354
76355 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76358
76359 2006-07-20  Bruno Haible  <bruno@clisp.org>
76360
76361         * gnulib-tool: Recognize new option --assume-autoconf.
76362         (autoconf_minversion): New variable.
76363         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76364
76365 2006-07-20  Bruno Haible  <bruno@clisp.org>
76366
76367         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76368
76369 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76370
76371         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76372         Reindent and repaginate.
76373
76374 2006-07-19  Derek Price  <derek@ximbiot.com>
76375
76376         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76377         Correct grammar.
76378
76379 2006-07-17  Bruno Haible  <bruno@clisp.org>
76380
76381         * modules/list: New file.
76382         * modules/array-list: New file.
76383         * modules/carray-list, modules/carray-list-tests: New files.
76384         * modules/linked-list, modules/linked-list-tests: New files.
76385         * modules/avltree-list, modules/avltree-list-tests: New files.
76386         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76387         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76388         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76389         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76390         * modules/oset: New file.
76391         * modules/array-oset: New file.
76392         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76393         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76394         * tests/test-carray_list.c: New file.
76395         * tests/test-linked_list.c: New file.
76396         * tests/test-avltree_list.c: New file.
76397         * tests/test-rbtree_list.c: New file.
76398         * tests/test-linkedhash_list.c: New file.
76399         * tests/test-avltreehash_list.c: New file.
76400         * tests/test-rbtreehash_list.c: New file.
76401         * tests/test-avltree_oset.c: New file.
76402         * tests/test-rbtree_oset.c: New file.
76403         * MODULES.html.sh (Container data structures): New section.
76404
76405 2006-07-17  Bruno Haible  <bruno@clisp.org>
76406
76407         * m4/gl_list.m4: New file.
76408
76409 2006-07-17  Bruno Haible  <bruno@clisp.org>
76410
76411         * lib/gl_list.h: New file.
76412         * lib/gl_list.c: New file.
76413         * lib/gl_array_list.h: New file.
76414         * lib/gl_array_list.c: New file.
76415         * lib/gl_carray_list.h: New file.
76416         * lib/gl_carray_list.c: New file.
76417         * lib/gl_linked_list.h: New file.
76418         * lib/gl_linked_list.c: New file.
76419         * lib/gl_anylinked_list1.h: New file.
76420         * lib/gl_anylinked_list2.h: New file.
76421         * lib/gl_avltree_list.h: New file.
76422         * lib/gl_avltree_list.c: New file.
76423         * lib/gl_anyavltree_list1.h: New file.
76424         * lib/gl_anyavltree_list2.h: New file.
76425         * lib/gl_rbtree_list.h: New file.
76426         * lib/gl_rbtree_list.c: New file.
76427         * lib/gl_anyrbtree_list1.h: New file.
76428         * lib/gl_anyrbtree_list2.h: New file.
76429         * lib/gl_anytree_list1.h: New file.
76430         * lib/gl_anytree_list2.h: New file.
76431         * lib/gl_linkedhash_list.h: New file.
76432         * lib/gl_linkedhash_list.c: New file.
76433         * lib/gl_anyhash_list1.h: New file.
76434         * lib/gl_anyhash_list2.h: New file.
76435         * lib/gl_avltreehash_list.h: New file.
76436         * lib/gl_avltreehash_list.c: New file.
76437         * lib/gl_rbtreehash_list.h: New file.
76438         * lib/gl_rbtreehash_list.c: New file.
76439         * lib/gl_anytreehash_list1.h: New file.
76440         * lib/gl_anytreehash_list2.h: New file.
76441
76442         * lib/gl_oset.h: New file.
76443         * lib/gl_oset.c: New file.
76444         * lib/gl_array_oset.h: New file.
76445         * lib/gl_array_oset.c: New file.
76446         * lib/gl_avltree_oset.h: New file.
76447         * lib/gl_avltree_oset.c: New file.
76448         * lib/gl_rbtree_oset.h: New file.
76449         * lib/gl_rbtree_oset.c: New file.
76450         * lib/gl_anytree_oset.h: New file.
76451
76452 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76453
76454         * m4/mkancesdirs.m4: New file.
76455         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76456         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76457         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76458         it.
76459
76460 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76461
76462         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76463         * lib/mkancesdirs.h: New files.
76464         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76465         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76466         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76467         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76468         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76469         callers changed.  Revamp internals significantly, by not
76470         attempting to create directories that are temporarily more
76471         permissive than the final results.  Do not attempt to use
76472         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76473         This removes some race conditions, fixes some bugs, and simplifies
76474         things.  Use new dirchownmod function to do owner and mode changes.
76475         * lib/mkdir-p.h: Likewise.
76476         * lib/modechange.c (octal_to_mode): New function.
76477         (struct mode_change): New member mentioned.
76478         (make_node_op_equals): New arg mentioned.  All callers changed.
76479         (mode_compile): Keep track of which mode bits the user has explicitly
76480         mentioned.
76481         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76482         New arg PMODE_BITS, to keep track of which mode bits the user
76483         mentioned; it treats S_ISUID and S_ISGID speciall.
76484         All callers changed.
76485         * lib/modechange.h: Likewise.
76486
76487 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76488
76489         * MODULES.html.sh: Add mkancestors.
76490         * modules/mkancesdirs: New module.
76491         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76492         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76493         The chdir-safer and afs files are now orphans; I'll remove them
76494         unless someone speaks up.
76495         Add lib/dirchownmod.c, lib/dirchownmod.h.
76496         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76497         Add lchown, mkancesdirs.
76498         (Maintainer): Add self.
76499
76500 2006-07-15  Karl Berry  <karl@gnu.org>
76501
76502         * gnulib-tool: help message wording/arrangement.
76503
76504 2006-07-14  Simon Josefsson  <jas@extundo.com>
76505
76506         * doc/gnulib.texi (Libtool and Windows): New section.
76507
76508 2006-07-12  Simon Josefsson  <jas@extundo.com>
76509
76510         * modules/gendocs (License): Fix license, approved by Karl.
76511
76512 2006-07-12  Eric Blake  <ebb9@byu.net>
76513
76514         * MODULES.html.sh: Add gendocs.
76515
76516 2006-07-11  Eric Blake  <ebb9@byu.net>
76517
76518         * modules/fdl: New module, to install doc/fdl.texi.
76519         * MODULES.html.sh: Add new section for documentation modules.
76520         * gnulib-tool: Avoid space-tab.
76521         (--doc-base): New option, to manage files from doc.
76522
76523 2006-07-11  Eric Blake  <ebb9@byu.net>
76524
76525         * m4/absolute-header.m4: Fix comments to match recent change.
76526
76527 2006-07-11  Eric Blake  <ebb9@byu.net>
76528
76529         * gnulib-tool: List --doc-base before --tests-base.
76530
76531 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76532
76533         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76534
76535 2006-07-11  Bruno Haible  <bruno@clisp.org>
76536
76537         * README: Mention where to put documentation.
76538
76539 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76540
76541         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76542
76543 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76544
76545         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76546         to stdint.m4.
76547
76548 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76549
76550         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76551         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76552         "no/such/file/stdint.h" when there is no such file, so that
76553         the resulting C code can be parsed by dodgy compilers.
76554         Problems reported by Bob Proulx.
76555
76556 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76557
76558         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76559         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76560         macros into the GNU _D_EXACT_NAMLEN.
76561         * lib/savedir.c:  Likewise.
76562         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76563
76564 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76565         and Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76568         * m4/savedir.m4:
76569         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76570         macros into the GNU _D_EXACT_NAMLEN.
76571
76572 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76573
76574         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76575         around the absolute name, to work around a problem with the HP-UX
76576         11.23 native C compiler, reported by Bob Proulx.
76577
76578 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76579
76580         * doc/maintain.texi, make-stds.texi: Sync from
76581         <http://savannah.gnu.org/projects/gnustandards>.
76582
76583 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76584
76585         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76586
76587 2006-07-09  Jim Meyering  <jim@meyering.net>
76588
76589         * m4/glob.m4: Remove a doubled word in a comment.
76590
76591 2006-07-09  Jim Meyering  <jim@meyering.net>
76592
76593         * lib/argp-pv.c: Remove a doubled word in a comment.
76594         * lib/check-version.c (check_version): Likewise.
76595         * lib/javacomp.c (compile_java_class): Likewise.
76596
76597 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76600         for the benefit of people using Autoconf 2.60.  If you want to
76601         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76602         (or m4/onceonly.m4, if pre-2.57) manually.
76603
76604 2006-07-08  Jim Meyering  <jim@meyering.net>
76605
76606         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76607         comment.
76608         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76609         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76610         comment.
76611
76612 2006-07-08  Jim Meyering  <jim@meyering.net>
76613
76614         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76615
76616 2006-07-07  Simon Josefsson  <jas@extundo.com>
76617
76618         * tests/test-crc.c: Change expected crc value, the test vector
76619         were probably computed using the old broken crc.c?
76620
76621 2006-07-06  Simon Josefsson  <jas@extundo.com>
76622
76623         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76624         now the canonical place for the M4 file).
76625
76626         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76627         from the sys_socket dependency now.
76628
76629         * modules/inet_pton (Files): Ditto.
76630
76631         * modules/inet_ntop (Files): Ditto.
76632
76633 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76634
76635         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76636         not gl_PREREQ_GETUSERSHELL.
76637
76638 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76639
76640         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76641         with only one argument, for Autoconf 2.60.
76642         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76643         expand to nothing, so add a shell command to avoid syntax error.
76644         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76645
76646 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76647
76648         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76649
76650 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76653         no longer needed.  Check for isblank decl.
76654         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76655         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76656         of existence.
76657
76658 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76659
76660         * lib/getloadavg.c: Use __VMS, not VMS.
76661         * lib/getopt.c: Likewise.
76662         * lib/getpagesize.h: Likewise.
76663         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76664         and probably does not work.
76665
76666 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         * lib/.cppi-disable: Add wcwidth.
76669         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76670         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76671         (ISGRAPH): Remove.  All uses changed to isgraph.
76672         (FOLD) [!defined _LIBC]: Remove special case.
76673         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76674         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76675         HAVE_ISBLANK.
76676         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76677         case.
76678
76679 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76680
76681         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76682         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76683         brackets.  Other minor changes to suppress some compiler
76684         warnings.
76685
76686 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76687         and Paul Eggert  <eggert@cs.ucla.edu>
76688
76689         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76690         of invoking obsolescent AC_HEADER_DIRENT macro.
76691         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76692         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76693         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76694         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76695         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76696         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76697         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76698         * m4/readdir.m4: Remove; no longer needed.
76699
76700 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76701         and Paul Eggert  <eggert@cs.ucla.edu>
76702
76703         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76704         Don't worry about this obsolete case any more.
76705         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76706         directories.
76707         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76708         worry about this obsolete case any more.
76709         * lib/fts.c: Likewise.
76710         * lib/getcwd.c: Likewise.
76711         * lib/glob.h: Likewise.
76712         * lib/savedir.c: Likewise.
76713
76714 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76715
76716         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76717         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76718         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76719         needed.
76720         All uses removed.
76721         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76722         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76723         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76724         needed.
76725         * m4/getdate.m4 (gl_GETDATE): Likewise.
76726         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76727         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76728         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76729         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76730         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76731         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76732         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76733         needed.
76734
76735 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76736
76737         * lib/memcasecmp.c: Include <limits.h>.
76738         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76739         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76740         Don't assume isdigit succeeds only on '0' through '9'.
76741
76742 2006-07-05  Eric Blake  <ebb9@byu.net>
76743
76744         * modules/getaddrinfo (Depends-on): Add snprintf.
76745
76746 2006-07-05  Eric Blake  <ebb9@byu.net>
76747
76748         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76749         to avoid 'header present but could not be compiled' on cygwin.
76750
76751 2006-07-05  Eric Blake  <ebb9@byu.net>
76752
76753         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76754         missing from netdb.h.
76755         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76756
76757 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76758
76759         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76760         no longer needed.
76761         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76762         * m4/getdate.m4 (gl_GETDATE): Likewise.
76763         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76764         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76765         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76766         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76767         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76768
76769 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76770
76771         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76772         All uses of is_space replaced by isspace.
76773         * lib/exit.h: Don't talk about STDC_HEADERS.
76774         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76775         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76776         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76777         replaced by isprint etc.
76778         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76779         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76780         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76781         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76782         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76783         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76784
76785 2006-07-05  Bruno Haible  <bruno@clisp.org>
76786
76787         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76788         the function exists, before testing against AIX.
76789         Reported by Martin Lambers <marlam@marlam.de>.
76790
76791 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76792
76793         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76794         From Mark D. Baushke.
76795
76796 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76799         to the absolute name, not just one, to bypass Sun C 5.8's
76800         "warning: #include of /usr/include/... may be non-portable".
76801
76802 2006-07-04  Eric Blake  <ebb9@byu.net>
76803
76804         * modules/dirname-tests: New test module.
76805         * tests/test-dirname.c: New file, replacing dirname.c
76806         TEST_DIRNAME section that was recently deleted.
76807
76808 2006-07-04  Bruno Haible  <bruno@clisp.org>
76809
76810         Assume ANSI C header files and <ctype.h> functions.
76811         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76812         (mbsnwidth): Use isprint, iscntrl instead.
76813
76814 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76815
76816         Merge from coreutils.
76817         * MODULES.html.sh: Add xstrtold.
76818         * modules/xstrtold: New file.
76819         * modules/cycle-check (Files): Add lib/same-inode.h.
76820         * modules/dirname (Files): Add m4/double-slash-root.m4.
76821         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76822         * modules/mkdir-p (Files): Add lib/same-inode.h.
76823         * modules/same (Files): Add lib/same-inode.h.
76824
76825 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76826
76827         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76828         This is to keep the terminology clean; POSIX talks about
76829         "absolute pathnames", not "full pathnames", but the GNU
76830         Coding Standards say to use "path" for something else;
76831         so use "absolute" to keep both sides happy.
76832         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76833         Set gl_absolute_header, not gl_full_header_path.
76834         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76835         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76836         All uses changed.
76837
76838         Merge from coreutils.
76839
76840         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76843         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76844         want to require the building of c-strtod.o.
76845         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76846         needs -lm directly.
76847         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76848
76849         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76850
76851         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76852         --as-needed option if available.  Problem reported by Albert Chin in
76853         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76854         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76855         cc merely issues a bunch of annoying warnings for --as-needed
76856         (this problem was reported by Bob Proulx).  Also, try linking with
76857         -lm to detect a bug in binutils 2.16 (this problem was reported
76858         by Ralf Wildenhues).
76859
76860         2006-06-18  Jim Meyering  <jim@meyering.net>
76861
76862         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76863         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76864         macro.
76865         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76866         also check for glibc-2.4's abort-inducing bug.
76867
76868         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76869         Low-probability clean-up should be to use rmdir to get rid of
76870         the just-created directory, not unlink.
76871
76872         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76873         configure fail, and request a bug report to inform us about it.
76874         Add a comment that, barring reports to the contrary, in 2007 we'll
76875         assume ftruncate is universally available.
76876
76877         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76878
76879         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76880
76881         2006-03-12  Jim Meyering  <jim@meyering.net>
76882
76883         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76884         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76885         * m4/same.m4 (gl_SAME): Likewise.
76886         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76887
76888         2006-03-11  Eric Blake  <ebb9@byu.net>
76889
76890         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76891         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76892         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76893         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76894
76895 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76898         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76899         reported by Mark D. Baushke, one in
76900         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76901
76902         Merge from coreutils.
76903
76904         * lib/.cppi-disable: Add stdint_.h.
76905         * lib/.cvsignore: Add stdint.h.
76906
76907         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76910         both double and long double versions.
76911         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76912         * lib/xstrtold.c: New file.
76913         * lib/xstrtod.h (xstrtold): New decl.
76914
76915         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         * lib/filemode.c (setst): Remove.
76918         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76919         (arguably) clearer, and the generated code is a bit smaller on my
76920         Debian GNU/Linux stable x86 host.
76921
76922         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76925         Assume that filemode.h includes sys/types.h and sys/stat.h.
76926         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76927         (ftypelet): Reorder to put common cases first, for efficiency.
76928         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76929         to do 'M'.
76930         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76931         of 10, for compatibility with FreeBSD.  All callers changed.
76932         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76933         types that can't be deduced solely from st_mode.  First arg is now a
76934         const pointer.
76935         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76936         (strmode): Renamed from mode_string.
76937         (filemodestring): New decl.
76938         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76939         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76940         needed.
76941         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76942
76943         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76946         fsusage.h now does that.  Include fsusage.h first, to test interface.
76947         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76948         at most one method (the old code could have generated decls that
76949         didn't conform to C89, not that this was ever exercised).
76950         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76951
76952         2006-03-19  Jim Meyering  <jim@meyering.net>
76953
76954         Work even in a chroot where d_ino values for entries in "/"
76955         don't match the stat.st_ino values for the same names.
76956         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76957         number, iterate through all entries again, using lstat instead.
76958         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76959         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76960
76961         * lib/getcwd.c (__getcwd): Clarify a comment.
76962         Use memcpy in place of a call to strcpy.
76963
76964         2006-03-12  Jim Meyering  <jim@meyering.net>
76965
76966         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76967         matches that of the current directory (which we're about to chdir ".."
76968         out of), then save the dev-ino of the parent, instead.
76969
76970         * lib/same-inode.h (SAME_INODE): New file/macro.
76971         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76972         Include "same-inode.h", instead.
76973         * lib/same.c: Likewise.
76974         * lib/cycle-check.h: Include "same-inode.h".
76975         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76976         * lib/cycle-check.c (SAME_INODE): Remove definition.
76977         * lib/root-dev-ino.h: Include "same-inode.h".
76978
76979         2006-03-11  Eric Blake  <ebb9@byu.net>
76980
76981         * lib/same.c (same_name): s/base_name/last_component/
76982         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76983         * lib/filenamecat.c (file_name_concat): Likewise.
76984
76985         2006-03-11  Eric Blake  <ebb9@byu.net>,
76986                     Paul Eggert  <eggert@cs.ucla.edu>
76987
76988         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76989         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76990         drive prefix.
76991         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76992         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76993         (last_component): New method.
76994         * lib/dirname.c (dir_len): Determine when drive letters need a
76995         subsequent slash.  Preserve // when it is special.
76996         (dir_name): Don't append dot when drive letter is absolute.
76997         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76998         * lib/basename.c (base_name): New semantics - malloc the result.
76999         Preserve // when it is special.  Preserve relative files that look
77000         like drive letters.
77001         (base_len): Preserve // when it is special.
77002         (last_component): New method, similar to old base_name semantics.
77003         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77004         base_name.  Strip redundant slashes from ///.
77005
77006 2006-07-03  Jim Meyering  <jim@meyering.net>
77007
77008         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77009         macro is used before the first cycle_check call.
77010
77011 2006-07-03  Eric Blake  <ebb9@byu.net>
77012
77013         * modules/dirname (Depends-on): Add xstrndup.
77014
77015 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77016
77017         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77018         test cases, so that config.log is a bit easier to follow.
77019
77020 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77021
77022         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77023         both are 64 bits, since this seems to be the tradition, and this
77024         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77025         we ever run into a host that prefers long long to long in this
77026         case, we'll need another configure-time test.  Problem reported by
77027         Jim Meyering.
77028
77029 2006-07-02  Eric Blake  <ebb9@byu.net>
77030
77031         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77032
77033 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77034
77035         * modules/inttypes (Depends-on): No longer depends on stdint.
77036         * modules/stdint (Description): Say more about assumptions.
77037         Say that the fast types might differ.  Say macros are used.
77038         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77039         (Makefile.am): Revise list of substituted symbols to match
77040         new stdint.m4.
77041         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77042         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77043         * tests/test-stdint.c (verify_same_types)
77044         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77045         the code conforms to C99/C89.
77046         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77047         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77048
77049 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77052         but fix a bug, by requiring at least 64 bits.
77053         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77054         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77055         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77056         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77057
77058         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77059         changes.  Make 2.59 a prerequisite.  Check and substitute for
77060         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77061         inttypes.h.  Do not use special include files; just use the
77062         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77063         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77064         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77065         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77066         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77067         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77068         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77069         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77070         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77071         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77072         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77073         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77074         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77075         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77076         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77077         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77078         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77079         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77080         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77081         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77082         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77083         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77084         not check for things that C99 does not require, e.g., int8_t.  If
77085         a test isn't needed unless <stdint.h> isn't working, and is
77086         unlikely to be needed for any other reason, then don't do it
77087         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77088         size_t, since we assume C89 freestanding at least.  Do not check
77089         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77090         the right thing even if the types are not defined.  Instead use:
77091         (gl_STDINT_TYPE_PROPERTIES): New macro.
77092         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77093         testing whether <sys/types.h> clashes, as Autoconf does this for
77094         us now.  All uses removed.
77095         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77096         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77097         (gl_CHECK_TYPE_SAME):
77098         Remove; no longer needed.
77099         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77100         exists, since we'll return 0 anyway in that case.
77101         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77102
77103 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77106         possible collision with system files.
77107         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77108         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77109         WCHAR_MIN and WCHAR_MAX in this case.
77110         (<stddef.h>): Do not include; no longer needed.
77111         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77112         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77113         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77114         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77115         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77116         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77117         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77118         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77119         !defined(__c99))]: Include in this case too, since it's harmless
77120         now.
77121         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77122         dangerous to do so.
77123         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77124         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77125         (_STDINT_MIN, _STDINT_MAX): New macros.
77126         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77127         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77128         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77129         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77130         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77131         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77132         macros, not typedefs; this simplifies things quite a bit.
77133         Use long int for all types narrower than int64_t.
77134         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77135         Define in terms of long long int or int64_t or long int,
77136         not int64_t or int32_t.  This saves some compile-time testing.
77137         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77138         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77139         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77140         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77141         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77142         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77143         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77144         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77145         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77146         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77147         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77148         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77149         undef any previous version and define our own version, for
77150         simplicity and consistency with the new macros for types.
77151         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77152         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77153         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77154         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77155         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77156         @WINT_T_SUFFIX@ to keep things simple here.
77157         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77158         Simplify by assuming typical 8/16/32/64 host, since we're
77159         already doing that elsewhere anyway.
77160         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77161         and assume long long int is 64 bits if available.  This
77162         speeds up 'configure'.
77163
77164 2006-07-01  Eric Blake  <ebb9@byu.net>
77165
77166         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77167         Reported by Andreas Buening.
77168
77169 2006-07-01  Eric Blake  <ebb9@byu.net>
77170
77171         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77172
77173 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77174
77175         * lib/getaddrinfo.c: fixed typo
77176
77177 2006-06-29  Jim Meyering  <jim@meyering.net>
77178
77179         * modules/strftime (Maintainer): Add my name, since with the
77180         FPRINTFTIME changes strftime.c has forked from glibc.
77181
77182 2006-06-29  Eric Blake  <ebb9@byu.net>
77183
77184         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77185
77186 2006-06-29  Eric Blake  <ebb9@byu.net>
77187
77188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77189
77190 2006-06-29  Eric Blake  <ebb9@byu.net>
77191
77192         * lib/stat_.h: New file.
77193
77194 2006-06-29  Eric Blake  <ebb9@byu.net>
77195
77196         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77197         unused static function.
77198
77199 2006-06-29  Eric Blake  <ebb9@byu.net>
77200
77201         * doc/functions.texi (Function Portability): Document missing lstat
77202         on mingw.
77203
77204 2006-06-29  Eric Blake  <ebb9@byu.net>
77205
77206         * MODULES.html.sh: Add sys_stat.
77207         * modules/sys_stat: New module.
77208         * modules/mkstemp (Depends-on): Add sys_stat.
77209
77210 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77211
77212         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77213
77214 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77215
77216         * m4/c-bs-a.m4: Removed.
77217
77218 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77219
77220         * lib/strftime.c: Assume strftime() exists.
77221
77222 2006-06-29  Derek Price  <derek@ximbiot.com>
77223
77224         * modules/c-bs-a: Removed - \a is C89.
77225         * MODULES.html.sh: Remove c-bs-a.
77226
77227 2006-06-29  Bruno Haible  <bruno@clisp.org>
77228
77229         * modules/wcwidth (License): Change to LGPL.
77230
77231 2006-06-28  Simon Josefsson  <jas@extundo.com>
77232
77233         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77234         on _WIN32.
77235
77236         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77237         getnameinfo.
77238
77239 2006-06-28  Simon Josefsson  <jas@extundo.com>
77240
77241         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77242
77243 2006-06-28  Simon Josefsson  <jas@extundo.com>
77244
77245         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77246         functions there.  It will succeed on Windows XP, but on Windows
77247         2000 and (presumably) earlier, it will fail, and use the internal
77248         re-implementation.
77249         (use_win32_p): New function.
77250         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77251         Support AI_NUMERICSERV to disable getservbyname.
77252         (getnameinfo): New function, only supports
77253         NI_NUMERICHOST|NI_NUMERICSERV for now.
77254
77255         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77256         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77257         getnameinfo.
77258
77259 2006-06-28  Eric Blake  <ebb9@byu.net>
77260
77261         * modules/wcwidth: New file.
77262         * modules/mbchar (Depends-on): Add wcwidth.
77263         * modules/mbswidth (Depends-on): Add wcwidth.
77264         * MODULES.html.sh: Add wcwidth.
77265
77266 2006-06-28  Eric Blake  <ebb9@byu.net>
77267
77268         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77270
77271 2006-06-28  Eric Blake  <ebb9@byu.net>
77272
77273         * lib/xvasprintf.h: Fix comments.
77274
77275 2006-06-28  Eric Blake  <ebb9@byu.net>
77276
77277         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77278         * lib/mbswidth.c (wcwidth): Move from here...
77279         * lib/wcwidth.h: ...to this new file.
77280
77281 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77282
77283         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77284
77285         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77286         it's obsolete.
77287         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77288
77289 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77290
77291         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77292         Autoconf 2.60 says this stuff was obsolete.
77293
77294 2006-06-28  Bruno Haible  <bruno@clisp.org>
77295
77296         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77297
77298 2006-06-28  Bruno Haible  <bruno@clisp.org>
77299
77300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77301         gt_TYPE_WCHAR_T.
77302
77303 2006-06-28  Bruno Haible  <bruno@clisp.org>
77304
77305         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77306         declaration for wcwidth.
77307         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77308
77309 2006-06-28  Bruno Haible  <bruno@clisp.org>
77310
77311         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77312         (mkdir): Define using _mkdir.
77313
77314 2006-06-28  Bruno Haible  <bruno@clisp.org>
77315
77316         * lib/getaddrinfo.h: Fix POSIX URL.
77317         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77318         _WIN32.
77319         (use_win32_p): Make static.
77320         (getaddrinfo): Reject service name if it is empty or does not consist
77321         solely of decimal digits, or if its value is > 65535.
77322         (getnameinfo): Remove useless casts.
77323
77324 2006-06-27  Simon Josefsson  <jas@extundo.com>
77325
77326         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77327         Eggert and Martin Lambers.
77328
77329 2006-06-27  Simon Josefsson  <jas@extundo.com>
77330
77331         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77332         Eggert and Martin Lambers.
77333
77334 2006-06-27  Bruno Haible  <bruno@clisp.org>
77335
77336         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77337         result to 0, not to empty.
77338         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77339
77340 2006-06-27  Bruno Haible  <bruno@clisp.org>
77341
77342         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77343
77344 2006-06-26  Simon Josefsson  <jas@extundo.com>
77345
77346         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77347         present.
77348
77349 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77350
77351         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77352         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77353         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77354
77355 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77356
77357         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77358
77359 2006-06-26  Bruno Haible  <bruno@clisp.org>
77360
77361         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77362
77363 2006-06-26  Bruno Haible  <bruno@clisp.org>
77364
77365         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77366
77367 2006-06-26  Bruno Haible  <bruno@clisp.org>
77368
77369         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77370         SGI C compiler in pre-C99 mode.
77371         Suggested by Mark D. Baushke and Larry Jones.
77372
77373 2006-06-26  Bruno Haible  <bruno@clisp.org>
77374
77375         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77376         WCHAR_MAX.
77377         Reported by Mark D. Baushke and Larry Jones.
77378
77379 2006-06-26  Bruno Haible  <bruno@clisp.org>
77380
77381         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77382         in pre-C99 mode.
77383         Suggested by Mark D. Baushke and Larry Jones.
77384
77385 2006-06-23  Simon Josefsson  <jas@extundo.com>
77386             Bruno Haible  <bruno@clisp.org>
77387
77388         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77389         Emit mostlyclean-local rule.
77390         (func_emit_tests_Makefile_am): Likewise.
77391         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77392
77393 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77394
77395         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77396
77397 2006-06-23  Bruno Haible  <bruno@clisp.org>
77398
77399         * tests/test-stdint.c: Update to match ISO C 99 Technical
77400         Corrigendum 1.
77401
77402 2006-06-23  Bruno Haible  <bruno@clisp.org>
77403
77404         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77405
77406 2006-06-23  Bruno Haible  <bruno@clisp.org>
77407
77408         * lib/stdint_.h: Treat IRIX like OpenBSD.
77409
77410 2006-06-23  Bruno Haible  <bruno@clisp.org>
77411
77412         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77413         ISO C 99 Technical Corrigendum 1.
77414
77415 2006-06-22  Simon Josefsson  <jas@extundo.com>
77416
77417         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77418         MinGW.
77419
77420 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77421
77422         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77423         needed.  Some compiler complained about some of them.  Problem reported
77424         by Larry Jones in
77425         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77426
77427 2006-06-21  Simon Josefsson  <jas@extundo.com>
77428
77429         * tests/test-getaddrinfo.c: New file.
77430
77431         * modules/getaddrinfo-tests: New file.
77432
77433         * MODULES.html.sh: Add inet_pton.
77434
77435         * modules/inet_pton: New file.
77436
77437 2006-06-21  Simon Josefsson  <jas@extundo.com>
77438
77439         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77440         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77441         of using the (limited) gnulib implementation on Windows XP.
77442
77443         * m4/inet_pton.m4: New file.
77444
77445 2006-06-21  Simon Josefsson  <jas@extundo.com>
77446
77447         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77448         variable.
77449
77450         * lib/socket_.h: Don't define WINVER.
77451
77452         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77453         slightly modified to work in gnulib.
77454
77455 2006-06-21  Simon Josefsson  <jas@extundo.com>
77456
77457         * doc/gnulib.texi (Windows sockets): Add.
77458
77459 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * lib/read-file.c (fread_file): Start with buffer allocation of
77462         0 bytes rather than 1 byte; this simplifies the code.
77463         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77464         code to free buffer and save/restore errno.
77465         (internal_read_file): Remove unused local.
77466
77467 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77468
77469         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77470         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77471         Problem reported by Denis Excoffier in
77472         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77473
77474 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77475
77476         * modules/sys_socket, modules/socklen: Include sys/types since
77477         FreeBSD 4.x's sys/socket.h needs it.
77478
77479 2006-06-19  Simon Josefsson  <jas@extundo.com>
77480
77481         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77482
77483 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77484
77485         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77486
77487 2006-06-19  Bruno Haible  <bruno@clisp.org>
77488
77489         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77490         and FULL_PATH_INTTYPES_H in angle brackets.
77491         Reported by Mark D. Baushke <mdb@gnu.org>.
77492
77493 2006-06-17  Eric Blake  <ebb9@byu.net>
77494
77495         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77496         errno.
77497
77498 2006-06-17  Bruno Haible  <bruno@clisp.org>
77499
77500         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77501         <sys/inttypes.h>.
77502
77503 2006-06-17  Bruno Haible  <bruno@clisp.org>
77504
77505         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77506         whether errno is declared. Assume <errno.h> declares errno.
77507
77508 2006-06-17  Bruno Haible  <bruno@clisp.org>
77509
77510         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77511
77512 2006-06-17  Bruno Haible  <bruno@clisp.org>
77513
77514         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77515         problem on Solaris 2.5.1.
77516
77517 2006-06-16  Eric Blake  <ebb9@byu.net>
77518
77519         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77520         * lib/unicodeio.c [!defined errno]: Likewise.
77521         * lib/strtol.c [!defined errno]: Likewise.
77522         * lib/strtod.c [!defined errno]: Likewise.
77523
77524 2006-06-15  Eric Blake  <ebb9@byu.net>
77525
77526         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77527
77528 2006-06-15  Eric Blake  <ebb9@byu.net>
77529
77530         * config/srclist.txt (ssize_t.m4): Lose sync.
77531
77532 2006-06-15  Bruno Haible  <bruno@clisp.org>
77533
77534         * modules/stdint (Files): Include m4/full-header-path.m4,
77535         m4/size_max.m4, m4/wchar_t.m4.
77536         (Makefile.am): Many more substitutions.
77537         * modules/stdint-tests: New file.
77538         * tests/test-stdint.c: New file.
77539
77540 2006-06-15  Bruno Haible  <bruno@clisp.org>
77541
77542         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77543         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77544         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77545         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77546         gl_CHECK_TYPE_SAME): New macros.
77547
77548 2006-06-15  Bruno Haible  <bruno@clisp.org>
77549
77550         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77551
77552 2006-06-15  Bruno Haible  <bruno@clisp.org>
77553
77554         * lib/stdint_.h: Rewritten to be fully auto-configured.
77555         Fixes bug on HP-UX/IA64.
77556
77557 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         * lib/getdate.y (__attribute__): Don't define if already defined.
77560         Problem reported by Larry Jones.
77561         * lib/utimens.c (__attribute__): Likewise.
77562
77563 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77566         reported by Andreas Schwab.
77567
77568 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77569             Bruno Haible  <bruno@clisp.org>
77570
77571         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77572         check for the declaration of strnlen and a run test that exposes the
77573         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77574         rpl_strndup.
77575
77576 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77577             Bruno Haible  <bruno@clisp.org>
77578
77579         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77580
77581 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77582
77583         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77584         compile test, for Tru64 4.0D.
77585
77586 2006-05-28  Karl Berry  <karl@gnu.org>
77587
77588         * config/srclist.txt (printf-args.c): lose sync.
77589
77590 2006-05-26  Martin Lambers  <marlam@marlam.de>
77591
77592         * lib/getpass.c: Updates the test for the native W32 API, and adds
77593         missing includes, thus fixing compilation warnings.
77594
77595 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77596
77597         * lib/exclude.c (exclude_fnmatch): New function.
77598         (excluded_file_name): Call exclude_fnmatch.
77599         * lib/exclude.h (excluded_file_name): New prototype
77600
77601 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77602
77603         * lib/tempname.c (small_open, large_open): New macros.
77604         (__open, __open64) [!_LIBC]: Remove.
77605         (__gen_tempname): Use small_open and large_open instead of __open
77606         and __open64.  This fixes a portability bug on HP-UX 11.11i
77607         reported by Simon Wing-Tang in
77608         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77609
77610 2006-05-24  Bruno Haible  <bruno@clisp.org>
77611
77612         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77613         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77614         Reported by Thorsten Maerz <torte@netztorte.de> via
77615         Aaron Stone <aaron@serendipity.cx>.
77616
77617 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77618
77619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77620         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77621         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77622         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77623         not really conditional on the cache.
77624         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77625
77626 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77627
77628         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77629         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77630         (my_usleep): Don't mishandle maximum value.
77631
77632 2006-05-19  Jim Meyering  <jim@meyering.net>
77633
77634         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77635
77636 2006-05-17  Bruno Haible  <bruno@clisp.org>
77637
77638         Cygwin portability.
77639         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77640
77641 2006-05-17  Bruno Haible  <bruno@clisp.org>
77642
77643         * lib/stdint_.h: Fix recognition of Cygwin.
77644
77645 2006-05-15  Bruno Haible  <bruno@clisp.org>
77646
77647         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77648         on libtool patch by Ralf Wildenhues.
77649
77650 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77653         test for C99 conformance; (bool) 0.5 is an integer constant
77654         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77655         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77656
77657 2006-05-11  Simon Josefsson  <jas@extundo.com>
77658
77659         * m4/xvasprintf.m4: Fix obvious typo.
77660
77661 2006-05-11  Jim Meyering  <jim@meyering.net>
77662
77663         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77664         James Lemley.
77665
77666 2006-05-10  Simon Josefsson  <jas@extundo.com>
77667
77668         * lib/md4.c: Typo fix, update copyright years.
77669         (K1, K2): Don't use L because it turn computations into 64-bit on
77670         64-bit platforms.
77671
77672 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77673
77674         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77675         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77676         unwanted sign propagation, e.g., on hosts with 64-bit int.
77677         There still are some problems with reeelly weird theoretical hosts
77678         (e.g., 33-bit int) but it's not worth worrying about now.
77679         * lib/sha1.c (rol): Likewise.
77680         (K1, K2, K3, K4): Remove unnecessary L suffix.
77681
77682 2006-05-10  Bruno Haible  <bruno@clisp.org>
77683
77684         * lib/des.c: Cast to avoid warnings.
77685
77686 2006-05-09  Bruno Haible  <bruno@clisp.org>
77687
77688         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77689         (Depends-on): Depend also on xsize, stdarg.
77690         (configure.ac): Add gl_XVASPRINTF.
77691
77692 2006-05-09  Bruno Haible  <bruno@clisp.org>
77693
77694         * m4/xvasprintf.m4: New file.
77695
77696 2006-05-09  Bruno Haible  <bruno@clisp.org>
77697
77698         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77699         (EOVERFLOW): Define fallback value.
77700         (xstrcat): New function.
77701         (xvasprintf): Recognize the special case of a string concatenation.
77702
77703 2006-05-08  Eric Blake  <ebb9@byu.net>
77704
77705         * gnulib-tool (func_version): Base copyright year on CVS date.
77706         (func_emit_copyright_notice): New function.
77707         (func_emit_lib_Makefile_am): Use it.
77708         (func_emit_tests_Makefile_am): Likewise.
77709         (func_import): Likewise.
77710
77711 2006-05-08  Bruno Haible  <bruno@clisp.org>
77712
77713         * modules/stdarg: New file.
77714         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77715
77716 2006-05-08  Bruno Haible  <bruno@clisp.org>
77717
77718         * m4/stdarg.m4: New file, from GNU gettext.
77719
77720 2006-05-08  Bruno Haible  <bruno@clisp.org>
77721
77722         * config/srclist.txt (build-aux/config.rpath): different from latest
77723         release.
77724
77725 2006-05-08  Bruno Haible  <bruno@clisp.org>
77726
77727         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77728
77729 2006-05-05  Jim Meyering  <jim@meyering.net>
77730
77731         * m4/warning.m4: New file, derived from bison's file by the same name.
77732
77733 2006-05-03  Bruno Haible  <bruno@clisp.org>
77734
77735         * lib/stdint_.h: Shorter URL.
77736         * lib/inttypes.h: Likewise.
77737
77738 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77741
77742 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77743
77744         * lib/verify.h: Document the internals better.  Most of this change
77745         was written by Bruno Haible.
77746
77747 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * doc/verify.texi: New file, partly based on a proposal by
77750         Bruno Haible.
77751
77752 2006-05-02  Bruno Haible  <bruno@clisp.org>
77753
77754         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77755         test from here...
77756         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77757
77758 2006-04-29  Bruno Haible  <bruno@clisp.org>
77759
77760         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77761         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77762
77763 2006-04-29  Bruno Haible  <bruno@clisp.org>
77764
77765         * gnulib-tool: Make --update option actually work.
77766
77767 2006-04-29  Bruno Haible  <bruno@clisp.org>
77768
77769         * doc/gcd.texi: New file.
77770         * doc/gnulib.texi: Include it.
77771
77772 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * lib/getdate.y (get_date): When adding relative date, start with the
77775         initial time, not with the result of the first mktime call.
77776
77777 2006-04-25  Bruno Haible  <bruno@clisp.org>
77778
77779         * gnulib-tool (func_import): Output the include directives in three
77780         blocks, sorted separately.
77781         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77782
77783 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77784
77785         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77786         to define main with arguments, for C++.  Reported by Eric Blake.
77787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77788         Prefer 'int main ()' to 'int main (void)', for C++.
77789         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77790         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77791         for 'main', for C99 and C++.
77792
77793 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77794
77795         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77796         Don't assume that exit status -1 is valid.
77797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77798         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77799         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77800         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77801         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77802         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77803         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77804         functions can be used without declaring them, or that you can
77805         exit with status -1.
77806         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77807
77808 2006-04-24  Karl Berry  <karl@gnu.org>
77809
77810         * config/srclist.txt (longdouble.m4): sync lost.
77811
77812 2006-04-24  Eric Blake  <ebb9@byu.net>
77813
77814         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77815
77816 2006-04-24  Bruno Haible  <bruno@clisp.org>
77817
77818         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77819         poll() implementation in AIX.
77820         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77821
77822 2006-04-24  Bruno Haible  <bruno@clisp.org>
77823
77824         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77825         assigned exactly once.
77826
77827 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77828             Bruno Haible  <bruno@clisp.org>
77829
77830         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77831         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77832         for AM_CPPFLAGS.
77833
77834 2006-04-23  Bruno Haible  <bruno@clisp.org>
77835
77836         * modules/copy-file: Depend on unistd.
77837         * modules/execute: Likewise.
77838         * modules/fatal-signal: Likewise.
77839         * modules/findprog: Likewise.
77840         * modules/mkdtemp : Likewise.
77841         * modules/pipe: Likewise.
77842         * modules/wait-process: Likewise.
77843
77844 2006-04-23  Bruno Haible  <bruno@clisp.org>
77845
77846         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77847         condition was already detected.
77848         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77849
77850 2006-04-23  Bruno Haible  <bruno@clisp.org>
77851
77852         * lib/copy-file.c: Include <unistd.h> unconditionally.
77853         * lib/execute.c: Likewise.
77854         * lib/fatal-signal.c: Likewise.
77855         * lib/findprog.c: Likewise.
77856         * lib/mkdtemp.c: Likewise.
77857         * lib/pipe.h: Likewise.
77858         * lib/pipe.c: Likewise.
77859         * lib/wait-process.h: Likewise.
77860
77861 2006-04-23  Bruno Haible  <bruno@clisp.org>
77862
77863         * gnulib-tool (func_usage): Fix --import description. Document
77864         --update.
77865         (func_import): Create temporary file in a temporary directory, if
77866         --dry-run is specified. Silence errors from 'grep' when there are no
77867         m4 files in $m4dir.
77868         (func_create_testdir): Silence errors from 'grep' when there are no
77869         m4 files in $m4dir.
77870         Reported by Karl Berry <karl@freefriends.org>.
77871
77872 2006-04-20  Bruno Haible  <bruno@clisp.org>
77873
77874         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77875         one argument, so that the code will be portable to Autoconf 2.60.
77876         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77877         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77878         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77879
77880 2006-04-19  Derek Price  <derek@ximbiot.com>
77881             Eric Blake  <ebb9@byu.net>
77882
77883         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77884         rather than "/full/path.h".  Update comment to match.  Shorten &
77885         generalize m4_translit call via AS_TR_CPP.
77886
77887 2006-04-19  Derek Price  <derek@ximbiot.com>
77888             Eric Blake  <ebb9@byu.net>
77889
77890         * lib/inttypes.h: Correct grammar in comment.
77891
77892 2006-04-18  Derek Price  <derek@ximbiot.com>
77893             Paul Eggert  <eggert@cs.ucla.edu>
77894
77895         * modules/inttypes: New file.
77896         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77897
77898 2006-04-18  Derek Price  <derek@ximbiot.com>
77899             Paul Eggert  <eggert@cs.ucla.edu>
77900
77901         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77902         New files.
77903
77904 2006-04-18  Derek Price  <derek@ximbiot.com>
77905             Paul Eggert  <eggert@cs.ucla.edu>
77906
77907         * lib/inttypes.h: New file.
77908         * lib/strtoimax.c: Assume <inttypes.h>.
77909
77910 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77911
77912         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77913         isn't mounted.  Problem reported by Kir Kolyshkin.
77914
77915 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77916
77917         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77918         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77919         Derek R. Price.
77920         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77921         implementation.
77922
77923 2006-04-12  Eric Blake  <ebb9@byu.net>
77924
77925         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77926         is now done automatically by the corresponding Autoconf macro.
77927
77928 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77929
77930         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77931         time_r.h.
77932
77933 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         Merge regex changes from libc, removing some of our
77936         POSIX-conformance changes that were rejected and redoing them in a
77937         less-intrusive way.
77938
77939         * lib/regcomp.c (re_compile_internal, init_dfa):
77940         Length arg is now size_t, not Idx.  All uses changed.
77941         (peek_token): Forward decl now says internal_function.
77942         (__re_error_msgid, __re_error_msgid_idx):
77943         Now static rather than extern with attribute_hidden.
77944         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77945         For some reason libc prefers K&R style defns for external functions.
77946         (regerror) [!defined _LIBC]: Likewise.
77947         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77948         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77949         (build_range_exp, build_collating_symbol):
77950         Use K&R-style defn.
77951         (re_compile_fastmap): Use '\0' to memset, not 0.
77952         (utf8_sb_map): Make the calculations more obvious.
77953         (init_dfa, parse_bracket_exp, build_charclass_op):
77954         Call calloc and cast result, as glibc does.
77955         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77956         (build_range_exp, build_collating_symbol):
77957         Now internal functions.
77958
77959         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77960
77961         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77962         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77963         Don't depend on VMS; depend on __VMS instead, for POSIX
77964         namespace cleanness.
77965         (regoff_t): Define to ssize_t, not long int.
77966
77967         Remove the REG_ macros named below.  Instead, make the old names
77968         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77969         __USE_GNU_REGEX.
77970         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77971         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77972         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77973         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77974         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77975         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77976         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77977         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77978         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77979         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77980         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77981         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77982         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77983         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77984         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77985         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77986         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77987         (REG_NREGS):
77988         Remove.  All uses replaced by the old RE_* names.
77989         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77990         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77991         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77992         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77993         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77994         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77995         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77996         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77997         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77998         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77999         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78000         Don't bother having these macros be independent of each others'
78001         values, since they no longer exist in the POSIX name space.
78002
78003         Rename the following member names back to their old names,
78004         unless !__USE_GNU_REGEX.  All uses changed back.
78005         (buffer): Renamed from re_buffer.
78006         (allocated): Renamed from re_allocated.
78007         (used): Renamed from re_used.
78008         (syntax): Renamed from re_syntax.
78009         (fastmap): Renamed from re_fastmap.
78010         (translate): Renamed from re_translate.
78011         (can_be_null): Renamed from re_can_be_null.
78012         (regs_allocated): Renamed from re_regs_allocated.
78013         (fastmap_accurate): Renamed from re_fastmap_accurate.
78014         (no_sub): Renamed from re_no_sub.
78015         (not_bol): Renamed from re_not_bol.
78016         (not_eol): Renamed from re_not_eol.
78017         (newline_anchor): Renamed from re_newline_anchor.
78018         (num_regs): Renamed from rm_num_regs.
78019         (start): Renamed from rm_start.
78020         (end): Renamed from rm_end.
78021
78022         (free_state): Move up a bit.
78023
78024         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78025         #define to be empty.
78026         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78027         when that is what is intended.
78028         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78029         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78030         (MAX): New macro.
78031         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78032         All uses changed back to re_malloc, etc.  It's now the caller's
78033         responsibility to check for overflow; all callers changed.
78034         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78035         (re_x2nrealloc): Remove.
78036         (free_state): Remove decl.
78037
78038         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78039         (re_set_registers, re_exec):
78040         Use K&R-style defn.
78041
78042         2006-01-31  Roland McGrath  <roland@redhat.com>
78043
78044         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78045         Reported by Mike Frysinger <vapier@gentoo.org>.
78046
78047         2006-01-15  Andreas Jaeger  <aj@suse.de>
78048
78049         [BZ #1950]
78050         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78051         build_wcs_upper_buffer change.
78052         (build_wcs_upper_buffer): Change return type.
78053
78054         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78055
78056         * lib/regex_internal.h: Include <stdint.h> if available.
78057
78058         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78059
78060         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78061
78062         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78063
78064         * lib/regcomp.c: Adjust for changed secondary hash function.
78065
78066         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78067
78068         * lib/regex.h: Pretty printing.
78069         Clean up namespace a bit.
78070
78071         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78072
78073         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78074         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78075
78076         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78077                     Ulrich Drepper  <drepper@redhat.com>
78078
78079         [BZ #1302]
78080         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78081         changed.
78082         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78083
78084         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78085
78086         [BZ #281]
78087         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78088         * lib/regcomp.c: Remove unnecessary uses of
78089         unsigned RE_TRANSLATE_TYPE.
78090         * lib/regex_internal.h: Likewise.
78091         * lib/regex_internal.c: Likewise.
78092         * lib/regexec.c: Likewise.
78093         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78094
78095         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78096
78097         * lib/regexec.c (find_recover_state): Remove unnecessary
78098         initialization.
78099         (transit_state_bkref): Make DFA a const pointer.
78100         (get_subexp): Likewise.
78101         (check_arrival): Likewise.
78102         (update_cur_sifted_state): Likewise.
78103         (re_search_internal): Likewise.
78104         (prune_impossible_nodes): Likewise.
78105         (acquire_init_state_context): Likewise.
78106         (proceed_next_node): Likewise.
78107         (set_regs): Likewise.
78108         (free_fail_stack_return): Likewise.
78109         (check_arrival_expand_ecl): Mark DFA parameter as const.
78110         (check_arrival_expand_ecl_sub): Likewise.
78111         (check_subexp_limits): Likewise.
78112         (sub_epsilon_src_nodes):  Likewise.
78113         (add_epsilon_src_nodes):  Likewise.
78114         (merge_state_array): Likewise.
78115         (update_regs): Likewise.
78116         (build_trtable): Likewise.
78117         (sift_states_backward): Mark MCTX parameter as const.
78118         (build_sifted_states): Likewise.
78119         (update_cur_sifted_state): Likewise.
78120         (sift_states_mkref): Likewise.
78121         (check_arrival_expand_ecl): Mark eclosure as const.
78122         (check_dst_limits_calc_pos_1): Likewise.
78123         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78124         pointer.
78125
78126         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78127
78128         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78129         (transit_state_sb): Likewise.
78130         (transit_state_mb): Likewise.
78131         (sift_states_iter_mb): Likewise.
78132         (check_arrival_add_next_nodes): Likewise.
78133         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78134         [_LIBC] (re_search_2_stub): Use mempcpy.
78135
78136         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78137         mbrtowc for very simple UTF-8 case.
78138
78139         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78140         a pointer-to-const.
78141         (re_acquire_state_context): Likewise.
78142         * lib/regex_internal.h: Adjust prototypes.
78143
78144         * lib/regex.c: Prevent using C++ compilers.
78145
78146         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78147         (re_acquire_state_context): Likewise.
78148
78149 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         * modules/regex (Depends-on): Add ssize_t.
78152
78153 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78154
78155         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78156         translation table.
78157
78158 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78161
78162 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78163             Bruno Haible  <bruno@clisp.org>
78164
78165         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78166         <sys/types.h> and <inttypes.h>.
78167
78168 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78169
78170         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78171         `__error_t_defined', so argp.h will not typedef the former.
78172
78173 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78174
78175         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78176         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78177         glibc names.  Even if glibc is changed to conform to POSIX, the
78178         traditional names will be available anyway, since regex depends on
78179         the extensions module.  Also, fix a longstanding typo in the
78180         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78181         reported by Emanuele Giaquinta.  Also, change sense of cached
78182         variable, so that the message makes sense.
78183
78184 2006-03-24  Simon Josefsson  <jas@extundo.com>
78185
78186         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78187         including some doc fixes.
78188         (base64_encode_alloc): Fix +1 bug on allocation failures.
78189
78190 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78191
78192         * lib/base64.c (base64_encode): Do not read past end of array with
78193         unsanitized input on systems with CHAR_BIT > 8.
78194
78195 2006-03-24  Eric Blake  <ebb9@byu.net>
78196
78197         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78198
78199 2006-03-22  Karl Berry  <karl@gnu.org>
78200
78201         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78202         * config/srclistvars.sh (COREUTILS): new var.
78203
78204 2006-03-17  Jim Meyering  <jim@meyering.net>
78205
78206         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78207         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78208
78209 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78212         no longer needs it.  Instead, check that regoff_t is as least
78213         as wide as ptrdiff_t.
78214
78215         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78216         so that our regex.h stays compatible with the installed regex.
78217         This is helpful for installers who configure --without-included-regex.
78218         Problem reported by Emanuele Giaquinta.
78219
78220 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78221
78222         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78223         Typedef to long int, not to off_, as POSIX will likely change
78224         in that direction.
78225
78226 2006-03-15  Eric Blake  <ebb9@byu.net>
78227
78228         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78229
78230 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78231
78232         * lib/argp-help.c (validate_uparams): Fix typo
78233         * lib/argp-parse.c (argp_default_options): Consistently begin help
78234         messages with a lowercase letter.
78235
78236 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78237
78238         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78239         overrun buffers and shouldn't be used (much as gets shouldn't be
78240         used).
78241         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78242
78243 2006-03-08  Simon Josefsson  <jas@extundo.com>
78244
78245         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78246         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78247
78248 2006-03-08  Simon Josefsson  <jas@extundo.com>
78249
78250         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78251         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78252
78253 2006-03-08  Simon Josefsson  <jas@extundo.com>
78254
78255         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78256         signal that configure disabled the device.
78257
78258 2006-03-08  Simon Josefsson  <jas@extundo.com>
78259
78260         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78261         languages.
78262
78263 2006-03-07  Simon Josefsson  <jas@extundo.com>
78264
78265         * modules/getopt (Depends-on): Add unistd.
78266
78267         * modules/unistd: New file.
78268
78269 2006-03-07  Simon Josefsson  <jas@extundo.com>
78270
78271         * modules/gc-random: New file.
78272
78273 2006-03-07  Simon Josefsson  <jas@extundo.com>
78274
78275         * m4/unistd_h.m4: New file.
78276
78277 2006-03-07  Simon Josefsson  <jas@extundo.com>
78278
78279         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78280         test to be side-effect free by storing the result in the cache
78281         variable gl_cv_lib_readline, and moving the assignment of
78282         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78283         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78284
78285 2006-03-07  Simon Josefsson  <jas@extundo.com>
78286
78287         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78288         error on missing devices (the functions will return an error).
78289
78290         * m4/gc.m4: Move random stuff to gc-random.m4
78291
78292 2006-03-07  Simon Josefsson  <jas@extundo.com>
78293
78294         * lib/unistd_.h: New file.
78295
78296 2006-03-07  Simon Josefsson  <jas@extundo.com>
78297
78298         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78299
78300 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78301
78302         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78303         Problem reported by Juan Manuel Guerrero.
78304
78305 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78306
78307         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78308         the unistd module.
78309         * lib/getlogin_r.c: Likewise.
78310         * lib/getlogin_r.h: Likewise.
78311         * lib/glob.c: Likewise.
78312         * lib/pagealign_alloc.c: Likewise.
78313         * lib/unistd_.h: Remove; no longer needed.
78314
78315 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78316
78317         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78318         Add unistd.
78319         * modules/c-stack (Depends-on): Add unistd.
78320         * modules/getlogin_r: Likewise.
78321         * modules/glob: Likewise.
78322         * modules/pagealign_alloc: Likewise.
78323         * modules/unistd (Files): Remove lib/unistd_.h.
78324         (EXTRA_DIST): Remove.
78325         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78326         need unistd_.h.
78327         (MOSTLYCLEANFILES): Remove unistd.h-t.
78328
78329 2006-03-03  Simon Josefsson  <jas@extundo.com>
78330
78331         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78332
78333 2006-03-03  Simon Josefsson  <jas@extundo.com>
78334
78335         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78336         libidn and bison.
78337
78338 2006-03-03  Simon Josefsson  <jas@extundo.com>
78339
78340         * build-aux/maint.mk: Add indent target.
78341
78342 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78343
78344         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78345         our replacement poll.h in any case, to avoid a differing
78346         declaration from a system header.  Seen on AIX.
78347
78348 2006-03-01  Simon Josefsson  <jas@extundo.com>
78349
78350         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78351         <kasal@ucw.cz>.
78352
78353 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78354
78355         * modules/gettime (Depends-on): Add extensions module.
78356         * modules/nanosleep (Depends-on): Likewise.
78357         * modules/settime (Depends-on): Likewise.
78358
78359 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78360
78361         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78362         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78363         pedantically.
78364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78365         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78366
78367         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78368         not "==".  Reported by Ralf Wildenhues.
78369
78370 2006-03-01  Karl Berry  <karl@gnu.org>
78371
78372         * doc/Copyright/request-*: new files, synced from gnuorg.
78373
78374 2006-03-01  Karl Berry  <karl@gnu.org>
78375
78376         * config/srclist.txt (Copyright/*): new entries.
78377
78378 2006-02-28  Simon Josefsson  <jas@extundo.com>
78379
78380         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78381
78382 2006-02-27  Simon Josefsson  <jas@extundo.com>
78383
78384         * lib/base64.h: Indent #define's.  From Jim Meyering
78385         <jim@meyering.net>.
78386
78387 2006-02-27  Jim Meyering  <jim@meyering.net>
78388
78389         Revert the change of 2006-02-24, so these files can continue
78390         to be sync'd from gettext.
78391         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78392         of `config.h'.
78393
78394 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         * modules/intprops: New file.
78397         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78398         Add intprops.
78399         * modules/getloadavg (Files): Remove lib/intprops.h.
78400         (Depends-on): Add intprops.
78401         * modules/human: Likewise.
78402         * modules/inttostr: Likewise.
78403         * modules/openat: Likewise.
78404         * modules/sig2str: Likewise.
78405         * modules/userspec: Likewise.
78406         * modules/utimecmp: Likewise.
78407         * modules/xnanosleep: Likewise.
78408         * modules/xstrtol: Likewise.
78409
78410 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78411
78412         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78413         * modules/lock-tests (TESTS): Use $(EXEEXT).
78414         * modules/tls-tests: Likewise.
78415         * modules/argp-tests: Likewise.
78416         (check_PROGRAMS): New var, replacing...
78417         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78418
78419 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78420
78421         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78422         `config.h'.
78423
78424 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78425
78426         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78427
78428 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78429
78430         Sync from coreutils.
78431         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78432         gl_CHDIR_SAFER.
78433
78434 2006-02-22  Jim Meyering  <jim@meyering.net>
78435
78436         Sync from coreutils.
78437         * m4/chdir-safer.m4: New file.
78438
78439 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78442         AT_FDCWD exceeds INT_MAX.
78443         * lib/openat.h (AT_FDCWD): Likewise.
78444
78445 2006-02-17  Eric Blake  <address@hidden>
78446
78447         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78448
78449 2006-02-16  Simon Josefsson  <jas@extundo.com>
78450
78451         * modules/getaddrinfo (Depends-on): Add sys_socket.
78452
78453 2006-02-15  Simon Josefsson  <jas@extundo.com>
78454
78455         * build-aux/maint.mk: Add dsyntax-check rule.
78456
78457 2006-02-15  Eric Blake  <ebb9@byu.net>
78458
78459         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78460         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78461         'present but cannot compile' warnings on cygwin.
78462         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78463         use ws2tcpip.h if sys/socket.h works.
78464         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78465         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78466
78467 2006-02-14  Simon Josefsson  <jas@extundo.com>
78468
78469         * modules/maintainer-makefile (Files): Rename.
78470
78471         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78472         and (the local) Makefile.cfg to maint-cfg.mk.
78473
78474         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78475         to the latter.
78476
78477         * modules/maintainer-makefile: New module.
78478
78479         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78480         severaly stripped to make it possible to build it up from scratch
78481         with reliable tests.
78482
78483         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78484         fixes to permit overriding the default actions when configure and
78485         makefile are not available.
78486
78487 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78488
78489         Sync from coreutils.
78490         * modules/lstat (Depends-on): Don't depend on xalloc.
78491         (License): Change from GPL to LGPL, since this is now simply a
78492         replacement for a libc function.
78493
78494 2006-02-14  Jim Meyering  <jim@meyering.net>
78495
78496         Sync from coreutils.
78497
78498         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78499         failure on deficient systems, and simplify gnulib lgpl dependencies.
78500         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78501         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78502
78503         * lib/xalloc-die.c: Remove unused definition of N_.
78504
78505 2006-02-14  Jim Meyering  <jim@meyering.net>
78506
78507         Sync from coreutils.
78508         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78509         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78510         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78511         double-quote uses of that variable, to accommodate the rare case in
78512         which getmntent is available in none of the libraries checked.  This
78513         happens at least on FreeBSD 5.0.
78514
78515 2006-02-13  Simon Josefsson  <jas@extundo.com>
78516
78517         * gnulib-tool (Usage): Fix --import, from
78518         karl@freefriends.org (Karl Berry).
78519
78520 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78521
78522         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78523
78524 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78525
78526         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78527         "autoupdate" on 2005-12-12.
78528
78529 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * modules/closeout (Depends-on): Remove atexit.
78532
78533 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78536         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78537
78538 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78541         __EXTENSIONS__ if this causes compilation to fail.  Problem
78542         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78543         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78544
78545 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78546
78547         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78548         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78549         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78550         All uses changed.
78551
78552 2006-01-26  Simon Josefsson  <jas@extundo.com>
78553
78554         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78555         prototype is visible on mingw32.
78556
78557         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78558         for mingw32.
78559
78560         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78561         mingw32).
78562
78563 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78566         attempt to open for write; this always fails, at least on POSIX
78567         hosts.  This reinstates the 2006-01-09 change, which was
78568         inadvertently removed.
78569
78570 2006-01-26  Bruno Haible  <bruno@clisp.org>
78571
78572         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78573         Reported by Paul Eggert.
78574
78575 2006-01-26  Bruno Haible  <bruno@clisp.org>
78576             Paul Eggert  <eggert@cs.ucla.edu>
78577
78578         * lib/stdbool_.h (_Bool)
78579         [(! (defined __cplusplus || defined __BEOS__)
78580           && !defined __GNUC__
78581           && !(defined __HP_cc || defined __xlc__
78582                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78583                || defined __sgi))]:
78584         #define to signed char in these cases too; this simplifies
78585         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78586         etc., separately) and makes it more conservative.
78587
78588 2006-01-25  Simon Josefsson  <jas@extundo.com>
78589
78590         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78591         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78592         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78593
78594 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78595
78596         * lib/argp-namefrob.h: Bugfix. Remove stray #
78597
78598 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78601         so that we test the test.
78602         Check for yet another HP-UX cc bug involving *bool |= bool.
78603
78604 2006-01-25  Karl Berry  <karl@gnu.org>
78605
78606         * config/srclist.txt (vasnprintf.c): sync lost.
78607
78608 2006-01-25  Jim Meyering  <jim@meyering.net>
78609
78610         Sync from the stable (b5) branch of coreutils:
78611
78612         * lib/fts.c (fts_children): Don't let close() clobber errno from
78613         failed fchdir().
78614
78615         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78616         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78617         a dangling symlink.  That can also happen at least for ELOOP.
78618         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78619         FYI, this bug predates the inclusion of fts.c in coreutils.
78620
78621         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78622         in their own block, so pre-c99 compilers don't object.
78623
78624         Avoid the double-free (first in fts_read, second in fts_close) that
78625         would occur when an `active' directory is made inaccessible (e.g.,
78626         via chmod a-x) during a traversal.
78627         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78628         before returning.  Reproduce this failure by
78629         mkdir -p a/b; cd a; chmod a-x . b
78630         Reported by Stavros Passas.
78631
78632 2006-01-25  Jim Meyering  <jim@meyering.net>
78633
78634         * lib/fileblocks.c: Remove more useless parentheses.
78635         * lib/readutmp.h: Likewise.
78636
78637 2006-01-25  Bruno Haible  <bruno@clisp.org>
78638
78639         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78640         warnings.
78641         Reported by Paul Eggert.
78642
78643 2006-01-25  Bruno Haible  <bruno@clisp.org>
78644
78645         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78646         rid of a trap command. For Solaris sh.
78647         Reported by Mark D. Baushke <mdb@gnu.org>.
78648
78649 2006-01-24  Simon Josefsson  <jas@extundo.com>
78650
78651         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78652         Bruno.
78653
78654 2006-01-24  Karl Berry  <karl@gnu.org>
78655
78656         * config/srclist.txt (argp-namefrob.h): sync lost.
78657
78658 2006-01-24  Jim Meyering  <jim@meyering.net>
78659
78660         * modules/openat (Files): Add lib/intprops.h.
78661         From Mark D. Baushke.
78662
78663 2006-01-24  Jim Meyering  <jim@meyering.net>
78664
78665         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78666         Reported by Mark D. Baushke.
78667
78668 2006-01-24  Jim Meyering  <jim@meyering.net>
78669
78670         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78671
78672 2006-01-24  Bruno Haible  <bruno@clisp.org>
78673
78674         * modules/strnlen (Maintainer): Change from glibc to all.
78675
78676 2006-01-24  Bruno Haible  <bruno@clisp.org>
78677
78678         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78679         Patch by Paul Eggert.
78680
78681 2006-01-24  Bruno Haible  <bruno@clisp.org>
78682
78683         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78684         already has it.
78685         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78686         2005-11-26.
78687
78688         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78689         'signed char' to avoid problems with the built-in _Bool type.
78690         Reported by Paul Eggert on 2005-11-26.
78691
78692 2006-01-24  Bruno Haible  <bruno@clisp.org>
78693
78694         * gnulib-tool (func_import): Avoid constructing complicated sed
78695         expressions inside backquote.
78696         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78697
78698 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78699
78700         These changes imported from libc.
78701         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78702         test and two separate function calls.
78703         * lib/strndup.c (__strndup): Add libc_hidden_def.
78704
78705 2006-01-23  Simon Josefsson  <jas@extundo.com>
78706
78707         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78708         Remove the test_*_SOURCES variable: automake infers it by default.
78709         * modules/tls-tests: Likewise.
78710
78711 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78712
78713         Work around porting bugs reported by Dieter in
78714         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78715         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78716         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78717         Include "getopt.h" first, to check interface.
78718         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78719         !HAVE_DECL_GETENV.
78720         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78721         (__strndup): Revert to K&R-style function dfns, the glibc style.
78722         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78723         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78724         Include strnlen.h first, to get prototype properly.
78725         (strnlen): Renamed from __strnlen.
78726         Remove weak alias.
78727
78728 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78731
78732 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * config/srclist.txt: Adjust to reflect glibc reorganization.
78735         This affects only comments.
78736
78737 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78738
78739          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78740          Reported by Bruce Korb <bkorb@gnu.org>.
78741
78742 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78743
78744         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78745         to pacify gcc -Wswitch-default.
78746
78747 2006-01-22  Bruno Haible  <bruno@clisp.org>
78748
78749         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78750         temporary buffer for sprintf, take into account the precision also
78751         for 'd', 'i', 'u', 'o', 'x', 'X'.
78752
78753 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78754
78755         * modules/argp-tests: New module
78756         * tests/test-argp.c: New file
78757         * tests/test-argp-2.sh: New file
78758
78759 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78760
78761         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78762         (__argp_base_name): Removed
78763         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78764         typo.
78765         (__argp_base_name): Provide macro definition or extern declaration
78766         depending on the configuration
78767
78768 2006-01-20  Simon Josefsson  <jas@extundo.com>
78769
78770         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78771
78772 2006-01-20  Simon Josefsson  <jas@extundo.com>
78773
78774         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78775
78776 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78777
78778         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78779         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78780         Suggested by Bruno Haible.
78781
78782 2006-01-20  Karl Berry  <karl@gnu.org>
78783
78784         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78785         until changes propagate, I guess.
78786
78787 2006-01-19  Simon Josefsson  <jas@extundo.com>
78788
78789         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78790
78791 2006-01-19  Simon Josefsson  <jas@extundo.com>
78792
78793         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78794
78795 2006-01-19  Simon Josefsson  <jas@extundo.com>
78796
78797         * gnulib-tool: Set check_PROGRAMS.
78798
78799         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78800         modules/des-tests, modules/gc-arcfour-tests,
78801         modules/gc-arctwo-tests, modules/gc-des-tests,
78802         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78803         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78804         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78805         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78806         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78807         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78808         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78809         test_*_SOURCES.
78810
78811 2006-01-18  Simon Josefsson  <jas@extundo.com>
78812
78813         * modules/socklen (Depends-on): Depend on sys_socket.
78814
78815 2006-01-18  Simon Josefsson  <jas@extundo.com>
78816
78817         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78818         modules/des-tests, modules/gc-arcfour-tests,
78819         modules/gc-arctwo-tests, modules/gc-des-tests,
78820         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78821         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78822         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78823         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78824         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78825         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78826         $(EXEEXT) to automake TESTS variable, for mingw32.
78827
78828 2006-01-17  Simon Josefsson  <jas@extundo.com>
78829
78830         * modules/socklen (Include): Need sys/socket.h.
78831
78832 2006-01-17  Bruno Haible  <bruno@clisp.org>
78833
78834         * modules/ssize_t (Include): Add <sys/types.h>.
78835
78836 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78839         it's not portable and it doesn't work with cross-compiles.
78840         Problem reported by Bruno Haible.  Fix missing-$ typo in
78841         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78842         -zignore from being used with Sun's C compiler.
78843
78844 2006-01-12  Simon Josefsson  <jas@extundo.com>
78845
78846         * lib/base64.c: Fix warning, reported by Bruno Haible
78847         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78848
78849 2006-01-12  Bruno Haible  <bruno@clisp.org>
78850
78851         * modules/ldd: New file.
78852         * build-aux/ldd.sh.in: New file.
78853         * MODULES.html.sh (Support for building libraries and executables): Add
78854         ldd.
78855
78856 2006-01-12  Bruno Haible  <bruno@clisp.org>
78857
78858         * m4/ldd.m4: New file.
78859
78860 2006-01-12  Bruno Haible  <bruno@clisp.org>
78861
78862         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78863         endless loop while replacing $auxdir with build-aux.
78864
78865 2006-01-11  Simon Josefsson  <jas@extundo.com>
78866
78867         * lib/stdint_.h (SIZE_MAX): Add missing (.
78868
78869 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78870
78871         Sync from coreutils.
78872         * lib/md5.c: Fix commentary typos.
78873         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78874         * lib/md5.h (__attribute__): Remove; unused.
78875         * lib/sha1.c: Fix commentary to match md5 better.
78876         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78877         so that we don't need to worry about alignment.  All uses changed.
78878         This merges the 2005-10-28 md5 change into sha1.
78879
78880 2006-01-11  Jim Meyering  <jim@meyering.net>
78881
78882         Sync from coreutils.
78883         * lib/md5.c (OP): Fix spacing.
78884
78885 2006-01-11  Bruno Haible  <bruno@clisp.org>
78886
78887         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78888         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78889         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78890
78891 2006-01-11  Bruno Haible  <bruno@clisp.org>
78892
78893         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78894         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78895         the "early" section as well.
78896
78897 2006-01-11  Bruno Haible  <bruno@clisp.org>
78898
78899         Avoid "ar: no archive members specified" error on MacOS X.
78900         * gnulib-tool (func_modules_add_dummy): New function.
78901         (func_import, func_create_testdir): Invoke it.
78902
78903 2006-01-11  Bruno Haible  <bruno@clisp.org>
78904
78905         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78906         with $auxdir in AC_CONFIG_FILES statements.
78907
78908 2006-01-11  Bruno Haible  <bruno@clisp.org>
78909
78910         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78911         Initialize also noinst_HEADERS to empty.
78912
78913 2006-01-11  Bruno Haible  <bruno@clisp.org>
78914
78915         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78916         variables.
78917         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78918         autoreconf.
78919
78920 2006-01-11  Bruno Haible  <bruno@clisp.org>
78921
78922         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78923         overridable by the user.
78924         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78925
78926 2006-01-10  Simon Josefsson  <jas@extundo.com>
78927
78928         * modules/sys_socket: New file.
78929
78930 2006-01-10  Simon Josefsson  <jas@extundo.com>
78931
78932         * m4/sys_socket_h.m4: New file.
78933
78934 2006-01-10  Simon Josefsson  <jas@extundo.com>
78935
78936         * lib/socket_.h: New file.
78937
78938 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * modules/readutmp (Maintainer): Add myself.
78941
78942 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78945         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78946         People who are still concerned with buggy memcmp implementations
78947         can invoke gl_FUNC_MEMCMP themselves.
78948
78949 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78950
78951         * lib/regex_internal.h (BITSET_WORD_BITS):
78952         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78953         preprocessor mishandles large unsigned values as if they were signed.
78954         Problem reported by Claudio Fontana in
78955         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78956
78957 2006-01-10  Jim Meyering  <jim@meyering.net>
78958
78959         Avoid the double-free (first in fts_read, second in fts_close) that
78960         would occur when an `active' directory is made inaccessible (e.g.,
78961         via chmod a-x) during a traversal.
78962         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78963         before returning.  Reproduce this failure by
78964         mkdir -p a/b; cd a; chmod a-x . b
78965         Reported by Stavros Passas.
78966
78967         Sync from coreutils.
78968         * lib/sha1.c: Tweak grammar in a comment.
78969
78970 2006-01-10  Jim Meyering  <jim@meyering.net>
78971
78972         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78973         Patch by Joerg Sonnenberger.
78974
78975 2006-01-10  Bruno Haible  <bruno@clisp.org>
78976
78977         * modules/readutmp: Depend on module free.
78978         * modules/strtok_r: Depend on module restrict.
78979
78980 2006-01-10  Bruno Haible  <bruno@clisp.org>
78981
78982         * modules/gettext (configure.ac): Add an invocation of
78983         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78984
78985 2006-01-10  Bruno Haible  <bruno@clisp.org>
78986
78987         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78988         Reported by Werner Lemberg <wl@gnu.org>.
78989
78990 2006-01-10  Bruno Haible  <bruno@clisp.org>
78991
78992         * lib/localcharset.c: Update from GNU gettext.
78993
78994 2006-01-10  Bruno Haible  <bruno@clisp.org>
78995
78996         * lib/argp.h (__const): Remove macro. Use const instead.
78997         * lib/argp-fmtstream.h (__const): Likewise.
78998         * lib/glob_.h (__const): Remove macro.
78999         * lib/glob-libc.h: Use const instead of __const.
79000
79001 2006-01-10  Bruno Haible  <bruno@clisp.org>
79002
79003         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79004         variable.
79005         Needed to avoid an automake error regarding the 'gettext' module.
79006
79007 2006-01-09  Simon Josefsson  <jas@extundo.com>
79008
79009         * modules/inet_ntop (Depends-on): Add restrict.
79010
79011 2006-01-09  Simon Josefsson  <jas@extundo.com>
79012
79013         * modules/gc-rijndael-tests (License): Put under LGPL.
79014
79015         * modules/gc-des-tests (License): Likewise.
79016
79017         * modules/gc-arcfour-tests (License): Likewise.
79018
79019         * modules/gc-arctwo-tests (License): Likewise.
79020
79021         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79022
79023         * modules/gc-hmac-sha1-tests (Files): Likewise.
79024
79025         * modules/gc-hmac-md5-tests (License): Likewise.
79026
79027         * modules/gc-sha1-tests (License): Likewise.
79028
79029         * modules/gc-md5-tests (License): Likewise.
79030
79031         * modules/gc-md4-tests (License): Likewise.
79032
79033         * modules/gc-md2-tests (License): Likewise.
79034
79035         * modules/gc-tests (License): Likewise.
79036
79037         * modules/des-tests (License): Likewise.
79038
79039         * modules/md4-tests (License): Likewise.
79040
79041         * modules/md2-tests (License): Likewise.
79042
79043 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79044
79045         Sync from coreutils:
79046
79047         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79048         * modules/lib-ignore: New file.
79049         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79050         chdir-safer.m4, lchmod.m4.
79051         * modules/openat: Add mkdirat.c, openat-priv.h.
79052
79053 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79054
79055         Sync from coreutils.
79056         * m4/lib-ignore.m4: New file.
79057         * m4/lchmod.m4: New file.
79058
79059 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         Sync from coreutils.
79062         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79063         for write access: POSIX says that must fail.
79064         * lib/fts.c (diropen): Likewise.
79065         * lib/save-cwd.c (save_cwd): Likewise.
79066         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79067         well, for minor improvements on hosts that lack O_DIRECTORY.
79068         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79069         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79070         Fall back on chown if open failed with EACCES.
79071
79072         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79073         Report an error at compile-time if only a 1-second nominal clock
79074         resolution is found.
79075
79076         * lib/lchmod.h: New file.
79077         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79078         (make_dir_parents): Use lchown rather than chown, and
79079         lchmod rather than chmod.
79080
79081         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79082         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79083         "proc" reported by n0dalus.
79084
79085         * lib/mountlist.c: Include <limits.h>.
79086         (dev_from_mount_options)
79087         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79088         New function.  It no longer assumes "dev=" has the System V meaning
79089         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79090         (read_file_system_list)
79091         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79092         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79093         dev= in that case.
79094
79095         * lib/posixtm.h (PDS_PRE_2000): New macro.
79096         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79097         allow_century.  All usages changed.  Reject dates outside the range
79098         1969-1999 if PDS_PRE_2000 is used.
79099
79100 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79101
79102         Sync from coreutils.
79103         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79104         (Time of day items): Mention the possibility of leap seconds.
79105         Problem reported by Dr. David Alan Gilbert.
79106
79107 2006-01-09  Jim Meyering  <jim@meyering.net>
79108
79109         Sync from coreutils.
79110
79111         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79112
79113         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79114
79115         * lib/modechange.c (mode_compile): Reject an invalid mode string
79116         that starts with an octal digit.  From Andreas Gruenbacher.
79117
79118         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79119         and dup to open_safer and dup_safer, respectively.
79120         (openat_permissive): Fix typo in comment.
79121
79122         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79123         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79124         (_): Remove; no longer needed.
79125         (openat): Renamed from rpl_openat; no need for rpl_openat
79126         since openat.h renames openat for us.
79127         Replace most of the body with a call to openat_permissive,
79128         to avoid duplicate code.
79129         Port to (probably hypothetical) environments were mode_t is
79130         wider than int.
79131         (openat_permissive): Require mode arg, so that we can check
79132         types better.  Put it just after flags.  Change cwd failure
79133         indicator from pointer-to-bool to pointer-to-errno-value.
79134         All callers changed.
79135         Invoke openat_save_fail and/or openat_restore_fail if
79136         cwd_errno is null, so that openat can call us.
79137         (openat_permissive, fdopendir, fstatat, unlinkat):
79138         Simplify errno handling to avoid some duplicate code,
79139         as it's OK to set errno on success.
79140         * lib/openat.h: Revamp code so that function macros depend on
79141         __OPENAT_PREFIX only, not also on AT_FDCWD.
79142         (openat_ro): Remove.  Caller changed to use openat_permissive.
79143         (openat_permissive): Now a macro, if not a function.
79144         (openat_restore_fail, openat_save_fail): Now always functions,
79145         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79146
79147         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79148         and openat.c.
79149         * lib/mkdirat.c: Include openat-priv.h.
79150         Remove definitions of macros defined therein.
79151         * lib/openat.c: Likewise.
79152
79153         * lib/mkdirat.c (mkdirat): New file and function.
79154         * lib/openat.h (mkdirat): Declare.
79155
79156         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79157
79158         * lib/openat.h (openat_permissive): Declare.
79159         (openat_ro): Define.
79160
79161         * lib/openat.c (EXPECTED_ERRNO): New macro.
79162         (openat_permissive): New function -- used in remove.c rewrite.
79163         (all functions): Set errno just before returning, only if there
79164         was an actual failure.
79165         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79166
79167         Emulate openat-family functions using Linux's procfs, if possible.
79168         Idea and some code based on Ulrich Drepper's glibc changes.
79169
79170         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79171         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79172         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79173         before falling back on save_cwd and restore_cwd.
79174         (fdopendir, fstatat, unlinkat): Likewise.
79175
79176         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79177         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79178
79179         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79180         as second argument to va_arg.  Otherwise, some versions of gcc
79181         warn that `if this code is reached, the program will abort'.
79182
79183 2006-01-09  Jim Meyering  <jim@meyering.net>
79184
79185         Sync from coreutils.
79186         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79187         Require openat-priv.h.
79188
79189 2006-01-09  Bruno Haible  <bruno@clisp.org>
79190
79191         * modules/strnlen (Include): Use strnlen.h.
79192
79193 2006-01-09  Bruno Haible  <bruno@clisp.org>
79194
79195         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79196
79197 2006-01-09  Bruno Haible  <bruno@clisp.org>
79198
79199         * lib/sysexit_.h (EX_OK): New macro.
79200         Suggested by Martin Lambers <marlam@marlam.de>.
79201
79202 2006-01-09  Bruno Haible  <bruno@clisp.org>
79203
79204         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79205         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79206
79207 2006-01-09  Bruno Haible  <bruno@clisp.org>
79208
79209         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79210         numbers.
79211
79212 2006-01-09  Bruno Haible  <bruno@clisp.org>
79213
79214         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79215         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79216         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79217         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79218
79219 2006-01-09  Bruno Haible  <bruno@clisp.org>
79220
79221         * build-aux/javacomp.sh.in: New file, moved from lib/.
79222         * modules/javacomp-script (Files): Update.
79223         (configure.ac): Add AC_CONFIG_FILES invocation.
79224         (EXTRA_DIST): Remove variable.
79225
79226         * build-aux/javaexec.sh.in: New file, moved from lib/.
79227         * modules/javaexec (Files): Update.
79228         (configure.ac): Add AC_CONFIG_FILES invocation.
79229         (EXTRA_DIST): Remove javaexec.sh.in.
79230
79231         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79232         * modules/csharpcomp-script (Files): Update.
79233         (configure.ac): Add AC_CONFIG_FILES invocation.
79234         (EXTRA_DIST): Remove variable.
79235
79236         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79237         * modules/csharpexec (Files): Update.
79238         (configure.ac): Add AC_CONFIG_FILES invocation.
79239         (EXTRA_DIST): Remove csharpexec.sh.in.
79240
79241 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79242
79243         Sync from coreutils.
79244
79245         Add POSIX ACL support
79246         * lib/acl.h (copy_acl, set_acl): Add declarations.
79247         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79248         systems other than Linux.
79249         (chmod_or_fchmod): New function: use fchmod when possible,
79250         and chmod otherwise.
79251         (file_has_acl): Add a POSIX ACL implementation, with a
79252         Linux-specific subcase.
79253         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79254         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79255         acls are unsupported.
79256         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79257         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79258         are unsupported.
79259
79260 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79261
79262         Sync from coreutils.
79263         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79264
79265 2006-01-07  Bruno Haible  <bruno@clisp.org>
79266
79267         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79268         gl_EARLY.
79269
79270 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79271
79272         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79273         Problem reported for Mingw by Mark Junker.
79274
79275 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79276
79277         * README: Gnulib normally doesn't generate a tarball.
79278
79279 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79282         long int, not int, for nanosecond counts, so that people who are
79283         used to POSIX struct timespec won't be surprised.  Reported by Jim
79284         Meyering.
79285
79286 2005-12-28  Bruno Haible  <bruno@clisp.org>
79287
79288         * build-aux/config.rpath: Update from GNU gettext.
79289
79290 2005-12-16  Jim Meyering  <jim@meyering.net>
79291
79292         * modules/fprintftime: New module.
79293         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79294
79295 2005-12-16  Jim Meyering  <jim@meyering.net>
79296
79297         * m4/fprintftime.m4: New file.
79298
79299 2005-12-16  Jim Meyering  <jim@meyering.net>
79300
79301         * lib/fprintftime.c, lib/fprintftime.h: New files.
79302
79303 2005-12-15  Simon Josefsson  <jas@extundo.com>
79304
79305         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79306         new m4/socklen.m4.
79307
79308 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79309
79310         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79311         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79312
79313 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79314
79315         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79316         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79317         struct uparams is valid. Fall back to the default values if it is
79318         not.
79319
79320 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79321
79322         * modules/argp (Files): Add argp-pin.c
79323         (Depends-on): dirname
79324         (lib_SOURCES): Add argp-pin.c
79325
79326 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79327
79328         * m4/argp.m4:  Check if program_invocation_name and
79329         program_invocation_short_name are declared and define appropriate
79330         macros if they are not.
79331
79332 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79333
79334         * lib/argp-help.c (__argp_base_name): New function
79335         (__argp_short_program_name): Rewrite using __argp_base_name
79336         * lib/argp-namefrob.h: Define program_invocation_name and
79337         program_invocation_short_name if requested
79338         (__argp_base_name): Add prototype
79339         * lib/argp-parse.c (argp_def): Use gettext wrappers
79340         (argp_default_parser): Use __argp_base_name
79341         * lib/argp-pin.c: New file. Defines program_invocation_name and
79342         program_invocation_short_name on systems that lack them.
79343
79344 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79345
79346         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79347         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79348         porting problem reported by Georg Schwarz in
79349         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79350
79351 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79352
79353         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79354         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79355         porting problem reported by Georg Schwarz in
79356         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79357
79358 2005-12-05  Bruno Haible  <bruno@clisp.org>
79359
79360         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79361         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79362         Reported by Mark Junker <mjscod@gmx.de>.
79363
79364 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79365
79366         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79367         Use implementation from Albert Chin, with some
79368         comments/corrections by Stepan Kasal and myself.
79369
79370 2005-12-02  Bruno Haible  <bruno@clisp.org>
79371
79372         * gnulib-tool (func_import): Accept GPLed build tool modules when
79373         --lgpl is given.
79374         * modules/csharpcomp-script: New file.
79375         * modules/csharpcomp: Depend on it.
79376         * modules/javacomp-script: New file.
79377         * modules/javacomp: Depend on it.
79378         Suggested by Simon Josefsson.
79379
79380 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79383         statement, to work around an HP-UX 10.20 compiler bug reported by
79384         Peter O'Gorman.
79385
79386 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * modules/savedir (Depends-on): Add openat.
79389
79390 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79391
79392         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79393         (uintmax_t) [defined uintmax_t]: Do not declare.
79394         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79395         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79396         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79397         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79398         sake of portability to weird hosts that C allows (though we don't
79399         know of any practical examples).
79400
79401         * lib/savedir.h (fdsavedir): New decl.
79402         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79403         contains most of the former guts of savedir.
79404         (savedir): Use savedirstream.
79405         Include "openat.h".
79406
79407 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79408
79409         * modules/obstack (Files): Add m4/ulonglong.m4.
79410         Problem reported by Davide Angelocola.
79411
79412 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79413
79414         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79415         coreutils no longer futzes with rounding modes.
79416
79417 2005-11-14  Jim Meyering  <jim@meyering.net>
79418
79419         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79420         replacement of mkstemp.
79421
79422 2005-11-10  Simon Josefsson  <jas@extundo.com>
79423
79424         * lib/readline.c: Remove EOL.
79425
79426 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         * modules/gethrxtime (Depends-on): Add gettime.
79429
79430 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79433         or gettimeofday; no longer needed.
79434
79435 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79438         time business.
79439         (gethrxtime) [! (HAVE_NANOUPTIME
79440         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79441         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79442         our own approximation.
79443
79444 2005-11-08  Eric Blake  <ebb9@byu.net>
79445
79446         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79447
79448 2005-11-08  Eric Blake  <ebb9@byu.net>
79449
79450         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79451
79452 2005-11-04  Bruno Haible  <bruno@clisp.org>
79453
79454         * gnulib-tool: Implement --update mode.
79455
79456 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79457
79458         Fix porting problem reported by Theodoros V. Kalamatianos.
79459         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79460         Don't assume that futimes failing means we must fail.
79461
79462 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79463
79464         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79465         variables to suggest the intended function of the PATH_MAX check.
79466
79467 2005-10-30  Kean Johnston  <jkj@sco.com>
79468
79469         Trivial changes to support SCO systems.
79470         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79471         as PATH_MAX.
79472         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79473         where __ptr is null when no I/O is pending.
79474
79475 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79476
79477         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79478         leave errno alone.  Problem reported by Dmitry V. Levin.
79479
79480 2005-10-28  Simon Josefsson  <jas@extundo.com>
79481
79482         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79483         Test more.
79484
79485         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79486
79487         * modules/md2, modules/md2-tests: New files.
79488
79489 2005-10-28  Simon Josefsson  <jas@extundo.com>
79490
79491         * m4/inet_ntop.m4: More tests.
79492
79493         * m4/gc-md2.m4, md2.m4: New file.
79494
79495 2005-10-28  Simon Josefsson  <jas@extundo.com>
79496
79497         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79498         "restrict" keywords, as per POSIX.  Protect the function
79499         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79500         Don't use K&R prototypes.  Check the sprintf return values.
79501         Re-define EAFNOSUPPORT if not present.  Indent.
79502
79503         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79504         suggested by Bruno Haible <bruno@clisp.org>.
79505
79506         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79507
79508         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79509
79510         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79511         libgcrypt).
79512
79513         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79514
79515         * lib/md2.h, lib/md2.c: New files.
79516
79517 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79520         errno alone.  Problem reported by Frederic Jolliton.
79521
79522 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * modules/verify (License): Change from GPL to LGPL.  This is a
79525         tiny module and there are apparently near-equivalents that are
79526         under the BSD license.
79527
79528 2005-10-24  Simon Josefsson  <jas@extundo.com>
79529
79530         * modules/sha1: Relicense to LGPL.
79531
79532 2005-10-24  Simon Josefsson  <jas@extundo.com>
79533
79534         * lib/md4.h: Shrink buffer size, now that we changed the type.
79535
79536 2005-10-23  Simon Josefsson  <jas@extundo.com>
79537
79538         * gnulib-tool (func_import): Fix --tests-base.
79539
79540 2005-10-22  Simon Josefsson  <jas@extundo.com>
79541
79542         * modules/arcfour (Depends-on): Need stdint.
79543
79544 2005-10-22  Simon Josefsson  <jas@extundo.com>
79545
79546         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79547         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79548
79549 2005-10-22  Simon Josefsson  <jas@extundo.com>
79550
79551         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79552         suggested by Bruno Haible <bruno@clisp.org>.
79553
79554 2005-10-22  Simon Josefsson  <jas@extundo.com>
79555
79556         * lib/crc.h: Include stddef.h, for size_t.
79557
79558 2005-10-22  Simon Josefsson  <jas@extundo.com>
79559
79560         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79561         arcfour_context struct (simplify test vector testing in GNU
79562         Shishi).
79563
79564 2005-10-21  Simon Josefsson  <jas@extundo.com>
79565
79566         * modules/des, modules/des-tests: New files.
79567
79568         * modules/gc-des, modules/gc-des-tests: New files.
79569
79570         * tests/test-des.c, tests/test-gc-des.c: New file.
79571
79572 2005-10-21  Simon Josefsson  <jas@extundo.com>
79573
79574         * modules/arctwo, modules/arctwo-tests: New files.
79575
79576         * tests/test-arctwo.c: New file.
79577
79578         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79579
79580         * tests/test-gc-arctwo.c: New file.
79581
79582 2005-10-21  Simon Josefsson  <jas@extundo.com>
79583
79584         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79585         Bruno Haible <bruno@clisp.org>.
79586
79587         * m4/gc-des.m4: New file.
79588
79589 2005-10-21  Simon Josefsson  <jas@extundo.com>
79590
79591         * m4/arctwo.m4: New file.
79592
79593         * m4/gc-arctwo.m4: New file.
79594
79595 2005-10-21  Simon Josefsson  <jas@extundo.com>
79596
79597         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79598         block.
79599
79600 2005-10-21  Simon Josefsson  <jas@extundo.com>
79601
79602         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79603         <bruno@clisp.org>.
79604
79605         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79606
79607         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79608         Bruno Haible <bruno@clisp.org>.
79609
79610         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79611         <bruno@clisp.org>.
79612
79613 2005-10-21  Simon Josefsson  <jas@extundo.com>
79614
79615         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79616
79617 2005-10-21  Simon Josefsson  <jas@extundo.com>
79618
79619         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79620
79621 2005-10-21  Simon Josefsson  <jas@extundo.com>
79622
79623         * lib/des.h, lib/des.c: New files.
79624
79625         * lib/gc-gnulib.c: Support DES.c
79626
79627 2005-10-21  Simon Josefsson  <jas@extundo.com>
79628
79629         * lib/arctwo.h, lib/arctwo.c: New files.
79630
79631         * lib/gc-gnulib.c: Support ARCTWO.
79632
79633 2005-10-21  Simon Josefsson  <jas@extundo.com>
79634
79635         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79636         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79637
79638 2005-10-21  Simon Josefsson  <jas@extundo.com>
79639
79640         * gnulib-tool (func_import, func_create_testdir): Define automake
79641         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79642         Makefile.am snippet),
79643         suggested by Bruno Haible <bruno@clisp.org>.
79644
79645         * modules/gc (Makefile.am): Use it.
79646
79647 2005-10-21  Bruno Haible  <bruno@clisp.org>
79648
79649         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79650         patch.
79651
79652 2005-10-19  Simon Josefsson  <jas@extundo.com>
79653
79654         * tests/test-gc-rijndael.c: New file.
79655
79656         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79657
79658 2005-10-19  Simon Josefsson  <jas@extundo.com>
79659
79660         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79661         interface too.
79662
79663 2005-10-19  Simon Josefsson  <jas@extundo.com>
79664
79665         * tests/test-gc-arcfour.c: New file.
79666
79667         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79668
79669 2005-10-19  Simon Josefsson  <jas@extundo.com>
79670
79671         * modules/gc-md4, modules/gc-md4-tests: New file.
79672
79673         * tests/test-gc-md4.c: New file.
79674
79675 2005-10-19  Simon Josefsson  <jas@extundo.com>
79676
79677         * m4/gc-md4.m4: New file.
79678
79679 2005-10-19  Simon Josefsson  <jas@extundo.com>
79680
79681         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79682         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79683         <kasal@ucw.cz>.
79684
79685 2005-10-19  Simon Josefsson  <jas@extundo.com>
79686
79687         * m4/gc-arcfour.m4: New file.
79688
79689         * m4/gc-rijndael.m4: New file.
79690
79691 2005-10-19  Simon Josefsson  <jas@extundo.com>
79692
79693         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79694
79695 2005-10-19  Simon Josefsson  <jas@extundo.com>
79696
79697         * lib/gc-gnulib.c: Support ARCFOUR.
79698
79699 2005-10-19  Simon Josefsson  <jas@extundo.com>
79700
79701         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79702         support.
79703
79704         * lib/gc.h: Add ECB enum type.
79705
79706         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79707
79708 2005-10-18  Simon Josefsson  <jas@extundo.com>
79709
79710         * tests/test-md5.c: New file.
79711
79712         * modules/md5-tests: New file.
79713
79714 2005-10-18  Simon Josefsson  <jas@extundo.com>
79715
79716         * tests/test-md4.c: New file.
79717
79718         * modules/md4, modules/md4-tests: New files.
79719
79720 2005-10-18  Simon Josefsson  <jas@extundo.com>
79721
79722         * m4/md4.m4: New file.
79723
79724 2005-10-18  Simon Josefsson  <jas@extundo.com>
79725
79726         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79727
79728 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79729
79730         * gnulib-tool (func_create_testdir): Omit the second check whether
79731         BUILT_SOURCES in nonempty.
79732
79733 2005-10-17  Simon Josefsson  <jas@extundo.com>
79734
79735         * tests/test-rijndael.c: New file.
79736
79737 2005-10-17  Simon Josefsson  <jas@extundo.com>
79738
79739         * modules/sha1: Depend on stdint instead of md5.
79740
79741         * modules/md5: Depend on stdint, remove uint32_t.
79742
79743 2005-10-17  Simon Josefsson  <jas@extundo.com>
79744
79745         * modules/gc-sha1-tests: New file.
79746
79747         * tests/test-gc-sha1.c: New file.
79748
79749 2005-10-17  Simon Josefsson  <jas@extundo.com>
79750
79751         * m4/md5.m4: Remove call to uint32_t.m4.
79752
79753 2005-10-17  Simon Josefsson  <jas@extundo.com>
79754
79755         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79756
79757         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79758         md5.h.
79759
79760         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79761
79762         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79763
79764 2005-10-17  Simon Josefsson  <jas@extundo.com>
79765
79766         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79767
79768 2005-10-17  Simon Josefsson  <jas@extundo.com>
79769
79770         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79771
79772 2005-10-17  Simon Josefsson  <jas@extundo.com>
79773
79774         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79775
79776         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79777
79778 2005-10-17  Bruno Haible  <bruno@clisp.org>
79779
79780         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79781         that it can also be used in a test.
79782
79783 2005-10-16  Bruno Haible  <bruno@clisp.org>
79784
79785         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79786         TESTS_ENVIRONMENT, so that individual tests can augment it.
79787
79788         * gnulib-tool (func_create_testdir): Use an intermediate target for
79789         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79790         macros, like $(ALLOCA_H), which cannot be passed through the command
79791         line.
79792
79793 2005-10-15  Simon Josefsson  <jas@extundo.com>
79794
79795         * modules/rijndael-tests: New file.
79796
79797         * modules/rijndael: New file.
79798
79799 2005-10-15  Simon Josefsson  <jas@extundo.com>
79800
79801         * m4/rijndael.m4: New file.
79802
79803 2005-10-15  Simon Josefsson  <jas@extundo.com>
79804
79805         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79806
79807         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79808
79809 2005-10-14  Simon Josefsson  <jas@extundo.com>
79810
79811         * tests/test-arcfour.c: New file.
79812
79813         * modules/arcfour, modules/arcfour-tests: New files.
79814
79815 2005-10-14  Simon Josefsson  <jas@extundo.com>
79816
79817         * m4/arcfour.m4: New file.
79818
79819 2005-10-14  Simon Josefsson  <jas@extundo.com>
79820
79821         * lib/arcfour.h, lib/arcfour.c: New files.
79822
79823 2005-10-14  Roland McGrath  <roland@redhat.com>
79824
79825         Import from libc.  [BZ #1331]
79826         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79827         macro argument.
79828         Reported by Matej Vela <vela@debian.org>.
79829
79830 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79833         include <wchar.h>; no longer needed.
79834
79835 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79836
79837         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79838
79839 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79840         and  Ulrich Drepper  <drepper@redhat.com>
79841
79842         Import from libc.
79843         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79844         instead of inline stream orientation test and two separate
79845         function calls.  Pay no attention to USE_IN_LIBIO.
79846
79847 2005-10-13  Simon Josefsson  <jas@extundo.com>
79848
79849         * modules/gc-hmac-md5-tests: New file.
79850
79851         * tests/test-gc-hmac-sha1.c: New file.
79852
79853         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79854
79855         * modules/gc-hmac-md5-tests: New file.
79856
79857         * tests/test-gc-md5.c: New file.
79858
79859         * modules/gc-md5-tests: New file.
79860
79861 2005-10-13  Simon Josefsson  <jas@extundo.com>
79862
79863         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79864         Move memory allocation outside of loop.
79865
79866 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79867
79868         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79869         intermediate directory is in a read-only file system.  Problem
79870         reported by Eric Blake.
79871
79872 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79873
79874         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79875
79876 2005-10-12  Simon Josefsson  <jas@extundo.com>
79877
79878         * tests/test-hmac-sha1.c: New file.
79879
79880         * modules/hmac-sha1-tests: New file.
79881
79882         * modules/hmac-sha1: New file.
79883
79884 2005-10-12  Simon Josefsson  <jas@extundo.com>
79885
79886         * modules/gc-sha1: New file.
79887
79888 2005-10-12  Simon Josefsson  <jas@extundo.com>
79889
79890         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79891
79892         * tests/test-gc-pbkdf2-sha1.c: New file.
79893
79894 2005-10-12  Simon Josefsson  <jas@extundo.com>
79895
79896         * modules/gc-md5, modules/gc-hmac-md5: New files.
79897
79898         * modules/gc (Files): Remove md5, memxor and hmac files.
79899
79900 2005-10-12  Simon Josefsson  <jas@extundo.com>
79901
79902         * m4/gc-pbkdf2-sha1.m4: New file.
79903
79904         * m4/gc-hmac-sha1.m4: New file.
79905
79906         * m4/gc-sha1: New file.
79907
79908         * m4/hmac-sha1.m4: New file.
79909
79910 2005-10-12  Simon Josefsson  <jas@extundo.com>
79911
79912         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79913
79914         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79915
79916 2005-10-12  Simon Josefsson  <jas@extundo.com>
79917
79918         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79919         suggested by Bruno Haible <bruno@clisp.org>.
79920
79921 2005-10-12  Simon Josefsson  <jas@extundo.com>
79922
79923         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79924
79925 2005-10-12  Simon Josefsson  <jas@extundo.com>
79926
79927         * lib/gc-pbkdf2-sha1.c: New file.
79928
79929         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79930
79931 2005-10-12  Simon Josefsson  <jas@extundo.com>
79932
79933         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79934
79935         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79936
79937 2005-10-12  Simon Josefsson  <jas@extundo.com>
79938
79939         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79940         GC_USE_HMAC_MD5, respectively.
79941
79942         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79943         (gc_md5): Fix typo.
79944
79945         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79946
79947         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79948
79949         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79950
79951 2005-10-12  Bruno Haible  <bruno@clisp.org>
79952
79953         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79954         Reported by Stepan Kasal <kasal@ucw.cz>.
79955
79956 2005-10-11  Simon Josefsson  <jas@extundo.com>
79957
79958         * tests/test-crc.c: New file.
79959
79960         * modules/crc, modules/crc-tests: New files.
79961
79962 2005-10-11  Simon Josefsson  <jas@extundo.com>
79963
79964         * m4/crc.m4: New file.
79965
79966 2005-10-11  Simon Josefsson  <jas@extundo.com>
79967
79968         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79969
79970         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79971
79972         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79973
79974 2005-10-11  Simon Josefsson  <jas@extundo.com>
79975
79976         * lib/crc.h, lib/crc.c: New files.
79977
79978         * lib/gc.h (gc_hash_buffer): Add doc.
79979
79980 2005-10-11  Bruno Haible  <bruno@clisp.org>
79981
79982         * modules/c-strcasestr: New file.
79983         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79984
79985 2005-10-11  Bruno Haible  <bruno@clisp.org>
79986
79987         * modules/c-strcase: New file.
79988         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79989
79990 2005-10-11  Bruno Haible  <bruno@clisp.org>
79991
79992         * lib/strcasecmp.c: Include limits.h.
79993         (strcasecmp): Avoid integer overflow on exotic platforms.
79994         * lib/strncasecmp.c: Include limits.h.
79995         (strncasecmp): Avoid integer overflow on exotic platforms.
79996         Reported by Paul Eggert.
79997
79998 2005-10-11  Bruno Haible  <bruno@clisp.org>
79999
80000         * lib/c-strcasestr.h: New file, from GNU gettext.
80001         * lib/c-strcasestr.c: New file, from GNU gettext.
80002
80003 2005-10-11  Bruno Haible  <bruno@clisp.org>
80004
80005         * lib/c-strcase.h: New file, from GNU gettext.
80006         * lib/c-strcasecmp.c: New file, from GNU gettext.
80007         * lib/c-strncasecmp.c: New file, from GNU gettext.
80008
80009 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80010
80011         * modules/mempcpy (License): GPL -> LGPL.
80012         * modules/strchrnul (License): Likewise.
80013         * modules/sysexits (License): Likewise.
80014
80015 2005-10-08  Simon Josefsson  <jas@extundo.com>
80016
80017         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80018
80019 2005-10-07  Simon Josefsson  <jas@extundo.com>
80020
80021         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80022
80023 2005-10-06  Simon Josefsson  <jas@extundo.com>
80024
80025         * tests/test-hmac-md5.c: New file.
80026
80027         * modules/hmac-md5-tests: New file.
80028
80029         * modules/hmac-md5: New file.
80030
80031 2005-10-06  Simon Josefsson  <jas@extundo.com>
80032
80033         * m4/hmac-md5.m4: New file.
80034
80035         * m4/memxor.m4: Require gl_C_RESTRICT.
80036
80037 2005-10-06  Simon Josefsson  <jas@extundo.com>
80038
80039         * lib/memxor.c (memxor): Avoid casts and warnings.
80040
80041 2005-10-06  Simon Josefsson  <jas@extundo.com>
80042
80043         * lib/hmac-md5.c: New file.
80044
80045         * lib/hmac.h: New file.
80046
80047 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80048
80049         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80050         promotes to int, not unsigned int, to catch the AIX 5.3
80051         compiler bug.
80052
80053 2005-10-05  Simon Josefsson  <jas@extundo.com>
80054
80055         * modules/memxor: New file.
80056
80057         * modules/iconv (Files): Move config.rpath to havelib, it is used
80058         there.
80059
80060         * modules/havelib (Files): Add config.rpath.
80061
80062 2005-10-05  Simon Josefsson  <jas@extundo.com>
80063
80064         * m4/memxor.m4: New file.
80065
80066 2005-10-05  Simon Josefsson  <jas@extundo.com>
80067
80068         * lib/memxor.c (memxor): Fix compiler error.
80069
80070         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80071         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80072
80073         * lib/memxor.h, lib/memxor.c: New files.
80074
80075         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80076         we assume all systems have it, suggested by Jim Meyering
80077         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80078         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80079         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80080         same reasons.
80081
80082 2005-10-05  Simon Josefsson  <jas@extundo.com>
80083
80084         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80085
80086 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80087
80088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80089         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80090         needed, since the source code now assumes these .h files.
80091
80092 2005-10-05  Derek Price  <derek@ximbiot.com>
80093
80094         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80095
80096 2005-10-05  Bruno Haible  <bruno@clisp.org>
80097
80098         * modules/stdint (License): Change to LGPL.
80099
80100 2005-10-04  Simon Josefsson  <jas@extundo.com>
80101
80102         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80103         D. Baushke" <mdb@gnu.org>.
80104
80105 2005-10-04  Bruno Haible  <bruno@clisp.org>
80106
80107         * lib/verify.h (verify_true): Provide alternative definition for C++.
80108
80109 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80110
80111         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80112         (SSIZE_MAX): New macro, if not already defined.
80113         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80114         than 2 GiB.
80115
80116 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         Sync from coreutils.
80119         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80120         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80121         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80122         ULLONG_MAX doesn't work with 2.7.2.1.
80123
80124 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80125
80126         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80127         From Ben Pfaff.
80128
80129         * modules/exclude (Depends-on): Depend on verify.
80130         * modules/strtoimax (Depends-on): Likewise.
80131         * modules/utimecmp (Depends-on): Likewise.
80132
80133 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80134
80135         * lib/exclude.c: Include verify.h.
80136         (verify): Remove.  All callers changed to use verify.h's version.
80137         * lib/strtoimax.c: Likewise.
80138         * lib/utimecmp.c: Likewis.e
80139
80140         Sync from coreutils.
80141         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80142         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80143         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80144         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80145         bother returning ENOSYS if settimeofday or stime fails; just let
80146         them return whatever errno they want to return.
80147         * lib/utimens.c: Include unistd.h, for dup2.
80148         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80149         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80150
80151 2005-10-02  Jim Meyering  <jim@meyering.net>
80152
80153         Sync from coreutils.
80154         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80155         from glibc-2.2.5 that fails for read-only files.
80156
80157 2005-10-02  Jim Meyering  <jim@meyering.net>
80158
80159         Sync from coreutils.
80160         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80161         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80162         `#if HAVE_CONFIG_H'.
80163         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80164         Remove AT_FDCWD test.
80165         Do not consume the fd unless successful.
80166         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80167         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80168         block, so that we don't even try to compile it if settimeofday is
80169         available.  This works around a compilation failure on OSF1 V5.1,
80170         due to stime requiring a `long int*' while tv_sec is `int'.
80171
80172 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80173
80174         Sync from coreutils.
80175         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80176         against `yes', rather than just testing for nonempty.
80177
80178 2005-10-01  Simon Josefsson  <jas@extundo.com>
80179
80180         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80181         and Darwin.
80182
80183         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80184         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80185         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80186         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80187         Check if struct addrinfo is declared.
80188
80189 2005-10-01  Simon Josefsson  <jas@extundo.com>
80190
80191         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80192         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80193         AI_* and EAI_* definitions.  Protect function declarations.
80194
80195 2005-10-01  Jim Meyering  <jim@meyering.net>
80196
80197         Sync from coreutils.
80198
80199         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80200         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80201         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80202         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80203         in the inet and nsl libraries.  Required on Solaris 5.7.
80204
80205 2005-10-01  Jim Meyering  <jim@meyering.net>
80206
80207         Sync from coreutils.
80208         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80209         in the inet and nsl libraries.  Required on Solaris 5.7.
80210
80211 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80212
80213         * lib/getdelim.c (getdelim): Remove unused variables.
80214
80215 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80216
80217         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80218         so that the code works even with ancient cpp.  Portability problem
80219         with GCC 2.7.2.1 reported by Thomas M.Ott.
80220
80221 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80222
80223         * modules/regex (Depends-on): Add strcase.
80224
80225         * modules/gethostname (Licence): Change from GPL to LGPL, since
80226         gethostname.c is a trivial implementation of a standard library
80227         function.
80228         * modules/poll (License): Change from GPL to LGPL, since it's
80229         derived from LGPL code.
80230
80231 2005-09-27  Jim Meyering  <jim@meyering.net>
80232
80233         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80234         HAVE_CONFIG_H.
80235
80236         * lib/intprops.h (signed_type_or_expr__): Define.
80237         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80238         for unsigned types.
80239
80240 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80241
80242         * lib/verify.h (verify_expr): Remove, replacing with:
80243         (verify_true): New macro that returns true instead of void.
80244         (verify_type__): Remove.
80245         (verify): Use verify_true rather than verify_type__.
80246
80247 2005-09-26  Bruno Haible  <bruno@clisp.org>
80248
80249         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80250         is necessary.
80251         (lib_SOURCES): Remove mbchar.c.
80252         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80253         (Files): Add m4/mbrtowc.m4.
80254         * modules/mbiter: Likewise.
80255         * modules/mbuiter: Likewise.
80256
80257 2005-09-26  Bruno Haible  <bruno@clisp.org>
80258
80259         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80260         compile mbchar.c if they are not both present.
80261         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80262         * m4/mbiter.m4 (gl_MBITER): Likewise.
80263         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80264         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80265         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80266
80267 2005-09-25  Jim Meyering  <jim@meyering.net>
80268
80269         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80270         also uses socklen_t.
80271
80272 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         * lib/utimens.c (ENOSYS): Define if not already defined.
80275         (futimens): Support having a null PATH if the file descriptor
80276         is nonnegative.
80277
80278         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80279         Remove.
80280         (__attribute): Define to empty unless GCC 3.1 or later.
80281         This works around a core dump on OpenBSD 3.4, which has GCC
80282         2.95.3, which dumps core when given __attribute__(()).  It also
80283         simplifies other tests, since we really don't want to bother with
80284         worrying about which ancient version of GCC supported what.
80285         Original problem reported by Yoann Vandoorselaere, with part of
80286         the fix suggested by Derek Price.
80287
80288 2005-09-24  Jim Meyering  <jim@meyering.net>
80289
80290         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80291         so we can once again use a positive bitfield width of 1 -- now we
80292         don't have to explain why we were using a bitfield width of 2.
80293
80294 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80295
80296         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80297         and similarly for the other external symbols.  Problem reported
80298         by James Gallager.
80299
80300         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80301         bug reported by Jim Meyering.
80302
80303         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80304         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80305         not needed, since socklen is a prerequisite module.
80306
80307 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80308
80309         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80310         Problem reported by Eric Blake.
80311         (getaddrinfo): Initialize se so that it's not garbage.
80312         Redo internal storage allocation so that it doesn't make unportable
80313         assumptions about alignment.
80314         Fix a memory leak.
80315
80316         * lib/utimens.c (futimens): Use futimesat if available.
80317         Prefer it to futimes since it doesn't have the futimes bug.
80318
80319         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80320         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80321         Instead, declare a function that returns a pointer to an array,
80322         and use verify_type__ to declare the size of the array.
80323         Problem and germ of a solution reported by Bruno Haible.
80324         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80325         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80326
80327 2005-09-23  Jim Meyering  <jim@meyering.net>
80328
80329         Sync from coreutils.
80330         Correct build failure (socklen_t not defined) on at least
80331         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80332         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80333
80334 2005-09-23  Jim Meyering  <jim@meyering.net>
80335
80336         * modules/getaddrinfo (Depends-on): Add socklen.
80337
80338 2005-09-23  Bruno Haible  <bruno@clisp.org>
80339
80340         * tests/test-verify.c: New file.
80341
80342 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80343
80344         Sync from coreutils.
80345
80346         * modules/argmatch (Depends-on): Add verify.
80347         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80348         unistd-safer.
80349         * modules/save-cwd (Depends-on): Likewise.
80350
80351         * modules/openat (Files): Add lib/openat-die.c.
80352         (Depends-on): Remove error, exitfail.
80353         Add dirname.
80354
80355         * modules/verify: New file.
80356         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80357         with "verify" module.
80358
80359 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         Sync from coreutils.
80362
80363         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80364         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80365         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80366         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80367         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80368         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80369         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80370         Don't bother checking for string.h, stdlib.h, unistd.h.
80371         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80372         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80373         module's job.
80374         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80375         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80376
80377         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80378         (gl_GETDATE): Use it.
80379
80380         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80381
80382 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         Sync from coreutils.
80385
80386         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80387         stat-time.h.
80388         * lib/argmatch.h: Include verify.h
80389         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80390         (ARGMATCH_ASSERT): Remove; unused.
80391         * lib/canonicalize.c: Assume STDC_HEADERS.
80392         * lib/exclude.c: Include "strcase.h".
80393         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80394         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80395         and stdio-safer.h.
80396         (getusershell): Call fopen, not fopen_safer.
80397         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80398         Do not include unistd-safer.h.
80399         (save_cwd): Don't call fd_safer; no longer needed
80400         now that we include fcntl--.h.
80401
80402         * lib/getdate.y (relative_time): New type.
80403         (RELATIVE_TIME_0): New constant.
80404         (parser_control): Use relative_time instead of doing it ourselves.
80405         (%union): Add new relative_time rel member.
80406         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80407         Now typeless.
80408         (relunit, relunit_snumber): Now of type rel.
80409         (zone, rel, relunit, get_date): Adjust to above changes.
80410
80411         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80412         Do not include unistd-safer.h.
80413         (getloadavg): Don't call fd_safer; no longer needed
80414         now that we include fcntl--.h.
80415
80416         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80417         (make_dir_parents): Treat ENOSYS like EEXIST.
80418
80419         Improve quality of diagnostics on restore_cwd failure.
80420         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80421         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80422         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80423         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80424         each time through the loop.  Do not diagnose restore_cwd failure;
80425         that is the caller's job (and perhaps the caller does not care).
80426
80427         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80428         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80429         If the file already exists but is not a directory, don't bother
80430         to try to make its parents.
80431         Close potential file descriptor leak if we can't chdir("/") (!).
80432         Don't always return true if chdir($PWD) fails; return true only
80433         if the requested action was done successfully (except for the
80434         chdir($PWD)).
80435         Don't log final directory unless we actually made it.
80436         Refactor to avoid duplicate code to fix up permissions.
80437         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80438
80439         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80440         to make it a bit faster and (I hope) clearer.
80441         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80442         Fix bug in formats like %2N.
80443
80444         * lib/verify.h: New file.
80445
80446 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80447
80448         Sync from coreutils.
80449         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80450
80451 2005-09-22  Jim Meyering  <jim@meyering.net>
80452
80453         Sync from coreutils.
80454
80455         * m4/lstat.m4 (gl_FUNC_LSTAT):
80456         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80457         Remove obsolete comment.
80458         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80459         * m4/xstrtod.m4: Likewise.
80460
80461         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80462
80463 2005-09-22  Jim Meyering  <jim@meyering.net>
80464
80465         Sync from coreutils.
80466
80467         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80468
80469         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80470         the .tm_year member, since otherwise gcc-4.0 would now warn about
80471         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80472
80473         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80474         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80475
80476         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80477         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80478         when run in a time zone for which daylight savings time is in effect
80479         for the starting date.
80480
80481         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80482         stop us from restricting permissions of just-created absolute-named
80483         directories.
80484         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80485         to restore initial working directory.
80486         * lib/mkdir-p.c (make_dir_parents): New parameter:
80487         different_working_dir, to tell caller if/when we change the working
80488         directory and are unable to return to the initial one.
80489         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80490         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80491         `return false'.  This fixes a bug introduced on 2004-07-30.
80492
80493         * lib/openat.c (fdopendir): Be sure to close the supplied
80494         file descriptor before returning.  This makes our replacement
80495         implementation a little closer to Solaris's, where fdopendir
80496         ties the file descriptor to the returned DIR* pointer.
80497         * lib/openat.c (unlinkat): New function.
80498         * lib/openat.h (unlinkat): Add prototype.
80499         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80500         (openat_restore_fail): Rename from openat_restore_die.
80501         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80502
80503         Provide an alternative to exiting immediately upon save_cwd or
80504         restore_cwd failure.  Now, an application can arrange e.g.,
80505         to perform a longjump in that case.
80506         * lib/openat.c: Include dirname.h.
80507         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80508         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80509         and openat_restore_die rather than calling error directly.
80510         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80511
80512         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80513         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80514         define.
80515
80516         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80517         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80518                             int utc, int nanoseconds);
80519         Background:
80520         date should not have to allocate a megabyte of virtual memory to
80521         handle a format argument like +%1048575T.  When implemented with
80522         strftime, it must allocate such a buffer, use strftime to fill it
80523         in, print it, then free it.
80524         With fprintftime, it simply prints everything and exits.
80525         With no need for memory allocation, that's one fewer way to fail.
80526         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80527         optional field width, not before, so we accept %9:z, not %:9z.
80528         (my_strftime): Be sure to use L_('x') for literals.
80529
80530         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80531         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80532         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80533         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80534         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80535         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80536         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80537         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80538         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80539         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80540         * lib/xgethostname.c, lib/xreadlink.c:
80541         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80542
80543         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80544         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80545         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80546         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80547         and don't include <sys/file.h>).
80548
80549 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80550
80551         Sync from coreutils.
80552
80553         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80554         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80555         [!LDAV_DONE]: Avoid unused variable warning.
80556
80557 2005-09-21  Bruno Haible  <bruno@clisp.org>
80558
80559         * lib/unicodeio.h (unicode_to_mb): New declaration.
80560
80561 2005-09-20  Derek Price  <derek@ximbiot.com>
80562
80563         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80564         getaddrinfo.h.
80565
80566 2005-09-20  Bruno Haible  <bruno@clisp.org>
80567
80568         * gnulib-tool: Remove trailing slashes from the values specified for
80569         --source-base, --m4-base, --tests-base, --aux-dir.
80570         Suggested by Simon Josefsson <jas@extundo.com>.
80571
80572 2005-09-20  Bruno Haible  <bruno@clisp.org>
80573
80574         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80575         func_modules_to_filelist, func_import, func_create_testdir): Make all
80576         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80577         change when gnulib-tool is invoked in a different locale.
80578
80579 2005-09-19  Simon Josefsson  <jas@extundo.com>
80580
80581         * m4/socklen.m4: Fix typo.
80582
80583 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80584
80585         Use a consistent style for including <config.h>.
80586         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80587         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80588         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80589         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80590         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80591         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80592         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80593         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80594         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80595         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80596         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80597         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80598         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80599         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80600         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80601         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80602         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80603         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80604         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80605         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80606         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80607         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80608         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80609         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80610         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80611         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80612         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80613         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80614         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80615         lib/xstrtoumax.c, lib/yesno.c:
80616         Standardize inclusion of config.h.
80617         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80618         lib/inttostr.h:  Removed inclusion of config.h from header files.
80619         * lib/inttostr.c:  Adjusted in-tree users.
80620         * lib/timespec.h: Remove superfluous warning to include config.h.
80621         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80622         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80623         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80624         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80625         config.h with HAVE_CONFIG_H.
80626
80627 2005-09-19  Jim Meyering  <jim@meyering.net>
80628
80629         * modules/pathmax (License): Change to LGPL.
80630
80631 2005-09-19  Derek Price  <derek@ximbiot.com>
80632
80633         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80634
80635 2005-09-19  Bruno Haible  <bruno@clisp.org>
80636
80637         * gnulib-tool (import): Provide default for --tests-base.
80638
80639 2005-09-19  Bruno Haible  <bruno@clisp.org>
80640
80641         * doc/quote.texi: New file, extracted from gnulib.texi.
80642         * doc/ctime.texi: New file, extracted from gnulib.texi.
80643         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80644         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80645         * doc/gnulib.texi: Include them.
80646
80647 2005-09-18  Bruno Haible  <bruno@clisp.org>
80648
80649         Portability fix.
80650         * gnulib-tool (func_readlink): New function.
80651         (func_ln_if_changed): Use it.
80652
80653 2005-09-18  Bruno Haible  <bruno@clisp.org>
80654
80655         * gnulib-tool: Support --with-tests also with --import.
80656         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80657         (func_import): Use variables $testsbase and $inctests. Emit a
80658         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80659         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80660         SUBDIRS += $testsdir.
80661         (func_create_testdir): Update.
80662
80663 2005-09-18  Bruno Haible  <bruno@clisp.org>
80664
80665         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80666         instead of $dry_run.
80667         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80668         (func_ln_if_changed): Don't handle dry-run here.
80669         (func_import): In dry-run mode, detect more precisely which actions
80670         would be performed, and don't use "...ing" verbs.
80671
80672 2005-09-18  Bruno Haible  <bruno@clisp.org>
80673
80674         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80675         (func_import): Use join on two temporary files instead of three nested
80676         loops, in order to determine which files are new or old.
80677
80678 2005-09-18  Bruno Haible  <bruno@clisp.org>
80679
80680         * gnulib-tool (func_import): Comment out code that spits out the
80681         new files with --dry-run.
80682
80683 2005-09-18  Bruno Haible  <bruno@clisp.org>
80684
80685         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80686
80687 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80688
80689         * lib/stat-time.h: New file.
80690         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80691         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80692         in a different way.
80693         (timespec_cmp): New function.
80694         * lib/utimecmp.c: Include stat-time.h.
80695         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80696         members exist, not on the obsolescent ST_MTIM_NSEC.
80697         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80698
80699 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80702
80703 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         * MODULES.html.sh (File system functions): Add stat-time.
80706         * modules/stat-time: New file.
80707         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80708         is now done in a different way, by the stat-time module.
80709         * modules/utimecmp (Depends-on): Add stat-time.
80710
80711 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80712
80713         * m4/st_mtim.m4: Remove.  Superseded by...
80714         * m4/stat-time.m4: New file.
80715         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80716         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80717
80718 2005-09-15  Derek Price  <derek@ximbiot.com>
80719
80720         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80721
80722 2005-09-15  Derek Price  <derek@ximbiot.com>
80723
80724         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80725         * lib/regex_internal.c: Ditto, using this...
80726         (__GNUC_PREREQ): ...new macro.
80727         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80728         using...
80729         (__GNUC_PREREQ): ...this new macro.
80730
80731         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80732
80733 2005-09-15  Derek Price  <derek@ximbiot.com>
80734             Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80737         changes, consolidating in...
80738         * lib/regex_internal.h: ...this file.
80739
80740 2005-09-13  Jim Meyering  <jim@meyering.net>
80741
80742         * lib/canon-host.c: Filter through gnu indent and reword comments
80743         slightly.
80744         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80745
80746 2005-09-13  Derek Price  <derek@ximbiot.com>
80747
80748         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80749         failure.
80750         Reported by Jim Meyering  <jim@meyering.net>.
80751
80752 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80753
80754         * lib/base64.c: Typo.
80755         (base64_encode): Put b64str in initialized data section.
80756
80757 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80758
80759         Merge glibc and coreutils changes into gnulib, plus a few
80760         extra fixes.
80761         * lib/md5.c: Use #error rather than a string.
80762         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80763         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80764         (__attribute__): Define to empty for non recent-GCC.
80765         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80766         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80767         Renamed from their non-__ counterparts, with new macros replacing
80768         them if not _LIBC.  Add __THROW attribute.
80769         (rol): Remove.
80770         (struct md5_ctx): Align buffer if using GCC.
80771         * lib/sha1.h (struct sha1_ctx): Likewise.
80772         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80773         The old name was backwards.
80774         (NOTSWAP): Remove; not used.
80775         (rol): New macro, moved here from md5.h.
80776         (sha1_process_block): Remove a FIXME that doesn't make sense.
80777
80778 2005-09-12  Derek Price  <derek@ximbiot.com>
80779
80780         Return usable errors from canon-host.
80781         * lib/canon-host.h: New file.
80782         * lib/canon-host.c (canon_host): Wrap...
80783         (canon_host_r): ...this new function, which now relies exclusively on
80784         getaddrinfo.
80785         (ch_strerror): New function.
80786         (last_cherror): New global.
80787         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80788         interface.
80789         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80790         void *.
80791         (freeaddrinfo): Free ai->ai_canonname when set.
80792
80793 2005-09-12  Derek Price  <derek@ximbiot.com>
80794
80795         Make canon-host require getaddrinfo.
80796         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80797         AC_LIBSOURCE canon-host.h.  Call...
80798         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80799         gl_GETADDRINFO.
80800         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80801
80802 2005-09-12  Derek Price  <derek@ximbiot.com>
80803
80804         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80805         LGPL.
80806         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80807
80808 2005-09-12  Derek Price  <derek@ximbiot.com>
80809
80810         * lib/gai_strerror.c: Include config.h when available.  Include
80811         getaddrinfo.h before other headers to test interface.
80812         Reported by Larry Jones <lawrence.jones@ugs.com>.
80813
80814 2005-09-12  Derek Price  <derek@ximbiot.com>
80815             Paul Eggert  <eggert@cs.ucla.edu>
80816
80817         * modules/glob (Files): Add glob-libc.h.
80818
80819 2005-09-12  Derek Price  <derek@ximbiot.com>
80820             Paul Eggert  <eggert@cs.ucla.edu>
80821
80822         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80823         glob_.h, glob-libc.h.
80824         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80825
80826 2005-09-12  Derek Price  <derek@ximbiot.com>
80827             Paul Eggert  <eggert@cs.ucla.edu>
80828
80829         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80830         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80831         protecting things that should be done only in gnulib contexts.
80832         * lib/glob_.h: New file, containing only the glob things needed for
80833         gnulib.
80834         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80835         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80836         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80837         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80838         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80839         and to respect the namespace rules better.
80840
80841 2005-09-08  Simon Josefsson  <jas@extundo.com>
80842
80843         * modules/socklen: New file.
80844
80845 2005-09-08  Simon Josefsson  <jas@extundo.com>
80846
80847         * m4/socklen.m4: New file.
80848
80849 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80850
80851         * modules/utimens (Files): Add m4/utimbuf.m4, since
80852         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80853         Reported by Sergey Poznyakoff.
80854
80855 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80856
80857         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80858         definitions, since that's the preferred style in glibc.
80859         Fix a minor spacing issue, and update copyright notice to match
80860         glibc's.
80861
80862 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80863
80864         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80865
80866 2005-09-06  Simon Josefsson  <jas@extundo.com>
80867
80868         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80869         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80870
80871 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80874         warning.
80875
80876 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80877
80878         * config/srclist.txt: Add glibc bug 1302.
80879
80880 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         Change bitset word type from unsigned int to unsigned long int,
80883         as this has better performance on typical 64-bit hosts.
80884         Port bitset code to hosts with unusual word sizes.
80885         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80886         (build_collating_symbol):
80887         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80888         argument is a bitset.  This is merely a style issue, but it makes
80889         it clearer that an entire array is expected.
80890         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80891         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80892         Port to the case where bitset_word is not the same as unsigned int.
80893         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80894         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80895         Likewise.
80896         * lib/regexec.c (check_dst_limits_calc_pos_1,
80897         check_subexp_matching_top):
80898         (build_trtable, group_nodes_into_DFAstates):
80899         Likewise.
80900         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80901         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80902         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80903         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80904         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80905         * lib/regcomp.c (optimize_subexps, lower_subexp):
80906         Work even if bitset_word has holes in its bitwise representation.
80907         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80908         * lib/regexec.c (check_dst_limits_calc_pos_1,
80909         check_subexp_matching_top):
80910         Likewise.
80911         * lib/regex_internal.c (re_string_reconstruct):
80912         Don't assume UCHAR_MAX == 255.
80913         * lib/regex_internal.h (bitset_set_all): Likewise.
80914         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80915         All uses changed.
80916         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80917         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80918         All uses changed.
80919         (BITSET_WORD_MAX): New macro.
80920         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80921         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80922         (bitset_empty, bitset_copy):
80923         Prefer sizeof (bitset) to multiplying it out ourselves.
80924         (bitset_not_merge): Remove; unused.
80925         (bitset_contain): Return bool, not unsigned int with one bit on.
80926         All callers changed.
80927         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80928         alignment than re_node_set; do this by defining a new internal
80929         type struct dests_alloc and using it to allocate memory.
80930
80931 2005-09-05  Bruno Haible  <bruno@clisp.org>
80932
80933         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80934         links.
80935
80936 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80937
80938         * modules/size_max (Makefile.am): Add size_max.h
80939
80940 2005-09-04  Derek Price  <derek@ximbiot.com>
80941
80942         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80943
80944 2005-09-03  Simon Josefsson  <jas@extundo.com>
80945
80946         * gnulib-tool: Fix typo.
80947
80948 2005-09-03  Simon Josefsson  <jas@extundo.com>
80949
80950         * config/srclist.txt: Add glibc bug 1293.
80951
80952 2005-09-03  Derek Price  <derek@ximbiot.com>
80953
80954         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80955         From Larry Jones <lawrence.jones@ugs.com>.
80956
80957 2005-09-02  Simon Josefsson  <jas@extundo.com>
80958
80959         * modules/socklen: New file.
80960
80961 2005-09-02  Simon Josefsson  <jas@extundo.com>
80962
80963         * modules/havelib: New module.
80964
80965         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80966         Use havelib.
80967
80968 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80969
80970         Check for arithmetic overflow when calculating sizes, to prevent
80971         some buffer-overflow issues.  These patches are conservative, in the
80972         sense that when I couldn't determine whether an overflow was possible,
80973         I inserted a run-time check.
80974         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80975         macros.
80976         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80977         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80978         (re_xnrealloc, re_x2nrealloc): New inline functions.
80979         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80980         parse_bracket_exp):
80981         (build_equiv_class, build_charclass): Check for arithmetic overflow
80982         in size expression calculations.
80983         * lib/regex_internal.c (re_string_realloc_buffers):
80984         (build_wcs_upper_buffer, re_node_set_add_intersect):
80985         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80986         (re_dfa_add_node, register_state): Likewise.
80987         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80988         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80989         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80990         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80991
80992 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80995         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80996
80997 2005-09-02  Bruno Haible  <bruno@clisp.org>
80998
80999         Support for lib vs. lib64 distinction on biarch platforms.
81000         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81001         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81002         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81003
81004 2005-09-02  Bruno Haible  <bruno@clisp.org>
81005
81006         * gnulib-tool (import): In the other first-use case, provide defaults
81007         as well.
81008
81009 2005-09-02  Bruno Haible  <bruno@clisp.org>
81010
81011         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81012         patches not yet found in the latest gettext release.
81013
81014 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81015
81016         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81017         to avoid a collision with bits/local_lim.h in glibc.
81018         All uses changed.  Problem reported by Dmitry V. Levin in
81019         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81020
81021         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81022         bugs in int versus size_t comparisons.
81023         (re_string_context_at): Fix bug where the code assumed that
81024         Idx is signed.
81025
81026         Use bool where appropriate.
81027         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81028         All callers changed.
81029         (calc_eclosure_iter): Likewise, for ROOT arg.
81030         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81031         (build_charclass_op): Likewise, for NON_MATCH arg.
81032         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81033         (re_string_construct_common): Likewise, for ICASE arg.
81034         * lib/regexec.c (re_search_2_stub, re_search_stub):
81035         Likewise, for RET_LEN arg.
81036         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81037         (set_regs): Likewise, for FL_BACKTRACK arg.
81038         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81039         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81040         (calc_eclosure_iter, parse_bracket_exp):
81041         Use bool for internal variables that are booleans.
81042         * lib/regexec.c (re_search_internal, check_matching,
81043         proceed_next_node):
81044         (set_regs, build_sifted_states, sift_states_bkref):
81045         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81046         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81047         (find_collation_sequence_value):
81048         Likewise.
81049         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81050         (re_node_set_compare):
81051         Return bool, not int. All callers changed.
81052         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81053         (build_trtable, check_node_accept): Likewise.
81054         * lib/regex_internal.h: Include stdbool.h.
81055
81056         Fix bugs uncovered when converting to bool.
81057         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81058         failure instead of charging ahead blindly.
81059         * lib/regex_internal.c (register_state): Likewise.
81060         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81061         for freeing internal storage.
81062         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81063         bitset pieces used as boolean, to avoid undefined behavior
81064         on hosts that do int overflow checking.
81065
81066 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81067
81068         * config/srclist.txt: Add glibc bugs 1285-1287.
81069
81070 2005-09-01  Jim Meyering  <jim@meyering.net>
81071
81072         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81073         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81074         Require gl_STAT_MACROS, too.
81075
81076 2005-09-01  Bruno Haible  <bruno@clisp.org>
81077
81078         * gnulib-tool (import): In the first-use case, provide defaults.
81079
81080 2005-09-01  Bruno Haible  <bruno@clisp.org>
81081
81082         * gnulib-tool (func_import): Remove the .tmp files.
81083
81084 2005-09-01  Bruno Haible  <bruno@clisp.org>
81085
81086         * gnulib-tool (func_import): Fix handling of symbolic links.
81087
81088 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81089
81090         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81091         old glibc regex code mishandles strings longer than 2**31 bytes.
81092         This patch fixes this when the regex code is used in gnulib
81093         (i.e., outside glibc).
81094
81095         This patch should not affect the use of the regex code inside
81096         glibc.  No doubt this problem also needs to be handled for glibc
81097         as well, but the result will be an incompatible change to the
81098         glibc ABI, and the old ABI will have to be supported too.  That
81099         can be the the subject for another patch.
81100
81101         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81102         governing whether the rest of this patch is active.  By default,
81103         the macro is disabled and the patch has no effect.
81104         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81105         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81106         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81107         (re_match_2, re_set_registers): Use the new types.
81108         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81109         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81110         New macros.
81111         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81112         (re_string_context_at, bin_tree_t, re_dfastate_t):
81113         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81114         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81115         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81116         (re_string_char_size_at, re_string_wchar_at):
81117         (re_string_elem_size_at):
81118         Use the new types and macros to port to 64-bit hosts.
81119         Use unsigned types for internal values, so that the code
81120         mostly works even for arrays larger than SSIZE_MAX.
81121         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81122         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81123         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81124         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81125         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81126         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81127         (calc_inveclosure, parse_dup_op, build_range_exp):
81128         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81129         (fetch_number, create_token_tree, mark_opt_subexp):
81130         Likewise.
81131         * lib/regex_internal.c (re_string_construct_common,
81132         create_ci_newstate):
81133         (create_cd_newstate, re_string_allocate, re_string_construct):
81134         (re_string_realloc_buffers, build_wcs_upper_buffer):
81135         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81136         (re_string_reconstruct, re_string_peek_byte_case):
81137         (re_string_fetch_byte_case, re_string_context_at):
81138         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81139         (re_node_set_init_copy, re_node_set_add_intersect):
81140         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81141         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81142         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81143         (re_acquire_state, re_acquire_state_context, register_state):
81144         Likewise.
81145         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81146         search_cur_bkref_entry):
81147         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81148         (re_search_internal, re_search_2_stub, re_search_stub)
81149         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81150         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81151         (update_cur_sifted_state, check_dst_limits):
81152         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81153         (check_subexp_limits, sift_states_bkref, merge_state_array):
81154         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81155         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81156         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81157         (expand_bkref_cache, check_node_accept_bytes):
81158         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81159         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81160         (acquire_init_state_context, check_halt_node_context):
81161         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81162         (sift_states_backward, clean_state_log_if_needed):
81163         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81164         (find_recover_state, transit_state_sb, transit_state_mb):
81165         (transit_state_bkref, build_trtable, match_ctx_clean):
81166         Likewise.
81167         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81168         to work around an assumption that REG_MISSING is negative.
81169
81170         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81171         (seek_collating_symbol_entry) [defined _LIBC]:
81172         (lookup_collation_sequence_value) [defined _LIBC]:
81173         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81174         Use prototypes rather than old-style function definitions.
81175         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81176         (transit_state_sb) [0]:
81177         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81178
81179         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81180         rm_eo.
81181
81182         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81183         (optimize_subexps, lower_subexp):
81184         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81185         since the signed shift might overflow.  Use 1u<<31 instead.
81186         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81187         Likewise.
81188         * lib/regexec.c (check_dst_limits_calc_pos_1,
81189         check_subexp_matching_top): Likewise.
81190
81191         * lib/regcomp.c (optimize_subexps, lower_subexp):
81192         Use CHAR_BIT rather than 8, for clarity.
81193         * lib/regexec.c (check_dst_limits_calc_pos_1):
81194         (check_subexp_matching_top): Likewise.
81195         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81196         have to worry about portability issues when shifting it left.
81197         Remove no-longer-needed test for table_size > 0.
81198         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81199         in a word, as the resulting behavior is undefined.
81200         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81201         in one case, a <= should have been an <, and in another case the
81202         whole test was missing.
81203         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81204         the standard name CHAR_BIT.
81205         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81206         this is not true on one's complement and signed-magnitude hosts.
81207
81208         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81209         next_last_offset.
81210         (struct re_dfa_t): Remove unused member states_alloc.
81211         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81212
81213 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81214
81215         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81216         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81217         and large-file glibc and in 32-bit large-file Solaris.
81218
81219 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81220
81221         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81222         lengths fit in regoff_t; this isn't true if regoff_t is the same
81223         width as size_t.
81224         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81225         (= START + RANGE) instead of RANGE.  This avoids overflow
81226         problems when regoff_t is the same width as size_t.
81227         All callers changed.
81228         (re_search_2_stub): Check for overflow when adding the
81229         sizes of the two strings.
81230         (re_search_stub): Check for overflow when adding START
81231         to RANGE; if it occurs, substitute the extreme value.
81232
81233 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81234
81235         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81236
81237 2005-08-31  Jim Meyering  <jim@meyering.net>
81238
81239         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81240         a pointer-to-const.
81241         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81242         (register_state): Likewise.
81243         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81244         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81245         (group_nodes_into_DFAstates): Likewise.
81246
81247 2005-08-31  Jim Meyering  <jim@meyering.net>
81248
81249         * check-module: Add a FIXME comment.
81250
81251 2005-08-31  Eric Blake  <ebb9@byu.net>
81252
81253         * modules/unistd-safer (Files): Add unistd--.h.
81254         * modules/stdio-safer (Files): Add stdio--.h.
81255
81256 2005-08-31  Derek Price  <derek@ximbiot.com>
81257
81258         * lib/getdelim.c (getdelim): Return EOF on EOF.
81259         Reported by Larry Jones <lawrence.jones@ugs.com>.
81260
81261 2005-08-31  Bruno Haible  <bruno@clisp.org>
81262
81263         Avoid unnecessary diffs in the generated lib/Makefile.am.
81264         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81265         the generated files.
81266         (func_import): Don't set cmd.
81267
81268 2005-08-31  Bruno Haible  <bruno@clisp.org>
81269
81270         * lib/strstr.c: Include <stddef.h>, for NULL.
81271         * lib/strcasestr.c: Likewise.
81272         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81273
81274 2005-08-31  Bruno Haible  <bruno@clisp.org>
81275
81276         * gnulib-tool: New option --macro-prefix.
81277         (func_import): Use macro_prefix.
81278         (import): Handle option --macro-prefix.
81279
81280 2005-08-31  Bruno Haible  <bruno@clisp.org>
81281
81282         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81283         Also use new variables cached_lgpl, cached_libtool.
81284
81285 2005-08-31  Bruno Haible  <bruno@clisp.org>
81286
81287         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81288         always instantiating them.
81289
81290 2005-08-31  Bruno Haible  <bruno@clisp.org>
81291
81292         * gnulib-tool (func_import): Read the previous cached settings
81293         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81294         earlier added by gnulib but are now dropped. Warn when a gnulib file
81295         overwrites a non-gnulib file.
81296
81297 2005-08-31  Bruno Haible  <bruno@clisp.org>
81298
81299         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81300         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81301         projects that don't keep autogenerated files in CVS. Put into
81302         actioncmd only the specified modules, not the transitive closure.
81303
81304 2005-08-31  Bruno Haible  <bruno@clisp.org>
81305
81306         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81307         Create directories that shall be filled.
81308         (import): Don't look for gl_* macros in configure.ac. Recurse across
81309         all directories containing a gnulib-cache.m4 files, if meaningful.
81310
81311 2005-08-31  Bruno Haible  <bruno@clisp.org>
81312
81313         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81314         (import): Set seen_libtool when we see gl_LIBTOOL.
81315
81316 2005-08-31  Bruno Haible  <bruno@clisp.org>
81317
81318         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81319         declaration macro definitions from generated gnulib.m4.
81320
81321 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81322
81323         * lib/iconvme.h: Add prototype for iconv_alloc.
81324
81325 2005-08-29  Simon Josefsson  <jas@extundo.com>
81326
81327         * lib/iconvme.c: Fix errno.
81328
81329 2005-08-29  Bruno Haible  <bruno@clisp.org>
81330
81331         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81332         that it works when the directory contains spaces.
81333
81334 2005-08-29  Bruno Haible  <bruno@clisp.org>
81335
81336         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81337
81338 2005-08-29  Bruno Haible  <bruno@clisp.org>
81339
81340         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81341         Emit more advice.
81342
81343 2005-08-29  Bruno Haible  <bruno@clisp.org>
81344         and Stepan Kasal  <kasal@ucw.cz>
81345
81346         * check-module: If more parameters are given, check each of them
81347         separately; add more exceptions, as noted by Jim Meyering.
81348         (check_module): New procedure.
81349         (%exempt_header): Now contains all exceptions.
81350
81351 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81352
81353         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81354
81355 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81356
81357         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81358
81359 2005-08-28  Bruno Haible  <bruno@clisp.org>
81360
81361         * m4/gnulib-tool.m4: New file.
81362
81363 2005-08-27  Jim Meyering  <jim@meyering.net>
81364
81365         * modules/unistd-safer (Files): Add pipe-safer.c.
81366         * modules/fcntl-safer (Files): Add creat-safer.c.
81367
81368 2005-08-27  Jim Meyering  <jim@meyering.net>
81369
81370         * m4/stdlib-safer.m4: New file.  From coreutils.
81371         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81372         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81373         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81374         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81375         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81376
81377 2005-08-27  Jim Meyering  <jim@meyering.net>
81378
81379         * lib/fopen-safer.c: Merge minor changes from coreutils.
81380         * lib/dup-safer.c: Likewise.
81381         * lib/fd-safer.c: Likewise.
81382
81383         Merge from coreutils.
81384         * lib/stdio--.h: New file.
81385         * lib/stdlib--.h: New file.
81386         * lib/mkstemp-safer.c: New file.
81387
81388         GNU tar needs these.
81389         * lib/pipe-safer.c: New file.
81390         * lib/creat-safer.c: New file.
81391         * lib/fcntl--.h (creat): Define to creat_safer.
81392         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81393         * lib/unistd--.h (pipe): Define to pipe_safer.
81394         * lib/unistd-safer.h: Declare pipe_safer.
81395
81396 2005-08-26  Simon Josefsson  <jas@extundo.com>
81397
81398         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81399         Haible <bruno@clisp.org>.
81400
81401 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81402
81403         * lib/regex_internal.h: Remove all references to
81404         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81405         or better.
81406         (bitset_not, bitset_merge, bitset_not_merge):
81407         (bitset_mask, re_string_allocate, re_string_construct):
81408         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81409         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81410         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81411         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81412         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81413         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81414         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81415         (re_acquire_state_context):
81416         Remove unnecessary forward decls.
81417         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81418         Put __attribute at function definition,
81419         now that the function decl has been removed.
81420         * lib/regex_internal.c (re_string_peek_byte_case):
81421         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81422         Likewise.
81423
81424 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81425
81426         * m4/regex.m4: Add AC_PREREQ(2.50).
81427         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81428
81429 2005-08-25  Simon Josefsson  <jas@extundo.com>
81430
81431         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81432         __fsetlocking.
81433
81434 2005-08-25  Simon Josefsson  <jas@extundo.com>
81435
81436         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81437         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81438         GLIBC specific code.
81439
81440 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81441
81442         Make regex safe for g++.  This fixes one real bug (an "err"
81443         that should have been "*err").  g++ problem reported by
81444         Sam Steingold.
81445         * lib/regex_internal.h (re_calloc): New macro, consistent with
81446         re_malloc etc.  All callers of calloc changed to use re_calloc.
81447         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81448         not int.  All callers changed.
81449         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81450         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81451         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81452         (find_recover_state): Change "err" to "*err"; this fixes what
81453         appears to be a real bug.
81454         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81455         versus int.
81456
81457 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81458
81459         * modules/regex (Depends-on): Add malloc, since the code
81460         assumes that !malloc(0) means failure.
81461
81462 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81463
81464         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81465
81466         alloca modernization/simplification for regex.
81467         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81468         needs to be at the start of the file, and can be moved into
81469         regex_internal.h and simplified.
81470         * lib/regex_internal.h: Include <alloca.h>.
81471         (__libc_use_alloca) [!defined _LIBC]: New macro.
81472         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81473         now works outside glibc.
81474
81475 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81476
81477         * config/srclist.txt: Add glibc bugs 1241, 1245.
81478
81479 2005-08-25  Jim Meyering  <jim@meyering.net>
81480
81481         * lib/open-safer.c: Include <config.h>.
81482         Otherwise, we'd lose LARGEFILE support in any file using
81483         e.g. "fcntl--.h"
81484
81485 2005-08-25  Bruno Haible  <bruno@clisp.org>
81486
81487         * m4/minmax.m4: Require autoconf 2.52.
81488         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81489         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81490         alternatives of translit over the alphabet.
81491         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81492
81493 2005-08-24  Simon Josefsson  <jas@extundo.com>
81494
81495         * tests/test-getpass.c: New file.
81496
81497 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81498
81499         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81500         for GNU regex features.
81501
81502 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81503
81504         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81505         * lib/regex.h (regerror): Likewise.
81506
81507         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81508         requires this.  (The code never needed it.)
81509
81510         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81511         All uses of recently-renamed identifiers changed to use the new,
81512         POSIX-compliant names.  The code will build and run just fine
81513         without these changes, but it's better to eat our own dog food
81514         and use the standard-conforming names.
81515
81516         * lib/regex.h: Fix a multitude of POSIX name space violations.
81517         These changes have an effect only for programs that define
81518         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81519         do not change anything for programs compiled in the normal way.
81520         Also, there is no effect on the ABI.
81521
81522         (_REGEX_SOURCE): New macro.
81523         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81524         defined and _GNU_SOURCE is not; this fixes a name space violation.
81525
81526         Rename the following macros to obey POSIX requirements.
81527         The old names are still visible as macros if _REGEX_SOURCE is defined.
81528         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81529         RE_BACKSLASH_ESCAPE_IN_LISTS.
81530         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81531         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81532         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81533         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81534         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81535         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81536         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81537         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81538         (REG_INTERVALS): renamed from RE_INTERVALS.
81539         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81540         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81541         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81542         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81543         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81544         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81545         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81546         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81547         RE_UNMATCHED_RIGHT_PAREN_ORD.
81548         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81549         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81550         (REG_DEBUG): renamed from RE_DEBUG.
81551         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81552         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81553         unusual, since we can't clash with the POSIX REG_ICASE.
81554         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81555         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81556         (REG_NO_SUB): renamed from RE_NO_SUB.
81557         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81558         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81559         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81560         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81561         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81562         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81563         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81564         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81565         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81566         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81567         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81568         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81569         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81570         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81571         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81572         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81573         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81574         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81575         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81576         (REG_FIXED): Renamed from REGS_FIXED.
81577         (REG_NREGS): Renamed from RE_NREGS.
81578
81579         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81580         of other REG_* macros, since POSIX says the user is allowed to
81581         #undef these macros selectively.
81582
81583         (reg_errcode_t): Update comment stating what other tables need
81584         to be consistent.
81585
81586         Rename the following enum values to obey POSIX requirements.
81587         The old names are still visible as macros.
81588         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81589         is not defined, since GNU is supposed to be a superset of POSIX as
81590         much as possible, and since we want reg_errcode_t to be a signed
81591         type for implementation consistency.
81592         (_REG_NOERROR): Renamed from REG_NOERROR.
81593         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81594         (_REG_BADPAT): Renamed from REG_BADPAT.
81595         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81596         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81597         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81598         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81599         (_REG_EBRACK): Renamed from REG_EBRACK.
81600         (_REG_EPAREN): Renamed from REG_EPAREN.
81601         (_REG_EBRACE): Renamed from REG_EBRACE.
81602         (_REG_BADBR): Renamed from REG_BADBR.
81603         (_REG_ERANGE): Renamed from REG_ERANGE.
81604         (_REG_ESPACE): Renamed from REG_ESPACE.
81605         (_REG_BADRPT): Renamed from REG_BADRPT.
81606         (_REG_EEND): Renamed from REG_EEND.
81607         (_REG_ESIZE): Renamed from REG_ESIZE.
81608         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81609         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81610         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81611         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81612         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81613
81614         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81615         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81616         changed.  But support the old name if the new one is not defined
81617         and if _REGEX_SOURCE.
81618
81619         Change the following member names in struct re_pattern_buffer.
81620         The old names are still supported if !_REGEX_SOURCE.
81621         The new names are always supported, regardless of _REGEX_SOURCE.
81622         (re_buffer): Renamed from buffer.
81623         (re_allocated): Renamed from allocated.
81624         (re_used): Renamed from used.
81625         (re_syntax): Renamed from syntax.
81626         (re_fastmap): Renamed from fastmap.
81627         (re_translate): Renamed from translate.
81628         (re_can_be_null): Renamed from can_be_null.
81629         (re_regs_allocated): Renamed from regs_allocated.
81630         (re_fastmap_accurate): Renamed from fastmap_accurate.
81631         (re_no_sub): Renamed from no_sub.
81632         (re_not_bol): Renamed from not_bol.
81633         (re_not_eol): Renamed from not_eol.
81634         (re_newline_anchor): Renamed from newline_anchor.
81635
81636         Change the following member names in struct re_registers.
81637         The old names are still supported if !_REGEX_SOURCE.
81638         The new names are always supported, regardless of _REGEX_SOURCE.
81639         (rm_num_regs): Renamed from num_regs.
81640         (rm_start): Renamed from start.
81641         (rm_end): Renamed from end.
81642
81643         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81644         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81645         Prepend __ to parameter names.
81646
81647         Undo yesterday's changes.
81648
81649 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81650
81651         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81652         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81653         lib/regex.c.
81654
81655 2005-08-24  Jim Meyering  <jim@meyering.net>
81656
81657         Sync from coreutils.
81658         * m4/fcntl-safer.m4: New file.
81659
81660         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81661         and object files for this module.
81662
81663 2005-08-24  Jim Meyering  <jim@meyering.net>
81664
81665         Sync from coreutils.
81666         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81667
81668 2005-08-24  Jim Meyering  <jim@meyering.net>
81669
81670         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81671         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81672
81673 2005-08-24  Jim Meyering  <jim@meyering.net>
81674
81675         * modules/fcntl-safer: New module.
81676         * modules/fts (Depends-on): Add fcntl-safer.
81677         * MODULES.html.sh (File descriptor based Input/Output):
81678         Add fcntl-safer.
81679
81680 2005-08-24  Bruno Haible  <bruno@clisp.org>
81681
81682         Support for unit test modules.
81683         * modules/README: Mention tests modules.
81684         * modules/TEMPLATE-TESTS: New file.
81685         * gnulib-tool: New options --extract-tests-module, --with-tests and
81686         --tests-base (unused for the moment).
81687         (testsbase, inctests): New variables.
81688         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81689         (func_verify_module): Exclude TEMPLATE-TESTS.
81690         (func_verify_nontests_module, func_verify_tests_module): New functions.
81691         (func_get_dependencies): Add implicit dependency for tests modules.
81692         (func_get_tests_module): New function.
81693         (func_modules_transitive_closure): When --with-tests was specified,
81694         include the unit tests as well, unless explicitly avoided.
81695         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81696         (func_emit_tests_Makefile_am): New function.
81697         (func_create_testdir): When --with-tests was specified, emit a
81698         tests/ directory.
81699         * MODULES.html.sh (Future developments): Update.
81700
81701 2005-08-24  Bruno Haible  <bruno@clisp.org>
81702
81703         * modules/tls-tests: New file.
81704         * tests/test-tls.c: New file, from GNU gettext.
81705
81706 2005-08-24  Bruno Haible  <bruno@clisp.org>
81707
81708         * modules/lock-tests: New file.
81709         * tests/test-lock.c: New file, from GNU gettext.
81710
81711 2005-08-24  Bruno Haible  <bruno@clisp.org>
81712
81713         * lib/lock.h: Add multiple inclusion guard.
81714         * lib/tls.h: Add multiple inclusion guard.
81715
81716 2005-08-24  Bruno Haible  <bruno@clisp.org>
81717
81718         * gnulib-tool: Add support for the --aux-dir option to
81719         --create-testdir, --create-megatestdir, --test, --megatest.
81720         (func_create_testdir, func_create_megatestdir): Optionally emit a
81721         AC_CONFIG_AUX_DIR directive.
81722         (create-testdir, create-megatestdir, test, megatest): Provide a
81723         default value for $auxdir.
81724
81725 2005-08-24  Bruno Haible  <bruno@clisp.org>
81726
81727         * gnulib-tool (import): Use compound statement instead of subshell
81728         where possible.
81729
81730 2005-08-24  Bruno Haible  <bruno@clisp.org>
81731
81732         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81733
81734 2005-08-24  Bruno Haible  <bruno@clisp.org>
81735
81736         * gnulib-tool (func_version): Update.
81737
81738 2005-08-24  Bruno Haible  <bruno@clisp.org>
81739
81740         * gnulib-tool (func_import, func_create_testdir,
81741         func_create_megatestdir): Quote all autoconf macro arguments.
81742
81743 2005-08-24  Bruno Haible  <bruno@clisp.org>
81744
81745         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81746         option --force, because --force causes the aclocal.m4 of each
81747         subdirectory to be newer than the corresponding config.h.in.
81748
81749 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81750
81751         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81752         All contents moved to gl_REGEX.
81753         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81754         assume that it does.
81755
81756 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81757
81758         * lib/regex.h (REG_NOSYS)
81759         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81760         Define, since POSIX requires it as of 2001.
81761         (_REG_ENOSYS)
81762         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81763         New private symbol, used to keep the enum signed in all cases.
81764         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81765         Youngman in
81766         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81767
81768         * lib/regex_internal.c (re_string_skip_chars, register_state):
81769         (calc_state_hash):
81770         Remove forward decls; no longer needed now that we use prototypes.
81771         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81772         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81773         (clean_state_log_if_needed): Likewise.
81774
81775 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81776
81777         * config/srclist.txt: Add glibc bugs 1231-1233.
81778
81779 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81780
81781         Fix problems reported by Sam Steingold in
81782         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81783         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81784         assumed that reg_errcode_t is a signed type, which is not
81785         necessarily true if _XOPEN_SOURCE is not defined.
81786         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81787         since some compilers warn about it otherwise.
81788
81789 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81790
81791         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81792         (init_word_char, create_initial_state, duplicate_node_closure):
81793         (fetch_token, peek_token_bracket, build_range_exp):
81794         (build_collating_symbol): Remove forward decls; no longer needed
81795         now that we use prototypes.
81796
81797         * lib/regcomp.c:
81798         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81799         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81800         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81801         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81802         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81803         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81804         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81805         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81806         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81807         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81808         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81809         (build_charclass, build_charclass_op, fetch_number, create_tree):
81810         (create_token_tree, mark_opt_subexp, duplicate_tree):
81811         Use prototypes rather than old-style definitions.
81812
81813         * lib/regex_internal.c:
81814         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81815         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81816         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81817         (re_string_reconstruct, re_string_peek_byte_case):
81818         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81819         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81820         (re_node_set_init_copy, re_node_set_add_intersect):
81821         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81822         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81823         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81824         (re_acquire_state, re_acquire_state_context, register_state):
81825         (create_ci_newstate, create_cd_newstate, free_state):
81826         Likewise.
81827         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81828         re_search_2):
81829         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81830         (re_search_internal, prune_impossible_nodes):
81831         (acquire_init_state_context, check_matching, static):
81832         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81833         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81834         (update_regs, sift_states_backward, build_sifted_states):
81835         (clean_state_log_if_needed, merge_state_array):
81836         (update_cur_sifted_state, add_epsilon_src_nodes):
81837         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81838         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81839         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81840         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81841         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81842         (check_arrival, check_arrival_add_next_nodes):
81843         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81844         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81845         (check_node_accept_bytes, check_node_accept, extend_buffers):
81846         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81847         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81848         (sift_ctx_init):
81849         Likewise.
81850
81851         * lib/regex_internal.h:
81852         (re_string_allocate, re_string_construct, re_string_reconstruct):
81853         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81854         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81855         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81856         (re_string_context_at, re_string_peek_byte_case):
81857         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81858         is defined, since we now use prototypes always.
81859
81860         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81861         C89 or better.  All uses removed.
81862
81863 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81864
81865         * config/srclist.txt: Add glibc bugs 1220-1227.
81866
81867 2005-08-20  Jim Meyering  <jim@meyering.net>
81868
81869         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81870         of unused local, dfa.
81871
81872 2005-08-20  Bruno Haible  <bruno@clisp.org>
81873
81874         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81875
81876 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81877
81878         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81879         (re_node_set_insert_last, re_dfa_add_node):
81880         Rename local variables to avoid GCC shadowing warnings.
81881
81882 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81883
81884         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81885         [defined lint]: Suppress bogus uninitialized-variable warnings.
81886
81887         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81888         and let the caller return REG_ESPACE if out of space.  This
81889         removes an uninitialied-variable warning with GCC 4.0.1, and also
81890         avoids taking the address of a local variable.  All callers
81891         changed.
81892
81893 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81894
81895         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81896         $LIBCSRC/posix/regexec.c.
81897         Add glibc bug 1217 for regcomp.c.
81898
81899 2005-08-19  Jim Meyering  <jim@meyering.net>
81900
81901         * lib/regexec.c (proceed_next_node): Redo local variables to
81902         avoid GCC shadowing warnings.
81903
81904 2005-08-18  Bruno Haible  <bruno@clisp.org>
81905
81906         * lib/strstr.c (strstr): Fix return value in multibyte case.
81907         * lib/strcasestr.c (strcasestr): Likewise.
81908
81909 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81910
81911         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81912
81913 2005-08-17  Jim Meyering  <jim@meyering.net>
81914
81915         Make the %s format (seconds since the epoch) work for a negative
81916         number and when used with a zero-padded field width, e.g. %015s.
81917
81918         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81919         label so that it precedes the code to set `digits'.  Otherwise,
81920         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81921         print `00-22'.  Now, it prints `-0022', as it should.
81922
81923 2005-08-17  Bruno Haible  <bruno@clisp.org>
81924
81925         * modules/strstr (Files): Add m4/mbrtowc.m4.
81926         (Depends-on): Add mbuiter.
81927
81928 2005-08-17  Bruno Haible  <bruno@clisp.org>
81929
81930         * modules/strcasestr: New file.
81931         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81932         strcasestr.
81933
81934 2005-08-17  Bruno Haible  <bruno@clisp.org>
81935
81936         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81937
81938 2005-08-17  Bruno Haible  <bruno@clisp.org>
81939
81940         * modules/mbuiter: New file.
81941         * MODULES.html.sh (Extended multibyte and wide character utilities):
81942         Add mbuiter.
81943
81944 2005-08-17  Bruno Haible  <bruno@clisp.org>
81945
81946         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81947         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81948
81949 2005-08-17  Bruno Haible  <bruno@clisp.org>
81950
81951         * m4/strcasestr.m4: New file.
81952
81953 2005-08-17  Bruno Haible  <bruno@clisp.org>
81954
81955         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81956         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81957
81958 2005-08-17  Bruno Haible  <bruno@clisp.org>
81959
81960         * lib/strcasestr.h: New file.
81961         * lib/strcasestr.c: New file.
81962
81963 2005-08-17  Bruno Haible  <bruno@clisp.org>
81964
81965         * lib/strcasecmp.c: Use mbuiter.h.
81966
81967 2005-08-17  Bruno Haible  <bruno@clisp.org>
81968
81969         * lib/mbuiter.h: New file.
81970
81971 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81974         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81975         and gl_GETOPT are both invoked via different paths (as happens
81976         with GNU tar CVS because it uses both argp and getopt), the former
81977         wins.
81978
81979 2005-08-16  Bruno Haible  <bruno@clisp.org>
81980
81981         * modules/tls: New file.
81982         * MODULES.html.sh (Multithreading): Add tls.
81983
81984 2005-08-16  Bruno Haible  <bruno@clisp.org>
81985
81986         * modules/strnlen1: New file.
81987         * MODULES.html.sh (String handling): Add strnlen1.
81988
81989 2005-08-16  Bruno Haible  <bruno@clisp.org>
81990
81991         * modules/strcase (Files): Add m4/mbrtowc.m4.
81992         (Depends-on): Add strnlen1, mbchar.
81993
81994 2005-08-16  Bruno Haible  <bruno@clisp.org>
81995
81996         * modules/mbiter: New file.
81997         * MODULES.html.sh (Extended multibyte and wide character utilities):
81998         Add mbiter.
81999
82000 2005-08-16  Bruno Haible  <bruno@clisp.org>
82001
82002         * modules/mbfile: New file.
82003         * MODULES.html.sh (Extended multibyte and wide character utilities):
82004         Add mbfile.
82005
82006 2005-08-16  Bruno Haible  <bruno@clisp.org>
82007
82008         * modules/mbchar: New file.
82009         * MODULES.html.sh (Extended multibyte and wide character utilities):
82010         New section.
82011
82012 2005-08-16  Bruno Haible  <bruno@clisp.org>
82013
82014         * m4/tls.m4: New file, from GNU gettext.
82015
82016 2005-08-16  Bruno Haible  <bruno@clisp.org>
82017
82018         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82019         always.
82020         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82021
82022 2005-08-16  Bruno Haible  <bruno@clisp.org>
82023
82024         * m4/mbiter.m4: New file.
82025
82026 2005-08-16  Bruno Haible  <bruno@clisp.org>
82027
82028         * m4/mbfile.m4: New file.
82029
82030 2005-08-16  Bruno Haible  <bruno@clisp.org>
82031
82032         * m4/mbchar.m4: New file.
82033
82034 2005-08-16  Bruno Haible  <bruno@clisp.org>
82035
82036         * lib/tls.h: New file, from GNU gettext.
82037         * lib/tls.c: New file, from GNU gettext.
82038
82039 2005-08-16  Bruno Haible  <bruno@clisp.org>
82040
82041         * lib/strnlen1.h: New file.
82042         * lib/strnlen1.c: New file.
82043
82044 2005-08-16  Bruno Haible  <bruno@clisp.org>
82045
82046         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82047         (mbi_init): Update.
82048         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82049         NUL byte, not after it.
82050
82051 2005-08-16  Bruno Haible  <bruno@clisp.org>
82052
82053         * lib/strcase.h (strcasecmp): Add note in comments.
82054         * lib/strncasecmp.c: Use code from strcasecmp.c.
82055         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82056         (strcasecmp): Work correctly in multibyte locales.
82057
82058 2005-08-16  Bruno Haible  <bruno@clisp.org>
82059
82060         * lib/mbiter.h: New file.
82061
82062 2005-08-16  Bruno Haible  <bruno@clisp.org>
82063
82064         * lib/mbfile.h: New file.
82065
82066 2005-08-16  Bruno Haible  <bruno@clisp.org>
82067
82068         * lib/mbchar.h: New file.
82069         * lib/mbchar.c: New file.
82070
82071 2005-08-16  Bruno Haible  <bruno@clisp.org>
82072
82073         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82074         the valid ones. Makes the comparison operations transitive:
82075         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82076         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82077
82078 2005-08-15  Simon Josefsson  <jas@extundo.com>
82079
82080         * modules/ssize_t (License): Change to 'unlimited'.
82081
82082         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82083
82084 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82085
82086         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82087         Add comments for each pending glibc patch.
82088
82089 2005-08-15  Bruno Haible  <bruno@clisp.org>
82090
82091         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82092         __cplusplus is defined.
82093
82094 2005-08-14  Jim Meyering  <jim@meyering.net>
82095
82096         Sync from coreutils.
82097
82098         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82099         Use the hash-table-based cycle-detection code not just when
82100         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82101         Reported by James Youngman in
82102         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82103         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82104         FTS_TIGHT_CYCLE_CHECK.
82105         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82106         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82107         once again.
82108         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82109         * lib/fts.c (fd_safer): Remove decl.
82110         Include fcntl--.h rather than unistd-safer.h
82111         (fts_safe_changedir): Don't call fd_safer; no longer needed
82112         now that we include fcntl--.h.
82113
82114 2005-08-12  Simon Josefsson  <jas@extundo.com>
82115
82116         * modules/getndelim2: Use ssize_t module.
82117         * modules/getnline: Likewise.
82118         * modules/safe-read: Likewise.
82119         * modules/xreadlink: Likewise.
82120
82121         * modules/ssize_t: New file.
82122
82123 2005-08-12  Simon Josefsson  <jas@extundo.com>
82124
82125         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82126
82127 2005-08-12  Simon Josefsson  <jas@extundo.com>
82128
82129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82130         ssize_t.
82131
82132 2005-08-12  Simon Josefsson  <jas@extundo.com>
82133
82134         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82135         readline, getdelim and check_version.
82136         (Support for systems lacking ISO C 99: Sizes of integer types):
82137         Add size_max.
82138
82139 2005-08-12  Bruno Haible  <bruno@clisp.org>
82140
82141         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82142
82143 2005-08-11  Simon Josefsson  <jas@extundo.com>
82144
82145         * modules/readline: New file.
82146
82147         * modules/strnlen (Files): Add strnlen.h.
82148
82149 2005-08-11  Simon Josefsson  <jas@extundo.com>
82150
82151         * m4/readline.m4: New file.
82152
82153 2005-08-11  Simon Josefsson  <jas@extundo.com>
82154
82155         * lib/readline.h, readline.c: New file.
82156
82157 2005-08-11  Simon Josefsson  <jas@extundo.com>
82158
82159         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82160         gl_AVOID.
82161
82162 2005-08-11  Bruno Haible  <bruno@clisp.org>
82163
82164         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82165
82166 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82167
82168         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82169
82170 2005-08-10  Simon Josefsson  <jas@extundo.com>
82171
82172         * tests/test-iconvme.c: New file.
82173
82174 2005-08-10  Simon Josefsson  <jas@extundo.com>
82175
82176         * m4/strnlen.m4: New file.
82177
82178         * m4/strndup.m4: Don't check for strnlen declaration, done in
82179         strnlen.m4.
82180
82181 2005-08-10  Simon Josefsson  <jas@extundo.com>
82182
82183         * lib/strndup.c: Use strnlen.h.
82184
82185         * lib/strnlen.h: New file.
82186
82187 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82188
82189         * README: Typos.
82190
82191 2005-08-02  Simon Josefsson  <jas@extundo.com>
82192
82193         * modules/readline: New file.
82194
82195 2005-08-02  Simon Josefsson  <jas@extundo.com>
82196
82197         * modules/getdelim: New file.
82198
82199         * modules/getline: Rewrite, don't use getndelim2.
82200
82201 2005-08-02  Simon Josefsson  <jas@extundo.com>
82202
82203         * m4/getline.m4: Separate out getdelim stuff into separate module.
82204
82205         * m4/getdelim.m4: New file.
82206
82207 2005-08-02  Simon Josefsson  <jas@extundo.com>
82208
82209         * lib/getline.h, getline.c: Rewrite.
82210
82211         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82212
82213 2005-07-31  Bruno Haible  <bruno@clisp.org>
82214
82215         * lib/lock.h (gl_lock_initializer): New macro.
82216         (gl_lock_define_initialized): Use it.
82217         (gl_rwlock_initializer): New macro.
82218         (gl_rwlock_define_initialized): Use it.
82219         (gl_recursive_lock_initializer): New macro.
82220         (gl_recursive_lock_define_initialized): Use it.
82221
82222 2005-07-30  Karl Berry  <karl@gnu.org>
82223
82224         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82225         Report from Ben Pfaff, regarding getopt.
82226
82227 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82230         normal way.
82231         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82232         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82233         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82234         (gl_GETOPT): Use the new macros.  Most of the implementation
82235         is moved to the new macros.  This is for programs like Emacs
82236         that don't want all the functionality of gl_GETOPT.
82237
82238 2005-07-26  Bruno Haible  <bruno@clisp.org>
82239
82240         * m4/lock.m4: Update from GNU gettext.
82241
82242 2005-07-26  Bruno Haible  <bruno@clisp.org>
82243
82244         * lib/lock.h: Update from GNU gettext.
82245         * lib/lock.c: Update from GNU gettext.
82246
82247 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82248
82249         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82250         obsolescent AC_TRY_RUN.  Include the default includes files, for
82251         'exit'.
82252
82253 2005-07-24  Bruno Haible  <bruno@clisp.org>
82254
82255         * modules/visibility: New file.
82256         * MODULES.html.sh (Misc): Add visibility.
82257
82258 2005-07-24  Bruno Haible  <bruno@clisp.org>
82259
82260         * m4/visibility.m4: New file.
82261
82262 2005-07-24  Bruno Haible  <bruno@clisp.org>
82263
82264         * doc/visibility.texi: New file.
82265
82266 2005-07-22  Bruno Haible  <bruno@clisp.org>
82267
82268         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82269         $(ALLOCA_H), redundant through BUILT_SOURCES.
82270         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82271         redundant through BUILT_SOURCES.
82272         * modules/byteswap (Makefile.am): Remove explicit dependency on
82273         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82274         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82275         $(FNMATCH_H), redundant through BUILT_SOURCES.
82276         * modules/getopt (Makefile.am): Remove explicit dependency on
82277         $(GETOPT_H), redundant through BUILT_SOURCES.
82278         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82279         redundant through BUILT_SOURCES.
82280         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82281         redundant through BUILT_SOURCES.
82282         * modules/stdbool (Makefile.am): Remove explicit dependency on
82283         $(STDBOOL_H), redundant through BUILT_SOURCES.
82284         * modules/stdint (Makefile.am): Remove explicit dependency on
82285         $(STDINT_H), redundant through BUILT_SOURCES.
82286         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82287         Remove explicit dependency on $(SYSEXITS_H).
82288         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82289
82290 2005-07-18  Simon Josefsson  <jas@extundo.com>
82291
82292         * lib/check-version.c (check_version): Accept identical versions too.
82293
82294 2005-07-18  Bruno Haible  <bruno@clisp.org>
82295
82296         * modules/lock: New file.
82297         * MODULES.html.sh (Multithreading): New section.
82298
82299 2005-07-18  Bruno Haible  <bruno@clisp.org>
82300
82301         * m4/lock.m4: New file, from GNU gettext.
82302
82303 2005-07-18  Bruno Haible  <bruno@clisp.org>
82304
82305         * lib/lock.h: New file, from GNU gettext.
82306         * lib/lock.c: New file, from GNU gettext.
82307
82308 2005-07-18  Bruno Haible  <bruno@clisp.org>
82309
82310         * lib/lock.h (gl_once_t): New type.
82311         (gl_once_define, gl_once): New macros.
82312         * lib/lock.c (fresh_once): New variable.
82313         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82314         functions.
82315
82316 2005-07-16  Simon Josefsson  <jas@extundo.com>
82317
82318         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82319         workaround, suggested by Bruno.
82320
82321 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82322
82323         * modules/xalloc (Depends-on): Add xalloc-die.
82324         * modules/xvasprintf (Depends-on): Add xalloc-die.
82325
82326 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82327
82328         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82329         with a minor change.
82330
82331 2005-07-15  Bruno Haible  <bruno@clisp.org>
82332
82333         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82334         When using lib/poll.c, define poll as rpl_poll.
82335
82336 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82337
82338         * modules/argp (Depends-on): Remove unlocked-io.
82339
82340 2005-07-14  Derek Price  <derek@ximbiot.com>
82341
82342         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82343         for glob symlink bug.
82344
82345 2005-07-14  Bruno Haible  <bruno@clisp.org>
82346
82347         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82348         Instead, test for *_unlocked function declarations directly.
82349
82350 2005-07-11  Simon Josefsson  <jas@extundo.com>
82351
82352         * modules/size_max: New file.
82353
82354         * modules/xsize: Depend on size_max module for size_max.m4.
82355
82356 2005-07-11  Simon Josefsson  <jas@extundo.com>
82357
82358         * lib/size_max.h: New file.
82359
82360 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82361
82362         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82363         copyright symbol and the year.
82364         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82365         (version_etc_va): Use parameterized copyright notice.
82366         Reword to conform to the current GNU coding standards.
82367
82368 2005-07-11  Karl Berry  <karl@gnu.org>
82369
82370         * doc/gnulib.texi (Quoting): new node.
82371         (Initial import): more info, from Patrice.
82372
82373 2005-07-11  Bruno Haible  <bruno@clisp.org>
82374
82375         * gnulib-tool (func_usage): Document option --avoid.
82376         (Command line options): Handle --avoid.
82377         (func_acceptable): New function.
82378         (func_modules_transitive_closure): Use it.
82379
82380 2005-07-11  Bruno Haible  <bruno@clisp.org>
82381
82382         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82383         Reported by Jim Meyering.
82384
82385 2005-07-10  Bruno Haible  <bruno@clisp.org>
82386
82387         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82388         Needed when size_t is smaller than 'unsigned int'.
82389         Reported by Paul Eggert.
82390
82391 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82392
82393         * modules/argp (Depends-on): Add unlocked-io
82394
82395 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82396
82397         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82398         block of defines.
82399
82400 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82401
82402         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82403         fix now.
82404
82405 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82406         and Paul Eggert  <eggert@cs.ucla.edu>
82407
82408         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82409         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82410
82411 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82412
82413         * modules/regex (Files): Add lib/regex_internal.c,
82414         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82415         (Depends-on): Add extensions.
82416         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82417
82418 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82419
82420         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82421         pathconf.
82422         * m4/same.m4 (gl_SAME): Likewise.
82423         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82424
82425         * m4/regex.m4: Adjust to new libc regex implementation.
82426         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82427         all the .c and .h parts of (the new) regex.
82428         Quote the m4 stuff better.
82429         Check for RE_ICASE bug of old gnulib.
82430         Check for REG_STARTEND of recent libc.
82431         Rename local variables from jm_* to gl_*.
82432         Quote operand of "test -f".
82433         Say "recent enough" version of libc, not "version 2".
82434         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82435         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82436         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82437         Remove check for btowc, isascii.
82438         Require AM_LANGINFO_CODESET.
82439
82440 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82441
82442         * lib/regex.c, regex.h: Sync from libc.
82443         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82444         * lib/regexec.c:
82445         New files, synced from libc, except that regex_internal.h
82446         currently has a small porting fix.
82447
82448 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82449
82450         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82451         regex_internal.c, regexec.c.
82452         Add regex_internal.h too, but as a comment, since the libc version
82453         is currently broken in gnulib mode.
82454
82455 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82456
82457         Support programs like Emacs that use gnulib but not gettext.
82458         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82459         * modules/gettext-h: New file.
82460         * modules/gettext (Files): Remove lib/gettext.h.
82461         (Depends-on): Add gettext-h.
82462         (Makefile.am): Remove lib_SOURCES.
82463         * modules/argmatch, modules/c-stack, modules/closeout:
82464         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82465         * modules/execute, modules/file-type, modules/getaddrinfo:
82466         * modules/getopt, modules/human, modules/javacomp:
82467         * modules/javaexec, modules/mkdir-p, modules/obstack:
82468         * modules/openat, modules/pagealign_alloc, modules/pipe:
82469         * modules/quotearg, modules/regex, modules/rpmatch:
82470         * modules/unicodeio, modules/userspec, modules/version-etc:
82471         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82472         * modules/xsetenv:
82473         Depend on gettext-h, not gettext.
82474
82475 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82476
82477         * gnulib-tool (func_import): Add support for 'public domain' license.
82478         * modules/alloca, modules/atexit, modules/memmove:
82479         Now public domain, not GPL.
82480         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82481         * modules/realloc, modules/strerror, modules/strtod:
82482         Now LGPL, not GPL.
82483
82484 2005-07-05  Bruno Haible  <bruno@clisp.org>
82485
82486         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82487         autoconf CVS. Needed for mingw.
82488
82489 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82490
82491         Remove the dependency of the strftime module on the tzset module.
82492         * modules/strftime (Depends-on): Remove dependency on tzset.
82493
82494 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82495
82496         Remove the dependency of the strftime module on the tzset module.
82497         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82498         gl_FUNC_TZSET_CLOBBER.
82499
82500 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82501
82502         Remove the dependency of the strftime module on the tzset module.
82503         * lib/strftime.c (my_strftime)
82504         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82505         Copy the input structure, to work around some of the bug with
82506         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82507         Solaris releases, you should also use the tzset module, but we won't
82508         require it as a dependency any more since we don't want LGPLed code
82509         to depend on GPLed code.
82510
82511 2005-07-02  Jim Meyering  <jim@meyering.net>
82512
82513         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82514         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82515         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82516         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82517
82518 2005-07-02  Jim Meyering  <jim@meyering.net>
82519
82520         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82521
82522 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82523
82524         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82525         declares only 'struct timespec;' (!).
82526
82527 2005-07-01  Jim Meyering  <jim@meyering.net>
82528
82529         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82530         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82531         * lib/save-cwd.c, tempname.c:
82532         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82533         and don't include <sys/file.h>).
82534
82535 2005-06-29  Jim Meyering  <jim@meyering.net>
82536
82537         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82538         type name.  Use the variable name instead.
82539         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82540         Likewise.
82541
82542 2005-06-28  Simon Josefsson  <jas@extundo.com>
82543
82544         * modules/check-version (Files): Add check-version.m4.
82545
82546 2005-06-28  Simon Josefsson  <jas@extundo.com>
82547
82548         * m4/check-version.m4: New file, suggested by Jim Meyering
82549         <jim@meyering.net>.
82550
82551 2005-06-28  Simon Josefsson  <jas@extundo.com>
82552
82553         * lib/check-version.h, lib/check-version.c: New files.
82554
82555 2005-06-28  Simon Josefsson  <jas@extundo.com>
82556
82557         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82558         collision with global variable.  Better indentation.  Don't
82559         increment buffer pointer beyond buffer end.  Based on comments
82560         from Paul Eggert <eggert@cs.ucla.edu>.
82561
82562         * lib/base64.h: Indent.
82563
82564 2005-06-28  Simon Josefsson  <jas@extundo.com>
82565
82566         * doc/gnulib.texi (Library version handling): New section.
82567
82568 2005-06-28  Jim Meyering  <jim@meyering.net>
82569
82570         * check-module (find_included_lib_files): Hard-code another
82571         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82572         but modules/fts-lgpl (correctly) does not list those files.
82573
82574         * modules/canonicalize (Files): Add lib/pathmax.h.
82575
82576 2005-06-25  Simon Josefsson  <jas@extundo.com>
82577
82578         * modules/check-version: New file.
82579
82580 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82581
82582         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82583         initializer of struct addrinfo, as an indication that we don't
82584         care how many members the structure has.
82585
82586 2005-06-24  Derek Price  <derek@ximbiot.com>
82587         and Bruno Haible  <bruno@clisp.org>
82588
82589         Remove stat module & update lstat.
82590         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82591         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82592         * m4/stat.m4: Remove this file.
82593
82594 2005-06-24  Derek Price  <derek@ximbiot.com>
82595         and Bruno Haible  <bruno@clisp.org>
82596
82597         Remove stat module & update lstat.
82598         * lib/stat.c: Remove this file...
82599         (slash_aware_lstat): ...moving this content and its support...
82600         * lib/lstat.c (rpl_lstat): ...into here.
82601         * lib/lstat.h: New file.
82602
82603 2005-06-24  Derek Price  <derek@ximbiot.com>
82604         and Bruno Haible  <bruno@clisp.org>
82605
82606         Remove stat module & update lstat.
82607         * config/srclist.txt (libc sources): Remove stat.
82608
82609 2005-06-24  Derek Price  <derek@ximbiot.com>
82610         and Bruno Haible  <bruno@clisp.org>
82611
82612         Remove stat module & update lstat.
82613         * MODULES.html.sh (stat): Remove.
82614         * MODULES.html: Regenerated.
82615         * modules/lstat (Description): Correct function name.
82616         (Files): Add "lstat.h".
82617         (Depends-on): Remove stat, add xalloc, stat-macros.
82618         * modules/stat: Remove this file.
82619         (Include): Add "lstat.h", remove <sys/stat.h>.
82620
82621 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82622
82623         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82624         (ranged_convert): Don't save conversion in a temporary struct.
82625         This causes a warning with GCC 4.0.0, and anyway in the typical
82626         case it's not worth the extra 100 bytes or so of code.
82627         (ranged_convert, __mktime_internal): When calling a function via a
82628         pointer P, use P () rather than (*P) (), as we now assume C89 or
82629         better.
82630
82631 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82632
82633         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82634         "who -r" failed to give output.  Problem reported by Tim Waugh.
82635
82636         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82637         (xcalloc): Use it to avoid needless tests.
82638         Problem reported by Jim Meyering.
82639
82640 2005-06-20  Derek Price  <derek@ximbiot.com>
82641
82642         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82643         unnecessary for Autoconfs > 2.59c.
82644
82645 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82646
82647         * lib/argp.h (__option_is_short): Check upper limit of
82648         __key. Isprint() requires its argument to have the value
82649         of an unsigned char or EOF.
82650
82651 2005-06-16  Jim Meyering  <jim@meyering.net>
82652
82653         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82654         when either N or S is zero.
82655
82656 2005-06-16  Derek Price  <derek@ximbiot.com>
82657
82658         * m4/bison.m4: Declare YACC & YFLAGS precious.
82659
82660 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82661
82662         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82663         multibyte string or pattern, fall back on unibyte matching.
82664         Problem reported by James Youngman.
82665
82666 2005-06-08  Bruno Haible  <bruno@clisp.org>
82667
82668         * modules/csharpcomp: New file.
82669         * MODULES.html.sh (C#): Add csharpcomp.
82670
82671 2005-06-08  Bruno Haible  <bruno@clisp.org>
82672
82673         * m4/csharpcomp.m4: New file, from GNU gettext.
82674
82675 2005-06-08  Bruno Haible  <bruno@clisp.org>
82676
82677         * lib/csharpcomp.h: New file, from GNU gettext.
82678         * lib/csharpcomp.c: New file, from GNU gettext.
82679         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82680
82681 2005-06-08  Bruno Haible  <bruno@clisp.org>
82682
82683         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82684         warning on mingw.
82685
82686 2005-06-07  Derek Price  <derek@ximbiot.com>
82687
82688         Sync from CVS.
82689         * lib/glob_.h: Indent nested #ifdef.
82690
82691 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82692
82693         Sync from coreutils.
82694         Use "file name" when talking about file names, instead of "filename"
82695         or "path", as per the GNU coding standards.
82696         * lib/mkdir-p.c: Renamed from makepath.c.
82697         (make_dir_parents): Renamed from make_path.  All callers changed.
82698         * lib/mkdir-p.h: Likewise.  All includers changed.
82699         * lib/filenamecat.c: Renamed from path-concat.c.
82700         (file_name_concat): Renamed from path_concat.  All callers changed.
82701         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82702         * lib/filenamecat.h: Likewise.  All includers changed.
82703         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82704         in comments or local variable names.
82705         * lib/basename.c: Likewise.
82706         * lib/canonicalize.c, canonicalize.h: Likewise.
82707         * lib/dirname.c, dirname.h: Likewise.
82708         * lib/euidaccess.c: Likewise.
82709         * lib/exclude.c: Likewise
82710         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82711         * lib/fsusage.c, fsuage.h: Likewise.
82712         * lib/fts.c, fts_.h: Likewise.
82713         * lib/getcwd.c: Likewise.
82714         * lib/getloadavg.c: Likewise.
82715         * lib/mkstemp.c: Likewise.
82716         * lib/mountlist.c, mountlist.h: Likewise.
82717         * lib/openat.c, openat.h: Likewise.
82718         * lib/readlink-stub.c: Likewise.
82719         * lib/readutmp.c, readutmp.h: Likewise.
82720         * lib/rename.c: Likewise.
82721         * lib/rmdir.c: Likewise.
82722         * lib/same.c: Likewise.
82723         * lib/savedir.c: Likewise.
82724         * lib/stripslash.c: Likewise.
82725         * lib/tempname.c: Likewise.
82726         * lib/xreadlink.c: Likewise.
82727         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82728         All uses changed.
82729         * lib/exclude.h: Likewise.
82730
82731         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82732         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82733         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82734         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82735         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82736         files have been getting away with it for years (MORE/BSD 4.3
82737         is extinct now).
82738         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82739         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82740
82741         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82742         Define to 256, not 255, as per modern POSIX.
82743
82744 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82745
82746         Sync from coreutils.
82747         Use "file name" when talking about file names, instead of "filename"
82748         or "path", as per the GNU coding standards.
82749         * MODULES.html.sh: mkdir-p renamed from makepath.
82750         filenamecat renamed from path-concat.
82751         * modules/filenamecat: Renamed from modules/path-concat.
82752         (Files): filenamecat.h and filenamecat.c renamed from
82753         path-concat.h and path-concat.c.
82754         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82755         (Include): filenamecat.h, not path-concat.h.
82756         * modules/mkdir-p: Renamed from modules/makepath.
82757         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82758         makepath.c.
82759         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82760         (Include): mkdir-p.h, not makepath.h.
82761
82762 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82763
82764         Sync from coreutils.
82765         * m4/mkdir-p.m4: Renamed from makepath.m4.
82766         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82767         Rename files from makepath.c to mkdir-p.c, and from
82768         makepath.h to mkdir-p.h.
82769         * m4/filenamecat.m4: Renamed from path-concat.m4.
82770         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82771         Rename files from path-concat.c to filenamecat.c,
82772         and from path-concat.h to filenamecat.h.
82773         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82774         "file name" in local variables or comments.
82775         * m4/rename.m4: Likewise.
82776
82777 2005-06-01  Bruno Haible  <bruno@clisp.org>
82778
82779         * modules/csharpexec: New file.
82780         * MODULES.html.sh (C#): New section.
82781
82782 2005-06-01  Bruno Haible  <bruno@clisp.org>
82783
82784         * m4/csharp.m4: New file, from GNU gettext.
82785         * m4/csharpexec.m4: New file, from GNU gettext.
82786
82787 2005-06-01  Bruno Haible  <bruno@clisp.org>
82788
82789         * lib/csharpexec.h: New file, from GNU gettext.
82790         * lib/csharpexec.c: New file, from GNU gettext.
82791         * lib/csharpexec.sh.in: New file, from GNU gettext.
82792
82793 2005-05-31  Derek Price  <derek@ximbiot.com>
82794             Paul Eggert  <eggert@cs.ucla.edu>
82795
82796         Sync from cvs.
82797         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82798
82799 2005-05-31  Derek Price  <derek@ximbiot.com>
82800             Paul Eggert  <eggert@cs.ucla.edu>
82801
82802         Sync from cvs.
82803         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82804
82805 2005-05-29  Derek Price  <derek@ximbiot.com>
82806
82807         * config/srclist.txt (glob_.h, glob.c): Add these files.
82808
82809 2005-05-29  Derek Price  <derek@ximbiot.com>
82810
82811         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82812         * modules/glob: New file.
82813         * modules/getlogin_r: Add link to POSIX spec in description.
82814
82815 2005-05-29  Derek Price  <derek@ximbiot.com>
82816             Paul Eggert  <eggert@cs.ucla.edu>
82817
82818         * m4/glob.m4: New file.
82819
82820 2005-05-29  Derek Price  <derek@ximbiot.com>
82821             Paul Eggert  <eggert@cs.ucla.edu>
82822
82823         * lib/glob_.h, lib/glob.c: New files.
82824
82825 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82826
82827         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82828         * modules/fts-lgpl (Depends-on): Remove gettext.
82829
82830 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82831
82832         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82833         and don't require gt_INTTYPES_PRI.
82834
82835 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82836
82837         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82838
82839         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82840         the configuration hassle isn't worth it.
82841         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82842         (LONGEST_MODIFIER, PRIuMAX): Remove.
82843
82844 2005-05-27  Bruno Haible  <bruno@clisp.org>
82845
82846         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82847
82848 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82849
82850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82851         _POSIX_PTHREAD_SEMANTICS for Solaris.
82852
82853 2005-05-25  Derek Price  <derek@ximbiot.com>
82854
82855         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82856
82857 2005-05-25  Derek Price  <derek@ximbiot.com>
82858             Paul Eggert  <eggert@cs.ucla.edu>
82859
82860         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82861         * lib/getlogin_r.c, getlogin_r.h: New files.
82862
82863 2005-05-25  Bruno Haible  <bruno@clisp.org>
82864             Derek Price  <derek@ximbiot.com>
82865
82866         * lib/getlogin_r.h: Simplify API documentation.
82867
82868 2005-05-23  Derek Price  <derek@ximbiot.com>
82869
82870         * modules/minmax (Files): Add m4/minmax.m4.
82871         (configure.ac): Add gl_MINMAX.
82872
82873 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82876         so that unistd-safer.h (GPL'ed code) need not be included.
82877
82878 2005-05-22  Bruno Haible  <bruno@clisp.org>
82879
82880         * m4/minmax.m4: New file.
82881         Based on a patch by Derek Price <derek@ximbiot.com>.
82882
82883 2005-05-22  Bruno Haible  <bruno@clisp.org>
82884
82885         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82886         (INT64_MIN): Fix definition.
82887         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82888
82889         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82890         NEED_SIGNED_INT_TYPES.
82891
82892         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82893         HAVE_SYSTEM_INTTYPES.
82894
82895 2005-05-22  Bruno Haible  <bruno@clisp.org>
82896
82897         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82898         Also include <sys/param.h> if it defines MIN, MAX.
82899         Based on a patch by Derek Price <derek@ximbiot.com>.
82900
82901 2005-05-21  Jim Meyering  <jim@meyering.net>
82902
82903         * modules/fts (Files): Add m4/inttypes-pri.m4.
82904         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82905
82906 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82907
82908         New fts module.
82909         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82910         (setup_dir, free_dir): New functions.
82911         (enter_dir, leave_dir): Define trivial
82912         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82913         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82914         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82915         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82916         Move to fts-cycle.c.
82917         (fts_open): Use setup_dir.
82918         (fts_close): Use free_dir.
82919         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82920         This adds a label and some gotos, but the alternatives were messier.
82921         Check for memory allocation failure when entering a dir.
82922         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82923         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82924         (FTS): New member fts_cycle, that is a union that contains the
82925         old active_dir_ht and cycle_state.  All uses changed to mention
82926         fts_cycle.ht and fts_cycle.state.
82927         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82928         fts.c, with the following changes:
82929         (setup_dir, free_dir): New functions.
82930         (enter_dir): Now returns bool.  Return true if successful, false
82931         if memory exhausted.  All callers changed.
82932         Do not bother partly cleaning up on
82933         memory allocation failure; that is free_dir's job.
82934         However, free ad if hash_insert fails, to avoid memory leak.
82935         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82936         fts->fts_options to see which union member to use.
82937
82938 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82939
82940         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82941         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82942
82943 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82944
82945         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82946
82947 2005-05-20  Jim Meyering  <jim@meyering.net>
82948
82949         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82950         Now a macro, to pacify GCC.
82951
82952 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82953
82954         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82955         of -1.
82956
82957 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82958
82959         * lib/chown.c (rpl_chown): Return -1 on failure.
82960
82961 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82962
82963         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82964         Don't check for stddef.h.
82965         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82966         don't use its results.
82967         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82968         since we include them unconditionally.  Don't require
82969         AM_STDBOOL_H, since stdbool is a prerequisite.
82970         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82971         since we assume C89 or better.
82972         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82973         as we don't use their results.
82974         Don't check for fchdir, memmove, memset, strrchr, as we use
82975         them unconditionally.
82976         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82977         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82978
82979 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82980
82981         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82982         Include <stddef.h> unconditionally, since we assume C89 now.
82983         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82984         * lib/fts.c: Include fts_.h first, to check interface.
82985         Do not include intprops.h; no longer needed.
82986         Include cycle-check.h and hash.h, since fts_.h no longer does.
82987         Remove unnecessary casts of closedir to void.
82988         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82989         decide whether to decrement nlinks.
82990         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82991         (FTS): Use struct hash_table * instead of Hash_table, so that
82992         we no longer need to include hash.h here.
82993
82994 2005-05-18  Jim Meyering  <jim@meyering.net>
82995
82996         * modules/dirfd (License): Change to LGPL.  Most of the code
82997         is already in the public domain.
82998
82999 2005-05-18  Jim Meyering  <jim@meyering.net>
83000
83001         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83002         Reported by Yoann Vandoorselaere.
83003
83004 2005-05-17  Jim Meyering  <jim@meyering.net>
83005
83006         * m4/fts.m4: New file, from coreutils.
83007
83008 2005-05-17  Jim Meyering  <jim@meyering.net>
83009
83010         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83011
83012 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83013
83014         Sync from coreutils.
83015         * m4/unlinkdir.m4: New file.
83016
83017 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83018
83019         Sync from coreutils.
83020         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83021         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83022         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83023         White space changes only.
83024         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83025         special.
83026         * lib/yesno.c: Include getline.h, not ctype.h.
83027         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83028         Use getline to remove arbitrary restriction on response length.
83029
83030 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         * config/srclist-update: Spell out "Street" in FSF postal
83033         mail address; this is the style the FSF seems to prefer.
83034
83035         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83036         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83037         this updates FSF postal mail address.
83038
83039         Sync from coreutils.
83040         * modules/unlinkdir: New file.
83041         * modules/yesno (Depends-on): Add getline.
83042         * MODULES.html.sh (File system functions): Add unlinkdir.
83043
83044 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83047         lib/strsep.h:
83048         Change the initial comment to refer to GPL, not LGPL.
83049         gnulib-tool will change it to LGPL as needed.
83050
83051         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83052         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83053         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83054         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83055         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83056         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83057         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83058         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83059         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83060         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83061         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83062         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83063         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83064         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83065         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83066         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83067         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83068         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83069         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83070         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83071         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83072         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83073         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83074         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83075         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83076         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83077         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83078         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83079         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83080         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83081         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83082         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83083         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83084         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83085         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83086         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83087         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83088         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83089         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83090         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83091         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83092         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83093         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83094         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83095         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83096         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83097         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83098         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83099         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83100         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83101         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83102         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83103         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83104         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83105         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83106         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83107         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83108         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83109         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83110         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83111         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83112         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83113         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83114         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83115         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83116         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83117         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83118         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83119         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83120         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83121         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83122         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83123         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83124         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83125         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83126         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83127         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83128         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83129         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83130         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83131         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83132         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83133         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83134         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83135         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83136         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83137         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83138         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83139         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83140         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83141         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83142         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83143         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83144         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83145         lib/yesno.c, lib/yesno.h:
83146         Update FSF postal mail address.
83147
83148 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83149
83150         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83151         tests/test-memmem.c, tests/test-stpncpy.c:
83152         Update FSF postal mail address.
83153
83154 2005-05-13  Bruno Haible  <bruno@clisp.org>
83155
83156         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83157         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83158         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83159         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83160         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83161         Add support for 64-bit integers in the MSVC compiler.
83162
83163 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83164
83165         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83166
83167 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83168
83169         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83170
83171 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83172
83173         * doc/getdate.texi (General date syntax): Don't say that date
83174         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83175         Problem reported by Nic Ferrier.
83176
83177 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83178
83179         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83180         specified in ai_socktype. Fix invalid ai_protocol
83181         check. ai_protocol is usually set to 0 or depending on
83182         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83183         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83184         ai_socktype / ai_protocol in the returned addrinfo structure.
83185
83186 2005-05-10  Simon Josefsson  <jas@extundo.com>
83187
83188         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83189         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83190
83191 2005-05-10  Karl Berry  <karl@gnu.org>
83192
83193         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83194         (from http://www.gnu.org/licenses).
83195         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83196         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83197         fdl.texi suffices.
83198
83199 2005-05-10  Karl Berry  <karl@gnu.org>
83200
83201         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83202         (COPYING.DOC): remove.
83203
83204         * config/srclist-update: new FSF address.
83205
83206 2005-05-10  Derek Price  <derek@ximbiot.com>
83207
83208         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83209         possible.
83210
83211 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83212             Bruno Haible  <bruno@clisp.org>
83213
83214         * modules/inet_ntop: New file.
83215         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83216         inet_ntop.
83217
83218 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83219             Bruno Haible  <bruno@clisp.org>
83220
83221         * m4/inet_ntop.m4: New file.
83222
83223 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83224             Bruno Haible  <bruno@clisp.org>
83225
83226         * lib/inet_ntop.h: New file.
83227         * lib/inet_ntop.c: New file, from glibc with modifications.
83228
83229 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83230
83231         * modules/time_r (License): Change to LGPL.
83232         * modules/extensions (License): Change to LGPL.  Actually,
83233         the license is more permissive than that, but currently gnulib-tool
83234         doesn't know how to handle more-permissive licenses.
83235
83236         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83237         Problem reported by Dave Love.
83238
83239 2005-05-08  Jim Meyering  <jim@meyering.net>
83240
83241         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83242         blank.
83243
83244 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83245
83246         * modules/argmatch (Depends-on): Add stdbool.
83247         * modules/backupfile (Depends-on): Likewise.
83248         * modules/chdir-long (Depends-on): Likewise.
83249         * modules/closeout (Depends-on): Likewise.
83250         * modules/cycle-check (Depends-on): Likewise.
83251         * modules/dirname (Depends-on): Likewise.
83252         * modules/fnmatch (Depends-on): Likewise.
83253         * modules/fsusage (Depends-on): Likewise.
83254         * modules/fwriteerror (Depends-on): Likewise.
83255         * modules/getcwd (Depends-on): Likewise.
83256         * modules/getloadavg (Depends-on): Likewise.
83257         * modules/hard-locale (Depends-on): Likewise.
83258         * modules/makepath (Depends-on): Likewise.
83259         * modules/mountlist (Depends-on): Likewise.
83260         * modules/nanosleep (Depends-on): Likewise.
83261         * modules/posixtm (Depends-on): Likewise.
83262         * modules/quotearg (Depends-on): Likewise.
83263         * modules/readtokens (Depends-on): Likewise.
83264         * modules/readtokens0 (Depends-on): Likewise.
83265         * modules/readutmp (Depends-on): Likewise.
83266         * modules/save-cwd (Depends-on): Likewise.
83267         * modules/strftime (Depends-on): Likewise.
83268         * modules/userspec (Depends-on): Likewise.
83269         * modules/utimecmp (Depends-on): Likewise.
83270         * modules/xgetcwd (Depends-on): Likewise.
83271         * modules/xnanosleep (Depends-on): Likewise.
83272         * modules/xstrtod (Depends-on): Likewise.
83273         * modules/yesno (Depends-on): Likewise.
83274
83275 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83276
83277         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83278         needless checks.
83279
83280 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83281
83282         Merge from coreutils.  Among other things,
83283         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83284         * lib/fd-safer.c: New file.
83285         * lib/fcntl-safer.h, open-safer.c: Remove.
83286         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83287         * lib/dup-safer.c: Include unistd-safer.h first.
83288         Don't include errno.h.
83289         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83290         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83291         * lib/file-type.c: Rely on file-type.h change.
83292         * lib/getloadavg.c: Include unistd-safer.h.
83293         (getloadavg): Use safer open.
83294         * lib/getusershell.c: Include "stdio-safer.h".
83295         (getusershell): Use safer fopen.
83296         * lib/long-options.c (long_options): Use NULL rather than 0.
83297         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83298         'free'.
83299         * lib/modechange.c: Likewise.
83300         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83301         (MODE_DONE): New constant.
83302         (struct mode_change): Remove 'next' member.
83303         (make_node_op_equals): New function; like the old one of the
83304         same name, except it allocates an array.
83305         (mode_compile, mode_create_from_ref): Use it.
83306         (mode_compile): Allocate result as an array, not a linked list.
83307         Parse octal string ourself, so that we catch mistakes like "+0".
83308         (mode_adjust): Arg is an array, not a linked list.
83309         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83310         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83311         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83312         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83313         Remove.  This is now stat-macros.h's job.
83314         (talloc): Remove.  All callers replaced by xalloc, so that
83315         our invokers don't have to worry about reporting memory failures.
83316         (make_node_op_equals): Remove.
83317         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83318         New constants.
83319         (struct mode_change): Moved here from modechange.h.
83320         (mode_append_entry): Remove.
83321         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83322         apps to have incorrect behavior.  Use simpler algorithm for head
83323         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83324         Detect more invalid usages rather than having somewhat-random behavior.
83325         Don't insert an "a=" action, as that leads to incorrect behavior.
83326         (mode_compile, mode_create_from_ref): Return NULL on error instead
83327         of an enum, since now there's only one way to have an error.  All
83328         callers changed.
83329         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83330         at the correct time.  Simplify calculation of "+u" and its ilk.
83331         Don't mishandle "+X".
83332         (mode_free): Remove "register" and localize decls.
83333         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83334         (struct mode_change): Move to modechange.c; callers don't
83335         need to see this stuff.
83336         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83337         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83338         (mode_change, mode_adjust): Reflect the new signatures noted above.
83339         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83340         that might redefine system include files.
83341         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83342         (my_usleep): Use NULL rather than (void *) 0.
83343         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83344         Use siginterrupt to specify that system calls should be interrupted.
83345         (rpl_nanosleep): Move initialization of suspended closer to call of
83346         my_usleep.
83347         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83348         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83349         (desirable_utmp_entry): New function.
83350         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83351         using x2nrealloc, to simplify logic.
83352         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83353         size calculation.  Do not assume utmp file is a regular file.
83354         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83355         (READ_UTMP_CHECK_PIDS): New constant.
83356         * lib/save-cwd.c: Include unistd-safer.h.
83357         (save_cwd): Use fd_safer.
83358         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83359         [!_LIBC] Include "stat-macros.h" instead.
83360         * lib/unistd-safer.h (fd_safer): New decl.
83361
83362 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83363
83364         * modules/getloadavg (Depends-on): Add unistd-safer.
83365         * modules/getusershell (Depends-on): Add stdio-safer.
83366         * modules/lstat (Depends-on): Remove xalloc.
83367         * modules/mkstemp (Depends-on): Add stat-macros.
83368         * modules/modechange (Depends-on): Remove xstrtol.
83369         Add stat-macros, xalloc.
83370         * modules/save-cwd (Depends-on): Add unistd-safer.
83371         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83372         * modules/unistd-safer (Files): Add lib/fd-safer.c
83373         (Makefile.am): Remove lib_SOURCES.
83374
83375         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83376         Remove fcntl-safer; unistd-safer supersedes it.
83377
83378 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83379
83380         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83381         AC_HEADER_STAT.
83382         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83383         (gl_PREREQ_CHOWN): Remove.
83384         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83385         it.  Don't require AC_HEADER_STAT.
83386         (gl_PREREQ_LSTAT): Remove.
83387         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83388         Don't require AC_HEADER_STAT.
83389         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83390         (gl_PREREQ_RMDIR): Remove.
83391         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83392         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83393         the stat-macros module a prerequisite.
83394         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83395         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83396         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83397         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83398         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83399         variable names.
83400         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83401         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83402         variable prefixes.
83403         * m4/fcntl-safer.m4: Remove.
83404         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83405         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83406         Invoke gl_PREREQ_FD_SAFER.
83407         (gl_PREREQ_FD_SAFER): New macro.
83408         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83409         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83410         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83411         Remove duplicate call to AC_LIBOBJ(readutmp).
83412         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83413
83414         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83415         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83416
83417 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83418
83419         * MODULES.html.sh (Misc): Add byteswap.
83420
83421 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83422
83423         * modules/getcwd (Depends-on): Add extensions.
83424         * modules/openat (Depends-on): Likewise.
83425
83426 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83427
83428         * modules/byteswap: New file.
83429
83430 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83431
83432         * m4/byteswap.m4: New file.
83433
83434 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83435
83436         * lib/byteswap_.h: New file.
83437
83438 2005-04-25  Karl Berry  <karl@gnu.org>
83439
83440         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83441
83442 2005-04-25  Albert Chin  <china@thewrittenword.com>
83443
83444         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83445         Toolkit C bug.
83446
83447 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83448
83449         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83450         (func_ln_if_changed): Remove forcibly for no error message
83451         in case file does not exist.
83452
83453 2005-04-19  Simon Josefsson  <jas@extundo.com>
83454
83455         * gnulib-tool (Options): Make --symlink mean --symbolic.
83456
83457 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83458
83459         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83460
83461 2005-04-16  Simon Josefsson  <jas@extundo.com>
83462
83463         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83464
83465 2005-04-15  Simon Josefsson  <jas@extundo.com>
83466
83467         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83468
83469 2005-04-15  Simon Josefsson  <jas@extundo.com>
83470
83471         * gnulib-tool: Rename --symlink to --symbolic.
83472
83473 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83474
83475         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83476         symbolic links to files instead of copying/moving.  Add --aux-dir,
83477         specifying directory relative --dir where auxiliary build tools
83478         are placed.
83479
83480 2005-04-14  Bruno Haible  <bruno@clisp.org>
83481
83482         * modules/allocsa (License): Change to LGPL.
83483         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83484
83485 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83486
83487         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83488         that "UTC +1 second" continues to work.  Problem reported
83489         by Dmitry V. Levin.
83490         (relunit_snumber): New rule.
83491         (relunit): Use it.
83492
83493 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83494
83495         * lib/getdate.y (universal_time_zone_table): New constant.
83496         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83497         universal_time_zone_table.
83498         (lookup_zone): Prefer universal_time_zone_table to
83499         local_time_zone_table, so that "GMT" time stamps are allowed in
83500         London during the summer.  Problem reported by Ian Abbott.
83501
83502 2005-04-12  Jim Meyering  <jim@meyering.net>
83503
83504         * lib/human.c (humblock): Set *options even when returning due to
83505         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83506         warning from gcc-4.
83507
83508 2005-04-09  Jim Meyering  <jim@meyering.net>
83509
83510         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83511         -Wuninitialized: initialize tm0.tm_year.
83512
83513 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83514
83515         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83516         count, since there's no maximum.  All uses changed.
83517         Add member dsts_seen.
83518         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83519         not being INT_MAX.
83520         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83521         Use pc_rels_seen to decide whther a date is absolute.
83522
83523         * lib/getdate.y (number): Don't overwrite year.
83524         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83525         check.
83526
83527 2005-04-02  Simon Josefsson  <jas@extundo.com>
83528
83529         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83530         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83531
83532 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83533
83534         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83535         where no absolute path name can be longer than PATH_MAX.
83536
83537 2005-03-27  Jim Meyering  <jim@meyering.net>
83538
83539         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83540
83541 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83542
83543         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83544         "one's complement" -> "ones' complement" in comment, as per Knuth.
83545         "value of type" -> "type or expression" in comment.
83546         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83547
83548 2005-03-26  Jim Meyering  <jim@meyering.net>
83549
83550         Comment nits.
83551         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83552         Correct typos: s/or/of/.
83553
83554 2005-03-26  Jim Meyering  <jim@meyering.net>
83555
83556         * modules/check-include-files: Move to ../ and rename to...
83557         * check-module: ...this.
83558
83559 2005-03-25  Jim Meyering  <jim@meyering.net>
83560
83561         * modules/xvasprintf (Files): Add xalloc.h.
83562
83563 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83564
83565         * modules/gettext (Files): config/config.rpath ->
83566         build-aux/config.rpath
83567         * modules/iconv (Files): Likewise.
83568         Problem reported by Oskar Liljeblad.
83569
83570 2005-03-23  Jim Meyering  <jim@meyering.net>
83571
83572         * modules/check-include-files: New script to check for
83573         missing dependencies, multiple includes, etc.
83574
83575         * modules/c-strtold (Depends-on): Add xalloc.
83576         * modules/c-strtod (Depends-on): Add xalloc.
83577         * modules/hash (Depends-on): Add xalloc.
83578         (Files): Remove lib/xalloc.h.
83579
83580         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83581         * modules/userspec (Files): Add lib/inttostr.h.
83582
83583 2005-03-23  Jim Meyering  <jim@meyering.net>
83584
83585         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83586
83587 2005-03-22  Jim Meyering  <jim@meyering.net>
83588
83589         * modules/stat-macros: New module.
83590         * modules/canonicalize, modules/euidaccess, modules/file-type,
83591         * modules/filemode, modules/lchown, modules/makepath,
83592         * modules/rmdir, modules/stat: Depend on new stat-macros module
83593         rather than listing lib/stat-macros.h manually.
83594         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83595
83596 2005-03-22  Jim Meyering  <jim@meyering.net>
83597
83598         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83599
83600 2005-03-22  Bruno Haible  <bruno@clisp.org>
83601
83602         * config/srclist.txt: Replace target directory 'config' with
83603         'build-aux'.
83604         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83605         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83606         ../build-aux/.
83607
83608 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83609
83610         * modules/chdir-long (Depends-on): Add mempcpy.
83611
83612         * modules/acl, modules/backupfile, modules/c-strtod,
83613         modules/c-strtold, modules/canon-host, modules/canonicalize,
83614         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83615         modules/exclude, modules/exitfail, modules/file-type,
83616         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83617         modules/getdate, modules/getline, modules/getpagesize,
83618         modules/getpass, modules/getugroups, modules/group-member,
83619         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83620         modules/inttostr, modules/long-options, modules/makepath,
83621         modules/md5, modules/memcasecmp, modules/memcoll,
83622         modules/modechange, modules/mountlist, modules/path-concat,
83623         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83624         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83625         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83626         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83627         modules/strftime, modules/strndup, modules/strverscmp,
83628         modules/timespec, modules/unlocked-io, modules/userspec,
83629         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83630         modules/yesno:
83631         Remove lib_SOURCES line from Makefile.am section, as this is now
83632         done automatically by the corresponding Autoconf macro.
83633
83634 2005-03-21  Jim Meyering  <jim@meyering.net>
83635
83636         Changes imported from coreutils.
83637
83638         * lib/cycle-check.c: Don't include xalloc.h.
83639
83640         * lib/path-concat.c: Don't include assert.h.
83641         (path_concat): Remove assertion that would have triggered
83642         for ABASE starting with more than one slash.
83643         Reported by Andreas Schwab.
83644
83645         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83646         properly when ABASE is an absolute file name.
83647         Correct the description of this function.
83648         Include <assert.h>.
83649         Add an assertion and a test driver.
83650         This fixes a bug introduced on 2004-07-02.
83651         Andreas Schwab reported the resulting failure of cp --parents:
83652         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83653
83654 2005-03-21  Jim Meyering  <jim@meyering.net>
83655
83656         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83657         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83658
83659 2005-03-21  Jim Meyering  <jim@meyering.net>
83660         and  Paul Eggert  <eggert@cs.ucla.edu>
83661
83662         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83663         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83664         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83665         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83666         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83667         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83668         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83669         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83670         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83671         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83672         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83673         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83674         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83675         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83676         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83677         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83678         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83679         for these modules.
83680
83681 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83682
83683         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83684         (which shouldn't happen), generate nothing instead of returning 0
83685         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83686
83687 2005-03-16  Bruno Haible  <bruno@clisp.org>
83688
83689         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83690         HAVE_LONGLONG_64BIT.
83691
83692 2005-03-16  Bruno Haible  <bruno@clisp.org>
83693
83694         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83695         HAVE_LONGLONG_64BIT.
83696
83697 2005-03-16  Bruno Haible  <bruno@clisp.org>
83698
83699         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83700         HAVE_LONGLONG_64BIT.
83701
83702 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83703
83704         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83705         reliably distinguish strftime failure from empty output on POSIX
83706         hosts.
83707
83708 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83711         (iconv_string): Don't guess a size-zero buffer, as that might cause
83712         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83713         result would be 'too large', where 'too large' is (heuristically)
83714         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83715         overflow concerns.  This will prevent some unwanted malloc failures
83716         when the inputs are very large.
83717
83718 2005-03-15  Karl Berry  <karl@gnu.org>
83719
83720         * config/srclist.txt (config.rpath): from gettext.
83721         * config/config.rpath: update.
83722
83723 2005-03-15  Bruno Haible  <bruno@clisp.org>
83724
83725         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83726         to 'negate'.
83727
83728         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83729         variable.
83730
83731         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83732         results.
83733
83734 2005-03-14  Simon Josefsson  <jas@extundo.com>
83735
83736         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83737         <fx@gnu.org>.
83738
83739 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83740
83741         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83742         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83743         intprops.h.
83744         * lib/strtol.c: Likewise.
83745
83746 2005-03-14  Jim Meyering  <jim@meyering.net>
83747
83748         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83749         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83750         to be nonzero so that we (and caller) can detect the difference
83751         between a valid zero-length expansion and an error return, even
83752         when the underlying strftime fails before writing anything into
83753         that location.
83754
83755 2005-03-14  Bruno Haible  <bruno@clisp.org>
83756
83757         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83758         Update from GNU gettext 0.14.3.
83759
83760 2005-03-10  Jim Meyering  <jim@meyering.net>
83761
83762         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83763
83764 2005-03-10  Jim Meyering  <jim@meyering.net>
83765
83766         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83767         so that this module works on systems without fchdir.
83768
83769 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         Factor int-properties macros into a single file, except for
83772         glibc-related files.
83773         * lib/intprops.h: New file.
83774         * lib/getloadavg.c: Include it instead of limits.h.
83775         (INT_STRLEN_BOUND): Remove.
83776         * lib/human.c: Include intprops.h.
83777         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83778         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83779         302/1000.
83780         * lib/inttostr.h: Include intprops.h instead of limits.h.
83781         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83782         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83783         for consistency with intprops.h.
83784         (time_t_is_integer, twos_complement_arithmetic): Use them.
83785         * lib/sig2str.h: Include <signal.h>, intprops.h.
83786         (INT_STRLEN_BOUND): Remove.
83787         * lib/strftime.c (TYPE_SIGNED): Remove.
83788         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83789         * lib/strtol.c: Adjust comments to match intprops.h.
83790         * lib/userspec.c: Include intprops.h.
83791         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83792         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83793         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83794         instead of rolling our own expressions.
83795         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83796
83797         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83798         instead of int.
83799         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83800         the right thing even if adding 1900 would overflow.  Similarly
83801         for tm_mon + 1 and tm_yday + 1.
83802         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83803         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83804         (DO_SIGNED_NUMBER): New macro.
83805         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83806
83807 2005-03-07  Bruno Haible  <bruno@clisp.org>
83808
83809         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83810
83811 2005-03-07  Bruno Haible  <bruno@clisp.org>
83812
83813         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83814
83815 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83816
83817         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83818         (func_import): Only replace files via --import when they have actually
83819         changed.
83820
83821 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83822
83823         * m4/mmap-anon.m4: New file.
83824         * m4/pagealign_alloc.m4: New file.
83825
83826 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83827             Bruno Haible  <bruno@clisp.org>
83828
83829         * modules/pagealign_alloc: New file.
83830         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83831
83832 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83833             Bruno Haible  <bruno@clisp.org>
83834
83835         * lib/pagealign_alloc.h: New file.
83836         * lib/pagealign_alloc.c: New file.
83837
83838 2005-03-03  Bruno Haible  <bruno@clisp.org>
83839
83840         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83841         Use an all-permissive copyright notice, recommended by RMS.
83842
83843 2005-03-02  Bruno Haible  <bruno@clisp.org>
83844
83845         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83846         of AIX, the replacement has to be done only after <string.h> is
83847         included, therefore not in config.h. stpncpy.h does the replacement,
83848         and stpncpy.c uses it.
83849
83850 2005-03-02  Bruno Haible  <bruno@clisp.org>
83851
83852         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83853         stpncpy.c uses it.
83854
83855 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83856
83857         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83858         The workaround isn't strictly needed for POSIX conformance, and
83859         it's too much of a pain to configure and maintain.  We'll ask
83860         people to fix their kernels instead.
83861         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83862         (NANOSLEEP_BUG_WORKAROUND): Remove.
83863         (xnanosleep): Remove the workaround.
83864
83865 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83866
83867         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83868         Reported by Derek Price.
83869         (Include): Add "timespec.h".
83870
83871         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83872
83873 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83874
83875         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83876         to detect nanosleep bug.
83877
83878 2005-03-01  Bruno Haible  <bruno@clisp.org>
83879
83880         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83881
83882 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83883
83884         * modules/gethrxtime: New file.
83885         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83886         (Depends-on): Add gethrxtime.
83887         (configure.ac): Add gl_XNANOSLEEP.
83888         (Makefile.am): Remove lib_SOURCES line.
83889
83890 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83891
83892         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83893         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83894
83895 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83896
83897         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83898         * lib/timespec.h (gettime): Return void, since it always
83899         succeeds now.  All uses changed.
83900         * lib/gettime.c (gettime): Likewise.
83901         [HAVE_NANOTIME]: Prefer nanotime.
83902         Assume gettimeofday succeeds, as POSIX requires.
83903         Assime time () succeeds, since other code already does.
83904         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83905         (timespec_subtract): Remove.
83906         (NANOSLEEP_BUG_WORKAROUND): New constant.
83907         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83908         things considerably.  Use it only on GNU/Linux hosts, since the
83909         workaround shouldn't be needed elsewhere.
83910
83911 2005-02-24  Bruno Haible  <bruno@clisp.org>
83912
83913         * modules/gettext (Files): Add m4/glibc2.m4.
83914
83915 2005-02-24  Bruno Haible  <bruno@clisp.org>
83916
83917         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83918         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83919         * m4/progtest.m4:
83920         Update from GNU gettext 0.14.2.
83921         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83922
83923 2005-02-24  Bruno Haible  <bruno@clisp.org>
83924
83925         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83926         * lib/config.charset: Update from GNU gettext 0.14.2.
83927
83928 2005-02-24  Bruno Haible  <bruno@clisp.org>
83929
83930         * lib/gettext.h: Update from GNU gettext 0.14.2.
83931
83932 2005-02-23  Simon Josefsson  <jas@extundo.com>
83933
83934         * m4/iconvme.m4: New file.
83935
83936 2005-02-23  Jim Meyering  <jim@meyering.net>
83937
83938         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83939         change.
83940         Thanks to Bruno Haible for catching it.
83941
83942 2005-02-22  Simon Josefsson  <jas@extundo.com>
83943
83944         * modules/iconvme: New file.
83945
83946         * MODULES.html.sh: Add iconvme.
83947
83948 2005-02-22  Simon Josefsson  <jas@extundo.com>
83949
83950         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83951
83952 2005-02-22  Simon Josefsson  <jas@extundo.com>
83953
83954         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83955
83956 2005-02-22  Jim Meyering  <jim@meyering.net>
83957
83958         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83959         s/ifndef/ifdef/.
83960
83961 2005-02-20  Neil Conway  <neilc@samurai.com>
83962
83963         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83964         returned by OSX/Darwin if the specified buffer is not large
83965         enough for the hostname.
83966
83967 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83968
83969         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83970         pass it to _help, otherwise the latter coredumps trying to
83971         dereference state.root_argp.
83972
83973 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83974
83975         * modules/chdir-long (Depends-on): Add memrchr.
83976         * modules/memrchr (Files): Add lib/memrchr.h.
83977         (Include): "memrchr.h".
83978
83979 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83980
83981         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83982
83983 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83984
83985         * lib/memrchr.h: New file.
83986         * lib/chdir-long.c: Include it.
83987         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83988         Don't bother including stddef.h.
83989
83990 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83993         inclusion.
83994         Include <sys/types.h>, for dev_t.
83995         (ME_DUMMY, ME_REMOTE): Move from here....
83996         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83997         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83998         Dmitry V. Levin.
83999         Include mountlist.h first, to test the interface.
84000
84001 2005-01-29  Bruno Haible  <bruno@clisp.org>
84002
84003         * lib/progname.c (program_name): Initialize.
84004         Needed when linking statically on MacOS X.
84005
84006 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84007
84008         Sync from coreutils.
84009         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84010         (Depends-on): Add c-strtod.
84011         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84012
84013 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84014
84015         Sync from coreutils.
84016         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84017
84018         Remove files that are specific to coreutils.
84019         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84020
84021 2005-01-28  Bruno Haible  <bruno@clisp.org>
84022
84023         * modules/javacomp: New file.
84024         * MODULES.html.sh (Java): Add javacomp.
84025
84026 2005-01-28  Bruno Haible  <bruno@clisp.org>
84027
84028         * m4/javacomp.m4: New file, from GNU gettext.
84029
84030 2005-01-28  Bruno Haible  <bruno@clisp.org>
84031
84032         * lib/javacomp.sh.in: New file, from GNU gettext.
84033         * lib/javacomp.h: New file, from GNU gettext.
84034         * lib/javacomp.c: New file, from GNU gettext.
84035
84036 2005-01-26  Simon Josefsson  <jas@extundo.com>
84037
84038         * lib/gai_strerror.c: Use GPL in header.
84039
84040 2005-01-26  Bruno Haible  <bruno@clisp.org>
84041
84042         * modules/javaexec: New file.
84043         * MODULES.html.sh (Java): Add javaexec.
84044
84045 2005-01-26  Bruno Haible  <bruno@clisp.org>
84046
84047         * m4/javaexec.m4: New file, from GNU gettext.
84048
84049 2005-01-26  Bruno Haible  <bruno@clisp.org>
84050
84051         * lib/javaexec.sh.in: New file, from GNU gettext.
84052         * lib/javaexec.h: New file, from GNU gettext.
84053         * lib/javaexec.c: New file, from GNU gettext.
84054
84055 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84056
84057         * modules/lchown (Depends-on): Remove lchown.h
84058
84059 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84060
84061         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84062         must be defined if the header file was not found, in order
84063         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84064
84065 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84066
84067         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84068         initializers for struct pentry_state.
84069         (__argp_error): Check return value of __asprintf
84070         (__argp_failure): Translate error message
84071
84072         * lib/argp-parse.c: Removed braces around the expansion of N_()
84073
84074 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84075
84076         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84077         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84078         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84079         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84080         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84081         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84082         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84083         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84084         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84085         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84086         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84087         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84088         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84089         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84090         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84091         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84092         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84093         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84094         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84095         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84096         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84097         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84098         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84099         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84100         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84101         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84102         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84103         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84104         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84105         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84106         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84107         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84108         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84109         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84110         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84111         Use an all-permissive copyright notice, recommended by RMS.
84112
84113 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84114
84115         * modules/chdir-long (Depends-on): Remove mempcpy.
84116
84117 2005-01-21  Jim Meyering  <jim@meyering.net>
84118
84119         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84120         same value as for Solaris 9.
84121
84122         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84123         component length.  This included changing the parameter to be
84124         of type `char *' rather than `char const *'.
84125         * lib/chdir-long.h (chdir_long): Update prototype.
84126
84127         * lib/openat.c (fdopendir, fstatat): New functions.
84128         * lib/openat.h: Include headers required for use of DIR and struct
84129         stat.
84130         [AT_SYMLINK_NOFOLLOW]: Define.
84131         (fdopendir, fstatat): Add prototypes.
84132
84133 2005-01-21  Bruno Haible  <bruno@clisp.org>
84134
84135         * modules/classpath: New file.
84136         * MODULES.html.sh (Java): Add classpath.
84137
84138 2005-01-21  Bruno Haible  <bruno@clisp.org>
84139
84140         * lib/classpath.h: New file, from GNU gettext.
84141         * lib/classpath.c: New file, from GNU gettext.
84142
84143 2005-01-20  Simon Josefsson  <jas@extundo.com>
84144
84145         * modules/version-etc-fsf: New file.
84146
84147 2005-01-20  Simon Josefsson  <jas@extundo.com>
84148
84149         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84150         * lib/version-etc.c: Remove version_etc_copyright.
84151         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84152         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84153
84154 2005-01-20  Simon Josefsson  <jas@extundo.com>
84155
84156         * lib/base64.h (isbase64): Add.
84157
84158         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84159         using a unsigned prototype, don't inline.
84160         (base64_decode): Use it.
84161
84162 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84163
84164         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84165         it.
84166
84167 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84168
84169         * lib/save-cwd.c (save_cwd): Remove code to support the case
84170         where fchdir is missing or flaky.
84171
84172 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84173
84174         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84175
84176 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84177
84178         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84179         AC_LIBSOURCES now does this.
84180         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84181         with new ullong_max module.
84182
84183 2005-01-19  Bruno Haible  <bruno@clisp.org>
84184
84185         * modules/sh-quote: New file.
84186         * MODULES.html.sh (Executing programs): Add sh-quote.
84187
84188 2005-01-19  Bruno Haible  <bruno@clisp.org>
84189
84190         * lib/sh-quote.h: New file, from GNU gettext.
84191         * lib/sh-quote.c: New file, from GNU gettext.
84192
84193 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84194
84195         Merge from coreutils.
84196         * m4/ullong_max.m4: New file.
84197         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84198         (gl_MACROS): Assume localeconv exists.
84199
84200 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84201
84202         Merge changes from coreutils, as described below in several
84203         changelogs dated today.
84204
84205         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84206         (O_DIRECTORY): Remove; not needed here, since "." must be
84207         a directory.  All uses removed.
84208         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84209         universal on Suns, and we also need to test for IRIX.
84210         Revamp code to use 'if' rather than '#if'.
84211         Avoid unnecessary comparison of cwd->desc to 0.
84212
84213         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84214         for known valid error numbers rather than observed invalid ones.
84215
84216 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84217
84218         * modules/ullong_max: New file.
84219
84220         * modules/chdir-long, modules/openat: New files.
84221         * modules/save-cwd (Depends-on): Depend on chdir-long.
84222         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84223
84224 2005-01-18  Jim Meyering  <jim@meyering.net>
84225
84226         Merge from coreutils.
84227         * m4/chdir-long.m4, m4/openat.m4: New files.
84228         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84229         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84230         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84231         is sane and DOES follow symlinks.  Besides, testing 20 different
84232         systems found no broken chown implementations.
84233         Prompted by a change in rsync's copy of this macro.
84234         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84235
84236         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84237
84238         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84239         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84240         NULL-means-set-to-current-time semantics.
84241         Remove temporary file immediately, rather than waiting
84242         for configure's at-exit trap code to do it.
84243
84244 2005-01-18  Jim Meyering  <jim@meyering.net>
84245
84246         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84247
84248         * lib/utimens.c (futimens): Account for the fact that futimes
84249         can also fail with errno == ENOSYS or errno == ENOENT.
84250         Patch from Dmitry V. Levin.
84251
84252         Change the name of the robust chdir function from chdir to chdir_long.
84253         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84254         (restore_cwd): Use chdir_long, not chdir.
84255         * lib/chdir-long.c: Renamed from chdir.c.
84256         * lib/chdir-long.h: Renamed from chdir.h.
84257         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84258         Hurd.
84259
84260 2005-01-18  Bruno Haible  <bruno@clisp.org>
84261
84262         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84263         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84264         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84265         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84266         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84267         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84268         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84269         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84270         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84271         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84272         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84273         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84274         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84275         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84276         Use an all-permissive copyright notice, recommended by RMS.
84277
84278 2005-01-18  Bob Proulx  <bob@proulx.com>
84279
84280         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84281         simplify offsetof() macro construct to avoid compile failure with
84282         native HP-UX 11.0 ANSI C compiler.
84283
84284 2005-01-17  Bruno Haible  <bruno@clisp.org>
84285
84286         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84287         redundant because stpncpy.m4 takes care of it.
84288
84289 2005-01-17  Bruno Haible  <bruno@clisp.org>
84290
84291         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84292
84293 2005-01-17  Bruno Haible  <bruno@clisp.org>
84294
84295         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84296         used.
84297
84298 2005-01-17  Bruno Haible  <bruno@clisp.org>
84299
84300         * lib/fwriteerror.h (fwriteerror): Change specification to include
84301         fclose.
84302         * lib/fwriteerror.c: Include <stdbool.h>.
84303         (fwriteerror): At the end, close the file stream. Record whether
84304         stdout was already closed.
84305
84306 2005-01-17  Bruno Haible  <bruno@clisp.org>
84307
84308         * lib/execute.c (environ): Declare if needed.
84309         * lib/pipe.c (environ): Likewise.
84310         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84311
84312 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84313
84314         * modules/argp: Depend on vsnprintf
84315
84316 2005-01-10  Jim Meyering  <jim@meyering.net>
84317
84318         * modules/closeout (Depends-on): Add atexit.
84319
84320 2005-01-06  Bruno Haible  <bruno@clisp.org>
84321
84322         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84323
84324 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84325
84326         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84327         definitions to be after all include files, to avoid collisions.
84328         Problem reported by Bob Proulx.
84329
84330 2005-01-04  Jim Meyering  <jim@meyering.net>
84331
84332         Changes imported from coreutils.
84333         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84334         as the mkstemp template, use a temporary directory and an
84335         8.3-friendly template to avoid trouble on systems like DJGPP.
84336         Reported by Juan M. Guerrero via Stepan Kasal.
84337         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84338         close. Remove the temporary directory right away, rather than waiting
84339         for configure's at-exit trap code to do it.
84340         Suggestion from Stepan Kasal.
84341
84342 2005-01-01  Simon Josefsson  <jas@extundo.com>
84343
84344         * gnulib-tool: Print #include directives when --import'ing.
84345
84346 2004-12-28  Simon Josefsson  <jas@extundo.com>
84347
84348         * tests/test-base64.c: Include required header files.  Remove
84349         unused variables.
84350
84351 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84352
84353         * modules/error (Depends-on): Remove gettext.
84354
84355 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84358         not needed.  This removes a dependency on the gettext module.
84359         [defined _LIBC]: Do not include <libintl.h>; not needed.
84360
84361 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84364         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84365
84366 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84367
84368         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84369         HAVE_DECL_STRTOLD.
84370
84371 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * modules/getdate (Depends-on): Remove alloca-opt.
84374
84375 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84376
84377         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84378
84379 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84380
84381         * lib/argp-parse.c: Include <stddef.h>.
84382         (alignof, alignto): New macros.
84383         (parser_init): Don't assume that void * is aligned sufficiently
84384         for struct option.
84385
84386         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84387         need to extend the stack.
84388         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84389         large.
84390
84391 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84392
84393         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84394
84395 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84396
84397         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84398         (2004-10-24) change.  Apparently this was a false alarm.
84399
84400         * modules/getdate: Depend on alloca-opt, not alloca.
84401
84402 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84403
84404         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84405         Remove now-obsolete comment about AIX.
84406         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84407         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84408         (YYMAXDEPTH): New macro.
84409
84410 2004-12-18  Simon Josefsson  <jas@extundo.com>
84411
84412         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84413
84414 2004-12-18  Bruno Haible  <bruno@clisp.org>
84415
84416         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84417
84418 2004-12-18  Bruno Haible  <bruno@clisp.org>
84419
84420         * lib/fatal-signal.c (fatal_signals): Make non-const.
84421         (init_fatal_signals): New function.
84422         (uninstall_handlers, install_handlers): Ignore signals that were set to
84423         SIG_IGN.
84424         (at_fatal_signal): Call init_fatal_signals.
84425         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84426         SIG_IGN.
84427         Reported by Paul Eggert.
84428
84429 2004-12-18  Bruno Haible  <bruno@clisp.org>
84430
84431         * doc/alloca.texi: New file.
84432         * doc/alloca-opt.texi: New file.
84433
84434 2004-12-17  Jim Meyering  <jim@meyering.net>
84435
84436         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84437         Otherwise, install-sh could exit with improper exit status when
84438         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84439
84440 2004-12-16  Simon Josefsson  <jas@extundo.com>
84441
84442         * tests/test-base64.c: Add license.
84443
84444 2004-12-15  Stepan Kasal  <address@hidden>
84445
84446         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84447
84448 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84449
84450         * modules/getcwd (Files): Add m4/d-ino.m4.
84451         Suggested by Mark D. Baushke.
84452
84453 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84454
84455         * lib/getdate.y (textint): New member "negative".
84456         (time_zone_hhmm): New function.
84457         Expect 14 shift-reduce conflicts, not 13.
84458         (o_colon_minutes): New rule.
84459         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84460         (yylex): Set the "negative" member of signed numbers.
84461
84462 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84463
84464         * doc/getdate.texi (Time of day items, Time zone items):
84465         Describe new formats +00:00, UTC+00:00.
84466
84467 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84468
84469         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84470         spurious "-l"s.  Problem reported by Stepan Kasal.
84471
84472 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84473
84474         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84475         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84476
84477 2004-12-04  Simon Josefsson  <jas@extundo.com>
84478
84479         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84480         Vandoorselaere <yoann@prelude-ids.org>.
84481
84482 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84483
84484         Changes imported from coreutils.
84485         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84486         exist.
84487         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84488
84489 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84490
84491         Changes imported from coreutils.
84492         * lib/hard-locale.c: Assume <locale.h> exists.
84493         Include "strdup.h".
84494         (GLIBC_VERSION): New macro.
84495         (hard_locale): Assume setlocale exists.
84496         Rewrite to avoid #ifdef.
84497         Use strdup rather than malloc + strcpy.
84498         * lib/human.c: Assume <locale.h> exists.
84499         (human_readable): Assume localeconv exists.
84500
84501 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84502
84503         * modules/hard-locale (Depends-on): Add strdup.
84504
84505 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84506
84507         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84508         convert T2, not T.  (Imported from libc.)
84509
84510 2004-11-30  Simon Josefsson  <jas@extundo.com>
84511
84512         * modules/restrict (License): Change to LGPL.
84513
84514 2004-11-30  Simon Josefsson  <jas@extundo.com>
84515
84516         * m4/restrict.m4: Add copyright and copying conditions.
84517
84518 2004-11-30  Simon Josefsson  <jas@extundo.com>
84519
84520         * m4/base64.m4: New file.
84521
84522 2004-11-30  Simon Josefsson  <jas@extundo.com>
84523
84524         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84525         base64.
84526
84527         * tests/test-base64.c: New file.
84528
84529         * modules/base64: New file.
84530
84531 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84532
84533         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84534         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84535
84536         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84537
84538 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84539
84540         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84541         (__getcwd.c): Don't restore errno; glibc doesn't.
84542         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84543         first, falling back to our code only if its results look suspicious.
84544         Ensure that the resulting buffer is only as large as necessary.
84545
84546         * lib/readutmp.c: Include readutmp.h first.
84547         Include <errno.h>, since readutmp.h no longer does that.
84548         * lib/readutmp.h: Don't include <errno.h>,
84549         <sys/param.h>, <time.h>; not needed to establish interface.
84550         (errno): Remove decl.
84551         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84552         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84553         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84554
84555 2004-11-28  Simon Josefsson  <jas@extundo.com>
84556
84557         * lib/base64.h, base64.c: New file.
84558
84559 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84560
84561         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84562
84563 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84564
84565         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84566         (Depends-on): Remove pathmax, same.  Add mempcpy.
84567         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84568         (Makefile.am): Append getcwd.h to lib_SOURCES.
84569         (Include): Add getcwd.h.
84570         (Maintainer): Change from Jim Meyering to "all, glibc",
84571         since getdate now uses intended-for-glibc code.
84572         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84573         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84574
84575 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84578         HP's ANSI C compiler.
84579         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84580         Declaring int functions causes warnings on some modern systems and
84581         shouldn't be needed to compile on ancient ones.
84582         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84583         defined.
84584
84585         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84586         with the following changes.
84587         (__set_errno): Parenthesize properly.
84588         Include <stdbool.h>.
84589         (MIN, MAX, MATCHING_INO): New macros.
84590         (__getcwd): Define with prototype, not K&R form.
84591         Use heuristics to allocate default buffer on stack if possible.
84592         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84593         behavior, and to avoid the PATH_MAX limit when computing
84594         ../../../../...
84595         Use MATCHING_INO to compare inode number to file.
84596         Check for arithmetic overflow in size calculations.
84597         Fix bug in reallocation of dot array that caused getcwd to fail
84598         on directories nested deeper than 75.
84599         Be more careful about saving errno on error.
84600         Do not use realloc; use only free+malloc, as this is a bit
84601         more flexible and avoids a needless copy operation.
84602         Do not inspect st_dev and st_ino for symbolic links; POSIX
84603         doesn't specify the latter.
84604         Check for closedir errors.
84605         Avoid needless casts.
84606         Use "#ifdef weak_alias" around weak_alias, to be like other
84607         glibc code.
84608         The following changes to getcwd.c have effect only when used in
84609         gnulib; they have no effect inside glibc proper.
84610         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84611         as alloca isn't used.
84612         (alloca, __alloca): Likewise.
84613         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84614         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84615         unconditionally, as gnulib assumes C89 or better.
84616         Do not include <sys/param.h>.
84617         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84618         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84619         better.
84620         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84621         Include <dirent.h> in a way that is compatible with modern Autoconf.
84622         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84623         New macros, if not already defined.
84624         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84625         Use "_LIBC", not "defined _LIBC", for consistency.
84626         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84627         a mempcpy module.
84628         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84629         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84630         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84631         credit only to Jim Meyering and adjust the copyright dates.
84632         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84633         <stdlib.h>, <unistd.h>, "pathmax.h".
84634         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84635         (INITIAL_BUFFER_SIZE): Remove.
84636         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84637
84638 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84639
84640         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84641         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84642         Use the _ONCE methods, for efficiency.
84643         Check for fcntl.h.  In test program, include <errno.h>
84644         and <fcntl.h> if available.  Remove old K&R cruft from
84645         test program.  Check for common errors in GNU/Linux,
84646         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84647         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84648         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84649         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84650         name accordingly.
84651         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84652         accommodate new getcwd.c.
84653         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84654         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84655         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84656         that's all we need now.
84657
84658 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84659
84660         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84661         argp-parse.c depends on getopt internals, that means we should
84662         always use our getopt, to be on the safe side.
84663         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84664         order not to spoil the result of an eventual previous invocation
84665         of gl_GETOPT_SUBSTITUTE.
84666
84667 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84668
84669         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84670         redefinition warnings. To avoid them, include the defines
84671         in `#if !defined __need_getopt ... #endif'. The only place
84672         where __getopt_argv_const is used is in definitions
84673         of getopt_long and getopt_long_only below, which are as well
84674         protected by `#ifndef __need_getopt'.
84675         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84676         __need_getopt after including <stdio.h> and <unistd.h> These
84677         headers might have defined it.
84678
84679 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84680
84681         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84682
84683 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84684
84685         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84686         (futimens): New function, which uses futimes if available.
84687         (futimens, utimens): Support timespec==NULL, with same semantics
84688         as utime and utimens.
84689         * lib/utimens.h (futimens): New decl.
84690
84691 2004-11-23  Jim Meyering  <jim@meyering.net>
84692
84693         * lib/getopt_.h: Remove trailing blanks.
84694
84695 2004-11-23  Jim Meyering  <jim@meyering.net>
84696
84697         * lib/__fpending.c: Add comment.
84698
84699 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84700
84701         * modules/canonicalize (Depends-on): Add xreadlink.
84702         Problem reported by James Youngman.
84703
84704 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84705
84706         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84707         New macros.
84708         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84709         optopt): Use them instead of invoking ## directly; otherwise, the
84710         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84711
84712 2004-11-19  Bruno Haible  <bruno@clisp.org>
84713
84714         * lib/strtok_r.c: Move comments from here...
84715         * lib/strtok_r.h: ... to here.
84716
84717 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84718
84719         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84720         implementations that mishandle size_t overflow.
84721
84722 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84723
84724         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84725         might fail.  Problem reported by Yoann Vandoorselaere.
84726         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84727         implementations that mishandle size_t overflow.
84728
84729 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84730
84731         * modules/canon-host (Depends-on): Add strdup.
84732
84733 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84734
84735         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84736
84737 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         * lib/canon-host.c: Include "strdup.h".
84740         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84741         Use strdup instead of malloc/strcpy to duplicate strings.
84742
84743         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84744         (human_space_before_unit): New constant.
84745         * lib/human.c (human_readable): Support it.
84746
84747         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84748         (xgetcwd): Set errno correctly when failing.
84749         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84750         the failure is actually due to a PATH_MAX problem.
84751
84752         Further getopt changes to make it more likely that glibc will
84753         buy the changes back.
84754         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84755         (getopt): Use it, so to preserve glibc semantic
84756         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84757         when compiling for libc.
84758         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84759         (getopt_long, getopt_long_only): Use it.
84760
84761         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84762         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84763         (getopt): Argv is now char * const *, as per standard.
84764         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84765         not char *__getopt_argv_const *.
84766         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84767         _getopt_long_only_r): Likewise.
84768         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84769         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84770         _getopt_long_r, _getopt_long_only_r): Likewise.
84771         * lib/getopt_.h (__getopt_argv_const): Remove.
84772         (getopt): Argv is now char * const *, as per standard.
84773
84774         * lib/getdate.y (tORDINAL): New token.
84775         (day, relunit): Allow it for relative times.
84776         (relative_time_table): Use tORDINAL for ordinals.
84777
84778 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84779
84780         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84781         Document that "second" isn't allowed as an ordinal number.
84782
84783 2004-11-16  Jim Meyering  <jim@meyering.net>
84784
84785         * modules/closeout (Depends-on): Add fpending.
84786
84787 2004-11-15  Jim Meyering  <jim@meyering.net>
84788
84789         * lib/closeout.c: Include "__fpending.h" once again.
84790         Include <stdbool.h>.
84791         (close_stdout): Don't fail just because stdout was closed initially,
84792         since some programs don't write to stdout in the normal course of
84793         operation (other than --version and --help), and we don't want this
84794         function to make e.g. `touch file >&-' fail.
84795         But do fail if it was closed and someone has tried to write to it.
84796         E.g., `printf foo >&-' must fail.
84797
84798 2004-11-13  Jim Meyering  <jim@meyering.net>
84799
84800         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84801
84802 2004-11-12  Simon Josefsson  <jas@extundo.com>
84803
84804         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84805         small doc fix is still pending.
84806
84807 2004-11-11  Simon Josefsson  <jas@extundo.com>
84808
84809         * modules/strtok_r: New file.
84810
84811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84812         strtok_r.
84813
84814 2004-11-11  Simon Josefsson  <jas@extundo.com>
84815
84816         * m4/strtok_r.m4: New file.
84817
84818         * m4/getopt.m4: Replace opterr.
84819
84820 2004-11-11  Simon Josefsson  <jas@extundo.com>
84821
84822         * lib/strtok_r.h, strtok_r.c: New file.
84823
84824 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84825
84826         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84827         of replacing opterr, getopt, etc.  This should handle the
84828         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84829
84830 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84831
84832         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84833         we can stop lying to compilers about the constness of argv when we
84834         are compiled outside glibc.
84835         (getopt, getopt_long, getopt_long_only): Use it.
84836         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84837         _getopt_internal, getopt): Likewise.
84838         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84839         _getopt_long_only_r): Likewise.
84840         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84841         _getopt_long_r, _getopt_long_only_r): Likewise.
84842
84843         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84844         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84845         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84846         the other external symbols.
84847         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84848         declaration, since the above renaming now works around collisions.
84849
84850 2004-11-11  Jim Meyering  <jim@meyering.net>
84851
84852         * lib/linebreak.c: Remove trailing blanks.
84853         * lib/alloca_.h: Likewise.
84854         * lib/acosl.c: Likewise.
84855         * lib/euidaccess.c: Likewise.
84856         * lib/allocsa.h: Likewise.
84857
84858 2004-11-10  Simon Josefsson  <jas@extundo.com>
84859
84860         * m4/getaddrinfo.m4: New file.
84861
84862 2004-11-10  Simon Josefsson  <jas@extundo.com>
84863
84864         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84865
84866 2004-11-10  Simon Josefsson  <jas@extundo.com>
84867
84868         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84869         getaddrinfo.
84870
84871         * modules/getaddrinfo: New file.
84872
84873 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84874
84875         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84876
84877 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84878
84879         * lib/mktime.c (SHR): New macro, which is a portable
84880         substitute for >> that should work even on Crays.
84881         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84882         Problem reported by Mark D. Baushke in
84883         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84884         * lib/getdate.y (SHR): Likewise.
84885         (tm_diff): Use it.
84886         * lib/strftime.c (SHR): Likewise.
84887         (tm_diff): Use it.
84888         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84889         quote_these_too, so that right shifts are well defined.  All uses
84890         changed.
84891
84892 2004-11-10  Jim Meyering  <jim@meyering.net>
84893
84894         Ensure that no close failure goes unreported.
84895         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84896         return early when it seems there's nothing to flush.
84897         Don't include __fpending.h.
84898
84899 2004-11-10  Jim Meyering  <jim@meyering.net>
84900
84901         * modules/closeout (Depends-on): Remove fpending.
84902
84903 2004-11-10  Jim Meyering  <jim@meyering.net>
84904
84905         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84906
84907 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84908
84909         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84910         gl_FUNC_STRFTIME.
84911         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84912         and AC_REQUIRE when possible, to avoid duplicate checks.
84913         Check for <wchar.h>.
84914
84915 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84916
84917         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84918
84919 2004-11-09  Bruno Haible  <bruno@clisp.org>
84920
84921         * m4/sockpfaf.m4: New file.
84922
84923 2004-11-05  Bruno Haible  <bruno@clisp.org>
84924
84925         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84926         Reported by Mark D. Baushke <mdb@cvshome.org>.
84927
84928 2004-11-04  Bruno Haible  <bruno@clisp.org>
84929
84930         2004-09-11  Bruno Haible  <bruno@clisp.org>
84931                 * allocsa.valgrind: New file.
84932         2004-02-06  Bruno Haible  <bruno@clisp.org>
84933                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84934                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84935                 Reported by Christopher Seip <chris.seip@hp.com>.
84936
84937 2004-11-04  Bruno Haible  <bruno@clisp.org>
84938
84939         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84940         (Makefile.am): Distribute it.
84941
84942 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84943
84944         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84945         with errno == ERANGE if the buffer is too small.
84946         Problem reported by Mark D. Baushke.
84947
84948 2004-11-03  Albert Chin  <china@thewrittenword.com>
84949             Paul Eggert  <eggert@cs.ucla.edu>
84950
84951         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84952         equivalent, substitute $ac_type for equivalent type rather than
84953         blindly using uint32_t *always* which won't work if uint32_t is not
84954         available.  Define _UINT32_T to work around typedef of uint32_t if
84955         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84956         2.5.1.
84957
84958 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84959
84960         * m4/jm-macros.m4: Sync from coreutils.
84961         (gl_MACROS): Check for mbrlen, for pathchk.
84962         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84963
84964 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84965
84966         * lib/xreadlink.c (MAXSIZE): New macro.
84967         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84968         size does not exceed MAXSIZE.  Avoid cast.
84969         As suggested by Mark D. Baushke in
84970         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84971         if readlink fails with buffer size just under MAXSIZE, try again
84972         with MAXSIZE.
84973
84974 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84975
84976         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84977
84978 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84979         and  Paul Eggert  <eggert@cs.ucla.edu>
84980
84981         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84982         (get_date): Overparenthesize to avoid GCC warning.
84983
84984 2004-11-02  Bruno Haible  <bruno@clisp.org>
84985
84986         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84987         returns void.
84988
84989 2004-11-02  Bruno Haible  <bruno@clisp.org>
84990
84991         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84992         function returns void.
84993
84994 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84995
84996         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84997         fflush_unlocked, flockfile, funlockfile, funlockfile,
84998         fputs_unlocked, putc_unlocked.
84999
85000 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85001
85002         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85003         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85004         already declared.
85005
85006 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85007
85008         * modules/getdate (Files): Add doc/getdate.texi.
85009         (Depends-on): Add setenv, xalloc.
85010
85011 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85012
85013         * lib/getdate.y: Add support for TZ="foo" within a date string.
85014         Fix some bugs near time_t boundaries.  Reject dates with
85015         out-of-range components, e.g., "Sept 31".
85016         Include <stdlib.h>, "setenv.h", "xalloc.h".
85017         (ISDIGIT_LOCALE): Remove; unused.
85018         Note that the TZ and time functions used here are not reentrant.
85019         (mktime_ok, get_tz): New functions.
85020         (TZBUFSIZE): New constant.
85021         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85022         This requires that we sometimes generate our own TZ="XXX..." setting.
85023
85024 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85025
85026         * doc/getdate.texi: New file, from coreutils with modifications for
85027         the new TZ parsing.
85028
85029 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85030
85031         * lib/mktime.c (not_equal_tm): Remove redundant check.
85032
85033 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85034
85035         * modules/regex (lib_SOURCES): Add regex.c.
85036         Reported by James Youngman in
85037         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85038
85039 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85040
85041         * lib/getdate.y: Use Bison 1.875 features, and some minor
85042         code cleanups.  This change does not affect semantics.
85043         Don't include <stdlib.h>; no longer needed.
85044         Don't include unlocked-io.h; only the "#if TEST" code uses
85045         stdio, and performance isn't crucial there.
85046         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85047         Bison 1.875 features as described below.
85048         All uses of "PC." replaced by "pc->".
85049         (YYSTYPE): Add a forward declaration.
85050         (yylex, yyerror): Use full prototypes in forward decls.
85051         Use "%pure-parser" rather than obsolescent "%pure_parser".
85052         Use %parse-param and %lex-param instead of obsolescent
85053         YYPARSE_PARAM and YYLEX_PARAM.
85054         (meridian_table, month_and_day_table, time_units_table,
85055         relative_time_table, time_zone_table, military_table,
85056         lookup_zone, lookup_word, get_date):
85057         Use NULL instead of 0 where appropriate.
85058         (to_hour): Avoid abort (), to avoid a dependency on
85059         stdlib.h.
85060         (yyerror, yylex): Now accepts parser_control * arg.
85061         (main) [TEST]: Use '\0' rather than 0 for char.
85062
85063 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85064
85065         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85066
85067 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85068
85069         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85070         It's now the caller's responsibility to handle the case where
85071         !HAVE_GETPAGESIZE && !defined getpagesize.
85072
85073         * lib/mktime.c (leapyear): Arg is long int, not int.
85074
85075 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85076
85077         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85078
85079 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85080
85081         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85082         missing.  Problem reported by James Youngman.
85083
85084 2004-10-16  Simon Josefsson  <jas@extundo.com>
85085
85086         * gnulib-tool: Fix comments.  Fix parse problem.
85087         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85088
85089 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85090
85091         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85092         implementation of getopt_long.  Problem reported by Alexander Taler in:
85093         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85094
85095 2004-10-15  Bruno Haible  <bruno@clisp.org>
85096
85097         * gnulib-tool: Untabify. Initialize supplied_libname.
85098         (func_usage): More homogenous output.
85099         (func_modules_transitive_closure, func_modules_to_filelist,
85100         func_emit_lib_Makefile_am): New functions.
85101         (func_import): New function, extracted from big case statement. Use
85102         func_get_license, func_modules_transitive_closure,
85103         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85104         opt_lgpl. Don't use test -a, as it's not portable.
85105         (func_create_testdir): Use func_modules_transitive_closure,
85106         func_modules_to_filelist, func_emit_lib_Makefile_am.
85107
85108 2004-10-15  Bruno Haible  <bruno@clisp.org>
85109
85110         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85111
85112 2004-10-15  Bruno Haible  <bruno@clisp.org>
85113
85114         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85115         the portions belonging to each module.
85116         Suggested by Derek Robert Price <derek@ximbiot.com>.
85117
85118 2004-10-12  Simon Josefsson  <jas@extundo.com>
85119
85120         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85121         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85122         to real functions.
85123
85124 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85125
85126         * modules/vsnprintf: New file.
85127
85128 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85129
85130         * m4/vsnprintf.m4: New file.
85131
85132 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85133
85134         * lib/vsnprintf.h: New file.
85135         * lib/vsnprintf.c: New file.
85136
85137 2004-10-11  Bruno Haible  <bruno@clisp.org>
85138
85139         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85140         vsnprintf.
85141
85142 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85143
85144         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85145
85146 2004-10-07  Bruno Haible  <bruno@clisp.org>
85147
85148         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85149         fits into the provided buffer.
85150
85151 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85152
85153         * lib/diacrit.c, diacrit.h: Add GPL notice.
85154
85155         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85156         notice.
85157         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85158         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85159         This avoids a potential constant-folding bug.
85160
85161 2004-10-05  Bruno Haible  <bruno@clisp.org>
85162
85163         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85164         for the declaration of strsep.
85165
85166 2004-10-05  Bruno Haible  <bruno@clisp.org>
85167
85168         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85169
85170 2004-10-04  Simon Josefsson  <jas@extundo.com>
85171
85172         * modules/memmem: New file.
85173         * tests/test-memmem.c: New file.
85174         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85175
85176 2004-10-04  Simon Josefsson  <jas@extundo.com>
85177
85178         * m4/memmem.m4: New file.
85179
85180 2004-10-04  Simon Josefsson  <jas@extundo.com>
85181
85182         * lib/memmem.h: New file.
85183         * lib/memmem.c: New file, taken from glibc.
85184
85185 2004-10-04  Simon Josefsson  <jas@extundo.com>
85186
85187         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85188         '#ifdef USE_UNLOCKED_IO'.
85189
85190 2004-10-04  Simon Josefsson  <jas@extundo.com>
85191
85192         * config/srclist.txt: Add memmem from glibc.
85193
85194 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85195
85196         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85197
85198         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85199         modules/exclude, modules/getdate, modules/getline,
85200         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85201         modules/getusershell, modules/linebuffer, modules/md5,
85202         modules/mountlist, modules/posixtm, modules/readtokens,
85203         modules/readutmp, modules/regex, modules/sha1,
85204         modules/version-etc, modules/yesno:
85205         Remove dependency on unlocked-io.
85206
85207 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85208
85209         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85210
85211         * m4/unlocked-io.m4: Add copyright notice.
85212         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85213
85214 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85215
85216         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85217         * lib/xmalloc.c (xmemdup): Likewise.
85218         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85219         XFREE): Remove these long-obsolescent macros.
85220         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85221         * lib/xstrdup.c: Remove.
85222
85223         * lib/regex.c (re_comp): Cast gettext return value to char *,
85224         Problem reported by Martin Neitzel via Mark D. Baushke.
85225
85226 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85227
85228         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85229         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85230         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85231         regex.c, sha1.c, version-etc.c, yesno.c:
85232         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85233         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85234         the includer's responsibility.
85235
85236         Sync from coreutils.
85237
85238         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85239         points to the start of a string, as the C Standard says the
85240         resulting behavior is undefined.
85241
85242         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85243         simple -> simple_backups, numbered_existing ->
85244         numbered_existing_backups, numbered -> numbered_backups
85245         to avoid shadowing problems.  All uses changed.
85246         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85247         * lib/backupfile.c (check_extension, numbered_backup):
85248         Rename locals to avoid shadowing 'basename'.
85249         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85250         once.
85251
85252         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85253         * lib/.cvsignore: Add getopt.h.
85254
85255 2004-10-04  Bruno Haible  <bruno@clisp.org>
85256
85257         * modules/README: New file.
85258         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85259         not a module.
85260
85261 2004-10-02  Jim Meyering  <jim@meyering.net>
85262
85263         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85264
85265 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85266
85267         * modules/strsep: New file.
85268
85269 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85270
85271         * m4/strsep.m4: New file.
85272
85273 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85274
85275         * lib/strsep.h: New file.
85276         * lib/strsep.c: New file.
85277
85278 2004-10-01  Simon Josefsson  <jas@extundo.com>
85279
85280         * lib/snprintf.c (snprintf): Handle size==0.
85281
85282 2004-10-01  Simon Josefsson  <jas@extundo.com>
85283             Bruno Haible  <bruno@clisp.org>
85284
85285         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85286         (snprintf): Declare 'args'.
85287
85288 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         * lib/snprintf.c: Remove comments as to why each header is needed.
85291
85292 2004-10-01  Bruno Haible  <bruno@clisp.org>
85293
85294         * MODULES.html.sh: Add strsep.
85295
85296 2004-09-30  Simon Josefsson  <jas@extundo.com>
85297
85298         * modules/snprintf: New file.
85299
85300 2004-09-30  Simon Josefsson  <jas@extundo.com>
85301
85302         * m4/snprintf.m4: New file.
85303
85304 2004-09-30  Simon Josefsson  <jas@extundo.com>
85305
85306         * lib/snprintf.h, lib/snprintf.c: New files.
85307
85308 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85309
85310         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85311         (hol_entry_help): Never translate an empty string.
85312         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85313         * lib/argp.h (OPTION_NO_TRANS): New option.
85314
85315 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85316
85317         * modules/argp (Maintainer): Replace Simon Josefsson
85318         by Sergey Poznyakoff.
85319
85320 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85323         changes merged back into glibc.
85324
85325 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85326
85327         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85328
85329 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85330
85331         * lib/xvasprintf.c: Include xalloc.h.
85332         (xvasprintf): Use xalloc_die, not xmalloc_die.
85333
85334 2004-09-29  Bruno Haible  <bruno@clisp.org>
85335
85336         * modules/alloca-opt: New file, derived from modules/alloca.
85337         * modules/allocsa: Depend on alloca-opt instead of alloca.
85338         * modules/setenv: Likewise.
85339         * modules/vasnprintf: Likewise.
85340         * MODULES.html.sh: Add alloca-opt.
85341
85342 2004-09-28  Simon Josefsson  <jas@extundo.com>
85343
85344         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85345         LGPL, and to replace license template from GPL to LGPL.
85346
85347 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85348
85349         * modules/dummy: Change license to LGPL.
85350
85351 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85352
85353         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85354
85355 2004-09-24  Simon Josefsson  <jas@extundo.com>
85356
85357         * modules/minmax (License): Change from GPL to LGPL.
85358
85359 2004-09-23  Simon Josefsson  <jas@extundo.com>
85360
85361         * gnulib-tool (--import): Typo.
85362
85363 2004-09-23  Simon Josefsson  <jas@extundo.com>
85364
85365         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85366
85367 2004-09-22  Bruno Haible  <bruno@clisp.org>
85368
85369         * modules/*: Add 'License' field.
85370         * gnulib-tool: Accept --extract-license option.
85371         (func_get_license): New function.
85372
85373 2004-09-21  Bruno Haible  <bruno@clisp.org>
85374
85375         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85376         Reported by Simon Josefsson.
85377
85378 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85379
85380         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85381         gl_AC_TYPE_LONG_LONG.
85382
85383 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85384
85385         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85386
85387 2004-09-18  Simon Josefsson  <jas@extundo.com>
85388         and  Paul Eggert  <eggert@cs.ucla.edu>
85389
85390         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85391         calls with autoreconf.  Define GL_LIB.
85392
85393 2004-09-14  Karl Berry  <karl@gnu.org>
85394
85395         * config/srclist.txt: unsync setenv.c, sigh.
85396
85397 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85398
85399         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85400         Problem reported by Bruno Haible in:
85401         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85402
85403 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85404
85405         * config/srclist.txt: Comment out argp-pvh.c.
85406
85407 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85408
85409         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85410         in case some system header has #define'd it.  Problem reported by
85411         Soeren D. Schulze in
85412         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85413
85414 2004-09-09  Karl Berry  <karl@gnu.org>
85415
85416         * regex.[ch]: delete from the root.  These were supposed to be
85417                 synced with emacs cvs, but this has not happened for about
85418                 a year, and anyway nothing else uses emacs regex.[ch].
85419                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85420                 lib/regex[.ch] is untouched.
85421
85422 2004-09-09  Bruno Haible  <bruno@clisp.org>
85423
85424         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85425
85426 2004-09-09  Bruno Haible  <bruno@clisp.org>
85427
85428         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85429         modifications.
85430         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85431
85432 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85433
85434         * modules/xvasprintf: New file.
85435         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85436
85437 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85438
85439         * lib/xvasprintf.h: New file.
85440         * lib/xvasprintf.c: New file.
85441         * lib/xasprintf.c: New file.
85442
85443 2004-09-08  Bruno Haible  <bruno@clisp.org>
85444
85445         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85446
85447 2004-09-08  Bruno Haible  <bruno@clisp.org>
85448
85449         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85450         length is > INT_MAX.
85451         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85452         more.
85453
85454 2004-09-08  Bruno Haible  <bruno@clisp.org>
85455
85456         * lib/stdint_.h: New file, taken from GNU clisp.
85457
85458 2004-09-08  Bruno Haible  <bruno@clisp.org>
85459             Oskar Liljeblad  <oskar@osk.mine.nu>
85460
85461         * modules/stdint: New file.
85462         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85463
85464 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85465
85466         Import from coreutils.
85467         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85468         strings on unbounded length.  alloca's performance benefits aren't
85469         that important here.
85470         (V_STRDUP): Remove.
85471         (parse_with_separator): New function, with most of the internals
85472         of the old parse_user_spec.  Allow user to omit both user and group,
85473         for compatibility with FreeBSD.
85474         Clone only the user name, not the entire spec.
85475         Do not set *uid, *gid unless entirely successful.
85476         Avoid memory leak in some failing cases.
85477         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85478         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85479         (parse_user_spec): Rewrite to use parse_with_separator.
85480
85481 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * modules/userspec: Don't depend on alloca.
85484
85485 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85486
85487         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85488
85489 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85490
85491         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85492         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85493         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85494
85495 2004-08-16  Simon Josefsson  <jas@extundo.com>
85496
85497         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85498         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85499         Add --dry-run for --import.
85500         Let user provided command line parameters override configure.ac
85501         settings.
85502
85503 2004-08-12  Simon Josefsson  <jas@extundo.com>
85504
85505         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85506         as discussed with Paul Eggert in threads rooted at
85507         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85508         and
85509         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85510         Before, the test was empty, and relied on ELIDE_CODE in source
85511         code.)
85512         (gl_PREREQ_GETOPT): New macro.
85513         (gl_GETOPT): Use them.
85514
85515 2004-08-12  Simon Josefsson  <jas@extundo.com>
85516
85517         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85518         * lib/getopt_.h: Renamed from getopt.h.
85519
85520 2004-08-12  Simon Josefsson  <jas@extundo.com>
85521
85522         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85523         Change default library name from libfoo to libgnu.
85524         Now, if you have a configure.ac that says:
85525                 gl_SOURCE_BASE(gl)
85526                 gl_M4_BASE(gl/m4)
85527                 gl_MODULES(error getopt etcetera)
85528                 gl_INIT
85529         you can import all you need by running:
85530                 ../gnulib/gnulib-tool --import
85531
85532         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85533         (Makefile.am): Rewrite, use logic from argz.
85534         (Include): Use <getopt.h> instead of "getopt.h".
85535
85536 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85537
85538         * modules/argp (Files): Add m4/unlocked-io.m4.
85539         (Depends-on): Add extensions.
85540
85541 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85542
85543         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85544         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85545         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85546         Check for program_invocation_name, program_invocation_short_name,
85547         flockfile, funlockfile, features.h, _getopt_long_only_r.
85548
85549 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85550
85551         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85552         its complicated substitute.
85553         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85554         and program_invocation_name.
85555         (__argp_basename) [!_LIBC]: Remove; the only use was
85556         replaced by its body.
85557         (__argp_short_program_name): Change condition from
85558         !defined __argp_short_program_name to
85559         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85560         to match argp-namefrob.h.
85561         (__argp_failure): Don't assume strerror_r returns char *.
85562         * lib/argp-parse.c (N_): Define unconditionally.
85563         (argp_default_options): Fill out initializers with 0 to avoid
85564         gcc warnings.
85565
85566 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85567
85568         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85569         getopt1.c.
85570
85571 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85572
85573         Merge from coreutils.
85574
85575         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85576
85577         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85578         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85579
85580 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85581
85582         Merge from coreutils.
85583
85584         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85585         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85586         for Reliant Unix 5.43.
85587
85588         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85589         (union fooround): Use uintmax_t, not long int.
85590         The rest is a merge from libc:
85591         [defined _LIBC]: Include <shlib-compat.h>.
85592         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85593
85594         * lib/settime.c (settime): Recode to avoid warning with
85595         Sun Forte C 6U2.
85596
85597         * lib/strverscmp.c: Convert to UTF-8.
85598
85599 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85600
85601         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85602         m4/uintmax_t.m4.
85603
85604 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85605
85606         * modules/xalloc-die: New file.
85607         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85608
85609         * modules/md5 (Files): Add m4/uint32_t.m4.
85610         * modules/sha1: Renamed from modules/sha.
85611         (Files):
85612         Rename lib/sha.h to lib/sha1.h.
85613         Rename lib/sha.c to lib/sha1.c.
85614         Rename m4/sha.m4 to m4/sha1.m4.
85615         (lib_SOURCES): Likewise.
85616         (configure.ac): Rename gl_SHA to gl_SHA1.
85617         (Include): sha.h -> sha1.h.
85618
85619 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85620
85621         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85622         * m4/sha1.m4: Renamed from sha.m4.
85623         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85624
85625 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85626
85627         * lib/obstack.h (obstack_empty_p):
85628         Don't assume that chunk->contents is suitably aligned.
85629         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85630         Likewise. Problem reported by Benno in
85631         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85632
85633         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85634         readable.  This could be improved further but it'd take some work.
85635
85636 2004-08-08  Simon Josefsson  <jas@extundo.com>
85637
85638         * modules/xgethostname (Depends-on): Remove exit and error (not
85639         used).
85640
85641         * modules/getpass-gnu: Add getpass.h.
85642         (Depends-on): Add stdbool.
85643         * modules/getpass: Add getpass.h.
85644
85645 2004-08-08  Simon Josefsson  <jas@extundo.com>
85646
85647         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85648         Check getpass declaration.
85649
85650 2004-08-08  Simon Josefsson  <jas@extundo.com>
85651
85652         * lib/xgethostname.c: Don't include error.h (not used).
85653
85654         * lib/getpass.h: Add.
85655         * lib/getpass.c: Include getpass.h first.
85656
85657 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85658
85659         * lib/xalloc-die.c: New file.
85660         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85661         All uses removed.
85662         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85663         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85664         xalloc-die.c.
85665         (_, N_, xalloc_die): Move to xalloc-die.c.
85666         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85667         so that we needn't mess with xalloc_msg_memory_exhausted.
85668
85669         * lib/sha1.h: Renamed from sha.h.
85670         (SHA1_H): Renamed from _SHA_H.
85671         (sha1_ctx): Renamed from sha_ctx.
85672         (sha1_init_ctx): Renamed from sha_init_ctx.
85673         (sha1_process_block): Renamed from sha_process_block.
85674         (sha1_process_bytes): Renamed from sha_process_bytes.
85675         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85676         (sha1_read_ctx): Renamed from sha_read_ctx.
85677         (sha1_stream): Renamed from sha_stream.
85678         (sha1_buffer): Renamed from sha_buffer.
85679         * lib/sha1.c: Likewise; renamed from sha.c.
85680         Do not include <sys/types.h>.
85681         Include <stddef.h> rather than <stdlib.h>.
85682
85683 2004-08-08  Bruno Haible  <bruno@clisp.org>
85684
85685         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85686         FILESYSTEM_PREFIX_LEN.
85687         * lib/progreloc.c: Likewise.
85688         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85689
85690 2004-08-06  Simon Josefsson  <jas@extundo.com>
85691
85692         * modules/progname (Depends-on): Don't depend on stdbool.
85693
85694 2004-08-06  Simon Josefsson  <jas@extundo.com>
85695
85696         * modules/getsubopt: New file.
85697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85698         getsubopt.
85699
85700 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85701
85702         More merge from coreutils.
85703
85704         * m4/utimens.m4, m4/utimecmp.m4: New files.
85705         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85706         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85707         prereq.m4, sha.m4: Import changes from coreutils.
85708
85709 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85710
85711         More merge from coreutils.
85712         * modules/raise, modules/readtokens0, modules/utimens:
85713         * modules/utimecmp, module/xnanosleep: New files.
85714         * modules/strftime: Add lib/strftime.h.
85715         Change include from <time.h> to "strftime.h".
85716         * modules/yesno: Add lib/yesno.h.
85717         * modules/backupfile: Remove lib/addext.c.
85718         * modules/euidaccess: Add stat-macros.h.
85719         * modules/canonicalize, modules/euidaccess,
85720         modules/filemode, modules/lchown, modules/makepath,
85721         modules/rmdir, modules/stat: Likewise.
85722
85723 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85724
85725         Merge from tar.
85726         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85727         SIZE_MAX is a valid preprocessor constant.
85728         (__argp_basename): Change from "#ifndef _LIBC"
85729         to "#ifndef __argp_short_program_name", so that
85730         we don't compile these functions for tar.
85731
85732         More merges from coreutils.
85733         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85734         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85735         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85736         * lib/addext.c: Remove; no longer needed.
85737         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85738         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85739         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85740         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85741         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85742         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85743         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85744         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85745         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85746         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85747         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85748         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85749         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85750         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85751         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85752         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85753         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85754         Import changes from coreutils.
85755
85756 2004-08-05  Simon Josefsson  <jas@extundo.com>
85757
85758         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85759
85760 2004-08-05  Simon Josefsson  <jas@extundo.com>
85761
85762         * m4/getsubopt.m4: New file.
85763
85764 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85765
85766         Merge from coreutils.
85767
85768         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85769         * m4/getcwd-path-max.m4: New files.
85770
85771         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85772         FILESYSTEM_PREFIX_LEN ->
85773         FILE_SYSTEM_PREFIX_LEN.
85774         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85775         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85776         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85777         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85778
85779         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85780         prerequisite modules now handle the DOS stuff.
85781         Don't check for unistd.h.
85782
85783 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85784
85785         Merge from coreutils.
85786
85787         * lib/.gdb-history: Remove; this doesn't belong here.
85788
85789         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85790         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85791         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85792         * lib/getcwd.c: New files.
85793
85794         * lib/dirname.h: Include <stdbool.h>.
85795         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85796         for consistency with POSIX terminology.  All uses changed.
85797         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85798         (strip_trailing_slashes): Use bool for booleans.
85799         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85800
85801         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85802         sometimes returns a positive errno value even when it succeeds.
85803         (print_errno_message) [!LIBC]: Fall back on strerror if
85804         __strerror_r fails.
85805
85806         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85807         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85808         (longest_relative_suffix): New function.
85809         (path_concat): Use it.  Assume first argument is not NULL.
85810         Port to DOS.  Omit redundant separators.
85811         Report an error instead of returning NULL.
85812         Use mempcpy instead of memcpy.
85813         (xpath_concat): Remove: not declared or used.
85814
85815         * lib/same.h: Include <stdbool.h>
85816         (same_name): Return bool, not int.
85817         * lib/same.c (same_name): Likewise.
85818         (errno): Don't declare; we assume C89 or better now.
85819
85820         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85821         if not already defined.
85822
85823         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85824         * lib/dup-safer.c (errno): Likewise.
85825
85826 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85827
85828         Merge from coreutils.
85829         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85830         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85831         * modules/path-concat: Don't depend on strdup.
85832
85833 2004-08-03  Simon Josefsson  <jas@extundo.com>
85834
85835         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85836         * lib/progname.h: Don't include stdbool.h.
85837
85838 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85839
85840         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85841         * MODULES.html.sh (func_all_modules): Remove fatal.
85842
85843 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85844
85845         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85846
85847 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85848
85849         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85850         working.
85851
85852 2004-08-02  Simon Josefsson  <jas@extundo.com>
85853
85854         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85855         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85856         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85857
85858 2004-08-01  Simon Josefsson  <jas@extundo.com>
85859
85860         * lib/xgetdomainname.c: Include stdlib.h, for free().
85861
85862 2004-07-19  Bruno Haible  <bruno@clisp.org>
85863
85864         * MODULES.html.sh (func_all_modules): Add dummy.
85865
85866 2004-07-16  Simon Josefsson  <jas@extundo.com>
85867
85868         * modules/dummy: New file.
85869
85870 2004-07-16  Simon Josefsson  <jas@extundo.com>
85871
85872         * lib/dummy.c: New file.
85873
85874 2004-07-16  Bruno Haible  <bruno@clisp.org>
85875
85876         * lib/backupfile.h: Add extern "C" for C++.
85877         * lib/closeout.h: Likewise.
85878         * lib/copy-file.h: Likewise.
85879         * lib/findprog.h: Likewise.
85880         * lib/full-write.h: Likewise.
85881         * lib/pathname.h: Likewise.
85882         * lib/progname.h: Likewise.
85883         * lib/stpcpy.h: Likewise.
85884         * lib/stpncpy.h: Likewise.
85885         * lib/strcase.h: Likewise.
85886         * lib/strstr.h: Likewise.
85887         * lib/xalloc.h: Likewise.
85888
85889         * lib/mbswidth.h: Add extern "C" for C++.
85890         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85891
85892 2004-07-13  Robert Millan  <robertmh@gnu.org>
85893
85894         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85895
85896 2004-07-09  Simon Josefsson  <jas@extundo.com>
85897
85898         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85899         failed without this.)
85900
85901 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85902
85903         * modules/chown (Files): Add lib/fchown-stub.c, since
85904         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85905
85906 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85907
85908         * lib/fchown-stub.c: New file.
85909
85910 2004-06-24  Jim Meyering  <jim@meyering.net>
85911
85912         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85913
85914 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85915
85916         * modules/argz: Omit "#include".
85917
85918         * MODULES.html.sh (func_all_modules): Add calloc, to match
85919         2004-06-01 addition of calloc module.
85920
85921 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85922
85923         * m4/argz.m4: New file, which is autoupdated from libtool.
85924
85925 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85926
85927         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85928         libtool.
85929
85930 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85931
85932         * config/srclist-update: Don't insist on "USA." before the
85933         close-comment, as libtool omits the period and puts the */ on a
85934         separate line.
85935         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85936         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85937
85938 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85939
85940         * modules/argz: New file.
85941         * MODULES.html.sh (func_all_modules): Add argz.
85942
85943 2004-06-12  Jim Meyering  <jim@meyering.net>
85944         and  Paul Eggert  <eggert@cs.ucla.edu>
85945
85946         * modules/hash (Files): Add lib/xalloc.h.
85947         * modules/pipe (Depends-on): Add wait-process.
85948         * modules/stat (Depends-on): Add xalloc.
85949         * modules/userspec (Files): Add lib/userspec.h.
85950         * modules/xstrto
85951
85952         Upgrade from gettext-0.13.
85953         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85954         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85955         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85956
85957 2004-06-10  Jim Meyering  <jim@meyering.net>
85958
85959         * lib/calloc.c: New file.
85960
85961 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85962
85963         * lib/getdate.y (yylex): Allow space between sign and number.
85964         Problem reported by Dan Jacobson.
85965
85966 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85967
85968         Merge from coreutils CVS.
85969
85970         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85971         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85972         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85973         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85974         xstrtol.m4: Fix copyright date and/or serial number.
85975
85976         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85977         See if we need an fchown replacement.
85978         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85979         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85980         and use the replacement function if we detect either defect.
85981
85982         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85983         gl_UTIMECMP.
85984
85985 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85986         and  Jim Meyering  <jim@meyering.net>
85987
85988         Merge from coreutils CVS.
85989
85990         * lib/stat-macros.h: New file, with contents from file-type.h
85991         and coreutils' system.h.
85992         * lib/file-type.c: Include "stat-macros.h".
85993         * lib/file-type.h (file_type): Move all macro definitions to new file,
85994         stat-macros.h.
85995
85996         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85997         Wrap old code with this conditional.
85998         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85999         function that does not dereference symlinks.
86000         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86001
86002         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86003         dependency problems.
86004         (xreadlink): Accept new arg SIZE, for efficiency.
86005         All decls and uses changed.
86006         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86007
86008         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86009         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86010
86011         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86012         sysexits.h.
86013
86014 2004-06-01  Jim Meyering  <jim@meyering.net>
86015
86016         * m4/calloc.m4: New file.
86017
86018 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86019
86020         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86021         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86022         Also, fix a typo in a diagnostic.
86023
86024 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86025
86026         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86027         or AC_FUNC_REALLOC.
86028
86029 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86030
86031         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86032         macros to be defined.
86033         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86034         the allocator returns NULL because the requested size is zero.
86035
86036 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86037
86038         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86039         var.  Add comment explaining why libc still defines it.  This
86040         merges the following patch from glibc:
86041         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86042
86043 2004-05-20  Andreas Schwab  <schwab@suse.de>
86044
86045         * m4/free.m4: Replace free if it not known to work, not the other
86046         way round.
86047
86048 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86049
86050         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86051         present in glibc since revision 1.1 of this file.
86052         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86053         obstack_alignment_mask, obstack_alloc, obstack_base,
86054         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86055         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86056         obstack_grow0, obstack_init, obstack_int_grow,
86057         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86058         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86059         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86060         nonexistent functions.
86061
86062 2004-05-18  Karl Berry  <karl@gnu.org>
86063
86064         * config/srclist.txt: break link for vasnprintf.c.
86065
86066 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86067
86068         Port obstack to the AS/400, where pointers are 16 bytes wide and
86069         you cannot cast an integer to a valid pointer.  This patch is
86070         currently waiting to be integrated into glibc; see
86071         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86072
86073         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86074         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86075         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86076         (struct obstack): temp member is now a union of a pointer and
86077         an integer, instead of an integer.  All integer uses changed.
86078         This does not affect the physical layout of struct obstack,
86079         except on hosts (like the AS/400) where the size or alignment of
86080         void * is greater than that of ptrdiff_t.
86081         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86082         __STDC__)]: Store temporary in pointer member of union, not
86083         integer member.
86084         * lib/obstack.c: Include <stddef.h>, for offsetof.
86085         (struct fooalign): Remove; it doesn't need a name.
86086         (union fooround): Change double to long double, and add void *.
86087         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86088         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86089         not a macro.  Hence the values are always int; so remove all
86090         casts-to-int in uses.
86091
86092 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86093
86094         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86095         we can get this patch merged into glibc.
86096
86097 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86098             Paul Eggert  <eggert@cs.ucla.edu>
86099
86100         * m4/argp: Depend on alloca.
86101
86102 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86103             Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86106         freecoding.
86107
86108 2004-05-17  Bruno Haible  <bruno@clisp.org>
86109
86110         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86111         precision that consists of a '.' followed by an empty digit string.
86112         Patch by Tor Lillqvist <tml@iki.fi>.
86113
86114 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86115
86116         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86117         for backward compatibility with older code.  We need our own
86118         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86119         it under some other name, and our alloca.h will define it.
86120
86121 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86122             Derek Price  <derek@ximbiot.com>
86123
86124         * lib/alloca.c: Include <alloca.h>, to get our interface.
86125         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86126         include <alloca.h> first.  Use C89 prototype for alloca; this
86127         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86128         Use #elif for simplicity, since we can assume C89 now.
86129         Don't try to source the system alloca.h since it will not be found
86130         and to prevent recursively including its replacement.
86131         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86132         * lib/regex.c: Likewise.
86133
86134 2004-05-16  Derek Price  <derek@ximbiot.com>
86135             Paul Eggert  <eggert@cs.ucla.edu>
86136
86137         getline cleanup.  This changes the getndelim2 API: both order of
86138         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86139         no delimiter).
86140
86141         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86142         interface does that.
86143         (getline): Always use getdelim, so that we don't have two
86144         copies of this code.
86145         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86146         if available.
86147         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86148         (GETNDELIM2_MAXIMUM): New macro.
86149         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86150         instead of the old practice of delim2==0.  All callers changed.
86151         Return -1 on overflow, instead of returning junk.
86152         Do not set *linesize unless allocation succeeds.
86153         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86154         that we include sys/types.h.
86155         * lib/getnline.h: Likewise.
86156         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86157         (getndelim2): Reorder arguments.
86158         * lib/getnline.c (getnline, getndelim):
86159         Don't discard the NMAX argument.
86160         (getnline): Invoke getndelim, to avoid code duplication.
86161         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86162         of (size_t) -1 by callers of the getnline family.
86163
86164 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86165
86166         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86167         Check for gettimeofday.
86168         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86169         Check for settimeofday, stime.
86170
86171 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86172
86173         * lib/nanosleep.c (suspended): Change its type from int to
86174         sig_atomic_t volatile.
86175         (first_call): Make it private to rpl_nanosleep, and have it
86176         be zero initially as that's a bit faster.
86177         (my_usleep): Round up fractional times instead of truncating them,
86178         as this is the usual meaning for 'sleep'.
86179
86180         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86181         doesn't work.
86182         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86183         (ENOSYS): Define if not defined.
86184         (settime): Fall back on stime if it exists and settimeofday fails.
86185         But don't bother with fallbacks if a method fails with errno == EPERM.
86186
86187 2004-05-11  Jim Meyering  <jim@meyering.net>
86188
86189         Prior to this change, the save_cwd caller required read access to the
86190         current directory on most systems (ones with the fchdir function).
86191
86192         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86193         fails, try write-only, and finally, resort to using xgetcwd.
86194
86195 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86196
86197         * lib/obstack.c, obstack.h: Import changes from libc.
86198
86199 2004-04-28  Bruno Haible  <bruno@clisp.org>
86200
86201         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86202         also implicitly appends .exe to executables.
86203         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86204         accepts Windows pathnames.
86205         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86206         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86207         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86208         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86209         Reported by Derek Robert Price <derek@ximbiot.com>.
86210
86211 2004-04-21  Karl Berry  <karl@gnu.org>
86212
86213         * config/srclist.txt (localcharset.c): break sync.
86214
86215 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86216
86217         * m4/host-os.m4: Add a copyright notice.
86218
86219 2004-04-20  Jim Meyering  <jim@meyering.net>
86220
86221         Change UTILS_ to gl_ in AC_DEFINE'd names.
86222         Change utils_- and jm_-prefixed variables, too.
86223         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86224         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86225         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86226
86227         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86228         Don't emit trailing blanks.
86229         Also rename jm_-prefixed variables to have gl_ prefix.
86230
86231         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86232         Also rename jm_-prefixed variables to have gl_ prefix.
86233
86234         * m4/jm-macros.m4: Reflect the renamings.
86235         * m4/prereq.m4: Likewise.
86236
86237 2004-04-20  Jim Meyering  <jim@meyering.net>
86238
86239         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86240         memory.
86241
86242 2004-04-20  Jim Meyering  <jim@meyering.net>
86243             Bruno Haible  <bruno@clisp.org>
86244
86245         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86246         memory when realloc fails.
86247
86248 2004-04-19  Jim Meyering  <jim@meyering.net>
86249
86250         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86251         now that readutmp.c may call `free (0)'.
86252
86253 2004-04-19  Bruno Haible  <bruno@clisp.org>
86254
86255         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86256         * m4/inttypes_h.m4: Likewise.
86257         * m4/stdint_h.m4: Likewise.
86258         * m4/intmax_t.m4: Likewise.
86259         * m4/uintmax_t.m4: Likewise.
86260
86261 2004-04-18  Jim Meyering  <jim@meyering.net>
86262
86263         * m4/prereq.m4: Don't forbid jm_ prefix.
86264
86265         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86266         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86267         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86268         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86269         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86270         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86271         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86272         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86273         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86274         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86275         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86276         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86277         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86278         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86279         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86280         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86281         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86282         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86283         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86284
86285 2004-04-18  Jim Meyering  <jim@meyering.net>
86286
86287         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86288         failure, don't leak memory and do call END_UTMP_ENT.
86289
86290 2004-04-16  Jim Meyering  <jim@meyering.net>
86291
86292         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86293         coreutils' stat program.
86294         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86295
86296 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86297
86298         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86299         C89.
86300         (CHAR_BIT): Remove, since we assume C89.
86301         Include <stdint.h> if available, as per current Autoconf CVS advice.
86302
86303 2004-03-31  Jim Meyering  <jim@meyering.net>
86304
86305         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86306         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86307         * m4/xalloc.m4: Likewise.
86308
86309 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86310
86311         Merge from coreutils.
86312
86313         * m4/inttostr.m4: New file.
86314         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86315         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86316         Require gl_CLOCK_TIME.
86317         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86318
86319 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86320
86321         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86322         not bool, to be more consistent with Unix conventions.
86323         Suggested by Bruno Haible.
86324
86325         Merge from coreutils.
86326
86327         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86328         * lib/umaxtostr.c: New files.
86329
86330         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86331         the usual <time.h> dance.
86332         (get_date): Change signature to support fractional time stamps.
86333         All callers changed.
86334         * lib/getdate.y: Include "getdate.h" first, as we can now
86335         assume C89 and don't need to worry about 'const'.
86336         Similarly, include "unlocked-io.h" near start, not in middle.
86337         Include <limits.h>.
86338         (textint.value): Use long int rather than int.
86339         (textint.digits): Use size_t rather than int.
86340         (BILLION, LOG10_BILLION): New constants.
86341         (parser_control): New member rel_ns.  Members day_ordinal,
86342         time_zone, month, day, hour, minutes, rel_year, rel_month,
86343         rel_day, rel_hour, rel_minutes, rel_seconds
86344         are now long int, not int.  Member seconds is now struct timespec,
86345         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86346         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86347         not int.
86348         (%union.intval): Now long int, not int.
86349         New member timespec.
86350         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86351         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86352         (spec): Now is a timespec or an item list.
86353         (timespec, items): New nonterminals.
86354         (time, rel, relunit, number, get_date):
86355         Add support for fractional seconds.
86356         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86357         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86358         (to_hour): First arg is now long int, not int.
86359         (to_year): Returns long int, not int.
86360         Don't treat year -70 like 70.
86361         (tm_diff): Returns long int, not int.
86362         (lookup_word): Use bool instead of int when appropriate.
86363         (yylex): Use size_t for count, not int.
86364         Detect overflow when parsing large integer constants.
86365         Add support for fractions.
86366         (get_date): Make pointers 'const' if possible.
86367         Use more-portable code to detect integer overflow.
86368         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86369         Don't use ctime; it's not reliable if the year has >4 digits.
86370
86371         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86372         This is for compatibility with BSD.
86373
86374         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86375         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86376         From coreutils' system.h.
86377
86378         * lib/userspec.c: Don't include "posixver.h".
86379         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86380         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86381         compatible extension.  Simplify code by removing a boolean int
86382         that was always nonzero if a string was nonnull.
86383
86384 2004-03-30  Jim Meyering  <jim@meyering.net>
86385
86386         Merge from coreutils.
86387
86388         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86389         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86390         on some systems one must include <grp.h> before it.
86391         Reported by Christian Krackowizer.
86392
86393 2004-03-30  Jim Meyering  <jim@meyering.net>
86394
86395         Merge from coreutils.
86396
86397         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86398
86399         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86400         an empty input stream.
86401
86402         * lib/readtokens.c: Include <stdbool.h>.
86403         (readtoken): Use `size_t' rather than int/long.
86404         All callers adjusted.
86405         Use `bool' rather than `int' where appropriate.
86406         Use memset rather than an explicit loop.
86407         Use x2nrealloc rather than xrealloc.
86408         Allow the use of `\0' as a delimiter.
86409         (readtokens): Likewise.
86410         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86411
86412 2004-03-30  Jim Meyering  <jim@meyering.net>
86413
86414         * m4/realloc.m4: Remove file, since now it does no more than
86415         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86416         the `configure.ac' section of module/realloc.
86417         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86418
86419 2004-03-30  Bruno Haible  <bruno@clisp.org>
86420
86421         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86422         nonnull.
86423
86424 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86425
86426         Merge changes to getloadavg.c from coreutils and Emacs.
86427
86428         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86429         Define to an expression, not to the empty string.
86430         Include cloexec.h and xalloc.h.
86431         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86432         Use set_cloexec_flag rather than rolling our own.
86433         * lib/cloexec.c, lib/cloexec.h: New files.
86434
86435 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86436
86437         * m4/cloexec.m4: New file.
86438
86439 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86440
86441         * lib/getopt.h: Sync with libc CVS.
86442
86443 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86444             Bruno Haible  <bruno@clisp.org>
86445
86446         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86447         mbswidth.
86448
86449 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86450             Bruno Haible  <bruno@clisp.org>
86451
86452         * lib/mbswidth.h: Include <wchar.h> only if
86453         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86454         <wchar.h>.
86455         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86456
86457 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86458
86459         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86460         Sync with libc CVS.
86461         * lib/getopt_int.h: New file, also synced from libc.
86462
86463 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86464
86465         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86466         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86467         Bring back getopt.c, getopt.h, getopt1.c.
86468
86469 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86470
86471         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86472         All uses changed.  Check for sa_sigaction member; this fixes
86473         a bug first reported by Jason Andrade in
86474         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86475
86476 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86477
86478         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86479         '#if' expressions.  Unlike the code it replaces, it does not
86480         depend on (defined _SC_PAGESIZE).  However, it does depend on
86481         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86482         first reported by Jason Andrade in
86483         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86484
86485 2004-02-25  Simon Josefsson  <jas@extundo.com>
86486
86487         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86488
86489 2004-02-25  Simon Josefsson  <jas@extundo.com>
86490
86491         * lib/strdup.h: New file.
86492         * lib/strdup.c: Include it.
86493         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86494         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86495
86496 2004-02-23  Karl Berry  <karl@gnu.org>
86497
86498         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86499         (from fencepost.gnu.org:/gd/gnuorg).
86500
86501 2004-02-23  Karl Berry  <karl@gnu.org>
86502
86503         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86504         * config/srclist.txt: add maintain/standards documents.
86505
86506 2004-02-18  Bruno Haible  <bruno@clisp.org>
86507
86508         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86509         Reported by Derek Robert Price <derek@ximbiot.com>.
86510
86511 2004-02-16  Karl Berry  <karl@gnu.org>
86512
86513         * config/mkinstalldirs, install-sh: update from automake.
86514
86515 2004-02-06  Karl Berry  <karl@gnu.org>
86516
86517         * m4/po.m4: update from gettext 0.14.1.
86518
86519 2004-02-06  Karl Berry  <karl@gnu.org>
86520
86521         * lib/config.charset: update from gettext 0.14.1.
86522
86523 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86524
86525         Add comments and code, prompted by suggestions from Bruno Haible
86526         for sh-quote.
86527         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86528         describing the enum quoting_style values.
86529         * lib/quotearg.c (quotearg_alloc): New function.
86530         (quotearg_buffer_restyled): Treat lone { and } as special.
86531         Treat = as special.  Work around bug with older shells
86532         that "see" a '\' that is really the 2nd byte of a multibyte char.
86533         Quote empty string with shell_quoting_style.
86534
86535 2004-02-03  Bruno Haible  <bruno@clisp.org>
86536
86537         * m4/pipe.m4: New file, from GNU gettext.
86538
86539 2004-02-03  Bruno Haible  <bruno@clisp.org>
86540
86541         * lib/pipe.h: New file, from GNU gettext.
86542         * lib/pipe.c: New file, from GNU gettext.
86543
86544 2004-01-27  Bruno Haible  <bruno@clisp.org>
86545
86546         * m4/execute.m4: New file, from GNU gettext.
86547
86548 2004-01-27  Bruno Haible  <bruno@clisp.org>
86549
86550         * lib/execute.h: New file, from GNU gettext.
86551         * lib/execute.c: New file, from GNU gettext.
86552         * lib/w32spawn.h: New file, from GNU gettext.
86553
86554 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86555
86556         Merge from diffutils.
86557
86558         * lib/file-type.c (file_type): Add typed memory objects.
86559         * lib/file-type.h (S_TYPEISTMO): New macro.
86560
86561         * lib/c-stack.h (c_stack_action): Remove argv argument.
86562         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86563         (die): Don't calculate message unless segv_action returns.
86564         (get_stack_location, min_address_from_argv, max_address_from_argv,
86565         volatile stack_base, volatile_stack_size): Remove.
86566         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86567         that every segmentation violation is a stack overflow.  (Ouch!)
86568         See Debian bug 136249 (still outstanding) for more info about why
86569         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86570
86571 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86572
86573         Exit-status fix from coreutils.
86574
86575         Use exit_failure consistently in place of EXIT_FAILURE,
86576         so that program exit statuses are consistent on failure.
86577
86578         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86579         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86580         * lib/argmatch.h: Comment fix to match the above.
86581         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86582         Now a macro referring to exit_failure, instead of a separate
86583         variable.  Include "exitfail.h" to get it.
86584         * lib/xstrtol.h: Include "exitfail.h".
86585         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86586
86587         * lib/long-options.c (parse_long_options): Use prototype
86588         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86589         for clarity.
86590
86591 2004-01-21  Jim Meyering  <jim@meyering.net>
86592
86593         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86594         so as not to conflict with a different-sized __mktime_internal
86595         function in GNU libc.
86596         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86597         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86598
86599 2004-01-20  Karl Berry  <karl@gnu.org>
86600
86601         * config/config.guess: update from config.
86602
86603         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86604
86605 2004-01-20  Bruno Haible  <bruno@clisp.org>
86606
86607         Safer stack allocation.
86608         * lib/setenv.c: Include allocsa.h.
86609         (alloca): Remove fallback definition.
86610         (freea): Remove macro.
86611         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86612         instead of freea.
86613
86614 2004-01-20  Bruno Haible  <bruno@clisp.org>
86615
86616         * m4/eealloc.m4: New file, from GNU gettext.
86617
86618 2004-01-20  Bruno Haible  <bruno@clisp.org>
86619
86620         * m4/allocsa.m4: New file, from GNU gettext.
86621
86622 2004-01-20  Bruno Haible  <bruno@clisp.org>
86623
86624         * lib/xallocsa.h: New file, from GNU gettext.
86625         * lib/xallocsa.c: New file, from GNU gettext.
86626
86627 2004-01-20  Bruno Haible  <bruno@clisp.org>
86628
86629         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86630
86631 2004-01-20  Bruno Haible  <bruno@clisp.org>
86632
86633         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86634         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86635         specially.
86636
86637 2004-01-20  Bruno Haible  <bruno@clisp.org>
86638
86639         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86640         patch.
86641
86642 2004-01-20  Bruno Haible  <bruno@clisp.org>
86643
86644         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86645
86646 2004-01-20  Bruno Haible  <bruno@clisp.org>
86647
86648         * lib/eealloc.h: New file.
86649
86650 2004-01-20  Bruno Haible  <bruno@clisp.org>
86651
86652         * lib/binary-io.h: Avoid warnings on Cygwin.
86653
86654 2004-01-20  Bruno Haible  <bruno@clisp.org>
86655
86656         * lib/allocsa.h: New file, from GNU gettext.
86657         * lib/allocsa.c: New file, from GNU gettext.
86658
86659 2004-01-18  Karl Berry  <karl@gnu.org>
86660
86661         * doc/gpl.texi, doc/lgpl.texi: new files.
86662
86663 2004-01-18  Karl Berry  <karl@gnu.org>
86664
86665         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86666         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86667
86668 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86669
86670         Merge from coreutils.
86671
86672         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86673         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86674         (gl_DEFAULT_POSIX2_VERSION): Move
86675         the documentation from 'configure' into 'config.hin',
86676         so that 'configure --help' isn't burdened by it and
86677         we don't have to worry about its formatting there.
86678         Reword the documentation so that it's more succinct
86679         and can be run together into a single paragraph.
86680         * m4/same.m4 (gl_SAME): Check for pathconf.
86681
86682 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86683
86684         Merge from coreutils.
86685
86686         * lib/posixver.c: Include posixver.h.
86687
86688         * lib/same.c: Include <stdbool.h>, <limits.h>.
86689         (_POSIX_NAME_MAX): Define if not defined.
86690         (MIN): New macro.
86691         (same_name): If file names are silently truncated, report
86692         that the file names are the same if they are the same after
86693         the silent truncation.
86694
86695         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86696         conversion function.
86697         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86698         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86699         longer needed.
86700
86701 2004-01-15  Jim Meyering  <jim@meyering.net>
86702
86703         Merge from coreutils.
86704
86705         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86706         if no library is required.
86707         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86708         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86709         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86710         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86711         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86712         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86713         value, $ac_cv_search_crypt, if it's "none required".
86714         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86715         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86716         not gl_FUNC_GETLOADAVG.
86717         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86718         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86719
86720 2004-01-15  Jim Meyering  <jim@meyering.net>
86721
86722         Merge from coreutils.
86723
86724         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86725         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86726         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86727
86728         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86729         optional configure-time default.
86730
86731         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86732
86733         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86734
86735 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86736
86737         Merge from coreutils.
86738
86739         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86740         value, $ac_cv_search_nanosleep, if it's "none required".
86741
86742 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86743
86744         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86745         with like-named macro in fnmatch.c.
86746         (EXT): Use an internal constant instead.
86747
86748         Merge fnmatch patches from glibc.
86749         * lib/fnmatch.c (mbsinit): Remove define.
86750         Add libc_hidden_ver (__fnmatch, fnmatch).
86751         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86752         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86753
86754 2004-01-14  Karl Berry  <karl@gnu.org>
86755
86756         * config/install-sh: update from automake.
86757
86758 2004-01-13  Karl Berry  <karl@gnu.org>
86759
86760         * config/install-sh: update from automake.
86761
86762 2004-01-09  Karl Berry  <karl@gnu.org>
86763
86764         * config/install-sh: update from automake.
86765
86766 2004-01-05  Karl Berry  <karl@gnu.org>
86767
86768         * config/config.{sub,guess}: update from config.
86769
86770 2003-12-31  Karl Berry  <karl@gnu.org>
86771
86772         * config/depcomp: update from automake.
86773
86774 2003-12-14  Karl Berry  <karl@gnu.org>
86775
86776         * lib/config.charset: update from gettext-runtime.
86777
86778 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86779
86780         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86781         Bug reported by Alfred M. Szmidt.
86782
86783 2003-12-03  Bruno Haible  <bruno@clisp.org>
86784
86785         * m4/gettext.m4: Upgrade from gettext-0.13.
86786         * m4/po.m4: Upgrade from gettext-0.13.
86787         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86788         * m4/intmax.m4: New file, from gettext-0.13.
86789         * m4/printf-posix.m4: New file, from gettext-0.13.
86790
86791 2003-11-29  Karl Berry  <karl@gnu.org>
86792
86793         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86794
86795 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86796             Bruno Haible  <bruno@clisp.org>
86797
86798         * lib/printf-parse.h: Don't include sys/types.h.
86799         (ARG_NONE): New macro.
86800         (char_directive): Change type of *arg_index fields to size_t.
86801         * lib/printf-parse.c: Don't include sys/types.h.
86802         (SSIZE_MAX): Remove macro.
86803         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86804         Remove unnecessary overflow check.
86805         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86806         fields.
86807
86808 2003-11-25  Bruno Haible  <bruno@clisp.org>
86809
86810         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86811
86812 2003-11-25  Bruno Haible  <bruno@clisp.org>
86813
86814         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86815         gt_TYPE_SSIZE_T.
86816
86817 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86818
86819         * modules/alloca: Remove dependency on xalloc.
86820
86821 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86822
86823         * lib/alloca.c: Remove dependency on xalloc module.
86824         (xalloc_die): Remove.
86825         (memory_full) [!defined emacs]: New macro.
86826         [!defined emacs]: Don't include xalloc.h.
86827         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86828         address arithmetic overflows.  Change datatypes a bit to avoid
86829         unnecessary casts.
86830
86831 2003-11-22  Jim Meyering  <jim@meyering.net>
86832
86833         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86834         s/size/size_t/.
86835
86836 2003-11-21  Karl Berry  <karl@gnu.org>
86837
86838         * config/config.{sub,guess}: update from config.
86839
86840 2003-11-18  Karl Berry  <karl@gnu.org>
86841
86842         * config/config.{sub,guess}: update from config.
86843
86844         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86845
86846 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86847
86848         * README: Mention that S+T cannot overflow if S is the size of
86849         an existing object and T is sufficiently small.
86850
86851 2003-11-17  Jim Meyering  <jim@meyering.net>
86852
86853         On systems without utime and without a utimes function capable of
86854         dealing with a NULL struct utimbuf* argument, this utime replacement
86855         could -- in unusual circumstances -- leak a file descriptor.
86856         * lib/utime.c: Include <unistd.h> and <errno.h>.
86857         (utime_null): Be sure to close `fd' and to preserve errno.
86858         Reported by Geoff Collyer via Arnold Robbins.
86859
86860 2003-11-17  Bruno Haible  <bruno@clisp.org>
86861
86862         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86863         (Depends-on): Add xsize.
86864
86865 2003-11-17  Bruno Haible  <bruno@clisp.org>
86866
86867         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86868
86869 2003-11-17  Bruno Haible  <bruno@clisp.org>
86870
86871         * lib/vasnprintf.c (alloca): Remove fallback definition.
86872         (freea): Remove definition.
86873         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86874         Reported by Paul Eggert.
86875
86876 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86877             Bruno Haible  <bruno@clisp.org>
86878
86879         Protect against address arithmetic overflow.
86880         * lib/printf-args.h: Include stddef.h.
86881         (arguments): Change type of field 'count' to size_t.
86882         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86883         'unsigned int' where appropriate.
86884         * lib/printf-parse.h: Include sys/types.h.
86885         (char_directive): Change type of *arg_index fields to ssize_t.
86886         (char_directives): Change type of fields 'count', max_*_length to
86887         size_t.
86888         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86889         (SSIZE_MAX): Define fallback value.
86890         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86891         instead of 'int' where appropriate. Check a_allocated, d_allocated
86892         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86893         * lib/vasnprintf.c: Include xsize.h.
86894         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86895         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86896         overflow. Avoid wraparound when converting a width or precision from
86897         decimal to binary.
86898
86899 2003-11-16  Bruno Haible  <bruno@clisp.org>
86900
86901         Update from GNU gettext.
86902         * lib/printf-parse.c: Generalize to it can be compiled for wide
86903         strings.
86904         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86905         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86906         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86907         SNPRINTF): New macros.
86908         Don't include <alloca.h> if the file is used inside libintl.
86909         (local_wcslen): New function, for Solaris 2.5.1.
86910         (VASNPRINTF): Use it instead of wcslen.
86911
86912 2003-11-16  Bruno Haible  <bruno@clisp.org>
86913
86914         * lib/xsize.h (xmax): New function.
86915         (xsum, xsum3, xsum4): Declare as "pure" functions.
86916
86917 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86918
86919         * modules/xalloc (Files): Undo latest change, since xalloc.h
86920         no longer needs SIZE_MAX or PTRDIFF_MAX.
86921
86922 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86923
86924         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86925         gl_PTRDIFF_MAX.
86926
86927 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86928
86929         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86930         "return", to pacify some unknown compiler.  Problem reported
86931         by Joerg Schilling.
86932
86933 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86934
86935         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86936         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86937         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86938         heuristic is just as accurate as far as we know, and it removes a
86939         dependency on size_max.m4 and ptrdiff_max.m4.
86940
86941 2003-11-11  Bruno Haible  <bruno@clisp.org>
86942
86943         * modules/xsize (Files): Add m4/size_max.m4.
86944         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86945
86946 2003-11-11  Bruno Haible  <bruno@clisp.org>
86947
86948         * m4/size_max.m4: New file.
86949         * m4/ptrdiff_max.m4: New file.
86950         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86951         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86952         (gl_XALLOC): Invoke it.
86953
86954 2003-11-11  Bruno Haible  <bruno@clisp.org>
86955
86956         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86957         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86958         defined.
86959
86960 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86961
86962         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86963         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86964         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86965         From Bruno Haible.
86966         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86967         not (size_t) -1, since it's defined here.
86968
86969 2003-11-09  Karl Berry  <karl@gnu.org>
86970
86971         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86972
86973 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86974
86975         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86976         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86977         Reject sizes of exactly SIZE_MAX bytes.
86978         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86979         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86980
86981 2003-11-05  Bruno Haible  <bruno@clisp.org>
86982
86983         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86984         SIZE_MAX defined in <limits.h> on Solaris.
86985
86986 2003-11-04  Jim Meyering  <jim@meyering.net>
86987
86988         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86989         variable names, rather than @VAR@.
86990         * modules/poll: Likewise.
86991
86992 2003-11-04  Bruno Haible  <bruno@clisp.org>
86993
86994         * modules/xsize: New file.
86995         * modules/linebreak: Depend on xsize.
86996         * MODULES.html.sh (func_all_modules): Add xsize.
86997
86998 2003-11-04  Bruno Haible  <bruno@clisp.org>
86999
87000         * m4/xsize.m4: New file.
87001
87002 2003-11-04  Bruno Haible  <bruno@clisp.org>
87003
87004         * lib/xsize.h: New file.
87005         * lib/linebreak.c: Include xsize.h.
87006         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87007         argument for overflow.
87008         Suggested by Paul Eggert.
87009
87010 2003-11-03  Karl Berry  <karl@gnu.org>
87011
87012         * config/config.{guess,sub}: update from config.
87013
87014 2003-11-03  Jim Meyering  <jim@meyering.net>
87015
87016         * modules/userspec (lib_SOURCES): Add userspec.h.
87017         (Include): Add "userspec.h".
87018         Improve description.
87019
87020 2003-11-03  Jim Meyering  <jim@meyering.net>
87021
87022         * lib/userspec.c: Include "userspec.h".
87023         * lib/userspec.h: New file.
87024
87025 2003-11-03  Bruno Haible  <bruno@clisp.org>
87026
87027         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87028
87029 2003-11-03  Bruno Haible  <bruno@clisp.org>
87030
87031         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87032         available, to avoid (extremely rare) race condition.
87033         Suggested by Paul Eggert.
87034
87035 2003-11-02  Karl Berry  <karl@gnu.org>
87036
87037         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87038
87039 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87040
87041         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87042         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87043         (read_filesystem_list): Set and use me_type_malloced.
87044         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87045         whatever the type happens to be), for brevity and consistency.
87046         Check for size calculation overflow on Alphas running OSF/1.
87047
87048 2003-10-31  Jim Meyering  <jim@meyering.net>
87049
87050         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87051
87052         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87053
87054 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87055             Bruno Haible  <bruno@clisp.org>
87056
87057         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87058         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87059
87060 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87061
87062         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87063         netbsd*-gnu*.  Suggested by Robert Millan.
87064
87065 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87066
87067         * modules/group-member: Depend on stdbool.
87068
87069 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87070
87071         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87072
87073 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87074
87075         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87076         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87077         after the 'gnu' in these cases.  This fixes some bugs in the
87078         previous change, and is based on suggestions by Robert Millan.
87079
87080 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87081
87082         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87083         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87084         no longer needed.
87085         * lib/quotearg.c (quotearg_n_options): Use it.
87086         * lib/group-member.c: Include <stdbool.h>.
87087         (free_group_info): Arg is now const *; don't free arg.
87088         (get_group_info): Now returns bool and accepts struct group_info *,
87089         rather than returning a malloc'ed struct group_info *.
87090         All uses changed.  Check for overflow in internal size calculation.
87091
87092         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87093         rather than xmalloc/xrealloc.
87094         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87095         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87096         conformance bug: the old code used a pointer after freeing the
87097         storage that it addressed.
87098         * lib/hash.c (hash_initialize): Simplify the code by using
87099         xalloc_oversized rather than doing it by hand.
87100         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87101         the buffer preserved.  Use free and xmalloc instead.
87102         * lib/quotearg.c (quotearg_n_options): Likewise.
87103         Use a simpler test for size overflow.  Don't use xalloc_oversized
87104         because unsigned int might be wider than size_t (!); this suggests
87105         that we should switch from unsigned int to size_t for slot numbers.
87106
87107 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87108
87109         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87110         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87111         NetBSD kernels.  Requested by Richard Stallman.
87112
87113 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87114
87115         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87116         to allocate the returned structure.  Do not allocate a subarray,
87117         as x2nrealloc will do that.
87118         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87119         instead of xnrealloc.
87120         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87121
87122 2003-10-27  Bruno Haible  <bruno@clisp.org>
87123
87124         * lib/stdbool_.h: Better support for BeOS.
87125
87126 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87127
87128         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87129         now uses inline.
87130
87131 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87132
87133         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87134         callers that want to do their own size-overflow checking.  Include
87135         <stdbool.h>, since xalloc_oversized returns bool.
87136         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87137         to use xalloc_oversized.
87138
87139         Add two functions x2realloc, x2nrealloc, for programs that grow
87140         arrays dynamically by doubling their sizes.
87141         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87142         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87143         New functions.
87144
87145         Port to C99 semantics for 'inline' of external functions.
87146         Bug reported by Bruno Haible.
87147         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87148         with the old contents of xnmalloc.
87149         (xnmalloc, xmalloc): Use it.
87150         (xnrealloc_inline): New static inline function,
87151         with the old contents of xnrealloc.
87152         (xnrealloc, xrealloc): Use it.
87153
87154         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87155         that.
87156
87157 2003-10-26  Karl Berry  <karl@gnu.org>
87158
87159         * config/srclist.txt (COPYING.DOC): no longer available from
87160         /gd/gnuorg; don't know where the ultimate source is.
87161
87162 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87163
87164         Fix several address-calculation bugs in the hash modules,
87165         plus some minor code cleanup.
87166
87167         * lib/hash.h: Include <stdbool.h>, for bool.
87168         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87169         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87170         hash_get_n_entries, hash_get_max_bucket_length,
87171         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87172         hash_rehash): Use size_t rather than unsigned.
87173         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87174         hash_get_n_buckets_used, hash_get_n_entries,
87175         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87176         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87177         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87178         Likewise.
87179         (SIZE_MAX): Define if not defined.
87180         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87181         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87182         hash_print):
87183         Use const * when possible.
87184         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87185         (check_tuning): Fix bug: if tuning parameters were very close to
87186         0 or 1, rounding errors could have caused subscript violations.
87187         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87188         (hash_initialize): Add 'fail:' label
87189         to free table and return NULL, and use it to simplify code.
87190         Use calloc rather than clearing the storage ourself.
87191         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87192         buffer size calculations.
87193         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87194         Include <stddef.h>, for size_t.
87195         * lib/hash-pjw.c (hash_pjw): Likewise.
87196         Switch to method described by Bruno Haible.
87197         Include <limits.h>, for CHAR_BIT.
87198         (SIZE_BITS): New macro.
87199
87200 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87201
87202         * m4/getline.m4 (AM_FUNC_GETLINE):
87203         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87204         hosts.  Problem reported by Derek Robert Price in
87205         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87206         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87207         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87208
87209 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87210
87211         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87212         ceiling the allocation at NMAX bytes rather than silently
87213         discarding input bytes before NMAX is reached.  This makes
87214         a difference only if NMAX exceeds SIZE_MAX / 2.
87215
87216         * lib/obstack.c: Merge from glibc.
87217         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87218         Add libc_hidden_def (_obstack_newchunk).
87219         (_obstack_free) [! defined _LIBC]: Remove.
87220         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87221         a clone of the function body.
87222         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87223         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87224
87225         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87226         glibc.
87227         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87228         arg to memcpy.
87229
87230         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87231         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87232         Don't use lvalue casts, as GCC plans to remove support for them
87233         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87234         was also present in the non-GCC version, indicating that this
87235         code had always been buggy and had never been widely used.
87236         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87237         Use the fast variant of each macro, rather than copying the
87238         definiens of the fast variant; that way, we'll be more likely to
87239         catch future bugs in the fast variants.
87240
87241 2003-10-20  Bruno Haible  <bruno@clisp.org>
87242
87243         * modules/wait-process: New file.
87244         * MODULES.html.sh (func_all_modules): Add wait-process.
87245
87246 2003-10-20  Bruno Haible  <bruno@clisp.org>
87247
87248         * m4/wait-process.m4: New file.
87249
87250 2003-10-20  Bruno Haible  <bruno@clisp.org>
87251
87252         * lib/wait-process.h: New file, from GNU gettext.
87253         * lib/wait-process.c: New file, from GNU gettext.
87254
87255 2003-10-19  Jim Meyering  <jim@meyering.net>
87256
87257         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87258         HPUX 10.20.
87259
87260 2003-10-18  Karl Berry  <karl@gnu.org>
87261
87262         * config/config.guess: update from config.
87263
87264 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87265
87266         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87267         (getgroups): First arg is int, not size_t.
87268         Don't let 'free' mangle errno.
87269
87270 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87271
87272         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87273
87274 2003-10-16  Karl Berry  <karl@gnu.org>
87275
87276         * config/config.{guess,sub}: update from config.
87277
87278 2003-10-16  Jim Meyering  <jim@meyering.net>
87279
87280         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87281         memcpy.
87282
87283 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87284
87285         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87286         (SIZE_MAX): Remove.
87287         (new_exclude, add_exclude_file): Initial size no longer needs to
87288         be a power of 2.
87289         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87290         our own address arithmetic overflow checking.
87291
87292         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87293         (fnmatch): Do not alloca more than 2000 wide characters;
87294         instead, use malloc for large buffers.
87295         Check for address arithmetic overflow, and return -1
87296         with errno set to ENOMEM in that case.
87297         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87298         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87299         instead, return -1.  Check for address arithmetic overflow.
87300
87301 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87302
87303         Handle invalid suffixes and overflow independently, so that
87304         callers can treat them independently as needed.  Fix some bugs in
87305         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87306         suffix for a human-readable blocksize.  The major caller-visible
87307         change is the addition of a new
87308         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87309         that both overflow and suffix chars were found.
87310
87311         * lib/human.c (humblock): Don't check separately for invalid suffix
87312         char; that is xstrtoumax's job (now that its bug is fixed).
87313         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87314         INTMAX_MAX]: New macros.
87315         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87316         TYPE_MAXIMUM): New macros.
87317         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87318         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87319         if overflow occurs, as it's what __strtol does and it's more useful
87320         in practice.
87321         (__xstrtol): If __strtol reports some error other than ERANGE,
87322         reflect it to the caller as LONGINT_INVALID.  If it reports
87323         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87324         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87325         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87326         value.
87327         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87328         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87329         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87330         [defined UINTMAX_MAX]: New macros.
87331
87332 2003-10-14  Bruno Haible  <bruno@clisp.org>
87333
87334         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87335
87336 2003-10-14  Bruno Haible  <bruno@clisp.org>
87337
87338         * m4/sig_atomic_t: New file, from GNU gettext.
87339         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87340
87341 2003-10-14  Bruno Haible  <bruno@clisp.org>
87342
87343         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87344         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87345         Also use volatile where needed.
87346
87347 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87348
87349         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87350         Change maintainer from Bruno Haible to 'all'.
87351
87352 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87353
87354         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87355
87356 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87357
87358         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87359         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87360         and define in terms of the other primitives.
87361         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87362         (SIZE_MAX): Define if not already defined.
87363         (array_size_overflow): New function.
87364         (xalloc_die): Abort instead of exiting if 'error' returns.
87365         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87366         (xmalloc, xrealloc): Use them.
87367         (xcalloc): Check for address arithmetic overflow.
87368         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87369         a bit faster than strcpy.
87370
87371 2003-10-10  Simon Josefsson  <jas@extundo.com>
87372
87373         * modules/argp (Depends-on): Add restrict and strcase.
87374
87375 2003-10-10  Simon Josefsson  <jas@extundo.com>
87376
87377         * m4/argp.m4: Add AC_C_INLINE.
87378
87379 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87380
87381         Merge getpass from libc, plus a few fixes.
87382
87383         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87384         Include <stdbool.h>.
87385         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87386         __fsetlocking to empty.
87387         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87388         do include <bits/libc-lock.h>.
87389         Do not include <fcntl.h>; not needed.
87390         [_LIBC]: Include <wchar.h>.
87391         (NOTCANCEL_MODE): New macro.
87392         (flockfile, funlockfile) [_LIBC]: New macros.
87393         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87394         [!_LIBC]: New macros.
87395         (call_fclose): New function.
87396         (getpass): Use it.  Save tty stream separately; this simplifies the
87397         code and makes it more reliable if stdin happens to equal stdout.
87398         Invoke __fsetlocking on tty.
87399         Handle thread cancellation if needed.
87400         Namespace cleanup (use __tcgetattr, __getline).
87401         Use bool for Booleans.
87402         [USE_IN_LIBIO]: Handle wide streams.
87403         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87404         stream might go where.
87405
87406         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87407         doesn't have to include <stdio.h> before us.
87408         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87409         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87410         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87411         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87412         if not declared, so that we can use getpass.c code from libc without
87413         rewriting it.
87414         (flockfile, ftrylockfile, funlockfile): New macros.
87415
87416 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87417
87418         * modules/getpass: Depend on stdbool.
87419
87420 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87421
87422         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87423
87424 2003-10-07  Karl Berry  <karl@gnu.org>
87425
87426         * config/config.{guess,sub}: update from config.
87427
87428 2003-10-06  Jim Meyering  <jim@meyering.net>
87429             Bruno Haible  <bruno@clisp.org>
87430
87431         This lets translators provide better translations for the
87432         "Written by ..." part of --version output.
87433         * lib/version-etc.h: Include stdarg.h.
87434         (version_etc_copyright): Declare as readonly.
87435         (version_etc): Make this function variadic with a NULL-terminated list
87436         of author name strings.
87437         (version_etc_va): New declaration.
87438         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87439         (version_etc_copyright): Declare as readonly.
87440         (version_etc_va): New function. Provide a different translatable string
87441         for each possible number of authors < 10. Abbreviate when there are 10
87442         authors or more.
87443         (version_etc): Make this function variadic. Call version_etc_va.
87444         Suggestion from Gary V. Vaughan.
87445
87446         * lib/long-options.h (parse_long_options): Change prototype: the
87447         authors string is moved to the end and becomes variadic.
87448         * lib/long-options.c: Include stdarg.h.
87449         (parse_long_options): Make this function variadic, too.
87450         Call version_etc_va, not version_etc.
87451
87452 2003-10-06  Bruno Haible  <bruno@clisp.org>
87453
87454         * modules/version-etc-2: Remove file.
87455         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87456
87457 2003-10-06  Bruno Haible  <bruno@clisp.org>
87458
87459         * modules/fatal-signal: New file.
87460         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87461
87462 2003-10-06  Bruno Haible  <bruno@clisp.org>
87463
87464         * m4/fatal-signal.m4: New file.
87465         * m4/signalblocking.m4: New file, from GNU gettext.
87466
87467 2003-10-06  Bruno Haible  <bruno@clisp.org>
87468
87469         * lib/version-etc-2.h: Remove file.
87470         * lib/version-etc-2.c: Remove file.
87471
87472 2003-10-06  Bruno Haible  <bruno@clisp.org>
87473
87474         * lib/fatal-signal.h: New file, from GNU gettext.
87475         * lib/fatal-signal.c: New file, from GNU gettext.
87476
87477 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87478
87479         * README: Rework advice for preventing empty .o files.
87480         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87481         not <sys/types.h>.
87482
87483 2003-10-04  Karl Berry  <karl@gnu.org>
87484
87485         * lib/argp*: update from libc.
87486
87487 2003-10-04  Karl Berry  <karl@gnu.org>
87488
87489         * config/config.{guess,sub}: update from config.
87490
87491 2003-10-02  Bruno Haible  <bruno@clisp.org>
87492
87493         * modules/lchown (Include): Add lchown.h.
87494         * modules/time_r (Include): Use "..." syntax.
87495         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87496
87497 2003-10-01  Simon Josefsson  <jas@extundo.com>
87498
87499         * MODULES.html.sh (func_all_modules): Move gethostname from section
87500         'based on' to section 'lacking' POSIX:2001.
87501
87502 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87503
87504         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87505         to output mode on the same stream.
87506
87507 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87508
87509         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87510         Fix arg typo in previous patch.
87511
87512 2003-09-28  Jim Meyering  <jim@meyering.net>
87513
87514         * lib/error.c: Correct cpp indentation.
87515
87516 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87517
87518         * modules/free: New file.
87519
87520 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87521
87522         * m4/free.m4: New file.
87523
87524 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87525
87526         * lib/minmax.h (MIN, MAX)
87527         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87528         Omit the special code that used __typeof__, since we worry that
87529         it could be more trouble than it's worth.  See:
87530         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87531         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87532
87533         * lib/free.c: New file.
87534
87535 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87536
87537         Trivial fixes to Makefile.am parts of module listings.
87538         * modules/strstr: Append strstr.h to lib_SOURCES.
87539         * modules/strcase: Likewise, for strcase.h.
87540
87541 2003-09-27  Karl Berry  <karl@gnu.org>
87542
87543         * config/mkinstalldirs: update from automake.
87544
87545 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87546
87547         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87548         (error_tail): Do not loop, reallocating temporary buffer, since
87549         the output cannot contain more wide characters than the input
87550         contains bytes, the size must be big enough already.  This avoids
87551         one potential size overflow calculation.  Check for size overflow
87552         when calculating temporary buffer size.  Free temporary buffer
87553         when done, if it was allocated with malloc; this plugs a memory
87554         leak.  Remove casts from void * to pointers, that are no longer
87555         needed now that we're assuming C89 or better.
87556
87557         Merge error changes from glibc.
87558
87559         * lib/error.c, error.h: Update copyright notice header to match glibc.
87560         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87561         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87562         Disable cancellation while printing error.
87563         * lib/error.h: Prepend __ to parameter names.
87564
87565 2003-09-26  Jim Meyering  <jim@meyering.net>
87566
87567         * lib/error.c (error_tail): Move some declarations
87568         into inner scope where the local variables are used.
87569
87570 2003-09-26  Bruno Haible  <bruno@clisp.org>
87571
87572         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87573         stpncpy().
87574         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87575
87576 2003-09-26  Bruno Haible  <bruno@clisp.org>
87577
87578         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87579         (stpncpy): Define as alias for gnu_stpncpy.
87580         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87581
87582 2003-09-25  Simon Josefsson  <jas@extundo.com>
87583
87584         * lib/xgetdomainname.h: New file.
87585         * lib/xgetdomainname.c: New file.
87586
87587 2003-09-25  Simon Josefsson  <jas@extundo.com>
87588             Bruno Haible  <bruno@clisp.org>
87589
87590         * modules/getdomainname: New file.
87591         * modules/xgetdomainname: New file.
87592         * MODULES.html.sh (func_all_modules): Add getdomainname,
87593         xgetdomainname.
87594
87595 2003-09-25  Simon Josefsson  <jas@extundo.com>
87596             Bruno Haible  <bruno@clisp.org>
87597
87598         * m4/getdomainname.m4: New file.
87599
87600 2003-09-25  Simon Josefsson  <jas@extundo.com>
87601             Bruno Haible  <bruno@clisp.org>
87602
87603         * lib/getdomainname.h: New file.
87604         * lib/getdomainname.c: New file.
87605
87606 2003-09-25  Karl Berry  <karl@gnu.org>
87607
87608         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87609
87610 2003-09-25  Karl Berry  <karl@gnu.org>
87611
87612         * config/install-sh: update from automake.
87613
87614 2003-09-25  Bruno Haible  <bruno@clisp.org>
87615
87616         * modules/version-etc-2: New file, from modules/version-etc with
87617         modifications.
87618         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87619
87620 2003-09-25  Bruno Haible  <bruno@clisp.org>
87621
87622         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87623         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87624
87625 2003-09-24  Simon Josefsson  <jas@extundo.com>
87626
87627         * modules/xgethostname: Add xgethostname.h.
87628
87629 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87630
87631         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87632         the buffer associated with the argument.  Bug reported by
87633         Simon Josefsson.
87634
87635 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87636
87637         * README: Document assumptions that 'int' is at least 32 bits
87638         wide, that integer arithmetic is 2's complement without overflow,
87639         that there are no holes in integer values, that adding sizes of
87640         two nonoverlapping objects can't overflow, and that all-bits-zero
87641         yields scalar zero.  Fix spelling and capitalization typos.
87642
87643 2003-09-19  Karl Berry  <karl@gnu.org>
87644
87645         * lib/argp.h: update from libc.
87646
87647 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87648
87649         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87650         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87651         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87652
87653 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87654
87655         * gnulib-tool: Use "test -h", not "test -L", for portability
87656         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87657         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87658         (sed_extract_prog): Issue s commands one-by-one, rather than
87659         using \| in one s command.
87660
87661 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87662
87663         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87664         input error, instead of returning NULL the next time we are called
87665         (and therefore losing track of errno).
87666
87667 2003-09-16  Bruno Haible  <bruno@clisp.org>
87668
87669         * gnulib-tool (func_create_testdir): Warn about duplicated
87670         dependencies.
87671
87672 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87673
87674         * modules/argmatch, modules/fatal, modules/obstack,
87675         modules/xalloc, modules/xgethostname: Sort dependencies by
87676         importance, not alphabetically.
87677
87678 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87679
87680         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87681         fails, so that the caller gets the proper errno.
87682
87683         * lib/readutmp.c (read_utmp): Likewise.
87684         Check for fstat error.  Close stream and free storage
87685         when failing.
87686
87687 2003-09-14  Karl Berry  <karl@gnu.org>
87688
87689         * config/srclist.txt (strdup.c): disable for c89 changes.
87690
87691 2003-09-14  Jim Meyering  <jim@meyering.net>
87692
87693         * lib/getloadavg.c: Correct cpp indentation.
87694         * lib/strdup.c: Likewise.
87695         * lib/vasnprintf.c: Likewise.
87696
87697 2003-09-14  Bruno Haible  <bruno@clisp.org>
87698
87699         * modules/fwriteerror: New file.
87700         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87701
87702 2003-09-14  Bruno Haible  <bruno@clisp.org>
87703
87704         * lib/fwriteerror.h: New file.
87705         * lib/fwriteerror.c: New file.
87706
87707 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87708
87709         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87710         modules/xgethostname, modules/xalloc: Depend on exit.
87711
87712 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87713
87714         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87715
87716         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87717         and AC_MINIX, too, so that their extensions are available.
87718
87719         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87720         This macro has been superseded by gl_BACKUPFILE.
87721
87722         More patches to assume C89 or better.
87723
87724         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87725
87726         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87727         unconditionally.
87728         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87729         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87730         Include <string.h>, <stdlib.h> unconditionally.
87731         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87732         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87733         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87734         headers or for string.h.
87735         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87736         or strtoul.
87737
87738         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87739         headers.
87740         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87741         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87742         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87743         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87744         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87745         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87746         memcpy, memset.
87747         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87748         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87749         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87750         strtol.
87751         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87752         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87753         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87754         strtoul.
87755
87756 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87757
87758         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87759         * lib/obstack.c [!defined _LIBC]: Likewise.
87760         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87761         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87762         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87763
87764         More changes to assume C89 or better.
87765
87766         * lib/error.c (error_tail): Assume vprintf.
87767
87768         * lib/argmatch.c (getenv): Remove decl.
87769         * lib/progreloc.c (get_full_program_name): Define via prototype.
87770         * lib/setenv.c (clearenv): Likewise.
87771         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87772         needed.
87773         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87774         (malloc, memcpy): Remove decls.
87775         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87776         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87777         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87778         (memcpy): Remove macro.
87779         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87780         (__P): Remove.  All uses removed.
87781         (PTR): Remove.  All uses changed to void *.
87782         (CHAR_BIT, NULL): Remove.
87783         (spaces, zeros, memset_space, memset_zero)
87784         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87785         Remove.
87786         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87787         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87788         Define with prototype.
87789         Remove now-unnecessary prototype decl.
87790         (extra_args_spec): Assume ANSI C.  All uses changed.
87791         (extra_args_spec_iso): Remove.
87792         (my_strftime, emacs_strftimeu): Define via prototype.
87793         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87794         unconditionally.
87795         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87796         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87797         (strtoul, strtol): Remove decls.
87798         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87799         LONG_MAX): Remove.
87800         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87801         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87802         (LOCALE_PARAM_PROTO): New macro.
87803         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87804         (INTERNAL (strtol), strtol): Define with a prototype.
87805         (PARAMS): Remove.  All uses removed.
87806         * lib/tempname.c: Include <string.h> unconditionally.
87807         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87808         * lib/xgethostname.c (main): Define with a prototype.
87809         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87810         Include <stdlib.h> unconditionally.
87811         (calloc, malloc, realloc, free): Remove decls.
87812         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87813         Include <stdlib.h> unconditionally.  Sort include file names.
87814         (strtod): Remove.
87815         (xstrtod): Define with a prototype.
87816         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87817         (strtol, strtoul): Remove decls.
87818
87819 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87820
87821         More patches to assume C89 or better.
87822         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87823         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87824         string.h, memchr, STDC_HEADERS.
87825
87826 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87827
87828         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87829         Include <stdlib.h>, <string.h> unconditionally.
87830         Remove now-unnecessary cast to char *.
87831         * lib/strnlen.c: Include <string.h> unconditionally.
87832         * lib/yesno.c (yesno): Define with a prototype.
87833
87834 2003-09-11  Bruno Haible  <bruno@clisp.org>
87835
87836         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87837
87838 2003-09-10  Jim Meyering  <jim@meyering.net>
87839
87840         * lib/error.c: Correct indentation of cpp directives.
87841
87842 2003-09-10  Bruno Haible  <bruno@clisp.org>
87843
87844         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87845         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87846         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87847         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87848         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87849         <stdlib.h> and <string.h> checks.
87850         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87851         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87852
87853 2003-09-10  Bruno Haible  <bruno@clisp.org>
87854
87855         * lib/strcspn.c: Include <string.h> unconditionally.
87856         * lib/strpbrk.c: Include <string.h> unconditionally.
87857         * lib/strstr.c: Include <string.h> unconditionally.
87858         * lib/unicodeio.c: Include <string.h> unconditionally.
87859         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87860         * lib/unsetenv.c: Likewise.
87861         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87862         * lib/yesno.c: Include <stdlib.h> unconditionally.
87863         (rpmatch): Add prototype.
87864
87865 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87866
87867         More patches to assume C89 or better.
87868         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87869         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87870         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87871         or for string.h.
87872         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87873         stdlib.h.
87874         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87875         C headers.
87876         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87877         string.h.
87878         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87879         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87880         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87881         or for string.h.
87882         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87883         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87884         C headers.
87885         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87886         memcpy.
87887         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87888         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87889         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87890         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87891         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87892         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87893         string.h, free.
87894         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87895         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87896         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87897         C headers, or for string.h.
87898         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87899         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87900         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87901         headers, memory.h, stdlib.h, string.h, strings.h.
87902         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87903         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87904         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87905         strchr.
87906         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87907         headers, memory.h, string.h.
87908         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87909         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87910         free.
87911         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87912         headers.
87913         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87914         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87915         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87916         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87917         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87918
87919 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87920
87921         More K&R removal.
87922
87923         * lib/acosl.c (main): Use a prototype.
87924         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87925         tanl.c: Likewise.
87926
87927         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87928
87929         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87930         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87931         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87932         with a prototype.
87933         * lib/getopt.c (const): Remove macro.
87934         Include <string.h> unconditionally.
87935         (my_index): Remove; all uses changed to strchr.
87936         (strlen): Remove decl.
87937         (exchange): Remove forward decl; no longer needed.
87938         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87939         Define with prototype.
87940         * lib/getopt1.c (const): Remove macro.
87941         (getopt_long, getopt_long_only, main): Define with prototype.
87942
87943         * lib/getugroups.c: Include <string.h> unconditionally.
87944
87945         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87946         (getusershell, setusershell, endusershell, readname, main):
87947         Define with prototypes.
87948
87949         * lib/group-member.c: Include group-member.h first.
87950         Include <stdlib.h> unconditionally.
87951
87952         * lib/hard-locale.c: Include hard-locale.h first.
87953         Include <stdlib.h>, <string.h> unconditionally.
87954
87955         * lib/hash.c (free, malloc): Remove decls.
87956         Include <stdlib.h> unconditionally.
87957
87958         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87959         (getenv): Do not declare.
87960
87961         * lib/idcache.c: Include <string.h> unconditionally.
87962
87963         * lib/long-options.c: Include long-options.h first, to test interface.
87964         Include <stdlib.h> unconditionally.
87965
87966         * lib/makepath.c: Include makepath.h first, to test interface.
87967         Include <stdlib.h> and <string.h> unconditionally.
87968
87969         * lib/linebuffer.c: Include <stdlib.h>.
87970         (free): Remove decl.
87971
87972         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87973         stddef.h. rpl_malloc returns void *, not char *.
87974         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87975         prototype.
87976
87977         * lib/md5.h: Include <limits.h> unconditionally.
87978         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87979         (__P): Remove; all uses removed.
87980         * lib/md5.c: Include "md5.h" first.
87981         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87982         md5_buffer, md5_process_bytes, md5_process_block):
87983         Define with prototypes.
87984         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87985         * lib/sha.c: Include "sha.h" first.
87986         Include <stdlib.h>, <string.h> unconditionally.
87987
87988         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87989         * lib/memcmp.c (__ptr_t): Likewise.
87990         * lib/memrchr.c (__ptr_t): Likewise.
87991         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87992         Include <string.h> unconditionally.
87993         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87994         * lib/memchr.c: Include <stdlib.h> unconditionally.
87995         * lib/memchr.c (LONG_MAX): Remove.
87996         * lib/memrchr.c (LONG_MAX): Likewise.
87997         * lib/memchr.c (__memchr): Define via a prototype.
87998         * lib/memrchr.c (__memrchr): Likewise.
87999         * lib/memcmp.c (__P): Remove, and remove all uses.
88000         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88001         Remove forward decls; no longer needed.
88002         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88003         Use types required by C89 in prototype.
88004
88005         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88006         * lib/savedir.c: Likewise.
88007         * lib/mkdir.c (free): Remove decl.
88008         * lib/rmdir.c (rmdir): Define with a prototype.
88009         * lib/savedir.c: Include savedir.h first, to test interface.
88010
88011         * lib/mktime.c (STDC_HEADERS): Remove.
88012         Include <stdlib.h>, <string.h> unconditionally.
88013
88014         * lib/modechange.c: Include <stdlib.h> unconditionally.
88015         (malloc): Remove decl.
88016
88017         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88018         (free): Remove decl.
88019
88020         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88021         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88022         (This type really should be intptr_t, but that's a C99ism.)
88023         (_obstack_memcpy): Remove: all uses changed to memcpy.
88024         Include <string.h> unconditionally.
88025         (struct obstack): Assume __STDC__ for types of members
88026         chunkfun, freefun, extra_arg.
88027         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88028         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88029         obstack_begin, obstack_specify_allocation,
88030         obstack_specify_allocation_with_arg, obstack_chunkfun,
88031         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88032         Remove unprototyped decls and the macros that use them.
88033         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88034         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88035         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88036         (defined __STDC__ && __STDC__)]:
88037         Remove nonprototyped code.
88038         Include <stdlib.h> unconditionally.
88039         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88040         _obstack_allocated_p, _obstack_free, obstack_free,
88041         _obstack_memory_used, print_and_abort):
88042         Define using prototypes.
88043         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88044         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88045         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88046         obstack_next_free, obstack_object_size, obstack_room) [0]:
88047         Remove unused, unprototyped code.
88048
88049         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88050
88051         * lib/physmem.c (physmem_total, physmem_available, main): Define
88052         with prototypes.
88053
88054         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88055         (main): Define with a prototype.
88056
88057         * lib/posixver.c (getenv): Remove decl.
88058
88059         * lib/putenv.c (malloc): Returns void *, not char *.
88060         Include <string.h> unconditionally.
88061         (strchr, memcpy, NULL): Do not define.
88062
88063         * lib/readtokens.c: Include readtokens.h first, to test interface.
88064         Include <stdlib.h>, <string.h> unconditionally.
88065         (init_tokenbuffer): Define with a prototype.
88066
88067         * lib/regex.c (PARAMS): Remove.  All uses removed.
88068         All uses of _RE_ARGS removed, too.
88069         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88070         unconditionally.
88071         (bzero): Assume memset exists.
88072         (memcmp, memcpy, NULL): Remove.
88073         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88074         char, or assignments to local vars of type signed char.
88075         (init_syntax_once, PREFIX(extract_number_and_incr),
88076         PREFIX(print_partial_compiled_pattern),
88077         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88078         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88079         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88080         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88081         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88082         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88083         wcs_compile_range, byte_compile_range, truncate_wchar,
88084         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88085         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88086         count_mbs_length, wcs_re_match_2_internal,
88087         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88088         PREFIX(alt_match_null_string_p),
88089         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88090         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88091         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88092         now-unnecessary declaration, if any.
88093         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88094         regcomp, regexec):
88095         Remove now-unnecessary casts among pointer types.
88096         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88097
88098         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88099         (free): Remove decl.
88100
88101         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88102
88103         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88104         (free): Remove decl.
88105
88106         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88107         * lib/xgetcwd.c: Likewise.
88108
88109         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88110         (free): Remove decl.
88111
88112         * lib/strchrnul.c (strchrnul): Define with a prototype.
88113         Fix bug: c_in was not converted to char before searching.
88114
88115         The following changes are not K&R related:
88116
88117         * lib/group-member.h: Include <sys/types.h>, so that this file is
88118         self-contained.
88119         * lib/makepath.h: Likewise.
88120
88121         * lib/getusershell.c (readname, default_index, line_size, readname):
88122         Use size_t, not int, for sizes.
88123         (readname): If the size overflows, report an error instead of
88124         looping forever.
88125
88126 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88127
88128         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88129         libc.
88130
88131 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88132
88133         * README: New section: portability guidelines.
88134
88135 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88136
88137         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88138         C89 spec.
88139
88140 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88141
88142         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88143
88144 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88145
88146         Assume C89 or better; remove K&R cruft.
88147         A few of these changes were first proposed by Derek Robert Price
88148         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88149
88150         * lib/addext.c: Include <string.h> unconditionally.
88151         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88152         Don't declare getenv or malloc.
88153
88154         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88155         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88156         (NULL): Remove.
88157         (find_stack_direction, alloca): Use prototypes.
88158
88159         * lib/atexit.c (atexit): Define using a prototype.
88160
88161         * lib/basename.c, dirname.c, stripslash.c:
88162         Include <string.h> unconditionally.
88163
88164         * lib/bcopy.c: Include <stddef.h>.
88165         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88166
88167         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88168
88169         * lib/error.h (error, error_at_line, error_print_progname)
88170         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88171         * lib/error.c: Include error.h first, to check interface.
88172         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88173         (VA_START): Remove; all uses changeed to va_start.
88174         (exit, strerror): Remove decls.
88175         (error_print_progname): Prototype uncondionally.
88176         Don't include <errno.h>; no longer needed.
88177         (private_strerror): Remove.
88178         (error_tail): Always define.
88179         (error, error_at_line): Assume C89 or better; always use prototypes.
88180         * lib/fatal.c: Include "fatal.h" first, to test interface.
88181         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88182         (VA_START): Remove; all uses changed to va_start.
88183         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88184         this case.
88185         (exit): Remove decl.
88186         (fatal): Prototype unconditionally.  Assume va_start works.
88187         Abort at end, to pacify gcc.
88188
88189         * lib/euidaccess.c (main): Define with a prototype.
88190
88191         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88192
88193         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88194
88195         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88196         prototypes.
88197         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88198         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88199         (getenv): Remove decl.
88200         (fnmatch): Define using a prototype.
88201         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88202         (FCT): Define using a prototype.
88203
88204         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88205
88206         * lib/gethostname.c: Include <stddef.h>.
88207         (gethostname): Define with prototype.  Length is size_t, not int.
88208
88209 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88210
88211         Assume C89 or better; remove K&R cruft.
88212         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88213         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88214         string.h, getenv, malloc.
88215         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88216         headers.
88217         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88218         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88219         do not check for strerror.
88220         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88221         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88222         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88223         do not check for doprnt or vprintf.
88224         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88225         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88226
88227 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88228
88229         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88230         getversion.c should have been removed then, but was accidentally
88231         preserved.
88232
88233         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88234         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88235
88236 2003-09-08  Karl Berry  <karl@gnu.org>
88237
88238         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88239                 config, forget about prep.
88240
88241         * config/depcomp, missing: update from automake.
88242
88243 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88244
88245         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88246         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88247
88248 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88249
88250         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88251         copy_tm_result.  Bug reported by Simon Josefsson in
88252         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88253
88254 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88255
88256         * m4/time_r.m4: New file.
88257         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88258         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88259         is. Check for timegm declaration.
88260         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88261         Do not check for gmtime_r.
88262         Replace mktime if __mktime_internal does not exist and if mktime
88263         hasn't been replaced already.
88264
88265 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88266
88267         * lib/time_r.c, lib/time_r.h: New files.
88268
88269         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88270         __localtime_r.
88271         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88272         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88273
88274         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88275         __gmtime_r.
88276         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88277         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88278         Include <time_r.h>.
88279
88280         * lib/timegm.c: Switch to glibc implementation, with the following
88281         changes:
88282         [defined HAVE_CONFIG_H]: Include <config.h>.
88283         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88284         (__mktime_internal) [!defined _LIBC]: New decl.
88285         (__gmtime_r) [!defined _LIBC]: New macro and function.
88286         (timegm): Use a prototype, since gnulib assumes C89.
88287         Do not bother declaring tmp to be const, as it's not really usefu.
88288         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88289         (timegm): Declare only if HAVE_DECL_TIMEGM.
88290
88291 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88292
88293         * MODULES.html.sh (func_all_modules): Add time_r.
88294         * modules/time_r: New file.
88295         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88296         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88297
88298 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88299
88300         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88301         Bug reported by Lute Kamstra in
88302         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88303
88304         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88305         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88306         course with correspondingly smaller numbers for tomorrow and
88307         yesterday.  From Tadayoshi Funaba.  Originally installed into
88308         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88309         coreutils merge?).
88310
88311 2003-08-31  Simon Josefsson  <jas@extundo.com>
88312
88313         * modules/timegm: New file.
88314         * MODULES.html.sh (func_all_modules): Add timegm.
88315
88316 2003-08-31  Simon Josefsson  <jas@extundo.com>
88317
88318         * m4/timegm.m4: New file.
88319
88320 2003-08-31  Simon Josefsson  <jas@extundo.com>
88321
88322         * lib/timegm.h: New file.
88323         * lib/timegm.c: New file.  Based on
88324         wget-1.8.2/src/http.c:mktime_from_utc.
88325
88326 2003-08-31  Karl Berry  <karl@gnu.org>
88327
88328         * lib/argp.h: update from libc.
88329
88330 2003-08-28  Bruno Haible  <bruno@clisp.org>
88331
88332         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88333         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88334         followed by '#define fnmatch fnmatch_posix' gives an error.
88335
88336 2003-08-28  Bruno Haible  <bruno@clisp.org>
88337
88338         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88339         warning on QNX, which defines O_BINARY to 000000.
88340
88341 2003-08-27  Jim Meyering  <jim@meyering.net>
88342
88343         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88344         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88345         would fail after 32.  Reported by Danny Levinson.  Details here:
88346         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88347
88348 2003-08-24  Bruno Haible  <bruno@clisp.org>
88349
88350         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88351         MSVC7 <stdio.h> is included later.
88352
88353 2003-08-22  Simon Josefsson  <jas@extundo.com>
88354
88355         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88356
88357 2003-08-20  Karl Berry  <karl@gnu.org>
88358
88359         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88360
88361 2003-08-20  Bruno Haible  <bruno@clisp.org>
88362
88363         * modules/progname: New file.
88364         * MODULES.html.sh (func_all_modules): Add progname.
88365
88366 2003-08-20  Bruno Haible  <bruno@clisp.org>
88367
88368         * lib/progname.h: New file, from GNU gettext.
88369         * lib/progname.c: New file, from GNU gettext.
88370         * lib/progreloc.c: New file, from GNU gettext.
88371
88372 2003-08-19  Jim Meyering  <jim@meyering.net>
88373
88374         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88375         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88376
88377 2003-08-19  Bruno Haible  <bruno@clisp.org>
88378
88379         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88380         more.
88381
88382 2003-08-19  Bruno Haible  <bruno@clisp.org>
88383
88384         * lib/xstrdup.c: Assume <string.h> exists.
88385
88386 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88387
88388         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88389         in makefile rules.
88390
88391 2003-08-18  Jim Meyering  <jim@meyering.net>
88392
88393         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88394         * m4/lib-ld.m4: Likewise.
88395
88396 2003-08-18  Jim Meyering  <jim@meyering.net>
88397
88398         * lib/setenv.h: Indent nested cpp directive.
88399         * lib/vasnprintf.c: Remove trailing blanks.
88400
88401 2003-08-17  Simon Josefsson  <jas@extundo.com>
88402
88403         * modules/xstrndup: New file.
88404         * MODULES.html.sh (func_all_modules): Add xstrndup.
88405
88406 2003-08-17  Simon Josefsson  <jas@extundo.com>
88407
88408         * modules/argp: Fix autoconf macro name. Add more dependencies.
88409
88410 2003-08-17  Simon Josefsson  <jas@extundo.com>
88411
88412         * m4/xstrndup.m4: New file.
88413
88414 2003-08-17  Simon Josefsson  <jas@extundo.com>
88415
88416         * m4/argp.m4: New file.
88417
88418 2003-08-17  Simon Josefsson  <jas@extundo.com>
88419             Bruno Haible  <bruno@clisp.org>
88420
88421         * lib/xstrndup.h: New file.
88422         * lib/xstrndup.c: New file.
88423
88424 2003-08-17  Bruno Haible  <bruno@clisp.org>
88425
88426         * modules/strndup (Files, Include): Add lib/strndup.h.
88427
88428 2003-08-17  Bruno Haible  <bruno@clisp.org>
88429
88430         * modules/euidaccess (Files): Add lib/euidaccess.h.
88431
88432 2003-08-17  Bruno Haible  <bruno@clisp.org>
88433
88434         * lib/strndup.h: New file.
88435
88436 2003-08-17  Bruno Haible  <bruno@clisp.org>
88437
88438         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88439         like AC_GNU_SOURCE.
88440         * modules/extensions (configure.ac): Comment out the invocation of
88441         gl_USE_SYSTEM_EXTENSIONS.
88442
88443 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88444
88445         Merges from coreutils, etc.
88446         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88447         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88448         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88449         fixing a typo.
88450         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88451         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88452
88453 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88454
88455         Document merge from coreutils.
88456         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88457         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88458         * modules/utime: Add m4/utimes-null.m4.
88459
88460 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88461
88462         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88463         space, undoing this 2003-08-12 change:
88464         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88465
88466 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88467
88468         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88469         strtoul.c from libc, undoing this 2003-08-12 change:
88470         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88471
88472 2003-08-16  Jim Meyering  <jim@meyering.net>
88473
88474         Merges from coreutils.
88475         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88476         prefix.  Adjust cache variables similarly.  Create 500 rather than
88477         just 300 files, to exercise bug on Darwin6.5, too.
88478         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88479         $missing_dir.
88480         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88481         AM_SYS_POSIX_TERMIOS.
88482         Reported by mkc@mathdogs.com.
88483         Also change use of $am_cv_sys_posix_termios
88484         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88485         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88486         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88487         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88488         in /proc/mounts until it finds one with matching device number.  This
88489         is unnecessary when the FILE argument *is* a mount point.  No stat call
88490         is necessary in that case.  So, disable the statvfs-testing code on
88491         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88492         as RedHat bug# 84846.
88493         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88494         to 1MB, so as not to render systems with no stack size limit (e.g.,
88495         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88496         Include <unistd.h>.  On some systems,
88497         it is required for the definition of _SC_PAGESIZE.
88498
88499 2003-08-16  Jim Meyering  <jim@meyering.net>
88500
88501         Merge from coreutils.
88502         * lib/xstrtoimax.c: #else #if -> #elif.
88503         * lib/xstrtoumax.c: Likewise.
88504
88505 2003-08-16  Jim Meyering  <jim@meyering.net>
88506
88507         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88508         * m4/utimes.m4: Removed.
88509         * m4/utimes-null.m4: Renamed from utimes.m4.
88510
88511         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88512         to 1MB, so as not to render systems with no stack size limit (e.g.,
88513         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88514         Include <unistd.h>.  On some systems,
88515         it is required for the definition of _SC_PAGESIZE.
88516
88517 2003-08-16  Jim Meyering  <jim@meyering.net>
88518         and Paul Eggert  <eggert@cs.ucla.edu>
88519
88520         Merges from coreutils, etc.
88521
88522         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88523         using the latest version from cvs.  This avoids problems with #line
88524         directives using a vendor (Sun) compiler.
88525         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88526         Don't set GETGROUPS_LIB here; now it's
88527         done via getgroups.m4's wrapper function.
88528         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88529         rather than just in sh-util/configure.in, so that the
88530         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88531         same.
88532         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88533         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88534         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88535         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88536         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88537         Remove code that is now done by the newly-required macros.
88538         Append $(EXEEXT) to DF_PROG.
88539         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88540         Do not invoke or require the following here,
88541         since prereq.m4 or some gnulib .m4 now does this for us:
88542         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88543         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88544         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88545         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88546         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88547         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88548         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88549         AC_FUNC_OBSTACK.
88550         Do not replace the following functions, as this is now the job
88551         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88552         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88553         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88554         atexit getpass, strdup, getpagesize.
88555         Replace 'raise'.
88556         Do not check for the following functions, as this is now the job
88557         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88558         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88559         setregid.
88560         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88561         Check for sys/sysctl.h.
88562         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88563         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88564         of checking for ssize_t ourselves.
88565
88566         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88567         Require every macro that gnulib/modules/* suggests for us.
88568         (jm_PREREQ_ADDEXT): New macro.
88569         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88570         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88571
88572         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88573         (gl_PHYSMEM): Use it.
88574         Also check for `table' function.
88575         Check for new headers and functions.
88576         Add check for sys/sysmp.h.
88577         With suggestions from Kaveh Ghazi.
88578         Ignore headers that are present but cannot be compiled.  This
88579         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88580         C 5.4.
88581
88582 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88583
88584         Document merge from coreutils.
88585         * modules/userspec: Depend on posixver.
88586         * modules/strftime: Depend on tzset.
88587
88588 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88589
88590         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88591         rather than tab, after '#' in shell-script copyright notices.
88592         Suggested by Bruno Haible.
88593
88594 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88595
88596         * config/srclist-update: Use three spaces, rather than tab, after '#'
88597         in shell-script copyright notices.  Suggested by Bruno Haible.
88598         Remove unnecessary parenthesization in regular expression.
88599
88600 2003-08-15  Jim Meyering  <jim@meyering.net>
88601
88602         Merge from coreutils.
88603         * lib/xgethostname.c: Include <stdlib.h>.
88604         (xghostname): Don't exit for anything other than memory-related
88605         failure; just return NULL.
88606         * lib/userspec.c: Include "posixver.h".
88607         (parse_user_spec): Accept `.' as a separator only
88608         in pre-POSIX-200112 mode.
88609         * lib/strtoimax.c: Use #elif rather than #else #if.
88610         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88611         Remove function, now that we can rely on a working tzset function.
88612         [!_LIBC]: Ensure that the required autoconf test has been run.
88613         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88614         Use underlying_strftime for %r.
88615         * lib/sha.c: Merge in some clean-up and optimization changes from
88616         glibc.
88617         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88618         Ensure that it is a multiple of 64.
88619         Rearrange loop exit tests so as to avoid performing an
88620         additional fread after encountering an error or EOF.
88621         * lib/realloc.c: Update copyright date.
88622
88623 2003-08-15  Jim Meyering  <jim@meyering.net>
88624         and Paul Eggert  <eggert@twinsun.com>
88625
88626         Merge from coreutils.
88627         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88628         member but strut utmpx does not.  Needed for AIX 4.3.3.
88629         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88630
88631 2003-08-15  Jim Meyering  <jim@meyering.net>
88632         and Paul Eggert  <eggert@cs.ucla.edu>
88633
88634         Merges from coreutils, etc.
88635         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88636         Require gl_FUNC_TZSET_CLOBBER.
88637         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88638         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88639         members.
88640
88641 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88642
88643         Help the merge from coreutils.
88644         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88645         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88646         * m4/tzset.m4: Use it too.
88647
88648 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88649
88650         * modules/tzset: New file.
88651
88652 2003-08-14  Jim Meyering  <jim@meyering.net>
88653
88654         Merges from coreutils.
88655         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88656         variable names, rather than @FNMATCH_H@.
88657         * modules/alloca: Likewise for $(ALLOCA_H).
88658
88659         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88660         the three copies of the literal target, `fnmatch.h'.
88661         * modules/alloca (alloca.h): Likewise.
88662
88663 2003-08-14  Jim Meyering  <jim@meyering.net>
88664
88665         Merge from coreutils.
88666         * m4/tzset.m4: New file.
88667         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88668         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88669         otherwise, AIX 5.1 systems would end up using the latter.
88670         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88671         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88672         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88673         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88674
88675 2003-08-14  Jim Meyering  <jim@meyering.net>
88676
88677         Merge from coreutils.
88678         * lib/obstack.h: Whitespace changes.
88679         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88680         and xcalloc return values.
88681         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88682         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88683         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88684         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88685         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88686         error from mntctl.
88687         Use mntctl's return value to drive the entry-processing loop, since
88688         we can't rely on the value of the vmt_length member in the last
88689         entry.  On some systems doing so could result in exhausting
88690         virtual memory.  Based in part on a patch from Mike Jetzer.
88691
88692 2003-08-14  Jim Meyering  <jim@meyering.net>
88693         and Paul Eggert  <eggert@twinsun.com>
88694
88695         Merges from coreutils, plus other fixes.
88696         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88697         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88698         for credits and details.  Thanks to Kaveh Ghazi for helping
88699         to keep these files in sync.
88700         (ARRAY_SIZE): Define it.
88701         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88702         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88703         (memcasecmp): Don't assume size_t fits in unsigned int.
88704         Remove casts and duplicate code.
88705         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88706         (memcpy): Remove definition.
88707         Merge in some clean-up and optimization changes from glibc.
88708         [BLOCKSIZE]: Move definition to top of file.
88709         Ensure that it is a multiple of 64.
88710         Rearrange loop exit tests so as to avoid performing an
88711         additional fread after encountering an error or EOF.
88712         * lib/md5.h (md5_uintptr): Define.
88713         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88714         return to the initial working directory.  Preserve errno
88715         for caller.
88716         * lib/idcache.c: Include "xalloc.h".
88717         (xmalloc, xrealloc): Remove decls.
88718         (getuser): Remove casts no longer required in C89.
88719         * lib/human.c: Include stdio.h, for sprintf.
88720         * lib/group-member.c: Include "xalloc.h".
88721         (xmalloc, xrealloc): Remove decls.
88722         (get_group_info): Remove casts no longer required in C89.
88723         * lib/getusershell.c (readname): Remove casts no longer required in
88724         C89.
88725         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88726         * lib/getline.c: Whitespace fix, from coreutils.
88727
88728 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88729
88730         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88731         Check for isascii.
88732
88733         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88734         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88735         Undo previous (whitespace-only) change.
88736
88737 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88738
88739         * lib/exclude.c: Include <ctype.h>
88740         (IN_CTYPE_DOMAIN): New macro.
88741         (is_space): New fn.
88742         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88743         and empty lines.
88744
88745         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88746         Undo previous (whitespace-only) change.
88747
88748 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88749
88750         * config/srclist-update: Change update back to the old behavior,
88751         leaving whitespace alone.  Use one 'sed' command rather than a
88752         pipeline.
88753         (fixlicense): Now a variable, not a function.
88754         (remove_trailing_blanks): Remove.
88755         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88756         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88757         Undo previous (whitespace-only) change.
88758
88759 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88760
88761         Merge from coreutils.
88762         * modules/euidaccess: Add lib_SOURCES, include for new
88763         file euidaccess.h
88764
88765 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88766
88767         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88768         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88769         Normalize leading white space and remove trailing white space.
88770
88771         Merge from coreutils
88772         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88773
88774         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88775         0.12.1.  These files are now being upgraded automatically by
88776         ../config/srclist-update.
88777
88778 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88779
88780         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88781         Normalize leading white space and remove trailing white space.
88782         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88783         notice, as per ../config/srclist-update.
88784
88785         Merge from coreutils.
88786         * lib/euidaccess.h: New file.
88787         * lib/euidaccess.c: Include it.
88788         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88789         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88790         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88791
88792 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88793
88794         * config/srclist-update: Add copyright notice.
88795         (remove_id_lines, remove_trailing_blanks): New constants.
88796         (fixfile): Use them to normalize spacing a bit in copied files.
88797         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88798         Normalize leading white space and remove trailing white space.
88799
88800         * config/texinfo.tex: Sync with texinfo.
88801
88802         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88803         strtoul.c from libc, to merge coreutils whitespace changes.
88804
88805         * config/srclist.txt: Get the following m4 files from gettext:
88806         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88807         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88808         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88809         wint_t.m4.
88810
88811 2003-08-12  Karl Berry  <karl@gnu.org>
88812
88813         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88814         been made.
88815
88816 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88817
88818         * modules/gnu-source, m4/gnu-source.m4:
88819         Remove; we're assuming Autoconf 2.54 or later now.
88820         Suggested by Bruno Haible.
88821         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88822
88823 2003-08-11  Bruno Haible  <bruno@clisp.org>
88824
88825         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88826
88827 2003-08-11  Bruno Haible  <bruno@clisp.org>
88828
88829         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88830         (vasnprintf): Use it instead of wcslen.
88831
88832 2003-08-11  Bruno Haible  <bruno@clisp.org>
88833
88834         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88835         value to ensure that _Bool promotes to int. Use #define for _Bool when
88836         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88837
88838 2003-08-10  Karl Berry  <karl@gnu.org>
88839
88840         * lib/regex.h: update from libc (whitespace fix).
88841
88842 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88843
88844         Merge some files from coreutils.  These changes were
88845         originally made by Jim Meyering.
88846         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88847         many older Unixes require this.
88848         * lib/alloca.c (alloca): Remove cast to argument of free;
88849         no longer needed in C89.
88850         * lib/alloca_.h, regex.h: Fix white space to match
88851         what GNU indent does.
88852
88853 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88854
88855         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88856         apparently Emacs's Unicode mode got confused before my 2003-08-05
88857         checkin.
88858
88859 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88860
88861         * m4/extensions.m4: New file.
88862         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88863         Require gl_USE_SYSTEM_EXTENSIONS.
88864         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88865         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88866
88867 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88868
88869         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88870         * modules/extensions, modules/gnu-source: New files.
88871         * modules/timespec, modules/unlocked-io: Depend on extensions.
88872
88873 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88874
88875         * modules/restrict: New file.
88876         * MODULES.html.sh (func_all_modules): Add restrict.
88877         * modules/regex: Depend on restrict.
88878
88879 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88880
88881         * m4/restrict.m4: New file.
88882         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88883
88884 2003-08-07  Bruno Haible  <bruno@clisp.org>
88885
88886         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88887         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88888
88889 2003-08-07  Bruno Haible  <bruno@clisp.org>
88890
88891         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88892         makes the module 'getndelim2' compatible with the module 'getline'.
88893
88894 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88895
88896         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88897         byte with "\201" to avoid glitches when editing that source file
88898         with multi-gnome-terminal.
88899
88900 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88901
88902         * lib/bumpalloc.h: Remove.
88903
88904 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88905
88906         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88907         * modules/bumpalloc: Remove.
88908
88909 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88910
88911         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88912         GNU coding style.
88913
88914         Merge from coreutils.
88915         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88916         1. From glibc.
88917         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88918         from Karl Berry, implemented by Jim Meyering.
88919         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88920         from Dmitry V. Levin.
88921         Remove anachronistic cast of xrealloc.
88922         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88923         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88924         type. Otherwise, it wouldn't compile with at least /bin/cc on
88925         ymp-cray-unicos9.0.2.X.
88926         Combine two mostly-identical uses of alloca into one.
88927         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88928
88929 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88930
88931         [From Emacs.]
88932
88933         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88934         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88935         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88936         obsolete NLIST_NAME_UNION.
88937         [__GNU__]: Undef BSD and FSCALE.
88938         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88939
88940 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88941
88942         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88943         an enum type, so that it's guaranteed to promote to int.  See:
88944         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88945
88946 2003-08-03  Karl Berry  <karl@gnu.org>
88947
88948         * config/depcomp: update from automake.
88949
88950 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88951
88952         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88953         (strerror): Don't assume that a printable int fits in 14 bytes.
88954
88955 2003-07-31  Bruno Haible  <bruno@clisp.org>
88956
88957         * modules/getpass-gnu: New file.
88958         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88959
88960 2003-07-31  Bruno Haible  <bruno@clisp.org>
88961
88962         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88963
88964 2003-07-24  Karl Berry  <karl@gnu.org>
88965
88966         * config/missing: update from automake.
88967
88968 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88969             Bruno Haible  <bruno@clisp.org>
88970
88971         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88972         * lib/getline.c (getline, getdelim): Likewise.
88973         Remove _GNU_SOURCE define; now it's defined in config.h through
88974         m4/getline.m4.
88975
88976 2003-07-23  Karl Berry  <karl@gnu.org>
88977
88978         * config/config.sub: update from prep.
88979
88980 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88981
88982         * modules/xalloc (Depends-on): Add exitfail.
88983         * modules/xmemcoll: Likewise.
88984
88985 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88986
88987         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88988         over-parenthesization in macros.
88989
88990         Sync with coreutils.
88991
88992         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88993         required by C99.
88994
88995         Use `exit_failure' for xalloc and xmemcoll instead of their own
88996         private exit-failure variables.
88997         * lib/xalloc.h (xalloc_exit_failure): Remove.
88998         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88999         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89000         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89001         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89002         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89003
89004 2003-07-20  Jim Meyering  <jim@meyering.net>
89005
89006         * modules/closeout (Depends-on): Add exitfail.
89007         Suggestion from Bruno Haible.
89008
89009 2003-07-19  Karl Berry  <karl@gnu.org>
89010
89011         * config/config.sub: update from prep.
89012
89013 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89014
89015         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89016         Remove.
89017         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89018         to test that it can stand by itself.  Include "exitfail.h".
89019         Clients should set exit_failure instead.
89020         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89021
89022 2003-07-18  Bruno Haible  <bruno@clisp.org>
89023
89024         * modules/getndelim2: New file.
89025         * modules/getline: Share files with module getndelim2.
89026         * modules/getnline: Depend on getndelim2 instead of sharing files with
89027         it. Add getnline.c to lib_SOURCES.
89028         * MODULES.html.sh (func_all_modules): Add getndelim2.
89029
89030 2003-07-18  Bruno Haible  <bruno@clisp.org>
89031
89032         * m4/getndelim2.m4: New file.
89033         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89034         invoke gl_PREREQ_GETNDELIM2.
89035         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89036         gl_PREREQ_GETNDELIM2.
89037         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89038         gl_GETNDELIM2.
89039
89040 2003-07-18  Bruno Haible  <bruno@clisp.org>
89041
89042         * lib/getndelim2.h: New file.
89043         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89044         getndelim2.h.
89045         (getndelim2): Make non-static. Change return type to ssize_t.
89046         * lib/getline.h: Change argument names.
89047         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89048         * lib/getnline.c: Include getndelim2.h.
89049
89050 2003-07-18  Andreas Schwab  <schwab@suse.de>
89051
89052         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89053
89054 2003-07-17  Karl Berry  <karl@gnu.org>
89055
89056         * config/config.sub: update from prep.
89057
89058 2003-07-17  Bruno Haible  <bruno@clisp.org>
89059
89060         * modules/getnline: New file.
89061         * modules/getline: Add lib/getndelim2.c to source file list.
89062         * MODULES.html.sh (func_all_modules): Add getnline.
89063
89064 2003-07-17  Bruno Haible  <bruno@clisp.org>
89065
89066         * m4/getnline.m4: New file.
89067
89068 2003-07-17  Bruno Haible  <bruno@clisp.org>
89069
89070         * m4/Makefile.am.in: Remove file.
89071         * m4/Makefile.am: Remove file.
89072         * m4/Makefile.in: Remove file.
89073
89074 2003-07-17  Bruno Haible  <bruno@clisp.org>
89075
89076         * lib/getnline.h: New file.
89077         * lib/getnline.c: New file.
89078         * lib/getndelim2.c: New file, extracted from getline.c.
89079         (getndelim2): Renamed from getdelim2, with added nmax argument.
89080         * lib/getline.c: Include getndelim2.c.
89081         (getdelim2): Moved out to getndelim2.c.
89082         (getline, getdelim): Update.
89083
89084 2003-07-17  Bruno Haible  <bruno@clisp.org>
89085
89086         * lib/Makefile.am: Remove file.
89087         * lib/Makefile.in: Remove file.
89088
89089 2003-07-17  Bruno Haible  <bruno@clisp.org>
89090
89091         * configure.in: Remove file.
89092         * Makefile.in: Remove file.
89093
89094 2003-07-17  Bruno Haible  <bruno@clisp.org>
89095
89096         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89097
89098 2003-07-16  Karl Berry  <karl@gnu.org>
89099
89100         * config/srclist-update: was running fixlicense twice, which caused
89101                 texinfo.tex to be nullified for some reason.  Simplify,
89102                 $gplsrc is no longer needed as far as I can see?
89103
89104 2003-07-16  Jim Meyering  <jim@meyering.net>
89105
89106         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89107
89108 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89109
89110         * config/srclist.txt: Get the following files from gettext-runtime/intl
89111         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89112         ref-del.sin.  From Bruno Haible.
89113         * config/srclist-update (fixfile): Change grep pattern again, since the
89114         previous fix didn't work (there was another trailing $).  Use
89115         '[$]' to escape the $s.
89116
89117 2003-07-15  Karl Berry  <karl@gnu.org>
89118
89119         * lib/vasnprintf.c: update from gettext.
89120
89121 2003-07-15  Karl Berry  <karl@gnu.org>
89122
89123         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89124         gets expanded when surrounded by '$'.
89125
89126 2003-07-15  Jim Meyering  <jim@meyering.net>
89127
89128         * modules/save-cwd: Don't depend on error.  From Derek Price.
89129
89130 2003-07-15  Jim Meyering  <jim@meyering.net>
89131
89132         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89133
89134 2003-07-14  Simon Josefsson  <jas@extundo.com>
89135
89136         * modules/mempcpy: New file.
89137         * MODULES.html.sh (func_all_modules): Add mempcpy.
89138
89139 2003-07-14  Simon Josefsson  <jas@extundo.com>
89140
89141         * m4/mempcpy.m4: New file.
89142
89143 2003-07-14  Simon Josefsson  <jas@extundo.com>
89144
89145         * lib/mempcpy.h: New file.
89146         * lib/mempcpy.c: New file.
89147
89148 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89149
89150         * modules/getdate, modules/posixtm: Depend on mktime.
89151
89152 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89153
89154         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89155         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89156         unicodeio.c, unicodeio.h, unlocked-io.h:
89157         Switch from LGPL to GPL.
89158
89159 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89160
89161         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89162         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89163         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89164         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89165         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89166         updated automatically by ../config/srclist-update.  This changes
89167         their license from LPGL to GPL.
89168
89169 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89170
89171         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89172         assumed to refer to the root of the most recent stable gettext version.
89173         * config/srclistvars.sh: Add defaults for eggert.
89174         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89175         Match "This program" as well as "The program".  This is needed
89176         for gettext.
89177
89178 2003-07-14  Jim Meyering  <jim@meyering.net>
89179
89180         Don't emit diagnostics.  Let callers do that.
89181         * lib/save-cwd.c: Don't include "error.h".
89182         (save_cwd): Don't call error.  Ensure that errno is valid
89183         when returning nonzero.
89184
89185         * lib/save-cwd.h (restore_cwd): Update prototype.
89186         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89187         Simplify.  Don't call error upon failure.  Let callers do that.
89188         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89189         when auditing is enabled.  But don't bother updating the #if.
89190
89191 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89192
89193         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89194         it breaks C++ compilation.
89195         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89196
89197 2003-07-10  Simon Josefsson  <jas@extundo.com>
89198
89199         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89200
89201 2003-07-10  Jim Meyering  <jim@meyering.net>
89202
89203         * m4/clock_time.m4: Remove trailing blank.
89204         * m4/intmax_t.m4: Likewise.
89205
89206 2003-07-10  Jim Meyering  <jim@meyering.net>
89207
89208         * lib/vasnprintf.c: Remove trailing blanks.
89209         Make cpp indentation consistent.
89210
89211 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89212
89213         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89214         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89215         Switch from LGPL to GPL.
89216
89217 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89218
89219         * config/srclist.txt: Sort sublists.  Add
89220         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89221         that differ from gnulib for one reason or another; we'd like this list
89222         to be smaller but for now let's document what we have.
89223
89224 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89225
89226         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89227         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89228         and sweeter "eval x=$x".
89229         * config/srclist.txt: Get lib/argp* from glibc.
89230
89231 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89232
89233         * lib/mktime.c: Fix some boundary cases and remove need for floating
89234         point.
89235
89236         Issue a compile-time diagnostic if time_t is floating point, or if
89237         two's complement arithmetic is not in effect, or if arithmetic
89238         right shift does not propagate the sign.  These assumptions were
89239         all in the original code but they weren't checked.
89240
89241         (TIME_T_MIDPOINT, verify): New macros.
89242         (__isleap): Remove; it has integer overflow problems.
89243         (leapyear): New function, without those problems.
89244         (ydhms_tm_diff): Remove; splitting into two parts.
89245         (ydhms_diff): New function, containing the arithmetic part of
89246         the old ydhms_tm_diff function.  Issue a compile-time
89247         diagnostic if we are not using C99 integer division.
89248         Avoid casts when possible.
89249         (guess_time_tm): New function, containing the checking part of
89250         the old ydhms_tm_diff function.  Return the new value, rather than
89251         the difference between it and the old.  Accept a new argument T
89252         so that *T specifies the old value.  Check for overflow in the result.
89253
89254         (__mktime_internal): Use a time_t offset, not a long int offset.
89255         This undoes the 2003-06-04 change, which is no longer needed now
89256         that we have better overflow checking.
89257         (localtime_offset): Likewise.
89258
89259         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89260         and long are 64-bit but int is only 32-bit.
89261         (ydhms_diff): Use long int to store year1 and yday1.
89262         Issue a compile-time diagnostic if long int is not wide enough.
89263
89264         (__mktime_internal): Use long int to store adjusted year and yday.
89265         Use plain C rather than preprocessor commands, if that doesn't
89266         affect efficiency.
89267         Check for overflow (and try to repair) after each probe
89268         rather than checking only at the very end.  This avoids some bugs
89269         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89270         does not equal GMT offset at maximum time).
89271         Use integer to check for overflow rather than floating point; this
89272         is more portable to non-IEEE hosts, and is a tad faster.
89273         When we detect that we are oscillating between two values,
89274         don't check whether tm_isdst has the requested value, since
89275         we already know the answer.  When tm_isdst has the wrong value,
89276         use a different heuristic to find the right one, based on the
89277         extreme values actually observed in practice in tz2003a,
89278         rather than the (overly optimistic) "previous 3 calendar quarters".
89279
89280         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89281         "T const" to accommodate glibc style.
89282         (check_result): Use less-confusing report format.  "long" -> "long int.
89283         (main): Likewise.
89284         Don't loop if the iteration overflows time_t.
89285         Allow a negative step in the iteration.
89286
89287 2003-07-06  Karl Berry  <karl@gnu.org>
89288
89289         * config/depcomp: update from automake.
89290         * config/config.sub: update from prep.
89291
89292 2003-07-03  Karl Berry  <karl@gnu.org>
89293
89294         * config/config.guess: update from prep.
89295
89296 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89297
89298         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89299         xreadlink.c now includes it unconditionally.
89300
89301 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89302
89303         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89304         having it depend on HAVE_SYS_TYPES_H.
89305
89306 2003-07-01  Bruno Haible  <bruno@clisp.org>
89307
89308         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89309         <sys/types.h> should be sufficient.
89310         Reported by Paul Eggert.
89311
89312 2003-06-26  Karl Berry  <karl@gnu.org>
89313
89314         * config/depcomp: update from automake.
89315
89316 2003-06-26  Bruno Haible  <bruno@clisp.org>
89317
89318         * modules/human: Depend on module stdbool.
89319
89320 2003-06-25  Bruno Haible  <bruno@clisp.org>
89321
89322         * modules/readlink: New file.
89323         * modules/xreadlink: Depend on it.
89324         * MODULES.html.sh (func_all_modules): Add readlink.
89325
89326 2003-06-25  Bruno Haible  <bruno@clisp.org>
89327
89328         * m4/readlink.m4: New file.
89329
89330 2003-06-25  Bruno Haible  <bruno@clisp.org>
89331
89332         * lib/readlink.c: New file.
89333
89334 2003-06-22  Karl Berry  <karl@gnu.org>
89335
89336         * config/srclist.txt: update mkinstalldirs from automake.
89337         * config/mkinstalldirs: update.
89338
89339 2003-06-22  Bruno Haible  <bruno@clisp.org>
89340
89341         Portability to mingw32.
89342         * m4/ssize_t.m4: New file, from GNU gettext.
89343         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89344         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89345
89346 2003-06-22  Bruno Haible  <bruno@clisp.org>
89347
89348         * modules/safe-read: Add m4/ssize_t.m4.
89349         * modules/xreadlink: Add m4/ssize_t.m4.
89350
89351 2003-06-20  Bruno Haible  <bruno@clisp.org>
89352
89353         Assume C89, so PARAMS isn't needed.
89354         * lib/unicodeio.h (PARAMS): Remove.
89355         * lib/unicodeio.c: Don't use PARAMS.
89356
89357 2003-06-18  Karl Berry  <karl@gnu.org>
89358
89359         * config/config.{guess,sub}: update from prep.
89360
89361 2003-06-18  Jim Meyering  <jim@meyering.net>
89362
89363         Merge changes from coreutils.
89364         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89365         Remove explicit declarations of xmalloc and realloc.
89366         Include xalloc.h.
89367         (read_utmp): Remove anachronistic cast of xmalloc.
89368
89369 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89370
89371         Assume C89, so PARAMS isn't needed.
89372         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89373         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89374         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89375         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89376         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89377         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89378         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89379         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89380         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89381         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89382         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89383         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89384         no longer needed. Anyway, config.h should always be included before any
89385         other file.
89386
89387 2003-06-11  Simon Josefsson  <jas@extundo.com>
89388
89389         * modules/sysexits: New file.
89390         * MODULES.html.sh (func_all_modules): Add sysexits.
89391
89392 2003-06-11  Simon Josefsson  <jas@extundo.com>
89393
89394         * lib/sysexit_.h: New file.
89395
89396 2003-06-11  Derek Price  <derek@ximbiot.com>
89397
89398         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89399         necessary.
89400
89401 2003-06-11  Bruno Haible  <bruno@clisp.org>
89402
89403         * m4/sysexits.m4: New file.
89404
89405 2003-06-10  Simon Josefsson  <jas@extundo.com>
89406
89407         * lib/argp.h: New file, from glibc.
89408         * lib/argp-ba.c: New file, from glibc.
89409         * lib/argp-eexst.c: New file, from glibc.
89410         * lib/argp-fmtstream.c: New file, from glibc.
89411         * lib/argp-fmtstream.h: New file, from glibc.
89412         * lib/argp-fs-xinl.c: New file, from glibc.
89413         * lib/argp-help.c: New file, from glibc.
89414         * lib/argp-namefrob.h: New file, from glibc.
89415         * lib/argp-parse.c: New file, from glibc.
89416         * lib/argp-pv.c: New file, from glibc.
89417         * lib/argp-pvh.c: New file, from glibc.
89418         * lib/argp-xinl.c: New file, from glibc.
89419
89420 2003-06-10  Simon Josefsson  <jas@extundo.com>
89421
89422         * modules/strchrnul: New file.
89423
89424 2003-06-10  Simon Josefsson  <jas@extundo.com>
89425
89426         * modules/argp: New file.
89427
89428 2003-06-10  Simon Josefsson  <jas@extundo.com>
89429
89430         * m4/strchrnul.m4: New file.
89431
89432 2003-06-10  Simon Josefsson  <jas@extundo.com>
89433
89434         * lib/strchrnul.h: New file.
89435         * lib/strchrnul.c: New file.
89436
89437 2003-06-10  Bruno Haible  <bruno@clisp.org>
89438
89439         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89440
89441 2003-06-07  Karl Berry  <karl@gnu.org>
89442
89443         * config/config.{guess,sub}: update from prep.
89444
89445 2003-06-07  Jim Meyering  <jim@meyering.net>
89446
89447         * modules/strtod: Use $(...) notation, not @...@ for
89448         AC_REPLACE'd variables.
89449         * modules/localcharset: Likewise.
89450
89451 2003-06-07  Jim Meyering  <jim@meyering.net>
89452
89453         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89454         in place of my name in the copyright comment.
89455         Remove definition and uses of __P.
89456
89457         From coreutils.
89458         * lib/stat.c: Don't declare xmalloc explicitly.
89459         Instead, include "xalloc.h".
89460         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89461         xrealloc, and xcalloc return values.
89462         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89463         Improve comment.
89464         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89465
89466 2003-06-07  Bruno Haible  <bruno@clisp.org>
89467
89468         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89469         avoid AC_CONFIG_LINKS.
89470         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89471         fnmatch.h, to avoid AC_CONFIG_LINKS.
89472         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89473
89474 2003-06-07  Bruno Haible  <bruno@clisp.org>
89475
89476         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89477         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89478         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89479         directory.
89480         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89481         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89482         directory.
89483
89484 2003-06-06  Jim Meyering  <jim@meyering.net>
89485
89486         Merge from coreutils.
89487         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89488         Consolidate declarations and initializations of *_base* locals.
89489
89490         Merge from coreutils.
89491         This avoids a core dump on systems without GNU putenv,
89492         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89493         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89494         (unsetenv): New static function, from GNU libc.
89495         (rpl_putenv): Use it.
89496
89497         * lib/modechange.c: Remove trailing blanks.
89498
89499         Merge from coreutils.
89500         * lib/fsusage.c: Remove declaration of statfs.
89501         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89502
89503         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89504
89505 2003-06-06  Jim Meyering  <jim@meyering.net>
89506
89507         * lib/stdbool_.h: Renamed from stdbool.h.in.
89508
89509 2003-06-06  Jim Meyering  <jim@meyering.net>
89510             Bruno Haible  <bruno@clisp.org>
89511
89512         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89513         Adjust Makefile.am snippet not to redirect directly to target.
89514         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89515
89516 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89517
89518         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89519         mismatch, look in future quarters as well as past.  This fixes a
89520         bug when processing fall-backwards gaps immediately after a long
89521         period of daylight-saving time.
89522
89523         * lib/mktime.c: Assume freestanding C89 or better.
89524         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89525         (__P): Remove; not used.
89526         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89527         (mktime, not_equal_tm, print_tm, check_result,
89528         main): Use prototypes.  Use const * where appropriate.
89529         (main): Fix typo in testing code that uncovered by above changes.
89530         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89531
89532 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89533
89534         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89535         locale.h, localeconv.  This merges changes from coreutils.
89536
89537         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89538         It can be removed after the next Autoconf is released.
89539         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89540         needed.
89541
89542 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89543
89544         * lib/mktime.c: Fix Debian bug 177940
89545         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89546         (localtime_offset): Now long int, not time_t, because we want it
89547         to be guaranteed to be signed.  All uses changed.
89548         (__mktime_internal): If overflow would occur when adding offset,
89549         don't add it.
89550
89551         Merge 'human' changes from coreutils.  Rewrite to support
89552         locale-specific notations like thousands separators.
89553         * lib/human.c: Simplify authorship notice.
89554         Include human.h immediately after config.h.
89555         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89556         <limits.h>: Do not include, since human.h does.
89557         (SIZE_MAX, UINTMAX_MAX): New macros.
89558         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89559         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89560         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89561         (power_letter): Renamed from suffixes.
89562         (generate_suffix_backwards): Remove.
89563         (adjust_value): Now takes int style (because of human.h changes)
89564         and long double value (for greater precision on some platforms).
89565         (group_number): New function.
89566         (human_readable): Use it.  Use integer options, not enum.
89567         Put the options before the sizes in the arg list.
89568         Support all the new options.
89569         The old human_readable function has been removed;
89570         use inttostr.h instead.
89571         (human_readable, default_block_size, humblock):
89572         Use uintmax_t, not int, for block sizes.
89573         (human_readable_inexact, block_size_types): Remove.
89574         (block_size_opts): New constant.
89575         (human_options): Renamed from human_block_size, with new signature
89576         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89577         * lib/human.h: Add copyright and authorship notice.
89578         Include <limits.h> and <stdbool.h> unconditionally.
89579         (PARAMS): Remove.  All uses removed.
89580         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89581         (enum human_inexact_style): Remove tag; now a nameless enum.
89582         (human_floor, human_ceiling, human_round_to_even): Now have
89583         values 2, 0, 1 rather than -1, 1, 0.
89584         (human_group_digits, human_suppress_point_zero, human_autoscale,
89585         human_base_1024, human_SI, human_B): New constants.
89586         (human_readable_inexact, human_block_size): Remove.
89587         (human_readable): Size args are now uintmax_t, not int.
89588         (human_options): New decl.
89589
89590         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89591         unnecessary now that we assume C89 or better.  This change
89592         imported from coreutils.
89593
89594         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89595         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89596         in the 2003-05-30 sync from glibc.
89597
89598         .h files should stand alone, but we shouldn't include <sys/types.h>
89599         if we can get away with just <stddef.h>.
89600
89601         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89602         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89603         rather than <sys/types.h>, as we merely need size_t.
89604         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89605         to get size_t.
89606         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89607         Include <stdio.h>, to get FILE.
89608         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89609         memcasecmp.h has included <stddef.h> and all we need is size_t.
89610         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89611         our interface, instead of including <sys/types.h>
89612
89613 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89614
89615         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89616         now, as glibc mktime is buggy on non-glibc systems.
89617
89618 2003-06-03  Karl Berry  <karl@gnu.org>
89619
89620         * config/config.sub: update from prep.
89621
89622 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89623
89624         [from coreutils]
89625         Fix some minor time-related bugs with POSIX time arguments.
89626         Some valid time stamps were being rejected (notably -1, and
89627         time stamps before 1900 on 64-bit hosts).  And some invalid
89628         time stamps were being accepted, e.g. September 31.
89629
89630         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89631         that we can return (time_t) -1 successfully.
89632         * lib/posixtm.c: Likewise.
89633         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89634         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89635         (t): Remove static var.
89636         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89637         of static var.  All uses changed.
89638         (year): Do not reject years before 1900; they can occur with
89639         64-bit time_t.
89640         (posix_time_parse): Do not check for out-of-range components;
89641         that is now the caller's responsibility, since our checks were
89642         only approximations.
89643         (posixtime): Use mktime to check for out-of-range components,
89644         since it knows them exactly.
89645         If mktime returns (time_t) -1, check whether an error actually occurred
89646         by invoking localtime on -1.
89647         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89648         posixtime failures better.
89649         Improve the test data (in comments only).
89650
89651 2003-06-02  Karl Berry  <karl@gnu.org>
89652
89653         * config/mkinstalldirs (version): new variable.
89654         (--version): new option.
89655         (usage): improve message.
89656
89657 2003-05-30  Karl Berry  <karl@gnu.org>
89658
89659         * lib/mktime.c: update from libc.
89660
89661 2003-05-30  Bruno Haible  <bruno@clisp.org>
89662
89663         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89664         * config/config.rpath: Upgrade to gettext-0.12.1.
89665
89666 2003-05-30  Bruno Haible  <bruno@clisp.org>
89667
89668         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89669         * m4/nls.m4: New file, from gettext-0.12.1.
89670         * m4/po.m4: New file, from gettext-0.12.1.
89671         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89672
89673 2003-05-30  Bruno Haible  <bruno@clisp.org>
89674
89675         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89676         * lib/localcharset.h: Likewise.
89677         * lib/localcharset.c: Likewise.
89678
89679 2003-05-29  Karl Berry  <karl@gnu.org>
89680
89681         * config/config.rpath: update from gettext.
89682
89683 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89684
89685         Assume the headers required for C89 freestanding compilers.
89686         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89687         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89688         * m4/human.m4 (gl_HUMAN): Likewise.
89689         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89690         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89691         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89692         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89694         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89695
89696 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89697
89698         Assume the headers required for C89 freestanding compilers.
89699         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89700         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89701         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89702         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89703         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89704         define, since <limits.h> is guaranteed to do that.
89705         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89706         * lib/exclude.c: Include <stdbool.h> unconditionally.
89707         * lib/tempname.c: Include <stddef.h> unconditionally.
89708         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89709         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89710         <stddef.h> does that.
89711         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89712         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89713         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89714         needed.
89715         * lib/xstrtol.c: Likewise.
89716         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89717         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89718
89719         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89720         warnings on some platforms.
89721
89722         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89723         arbitrarily.
89724
89725 2003-05-26  Jim Meyering  <jim@meyering.net>
89726
89727         Merge in a change from coreutils:
89728         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89729         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89730         that condition, rather than `-1' which is slightly misleading.
89731         Change the name of the cache variable to have the gl_ prefix.
89732         Prompted by a patch from Richard Dawe for DJGPP.
89733
89734 2003-05-24  Karl Berry  <karl@gnu.org>
89735
89736         * config/config.guess: update from prep.
89737
89738 2003-05-22  Karl Berry  <karl@gnu.org>
89739
89740         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89741
89742 2003-05-20  Karl Berry  <karl@gnu.org>
89743
89744         * config/config.guess: update from prep.
89745
89746 2003-05-18  Karl Berry  <karl@gnu.org>
89747
89748         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89749         might actually be set by the user.
89750
89751         * config/depcomp, install-sh, mdate-sh: update from automake.
89752
89753 2003-05-17  Bruno Haible  <bruno@clisp.org>
89754
89755         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89756         invalid expansion for AC_EGREP_CPP.
89757         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89758         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89759         Suggested by Akim Demaille <akim@epita.fr> in
89760         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89761
89762 2003-05-12  Jim Meyering  <jim@meyering.net>
89763
89764         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89765         the space-padded-by-default conversion specifiers, %e, %k, %l.
89766
89767 2003-05-12  Bruno Haible  <bruno@clisp.org>
89768
89769         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89770         the string is longer than 4 KB.
89771
89772 2003-05-11  Karl Berry  <karl@gnu.org>
89773
89774         * config/config.{guess,sub}: update from prep.
89775
89776 2003-05-09  Bruno Haible  <bruno@clisp.org>
89777
89778         * modules/error: Add m4/strerror_r.m4 to file list.
89779
89780 2003-05-03  Bruno Haible  <bruno@clisp.org>
89781
89782         Upgrade to Unicode-4.0.
89783         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89784         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89785         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89786         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89787         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89788         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89789         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89790         Change width of U+E0100..U+E01EF from 1 to 0.
89791
89792 2003-04-25  Jim Meyering  <jim@meyering.net>
89793
89794         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89795         of type size_t, not int.
89796
89797 2003-04-25  Bruno Haible  <bruno@clisp.org>
89798
89799         * lib/copy-file.c: Include <stddef.h>, for size_t.
89800
89801 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89802
89803         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89804         code which expansion is under static control.  Patch imported from
89805         Akim Demaille's patch to Bison; see
89806         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89807
89808 2003-04-14  Bruno Haible  <bruno@clisp.org>
89809
89810         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89811
89812 2003-04-11  Jim Meyering  <jim@meyering.net>
89813
89814         Merge changes from Coreutils.
89815
89816         2003-03-22  Jim Meyering  <jim@meyering.net>
89817
89818         * lib/strftime.c (widen): Cast alloca return value to proper type.
89819
89820         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89821
89822         From GNU libc.
89823         * lib/strftime.c (my_strftime): Handle very large width
89824         specifications for numeric values correctly.  Improve checks for
89825         overflow.
89826
89827         2003-01-19  Jim Meyering  <jim@meyering.net>
89828
89829         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89830         definitions.
89831         (nl_get_alt_digit) [! defined my_strftime]: Define.
89832         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89833         _nl_get_alt_digit and _nl_get_walt_digit.
89834
89835         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89836         libc. These changes have no effect outside of _LIBC.
89837
89838 2003-04-10  Bruno Haible  <bruno@clisp.org>
89839
89840         * modules/findprog: New file.
89841         * MODULES.html.sh (func_all_modules): Add it.
89842
89843 2003-04-10  Bruno Haible  <bruno@clisp.org>
89844
89845         * m4/findprog.m4: New file.
89846         * m4/eaccess.m4: New file.
89847
89848 2003-04-10  Bruno Haible  <bruno@clisp.org>
89849
89850         * lib/findprog.h: New file, from GNU gettext.
89851         * lib/findprog.c: New file, from GNU gettext.
89852
89853 2003-04-05  Jim Meyering  <jim@meyering.net>
89854
89855         Merge changes from Coreutils.
89856
89857         * lib/exclude.h (PARAMS): Remove definition and uses.
89858         * lib/exclude.c: Remove uses of `PARAMS'.
89859
89860         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89861         Add test-cases for DOS filenames. Declare program_name.
89862         (main): Set up program_name.  Patch by Rich Dawe.
89863
89864         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89865         error from mntctl.
89866         Use mntctl's return value to drive the entry-processing loop, since
89867         we can't rely on the value of the vmt_length member in the last
89868         entry.  On some systems doing so could result in exhausting
89869         virtual memory.  Based in part on a patch from Mike Jetzer.
89870
89871 2003-04-04  Bruno Haible  <bruno@clisp.org>
89872
89873         * modules/linebreak: New file.
89874         * MODULES.html.sh (func_all_modules): Add it.
89875
89876 2003-04-04  Bruno Haible  <bruno@clisp.org>
89877
89878         * m4/linebreak.m4: New file.
89879
89880 2003-04-04  Bruno Haible  <bruno@clisp.org>
89881
89882         * lib/linebreak.h: New file, from GNU gettext.
89883         * lib/linebreak.c: New file, from GNU gettext with slight
89884         modifications.
89885         * lib/lbrkprop.h: New file, from GNU gettext.
89886
89887 2003-04-03  Bruno Haible  <bruno@clisp.org>
89888
89889         * modules/utf8-ucs4: New file.
89890         * modules/utf16-ucs4: New file.
89891         * modules/ucs4-utf8: New file.
89892         * modules/ucs4-utf16: New file.
89893         * MODULES.html.sh (func_all_modules): Add them.
89894
89895 2003-04-03  Bruno Haible  <bruno@clisp.org>
89896
89897         * m4/utf-ucs4.m4: New file.
89898         * m4/ucs4-utf.m4: New file.
89899
89900 2003-04-03  Bruno Haible  <bruno@clisp.org>
89901
89902         * lib/utf8-ucs4.h: New file, from GNU gettext.
89903         * lib/utf16-ucs4.h: New file, from GNU gettext.
89904         * lib/ucs4-utf8.h: New file, from GNU gettext.
89905         * lib/ucs4-utf16.h: New file, from GNU gettext.
89906
89907 2003-04-02  Bruno Haible  <bruno@clisp.org>
89908
89909         * modules/binary-io: New file.
89910         * MODULES.html.sh (func_all_modules): Add it.
89911
89912 2003-04-02  Bruno Haible  <bruno@clisp.org>
89913
89914         * lib/binary-io.h: New file, from GNU gettext.
89915
89916 2003-04-01  Bruno Haible  <bruno@clisp.org>
89917
89918         * modules/pathname: New file.
89919         * MODULES.html.sh (func_all_modules): Add it.
89920
89921 2003-04-01  Bruno Haible  <bruno@clisp.org>
89922
89923         * lib/pathname.h: New file, from GNU gettext.
89924         * lib/concatpath.c: New file, from GNU gettext.
89925
89926 2003-03-30  Bruno Haible  <bruno@clisp.org>
89927
89928         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89929
89930 2003-03-30  Bruno Haible  <bruno@clisp.org>
89931
89932         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89933         function chown() doesn't exist.
89934
89935 2003-03-28  Bruno Haible  <bruno@clisp.org>
89936
89937         * modules/copy-file: New file.
89938         * MODULES.html.sh (func_all_modules): Add it.
89939
89940 2003-03-28  Bruno Haible  <bruno@clisp.org>
89941
89942         * m4/copy-file.m4: New file.
89943
89944 2003-03-28  Bruno Haible  <bruno@clisp.org>
89945
89946         * lib/copy-file.h: New file, from GNU gettext.
89947         * lib/copy-file.c: New file, from GNU gettext.
89948
89949 2003-03-18  Jim Meyering  <jim@meyering.net>
89950
89951         * lib/quote.c (quote_n): Fix typo in comment.
89952
89953 2003-03-18  Bruno Haible  <bruno@clisp.org>
89954
89955         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89956         checking.
89957         * m4/onceonly_2_57.m4: Likewise.
89958
89959 2003-03-17  Bruno Haible  <bruno@clisp.org>
89960
89961         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89962         (m4_quote): Remove macro.
89963         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89964
89965 2003-03-14  Jim Meyering  <jim@meyering.net>
89966
89967         Merge changes from Coreutils.
89968         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89969         to be const, in order to avoid warnings.
89970         (obstack_room): Likewise.
89971         (obstack_empty_p): Likewise.
89972
89973 2003-03-14  Bruno Haible  <bruno@clisp.org>
89974
89975         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89976         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89977
89978 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89979
89980         Merge changes from Bison.
89981         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89982         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89983         when compiling Bison 1.875's `bitset bset = obstack_alloc
89984         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89985         * lib/hash.c: Include <stdbool.h> unconditionally.
89986
89987 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89988
89989         * m4/onceonly.m4 (m4_quote): New macro.
89990         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89991         Quote AC_FOREACH variable-expansions properly.
89992
89993 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89994
89995         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89996
89997 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89998
89999         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90000         Reported by Bruce Becker; see:
90001         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90002
90003 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90004             Bruno Haible  <bruno@clisp.org>
90005
90006         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90007         Reported by John Hughes, see
90008         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90009
90010 2003-02-20  Bruno Haible  <bruno@clisp.org>
90011
90012         * MODULES.html.sh (func_all_modules): Add poll.
90013
90014 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90015
90016         * modules/poll: New file.
90017
90018 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90019
90020         * lib/poll_.h: New file.
90021         * lib/poll.c: New file.
90022
90023 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90024
90025         * m4/poll.m4: New file.
90026
90027 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90028
90029         * modules/mathl: New file.
90030
90031 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90032
90033         * lib/mathl.h: New file.
90034         * lib/acosl.c: New file.
90035         * lib/asinl.c: New file.
90036         * lib/atanl.c: New file.
90037         * lib/ceill.c: New file.
90038         * lib/cosl.c: New file.
90039         * lib/expl.c: New file.
90040         * lib/floorl.c: New file.
90041         * lib/frexpl.c: New file.
90042         * lib/ldexpl.c: New file.
90043         * lib/logl.c: New file.
90044         * lib/sincosl.c: New file.
90045         * lib/sinl.c: New file.
90046         * lib/sqrtl.c: New file.
90047         * lib/tanl.c: New file.
90048         * lib/trigl.c: New file.
90049         * lib/trigl.h: New file.
90050
90051 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90052
90053         * m4/mathl.m4: New file.
90054
90055 2003-02-18  Bruno Haible  <bruno@clisp.org>
90056
90057         * MODULES.html.sh (func_all_modules): Add mathl.
90058
90059 2003-02-17  Bruno Haible  <bruno@clisp.org>
90060
90061         * modules/mkdtemp: New module.
90062         * MODULES.html.sh (func_all_modules): Add it.
90063
90064 2003-02-17  Bruno Haible  <bruno@clisp.org>
90065
90066         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90067
90068 2003-02-17  Bruno Haible  <bruno@clisp.org>
90069
90070         * lib/mkdtemp.h: New file, from GNU gettext.
90071         * lib/mkdtemp.c: New file, from GNU gettext.
90072
90073 2003-02-02  Jim Meyering  <jim@meyering.net>
90074
90075         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90076         e.g. glibc-2.2.93.
90077
90078 2003-01-31  Bruno Haible  <bruno@clisp.org>
90079
90080         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90081         'rpl_rename'.
90082         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90083         'rpl_strnlen'.
90084         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90085         'rpl_strtod'.
90086         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90087         'rpl_utime'.
90088
90089 2003-01-31  Bruno Haible  <bruno@clisp.org>
90090
90091         * lib/rename.c: #undef rename before defining rpl_rename.
90092         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90093
90094 2003-01-30  Bruno Haible  <bruno@clisp.org>
90095
90096         * modules/vasnprintf, modules/vasprintf: New modules.
90097         * MODULES.html.sh (func_all_modules): Add them.
90098
90099 2003-01-30  Bruno Haible  <bruno@clisp.org>
90100
90101         * m4/signed.m4: New file, from GNU gettext.
90102         * m4/longdouble.m4: New file, from GNU gettext.
90103         * m4/wchar_t.m4: New file, from GNU gettext.
90104         * m4/wint_t.m4: New file, from GNU gettext.
90105         * m4/vasnprintf.m4: New file.
90106         * m4/vasprintf.m4: New file.
90107
90108 2003-01-30  Bruno Haible  <bruno@clisp.org>
90109
90110         * lib/printf-args.h: New file, from GNU gettext.
90111         * lib/printf-args.c: New file, from GNU gettext.
90112         * lib/printf-parse.h: New file, from GNU gettext.
90113         * lib/printf-parse.c: New file, from GNU gettext.
90114         * lib/vasnprintf.h: New file, from GNU gettext.
90115         * lib/vasnprintf.c: New file, from GNU gettext.
90116         * lib/asnprintf.c: New file, from GNU gettext.
90117         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90118         * lib/vasprintf.c: New file, from GNU gettext.
90119         * lib/asprintf.c: New file, from GNU gettext.
90120
90121 2003-01-29  Bruno Haible  <bruno@clisp.org>
90122
90123         * modules/stpncpy: New module.
90124         * MODULES.html.sh (func_all_modules): Add it.
90125
90126 2003-01-29  Bruno Haible  <bruno@clisp.org>
90127
90128         * m4/stpncpy.m4: New file.
90129
90130 2003-01-29  Bruno Haible  <bruno@clisp.org>
90131
90132         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90133         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90134
90135 2003-01-28  Bruno Haible  <bruno@clisp.org>
90136
90137         * modules/c-ctype: New module.
90138         * MODULES.html.sh (func_all_modules): Add it.
90139
90140 2003-01-28  Bruno Haible  <bruno@clisp.org>
90141
90142         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90143         Paul Eggert.
90144         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90145         Paul Eggert.
90146
90147 2003-01-27  Bruno Haible  <bruno@clisp.org>
90148
90149         * modules/xsetenv: New module.
90150         * MODULES.html.sh (func_all_modules): Add it.
90151
90152 2003-01-27  Bruno Haible  <bruno@clisp.org>
90153
90154         * lib/xsetenv.h: New file, from GNU gettext.
90155         * lib/xsetenv.c: New file, from GNU gettext.
90156
90157 2003-01-23  Jim Meyering  <jim@meyering.net>
90158
90159         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90160         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90161
90162 2003-01-23  Bruno Haible  <bruno@clisp.org>
90163
90164         * modules/minmax: New module.
90165         * MODULES.html.sh (func_all_modules): Add it.
90166
90167 2003-01-23  Bruno Haible  <bruno@clisp.org>
90168
90169         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90170         Eggert.
90171
90172 2003-01-22  Bruno Haible  <bruno@clisp.org>
90173
90174         * modules/exit: New module.
90175         * MODULES.html.sh (func_all_modules): Add it.
90176
90177 2003-01-22  Bruno Haible  <bruno@clisp.org>
90178
90179         * lib/exit.h: New file, from GNU gettext.
90180
90181 2003-01-19  Bruno Haible  <bruno@clisp.org>
90182
90183         * gnulib-tool: Recognize option --extract-maintainer.
90184         (func_get_maintainer): New function.
90185         * modules/*: Add Maintainer entry.
90186
90187 2003-01-16  Jim Meyering  <jim@meyering.net>
90188
90189         * m4/regex.m4: The `regex' struct is both input and output.
90190         Initialize it before each use.  Patch by Tim Waugh.
90191
90192 2003-01-16  Bruno Haible  <bruno@clisp.org>
90193
90194         * MODULES.html.sh: Add a table of contents. Add the module name as
90195         leftmost column. Add hyperlinks.
90196
90197 2003-01-15  Bruno Haible  <bruno@clisp.org>
90198
90199         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90200
90201 2003-01-15  Bruno Haible  <bruno@clisp.org>
90202
90203         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90204         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90205         suffix.
90206
90207 2003-01-15  Bruno Haible  <bruno@clisp.org>
90208
90209         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90210
90211 2003-01-15  Bruno Haible  <bruno@clisp.org>
90212
90213         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90214         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90215
90216 2003-01-14  Jim Meyering  <jim@meyering.net>
90217
90218         * lib/same.c (same_name): Tweak a comment.
90219
90220 2003-01-14  Bruno Haible  <bruno@clisp.org>
90221
90222         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90223         when a string comparison is sufficient.
90224
90225 2003-01-14  Bruno Haible  <bruno@clisp.org>
90226
90227         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90228         'unsigned int'.
90229
90230 2003-01-14  Bruno Haible  <bruno@clisp.org>
90231
90232         * lib/hash-pjw.c: Add comment about low quality of this function.
90233
90234 2003-01-13  Bruno Haible  <bruno@clisp.org>
90235
90236         * modules/stpcpy: Distribute lib/stpcpy.h.
90237         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90238
90239 2003-01-13  Bruno Haible  <bruno@clisp.org>
90240
90241         * modules/*: Add a description.
90242         * modules/strpbrk: Fix Makefile.am snippet.
90243         * modules/strtoimax: Fix dependencies.
90244         * modules/strtoumax: Likewise.
90245
90246 2003-01-13  Bruno Haible  <bruno@clisp.org>
90247
90248         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90249         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90250         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90251
90252 2003-01-13  Bruno Haible  <bruno@clisp.org>
90253
90254         * gnulib-tool (func_create_testdir): Store config/* files in the main
90255         directory.
90256         * config.rpath: Move to ...
90257         * config/config.rpath: ... here.
90258         * modules/gettext: Contains config/config.rpath, not config.rpath.
90259         * modules/iconv: Likewise.
90260
90261 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90262
90263         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90264         to avoid collisions with libcurses and libreadline.
90265
90266         * m4/getstr.m4: Remove.
90267         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90268
90269 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90270
90271         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90272         to avoid collisions with libcurses and libreadline.
90273
90274         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90275         * lib/getstr.h, getstr.c: Remove.
90276         * lib/getline.c: Include "getline.h", to check interface.
90277         Move body of old getstr.c here: this defines MIN_CHUNK and
90278         declares getdelim2, which is renamed from getstr.
90279         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90280
90281         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90282         All uses changed.
90283         * lib/linebuffer.h: Likewise.
90284         (readline): Remove backward-compatibility macro.
90285
90286 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90287
90288         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90289         to avoid collisions with libcurses and libreadline.
90290         * getstr: Remove.
90291         * MODULES.html.sh: Remove getstr.
90292         * modules/getline: Depend on unlocked-io, not getstr.
90293
90294 2003-01-12  Jim Meyering  <jim@meyering.net>
90295
90296         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90297
90298 2003-01-10  Bruno Haible  <bruno@clisp.org>
90299
90300         * modules/alloca: Change Makefile.am requirements. Simplify Include
90301         requirements. Add lib/alloca_.h to file list.
90302
90303 2003-01-10  Bruno Haible  <bruno@clisp.org>
90304
90305         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90306
90307 2003-01-10  Bruno Haible  <bruno@clisp.org>
90308
90309         * lib/alloca_.h: New file.
90310         * lib/getdate.y: Unconditionally include alloca.h.
90311         * lib/makepath.c: Likewise.
90312         * lib/setenv.c: Likewise.
90313         * lib/userspec.c: Likewise.
90314
90315 2003-01-09  Karl Berry  <karl@gnu.org>
90316
90317         * MODULES.html.sh: include `dirname $0` in PATH, to find
90318         gnulib-tool.
90319
90320 2003-01-09  Bruno Haible  <bruno@clisp.org>
90321
90322         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90323         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90324
90325 2003-01-09  Bruno Haible  <bruno@clisp.org>
90326
90327         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90328
90329 2003-01-09  Bruno Haible  <bruno@clisp.org>
90330
90331         * lib/stdbool.h.in: New file.
90332
90333 2003-01-09  Bruno Haible  <bruno@clisp.org>
90334
90335         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90336         * MODULES.html.sh: Likewise.
90337
90338 2003-01-08  Jim Meyering  <jim@meyering.net>
90339
90340         * lib/full-write.c: Undefine and define-away `const' after inclusion
90341         of errno.h, not before.  Suggestion from Bruno Haible.
90342
90343 2003-01-08  Bruno Haible  <bruno@clisp.org>
90344
90345         * modules/full-read: Depend on full-write.
90346
90347 2003-01-08  Bruno Haible  <bruno@clisp.org>
90348
90349         * lib/safe-read.c: Include specification header first, to ensure its
90350         selfcontainedness.
90351         * lib/full-write.c: Likewise.
90352
90353 2003-01-07  Jim Meyering  <jim@meyering.net>
90354
90355         * lib/full-write.c: Rework so that it may serve to define full_read,
90356         too.
90357         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90358
90359 2003-01-07  Bruno Haible  <bruno@clisp.org>
90360
90361         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90362         <inttypes.h>.
90363         * lib/xstrtol.h: Likewise.
90364         * lib/xstrtoimax.c: Likewise.
90365         * lib/xstrtoumax.c: Likewise.
90366         * lib/human.h: Likewise.
90367
90368         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90369         on systems that have <inttypes.h> but not <stdint.h>.
90370
90371 2003-01-07  Bruno Haible  <bruno@clisp.org>
90372
90373         * MODULES.html.sh: Add copyright notice.
90374         (missed_files): Omit CVS directory entries.
90375         (func_module): Make it work with sed-3.02.
90376         * MODULES.txt: Remove file.
90377
90378 2003-01-06  Jim Meyering  <jim@meyering.net>
90379
90380         * lib/version-etc.c: Update year in translatable copyright string.
90381
90382 2003-01-03  Karl Berry  <karl@gnu.org>
90383
90384         * config/config.{guess,sub}: update from prep.
90385
90386 2003-01-02  Karl Berry  <karl@gnu.org>
90387
90388         * doc/COPYING.DOC: belatedly updated to 1.2.
90389
90390 2003-01-01  Karl Berry  <karl@gnu.org>
90391
90392         * gnulib-tool (func_verify_module): report module name $module in
90393         error message, not $1.
90394         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90395         be created, only if it doesn't exist.
90396         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90397
90398 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90399
90400         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90401
90402 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90403
90404         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90405         memcmp if strcoll doesn't work.
90406
90407 2002-12-31  Bruno Haible  <bruno@clisp.org>
90408
90409         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90410         nonempty.
90411
90412 2002-12-31  Bruno Haible  <bruno@clisp.org>
90413
90414         * lib/memcoll.c (STRCOLL): New macro.
90415         (memcoll): Use it.
90416
90417 2002-12-31  Bruno Haible  <bruno@clisp.org>
90418
90419         * lib/localcharset.h: New file.
90420         * lib/localcharset.c: Include it.
90421         * lib/unicodeio.c: Likewise.
90422
90423 2002-12-31  Bruno Haible  <bruno@clisp.org>
90424
90425         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90426         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90427
90428 2002-12-31  Bruno Haible  <bruno@clisp.org>
90429
90430         * lib/getline.h: Include <stddef.h>, for size_t.
90431
90432         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90433         * lib/unicodeio.c: Don't include <stddef.h>.
90434
90435 2002-12-31  Bruno Haible  <bruno@clisp.org>
90436
90437         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90438         HAVE_TM_ZONE.
90439
90440 2002-12-24  Karl Berry  <karl@gnu.org>
90441
90442         * config/config.guess: update from prep.
90443
90444 2002-12-24  Bruno Haible  <bruno@clisp.org>
90445
90446         General infrasructure.
90447         * m4/README: Rewritten.
90448         * m4/onceonly.m4: New file.
90449         * m4/onceonly_2_57.m4: New file.
90450
90451         Module atexit.
90452         * m4/atexit.m4: New file.
90453
90454         Module strtod.
90455         * m4/strtod.m4: New file.
90456
90457         Module strtol.
90458         * m4/strtol.m4: New file.
90459
90460         Module strtoul.
90461         * m4/strtoul.m4: New file.
90462
90463         Module memchr.
90464         * m4/memchr.m4: New file.
90465
90466         Module memcmp.
90467         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90468         (jm_FUNC_MEMCMP): Invoke it.
90469
90470         Module memcpy.
90471         * m4/memcpy.m4: New file.
90472
90473         Module memmove.
90474         * m4/memmove.m4: New file.
90475
90476         Module memset.
90477         * m4/memset.m4: New file.
90478
90479         Module strcspn.
90480         * m4/strcspn.m4: New file.
90481
90482         Module strpbrk.
90483         * m4/strpbrk.m4: New file.
90484
90485         Module strstr.
90486         * m4/strstr.m4: New file.
90487
90488         Module strerror.
90489         * m4/strerror.m4: New file.
90490
90491         Module mktime.
90492         * m4/mktime.m4: Renamed from jm-mktime.m4.
90493         (gl_PREREQ_MKTIME): New macro.
90494         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90495
90496         Module malloc.
90497         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90498         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90499         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90500
90501         Module realloc.
90502         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90503         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90504         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90505
90506         Module strftime.
90507         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90508         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90509         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90510         gl_TM_GMTOFF.
90511         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90512
90513         Module xalloc.
90514         * m4/xalloc.m4: New file.
90515
90516         Module alloca.
90517         * m4/alloca.m4: New file.
90518
90519         Module putenv.
90520         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90521         (jm_FUNC_PUTENV): Invoke it.
90522
90523         Module setenv.
90524         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90525         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90526         when invoked twice.
90527         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90528         gt_FUNC_SETENV.
90529
90530         Module memrchr.
90531         * m4/memrchr.m4: New file.
90532
90533         Module stpcpy.
90534         * m4/stpcpy.m4: New file.
90535
90536         Module strcase.
90537         * m4/strcase.m4: New file.
90538
90539         Module strdup.
90540         * m4/strdup.m4: New file.
90541
90542         Module strnlen.
90543         * m4/strnlen.m4: New file.
90544
90545         Module strndup.
90546         * m4/strndup.m4: New file.
90547
90548         Module xstrtod.
90549         * m4/xstrtod.m4: New file.
90550
90551         Module xstrtol.
90552         * m4/xstrtol.m4: New file.
90553
90554         Module getdate.
90555         * m4/getdate.m4: New file.
90556
90557         Module unlocked-io.
90558         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90559         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90560         * m4/jm-glibc-io.m4n: Remove file.
90561
90562         Module long-options.
90563         * m4/long-options.m4: New file.
90564
90565         Module md5.
90566         * m4/md5.m4: New file.
90567
90568         Module sha.
90569         * m4/sha.m4: New file.
90570
90571         Module getstr.
90572         * m4/getstr.m4: New file.
90573
90574         Module getline.
90575         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90576         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90577         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90578         simply getline. Infoke gl_PREREQ_GETLINE.
90579
90580         Module obstack.
90581         * m4/obstack.m4: New file.
90582
90583         Module hash.
90584         * m4/hash.m4: New file.
90585
90586         Module readtokens.
90587         * m4/readtokens.m4: New file.
90588
90589         Module strverscmp.
90590         * m4/strverscmp.m4: New file.
90591
90592         Module stdbool.
90593         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90594         OSF/1.
90595
90596         Module strtoll.
90597         * m4/strtoll.m4: New file.
90598
90599         Module strtoull.
90600         * m4/strtoull.m4: New file.
90601
90602         Module strtoimax.
90603         * m4/strtoimax.m4: New file.
90604
90605         Module strtoumax.
90606         * m4/strtoumax.m4: New file.
90607
90608         Module xstrtoimax.
90609         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90610         jm_AC_PREREQ_XSTRTOIMAX.
90611         Moved the strtol prerequisites to strtol.m4.
90612         Moved the strtoll prerequisites to strtoll.m4.
90613         Moved the strtoimax prerequisites to strtoimax.m4.
90614
90615         Module xstrtoumax.
90616         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90617         jm_AC_PREREQ_XSTRTOUMAX.
90618         Moved the strtoul prerequisites to strtoul.m4.
90619         Moved the strtoull prerequisites to strtoull.m4.
90620         Moved the strtoumax prerequisites to strtoumax.m4.
90621
90622         Module chown.
90623         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90624         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90625
90626         Module dup2.
90627         * m4/dup2.m4: New file.
90628
90629         Module ftruncate.
90630         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90631         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90632
90633         Module getgroups.
90634         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90635         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90636
90637         Module gettimeofday.
90638         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90639         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90640         gl_PREREQ_GETTIMEOFDAY.
90641
90642         Module mkdir.
90643         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90644         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90645
90646         Module mkstemp.
90647         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90648         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90649         jm_AC_TYPE_UINTMAX_T.
90650         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90651
90652         Module stat.
90653         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90654         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90655
90656         Module lstat.
90657         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90658         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90659
90660         Module timespec.
90661         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90662         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90663         * m4/st_mtim.m4: Indentation.
90664
90665         Module nanosleep.
90666         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90667         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90668         gl_PREREQ_NANOSLEEP.
90669
90670         Module regex.
90671         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90672         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90673         (gl_REGEX): New macro.
90674
90675         Module rename.
90676         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90677         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90678
90679         Module rmdir.
90680         * m4/rmdir.m4: New file.
90681
90682         Module utime.
90683         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90684         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90685         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90686
90687         Module dirname.
90688         * m4/dirname.m4: New file.
90689
90690         Module getopt.
90691         * m4/getopt.m4: New file.
90692
90693         Module unistd-safer.
90694         * m4/unistd-safer.m4: New file.
90695
90696         Module fnmatch.
90697         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90698         declaration.
90699         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90700         (gl_FUNC_FNMATCH_POSIX): New macro.
90701         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90702         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90703         simply fnmatch.
90704
90705         Module exclude.
90706         * m4/exclude.m4: New file.
90707
90708         Module human.
90709         * m4/human.m4: New file.
90710
90711         Module acl.
90712         * m4/acl.m4: Nop.
90713
90714         Module backupfile.
90715         * m4/backupfile.m4: New file.
90716         * m4/d-ino.m4: Indentation.
90717
90718         Module fsusage.
90719         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90720         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90721         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90722
90723         Module dirfd.
90724         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90725         requirements.
90726
90727         Module euidaccess.
90728         * m4/euidaccess.m4: New file.
90729
90730         Module file-type.
90731         * m4/file-type.m4: New file.
90732
90733         Module fileblocks.
90734         * m4/fileblocks.m4: New file.
90735
90736         Module filemode.
90737         * m4/filemode.m4: New file.
90738
90739         Module isdir.
90740         * m4/isdir.m4: New file.
90741
90742         Module lchown.
90743         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90744         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90745
90746         Module makepath.
90747         * m4/makepath.m4: New file.
90748
90749         Module modechange.
90750         * m4/modechange.m4: New file.
90751
90752         Module mountlist.
90753         * m4/mountlist.m4: New file.
90754         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90755         Indentation.
90756
90757         Module path-concat.
90758         * m4/path-concat.m4: New file.
90759
90760         Module pathmax.
90761         * m4/pathmax.m4: New file.
90762
90763         Module same.
90764         * m4/same.m4: New file.
90765
90766         Module save-cwd.
90767         * m4/save-cwd.m4: New file.
90768
90769         Module savedir.
90770         * m4/savedir.m4: New file.
90771
90772         Module xgetcwd.
90773         * m4/xgetcwd.m4: New file.
90774         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90775
90776         Module xreadlink.
90777         * m4/xreadlink.m4: New file.
90778
90779         Module safe-read.
90780         * m4/safe-read.m4: New file.
90781
90782         Module safe-write.
90783         * m4/safe-write.m4: New file.
90784
90785         Module closeout.
90786         * m4/closeout.m4: New file.
90787
90788         Module stdio-safer.
90789         * m4/stdio-safer.m4: New file.
90790
90791         Module getpass.
90792         * m4/getpass.m4: New file.
90793
90794         Module getugroups.
90795         * m4/getugroups.m4: New file.
90796
90797         Module group-member.
90798         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90799         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90800
90801         Module idcache.
90802         * m4/idcache.m4: New file.
90803
90804         Module userspec.
90805         * m4/userspec.m4: New file.
90806
90807         Module gettime.
90808         * m4/clock_time.m4: New file.
90809         * m4/gettime.m4: New file.
90810
90811         Module settime.
90812         * m4/settime.m4: New file.
90813
90814         Module posixtm.
90815         * m4/posixtm.m4: New file.
90816
90817         Module gethostname.
90818         * m4/gethostname.m4: New file.
90819
90820         Module canon-host.
90821         * m4/canon-host.m4: New file.
90822
90823         Module gettext.
90824         * m4/codeset.m4: New file, from gettext-0.11.5.
90825         * m4/gettext.m4: New file, from gettext-0.11.5.
90826         * m4/glibc21.m4: New file, from gettext-0.11.5.
90827         * m4/iconv.m4: New file, from gettext-0.11.5.
90828         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90829         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90830         * m4/inttypes.m4: New file, from gettext-0.11.5.
90831         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90832         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90833         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90834         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90835         * m4/lib-link.m4: New file, from gettext-0.11.5.
90836         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90837         * m4/progtest.m4: New file, from gettext-0.11.5.
90838         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90839         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90840         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90841
90842         Module localcharset.
90843         * m4/localcharset.m4: New file.
90844
90845         Module hard-locale.
90846         * m4/hard-locale.m4: New file.
90847
90848         Module mbswidth.
90849         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90850         onceonly macros.
90851         * m4/mbrtowc.m4: Add comment.
90852
90853         Module memcasecmp.
90854         * m4/memcasecmp.m4: New file.
90855
90856         Module memcoll.
90857         * m4/memcoll.m4: New file.
90858
90859         Module unicodeio.
90860         * m4/unicodeio.m4: New file.
90861
90862         Module rpmatch.
90863         * m4/rpmatch.m4: New file.
90864
90865         Module yesno.
90866         * m4/yesno.m4: New file.
90867
90868         Module exitfail.
90869         * m4/exitfail.m4: New file.
90870
90871         Module c-stack.
90872         * m4/c-stack.m4 (gl_C_STACK): New macro.
90873         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90874
90875         Module error.
90876         * m4/error.m4 (gl_ERROR): New macro.
90877         (jm_PREREQ_ERROR): Use onceonly macros.
90878
90879         Module fatal.
90880         * m4/fatal.m4: New file.
90881
90882         Module getloadavg.
90883         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90884         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90885
90886         Module getpagesize.
90887         * m4/getpagesize.m4: New file.
90888
90889         Module getusershell.
90890         * m4/getusershell.m4: New file.
90891
90892         Module physmem.
90893         * m4/physmem.m4: New file.
90894
90895         Module posixver.
90896         * m4/posixver.m4: New file.
90897
90898         Module quotearg.
90899         * m4/quotearg.m4: New file.
90900
90901         Module quote.
90902         * m4/quote.m4: New file.
90903
90904         Module readutmp.
90905         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90906
90907         Module sig2str.
90908         * m4/sig2str.m4: New file.
90909
90910         Other.
90911         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90912         ulonglong.m4.
90913         * m4/intmax_t.m4: New file.
90914         * m4/d-type.m4: Indentation.
90915         * m4/jm-macros.m4: Update.
90916         * m4/prereq.m4 (jm_PREREQ): Update.
90917         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90918         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90919         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90920         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90921         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90922         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90923         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90924         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90925         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90926         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90927         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90928         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90929         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90930         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90931         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90932         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90933         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90934         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90935         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90936
90937 2002-12-24  Bruno Haible  <bruno@clisp.org>
90938
90939         * MODULES.txt: Update according to m4/ changes.
90940
90941         Module gettext.
90942         * config.rpath: New file, from gettext-0.11.5.
90943
90944         * modules/*: New module descriptions.
90945         * gnulib-tool: New file.
90946         * MODULES.html.sh: New file.
90947
90948 2002-12-21  Karl Berry  <karl@gnu.org>
90949
90950         * doc/fdl.texi: update to version 1.2.
90951
90952 2002-12-19  Karl Berry  <karl@gnu.org>
90953
90954         * config/config.guess: update from prep.
90955
90956 2002-12-18  Bruno Haible  <bruno@clisp.org>
90957
90958         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90959         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90960
90961 2002-12-17  Bruno Haible  <bruno@clisp.org>
90962
90963         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90964         stdlib.h, string.h.
90965
90966 2002-12-17  Bruno Haible  <bruno@clisp.org>
90967
90968         * lib/canon-host.c (strdup): Remove unused declaration.
90969
90970         * lib/fsusage.c: Include full_read.h.
90971         (get_fs_usage): Use full_read instead of safe_read.
90972
90973         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90974
90975 2002-12-12  Karl Berry  <karl@gnu.org>
90976
90977         * config/config.guess: update from prep.
90978
90979 2002-12-11  Bruno Haible  <bruno@clisp.org>
90980
90981         * m4/setenv.m4: New file, from gettext-0.11.5.
90982
90983 2002-12-11  Bruno Haible  <bruno@clisp.org>
90984
90985         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90986         not unsetenv().
90987         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90988         modifications:
90989
90990         2002-12-11  Bruno Haible  <bruno@clisp.org>
90991
90992                 * setenv.c (alloca): Fall back to malloc.
90993                 (freea): New macro.
90994                 (setenv): Use freea() to free memory allocated with alloca().
90995
90996         2002-11-13  Bruno Haible  <bruno@clisp.org>
90997
90998                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90999                 function declarations.
91000                 * unsetenv.c (unsetenv): Likewise.
91001
91002         2002-03-04  Bruno Haible  <bruno@clisp.org>
91003
91004                 Portability to AIX 4.3.3.
91005                 * unsetenv.c: New file, extracted from setenv.c.
91006                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91007
91008         2001-12-20  Bruno Haible  <bruno@clisp.org>
91009
91010                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91011                 use malloc instead. For SunOS 4.
91012
91013         2001-12-11  Bruno Haible  <bruno@clisp.org>
91014
91015                 * setenv.c: Declare alloca.
91016                 (compar_fn_t): New typedef.
91017                 (KNOWN_VALUE, STORE_VALUE): Use it.
91018
91019         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91020         setenv.h.
91021
91022 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91023
91024         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91025         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91026         Choose values that are less likely to collide with system fnmatch
91027         options.
91028         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91029         defined (e.g., a pure POSIX system).
91030         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91031         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91032
91033 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91034
91035         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91036         a pain in practice to deal with generated m4 files.  This change
91037         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91038
91039         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91040         and jm-glibc-io.m4, as they are no longer a special case.
91041         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91042         kludge and the auto-generation stuff.  Check only whether the
91043         functions are declared, not whether they exist, since older hosts
91044         that don't declare the functions can't use the optimization anyway.
91045
91046 2002-12-06  Jim Meyering  <jim@meyering.net>
91047
91048         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91049
91050         Merge in changes from libc's misc/error.c, in preparation
91051         for the merge of gnulib's changes back into libc.
91052
91053         * lib/error.c (_): Define only if not already defined.
91054         Move definition to follow all #include directives.
91055         Include unlocked-io.h only if !_LIBC.
91056         [_LIBC]: Include <libio/libioP.h>.
91057         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91058         (fflush): Tweak definition to use INTUSE.
91059         (putc): Define.
91060
91061 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91062
91063         * lib/alloca.c [defined emacs]: Include "lisp.h".
91064         (xalloc_die) [defined emacs]: New macro.
91065         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91066         [! defined emacs]: Include <xalloc.h>.
91067         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91068         (pointer): Typedef to POINTER_TYPE *.
91069         (malloc): Remove decl; we now always use xmalloc.
91070         (alloca): Use old-style definition, since Emacs needs this.
91071         Check for arithmetic overflow when computing combined size.
91072
91073 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91074
91075         Do not generate unlocked-io.h automatically, since it's easier to
91076         maintain it by hand.
91077
91078         * lib/unlocked-io.h: New file, from GNU diffutils,
91079         but with proper copyright notice and attribution.
91080         * lib/gen-uio: Remove.
91081         * lib/Makefile.am: Add copyright notice.
91082         (libfetish_a_SOURCES): Add unlocked-io.h.
91083         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91084         (DISTCLEANFILES, io_functions): Remove macros.
91085         (EXTRA_DIST): Remove gen_uio.
91086         (unlocked-io.h): Remove rule.
91087
91088 2002-12-04  Jim Meyering  <jim@meyering.net>
91089
91090         Reflect the fact that stat.c and lstat.c are no longer generated.
91091         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91092         (DISTCLEANFILES): Likewise.
91093         (EXTRA_DIST): Likewise.
91094         (all_local): Don't depend on stat.c or lstat.c.
91095         (stat.c, lstat.c): Remove rules.
91096         (EXTRA_DIST): Remove xstat.in.
91097
91098         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91099         * lib/stat.c: New file.  Contents mostly from xstat.in.
91100         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91101         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91102
91103         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91104         too.
91105         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91106
91107 2002-12-03  Jim Meyering  <jim@meyering.net>
91108
91109         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91110         but not semantics, to minimize the differences between these two files.
91111         (safe_read): Change comment to mention SAFE_READ_ERROR.
91112
91113         * lib/safe-read.c (IS_EINTR): Define.
91114         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91115
91116 2002-12-02  Jim Meyering  <jim@meyering.net>
91117
91118         * lib/safe-read.c (EINTR): Define.
91119         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91120         (INT_MAX): Provide fallback.
91121         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91122
91123         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91124
91125 2002-12-02  Bruno Haible  <bruno@clisp.org>
91126
91127         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91128         Define, taken from safe-read.c.
91129         (INT_MAX): Provide fallback.
91130         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91131         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91132
91133         * lib/safe-read.c (EINTR): Remove definition.
91134         (safe_read): Don't use EINTR if it is absent.
91135
91136 2002-12-01  Jim Meyering  <jim@meyering.net>
91137
91138         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91139         zero.
91140         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91141
91142 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91143
91144         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91145         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91146         with `if (! (value < limit)) abort ();', for readability.
91147
91148 2002-11-26  Karl Berry  <karl@gnu.org>
91149
91150         * lib/strdup.c: copy from libc again, with jim's ok.
91151         * lib/.cppi-disable: re-add strdup.c
91152
91153 2002-11-25  Karl Berry  <karl@gnu.org>
91154
91155         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91156         instead of "strtol.c".
91157
91158 2002-11-25  Karl Berry  <karl@gnu.org>
91159
91160         * config/install-sh: update from automake for variable quoting, $0 in
91161         error msgs, etc.
91162
91163         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91164         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91165         entry.
91166
91167 2002-11-25  Jim Meyering  <jim@meyering.net>
91168
91169         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91170
91171 2002-11-24  Karl Berry  <karl@gnu.org>
91172
91173         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91174         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91175
91176 2002-11-24  Jim Meyering  <jim@meyering.net>
91177
91178         Update from coreutils:
91179
91180         * lib/mktime.c: Merge in changes from libc.
91181
91182         Avoid a link-time failure on some Linux systems.
91183         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91184         (otherwise).
91185         (__mon_yday): Declare with the STATIC attribute.
91186         (__mktime_internal): Likewise.
91187         Based on a report from Greg Schafer.
91188
91189 2002-11-23  Jim Meyering  <jim@meyering.net>
91190
91191         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91192         Use `unsigned', not `int', as type of index.
91193
91194         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91195
91196         * lib/fsusage.c: Remove unneeded parentheses around operands of
91197         `defined'.
91198
91199 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91200
91201         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91202         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91203         so that we can be included first.
91204         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91205         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91206         No need to include stddef.h or sys/types.h any more.
91207         Surround local include files with "", not "<>".
91208         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91209         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91210         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91211         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91212         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91213         (ISPRINT): Remove; no longer needed now that we assume C89.
91214
91215         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91216         Preserve errno.
91217
91218         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91219         quotearg_char): Use SIZE_MAX rather than
91220         (size_t) -1 when we are talking about "infinity".
91221
91222         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91223
91224 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91225
91226         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91227         hint that one should use `if (! x) abort ();' rather than `assert
91228         (x);', and anyway it's one less thing to worry about configuring.
91229         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91230         hash_rehash, hash_insert): Use abort rather than assert.
91231
91232 2002-11-22  Bruno Haible  <bruno@clisp.org>
91233
91234         * lib/safe-read.h: Assume C89. Add comments.
91235         (safe_read): Change return type to size_t.
91236         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91237         byte counts > SSIZE_MAX correctly.
91238         * lib/safe-write.h: New file.
91239         * lib/safe-write.c: New file.
91240         * lib/full-read.h: New file.
91241         * lib/full-read.c: New file.
91242         * lib/full-write.h: Assume C89. Add comments.
91243         * lib/full-write.c: Include safe-write.h.
91244         (full_write): Rewritten to use safe_write.
91245         Suggested by Jim Meyering and Paul Eggert.
91246
91247 2002-11-21  Jim Meyering  <jim@meyering.net>
91248
91249         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91250
91251         Merge in changes from the coreutils.
91252
91253         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91254         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91255         <stdint.h>.
91256         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91257         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91258         int.  Work more efficiently if X is the same width as uintmax_t.
91259         Do not compare X to -1, to avoid bogus compiler warning.
91260         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91261         Don't assume that f_frsize and f_bsize are the same type.
91262
91263         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91264         warning on FreeBSD.
91265
91266         * lib/makepath.c (make_path): Restore umask *before* creating the final
91267         component.
91268         (make_path): Minor reformatting.
91269
91270         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91271         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91272         HAVE_MALLOC/HAVE_REALLOC.
91273
91274         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91275         dummy ones.  At least on GNU/Linux systems, `auto' means something
91276         else.
91277         From Michael Stone.
91278
91279 2002-11-21  Bruno Haible  <bruno@clisp.org>
91280
91281         Remove case insensitive option matching.
91282         * lib/argmatch.h (argcasematch): Remove declaration.
91283         (ARGCASEMATCH): Remove macro.
91284         (__xargmatch_internal): Remove case_sensitive argument.
91285         (XARGMATCH): Update.
91286         (XARGCASEMATCH): Remove macro.
91287         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91288         case_sensitive argument.
91289         (argcasematch): Remove function.
91290         (__xargmatch_internal): Remove case_sensitive argument.
91291         (main): Use XARGMATCH instead of XARGCASEMATCH.
91292
91293         * lib/xmalloc.c: Change compile-time error message. Add comment about
91294         required autoconf version.
91295
91296 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91297
91298         Merge argmatch cleanups from Bison.  Assume C89.
91299
91300         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91301         Include stdlib.h, for EXIT_FAILURE.
91302         Always include <string.h>, since we assume C89.
91303         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91304         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91305         Include <stddef.h> instead, since it's all we need for size_t.
91306         (PARAMS): Remove.  All uses removed.
91307         (ARRAY_CARDINALITY): Do not bother to #undef.
91308         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91309         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91310         Remove unnecessary parentheses.
91311         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91312         Insert necessary parentheses.
91313         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91314         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91315
91316 2002-11-19  Bruno Haible  <bruno@clisp.org>
91317
91318         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91319         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91320
91321         * lib/mbswidth.h (PARAMS): Remove macro.
91322         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91323         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91324
91325         * lib/gcd.h (PARAMS): Remove macro.
91326         (gcd): Use ANSI C function declarations.
91327         * lib/gcd.c (gcd): Likewise.
91328
91329 2002-11-15  Bruno Haible  <bruno@clisp.org>
91330
91331         * lib/strcspn.c: Include <stddef.h>.
91332         (strcspn): Use ANSI C function declaration. Change return type to
91333         size_t. Use NULL.
91334         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91335         (strpbrk): Use NULL.
91336         * lib/strpbrk.h (PARAMS): Remove macro.
91337         (strpbrk): Use ANSI C function declaration.
91338         * lib/strstr.c: Don't include <sys/types.h>.
91339         * lib/strstr.h (PARAMS): Remove macro.
91340         (strstr): Use ANSI C function declarations.
91341
91342 2002-11-14  Karl Berry  <karl@gnu.org>
91343
91344         * config/mkinstalldirs: `do' on separate line, instead of
91345         `for var; do'.
91346
91347 2002-11-06  Bruno Haible  <bruno@clisp.org>
91348
91349         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91350         * lib/gcd.c (gcd): Likewise.
91351
91352 2002-11-05  Bruno Haible  <bruno@clisp.org>
91353
91354         * lib/gcd.h: New file, from gettext-0.11.5.
91355         * lib/gcd.c: New file, from gettext-0.11.5.
91356
91357 2002-11-05  Bruno Haible  <bruno@clisp.org>
91358
91359         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91360         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91361         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91362         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91363
91364         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91365         <libintl.h>.
91366         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91367         <libintl.h>.
91368
91369         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91370         * lib/human.c: Include gettext.h instead of <libintl.h>.
91371         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91372         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91373         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91374         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91375         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91376         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91377         (textdomain): Remove definition.
91378         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91379
91380         * lib/long-options.c: Remove include of <libintl.h> and definition of
91381         _.
91382         * lib/same.c: Remove include of <libintl.h> and definition of _.
91383
91384 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91385
91386         * lib/config.charset: A few additions for Solaris.
91387
91388 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91389
91390         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91391         * lib/localcharset.c (locale_charset): Declare as extern "C".
91392
91393 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91394
91395         * lib/config.charset: msdos in uk_UA uses CP1125.
91396
91397 2002-11-04  Bruno Haible  <bruno@clisp.org>
91398
91399         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91400         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91401         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91402         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91403         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91404
91405 2002-11-04  Bruno Haible  <bruno@clisp.org>
91406
91407         * lib/localcharset.c (locale_charset): Don't return an empty string.
91408
91409 2002-11-04  Bruno Haible  <bruno@clisp.org>
91410
91411         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91412         aliases.
91413
91414 2002-11-04  Bruno Haible  <bruno@clisp.org>
91415
91416         * lib/config.charset: Update for newest glibc. Add canonical names
91417         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91418
91419 2002-11-04  Bruno Haible  <bruno@clisp.org>
91420
91421         * lib/config.charset: Add support for NetBSD.
91422
91423 2002-11-04  Bruno Haible  <bruno@clisp.org>
91424
91425         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91426
91427 2002-11-01  Bruno Haible  <bruno@clisp.org>
91428
91429         * configure.in: Add AC_CONFIG_AUX_DIR call.
91430         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91431         test/Makefile.
91432         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91433
91434 2002-09-28  Karl Berry  <karl@gnu.org>
91435
91436         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91437         installed automake until the next release, since changes have been
91438         made.
91439
91440 2002-09-25  Karl Berry  <karl@gnu.org>
91441
91442         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91443         * lib/getopt*: copy from libc/posix.
91444         * lib/gettext.h: copy from gettext.
91445         * lib/.cppi-disable: add strdup.c, gettext.h.
91446
91447 2002-09-25  Karl Berry  <karl@gnu.org>
91448
91449         * config/srclist.txt: enable gettext.h check.
91450         * config/config.{guess,sub}: update from prep.
91451         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91452                 from automake 1.6.3.
91453         See srclist*.
91454
91455 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91456
91457         * regex.c (PATFETCH): Remove the translating fetch.
91458         (PATFETCH_RAW): Rename to PATFETCH.
91459         (set_image_of_range): New fun.
91460         (SET_RANGE_TABLE_WORK_AREA): Use it.
91461         (regex_compile): Don't translate the pattern chars so eagerly.
91462         Only do it when inserting an `exactn' bytecode or when handling
91463         a char-range.
91464         (mutually_exclusive_p): Avoid empty statement.
91465
91466 2002-07-06  Jim Meyering  <meyering@lucent.com>
91467
91468         * m4/README: Don't mention Makefile.am.in.
91469         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91470
91471 2002-07-01  Jim Meyering  <meyering@lucent.com>
91472
91473         * lib/c-stack.c: Include sys/time.h.
91474         From Volker Borchert.
91475
91476 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91477
91478         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91479
91480 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91481
91482         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91483         New macro.  Use it uniformly instead of
91484         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91485         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91486         reported by Vin Shelton.
91487
91488 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91489
91490         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91491         Do not assume SA_SIGINFO behavior.
91492         Bug reported by Jim Meyering on NetBSD 1.5.2.
91493
91494 2002-06-22  Jim Meyering  <meyering@lucent.com>
91495
91496         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91497         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91498
91499         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91500         now that configure.ac uses AC_GNU_SOURCE.
91501         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91502         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91503
91504         Update to latest tools.  Suggestions from Paul Eggert.
91505         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91506         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91507         * m4/fnmatch.m4: Likewise.
91508         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91509         to AC_HEADER_STDBOOL
91510
91511 2002-06-22  Jim Meyering  <meyering@lucent.com>
91512
91513         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91514         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91515
91516 2002-06-22  Jim Meyering  <meyering@lucent.com>
91517
91518         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91519
91520         * lib/exitfail.c, exitfail.h: Likewise.
91521         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91522
91523         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91524         of fnmatch.h.
91525         (EXTRA_DIST): Add fnmatch_loop.c.
91526         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91527
91528         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91529         * lib/fnmatch.c: Update from diffutils-2.8.2.
91530         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91531         * lib/fnmatch.h: Remove file.
91532
91533 2002-06-21  Jim Meyering  <meyering@lucent.com>
91534
91535         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91536         * m4/mbrtowc.m4: Likewise.
91537
91538         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91539         * m4/mbswidth.m4: Reflect name change:
91540         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91541         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91542
91543         * m4/lib-link.m4: Update from gettext-0.11.2.
91544         * m4/gettext.m4: Likewise.
91545
91546         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91547         From Alfred M. Szmidt.
91548
91549 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91550
91551         * lib/file-type.h: Report an error if neither S_ISREG nor
91552         S_IFREG is defined, instead of using a test specific to glibc
91553         2.2.  This should be safe, since POSIX requires S_ISREG and
91554         Unix Version 7 had S_IFREG.  We don't need to check for
91555         <sys/types.h> since we don't use any symbols that it defines.
91556
91557 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91558
91559         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91560         $@-t, so that each temporary file name is unique and valid in the first
91561         8 characters, for operation under DOS.
91562
91563 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91564
91565         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91566
91567 2002-06-15  Jim Meyering  <meyering@lucent.com>
91568
91569         Work even with DJGPP 2.03, which lacks support for symlinks.
91570         From Richard Dawe.
91571         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91572         is defined.
91573         * lib/lchown.c (S_ISLNK): Likewise.
91574
91575 2002-06-15  Jim Meyering  <meyering@lucent.com>
91576
91577         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91578         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91579         have been included before this file.
91580
91581 2002-06-14  Jim Meyering  <meyering@lucent.com>
91582
91583         * lib/file-type.h: Use the version from diffutils-2.8.2.
91584         * lib/file-type.c: Likewise.
91585
91586 2002-06-07  Jim Meyering  <meyering@lucent.com>
91587
91588         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91589         They're needed at least for NetBSD 1.5.2.
91590         ($statxfs_includes): Include those same headers.
91591         ($statxfs_includes): Include sys/vfs.h if available.
91592         ($statxfs_includes): Likewise for sys/statvfs.h.
91593         Check for the following members in both structs statfs and statvfs:
91594         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91595
91596 2002-06-01  Jim Meyering  <meyering@lucent.com>
91597
91598         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91599         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91600
91601 2002-05-28  Jim Meyering  <meyering@lucent.com>
91602
91603         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91604         Reported by Volker Borchert.
91605
91606 2002-05-27  Jim Meyering  <meyering@lucent.com>
91607
91608         Fix a problem seen only on nonconforming systems whereby ls.c's
91609         use of localtime, and then of gettimeofday would cause trouble:
91610         the localtime call used to initialize rpl_gettimeofday's save
91611         mechanism would clobber ls's current local time information so
91612         that in any long listing the first file would always be listed
91613         with date 1970-01-01.  Analysis by Volker Borchert.
91614
91615         * lib/gettimeofday.c (localtime): Undefine.
91616         (rpl_localtime): New function.
91617
91618 2002-05-27  Jim Meyering  <meyering@lucent.com>
91619
91620         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91621         localtime.
91622
91623         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91624         use the replacement function; it wouldn't resolve at link time.
91625         Reported by Volker Borchert.
91626
91627 2002-05-22  Jim Meyering  <meyering@lucent.com>
91628
91629         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91630         file-type.h.
91631         * lib/file-type.h: New file.
91632         * lib/file-type.c (file_type): New file/function.  Extracted from
91633         diffutils.
91634
91635 2002-04-30  Jim Meyering  <meyering@lucent.com>
91636
91637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91638
91639 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91640
91641         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91642
91643 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91644
91645         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91646         Do not check for alloca.h (no longer used) or stdbool.h (was never
91647         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91648
91649 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91650
91651         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91652
91653 2002-04-29  Jim Meyering  <meyering@lucent.com>
91654
91655         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91656         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91657         Use AC_FUNC_STRNLEN here instead.
91658
91659         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91660         With autoconf-2.53a, it's part of AC_PROG_CC.
91661
91662 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91663
91664         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91665         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91666
91667 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91668
91669         * lib/sig2str.h, lib/sig2str.c: New files.
91670         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91671
91672 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91673
91674         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91675         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91676         of 127, since 64 is the largest conceivable number for ancient
91677         nonstandard hosts.
91678         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91679
91680 2002-04-28  Jim Meyering  <meyering@lucent.com>
91681
91682         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91683
91684 2002-04-24  Jim Meyering  <meyering@lucent.com>
91685
91686         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91687         (jm_PREREQ): Use it.
91688
91689         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91690         mach/mach.h fcntl.h.
91691         Check for this function: setlocale.
91692
91693 2002-04-24  Jim Meyering  <meyering@lucent.com>
91694
91695         * lib/gettext.h: New file, from Gettext.
91696         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91697         (libfetish_a_SOURCES): Add gettext.h.
91698
91699 2002-04-16  Jim Meyering  <meyering@lucent.com>
91700
91701         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91702         ut_pid, ut_id, ut_exit.
91703
91704 2002-04-16  Jim Meyering  <meyering@lucent.com>
91705
91706         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91707         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91708         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91709
91710 2002-04-12  Jim Meyering  <meyering@lucent.com>
91711
91712         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91713         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91714         existence of the getmntinfo function.  Needed for Darwin 5.3.
91715
91716         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91717         This is necessary at least on Darwin 5.3.
91718
91719         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91720         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91721         strnlen.o in the library, and that makes some versions of ranlib
91722         object.
91723
91724 2002-04-12  Jim Meyering  <meyering@lucent.com>
91725
91726         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91727
91728 2002-04-09  Jim Meyering  <meyering@lucent.com>
91729
91730         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91731         to be more precise.  Rather than saying we're checking whether the
91732         function `works', say what we're testing.
91733         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91734         Reported by Bruno Haible.
91735
91736 2002-03-10  Jim Meyering  <meyering@lucent.com>
91737
91738         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91739         Suggestion from Santiago Vila.
91740
91741 2002-03-08  Jim Meyering  <meyering@lucent.com>
91742
91743         * lib/rename.c: Mention that this wrapper is needed also on
91744         mips-dec-ultrix4.4 systems.
91745
91746 2002-03-02  Jim Meyering  <meyering@lucent.com>
91747
91748         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91749         not HAVE_CLOCK_SETTIME.
91750
91751 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91752
91753         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91754         Check for clock_settime.
91755
91756 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91757
91758         * lib/nanosleep.h: Rename to....
91759         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91760
91761         * lib/gettime.c: New file.
91762         * lib/settime.c: New file.
91763         * lib/stime.c: Remove.
91764
91765         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91766         timespec.h.  Remove nanosleep.h.
91767
91768 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91769
91770         * m4/acl.m4: New file.
91771         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91772         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91773
91774 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91775
91776         * lib/acl.c, lib/acl.h: New files.
91777         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91778
91779 2002-02-24  Jim Meyering  <meyering@lucent.com>
91780
91781         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91782         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91783         cause trouble.  Reported by Nelson Beebe.
91784
91785 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91786
91787         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91788         compilers that don't know that xalloc_die never returns.
91789
91790 2002-02-20  Jim Meyering  <meyering@lucent.com>
91791
91792         * lib/getdate.c: Regenerate using bison-1.33.
91793
91794 2002-02-17  Jim Meyering  <meyering@lucent.com>
91795
91796         * config/config.guess (main): Don't use `head -1'; it's no longer
91797         portable. Use `sed 1q' instead.
91798
91799 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91800
91801         * m4/codeset.m4: Upgrade to gettext-0.11.
91802         * m4/gettext.m4: Upgrade to gettext-0.11.
91803         * m4/glibc21.m4: Upgrade to gettext-0.11.
91804         * m4/iconv.m4: Upgrade to gettext-0.11.
91805         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91806         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91807         * m4/lib-ld.m4: New file, from gettext-0.11.
91808         * m4/lib-link.m4: New file, from gettext-0.11.
91809         * m4/lib-prefix.m4: New file, from gettext-0.11.
91810         * m4/progtest.m4: Upgrade to gettext-0.11.
91811
91812 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91813
91814         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91815         (jm_PREREQ): Use it.
91816
91817 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91818
91819         * lib/posixver.c, lib/posixver.h: New files.
91820         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91821
91822 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91823             Bruno Haible  <bruno@clisp.org>
91824
91825         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91826         (fwrite_success_callback): New declaration.
91827         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91828         print_unicode_char. Call failure callback instead of error.
91829         (fwrite_success_callback): New function.
91830         (exit_failure_callback): New function.
91831         (fallback_failure_callback): New function.
91832         (print_unicode_char): Call unicode_to_mb.
91833
91834 2002-01-26  Jim Meyering  <meyering@lucent.com>
91835
91836         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91837         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91838
91839 2002-01-26  Jim Meyering  <meyering@lucent.com>
91840
91841         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91842
91843 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91844
91845         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91846
91847 2002-01-22  Jim Meyering  <meyering@lucent.com>
91848
91849         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91850         Otherwise, some versions of automake would omit the rule that makes
91851         Makefile from Makefile.in.
91852
91853 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91854
91855         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91856         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91857         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91858         (memcoll): Set errno to zero if there is no error.
91859
91860         * lib/quotearg.c (quotearg_buffer_restyled):
91861         Fix bug with quoting buffers containing NUL when backslashing escapes.
91862         This bug was exposed by the other changes in this patch.
91863         (quotearg_n_options): New arg ARGSIZE.
91864         All callers changed.
91865         (quoting_options_from_style): New function.
91866         (quotearg_n_style): Use it.
91867         (quotearg_n_style_mem): New function.
91868
91869         * lib/quotearg.h (quotearg_n_style_mem): New function.
91870
91871 2002-01-19  Jim Meyering  <meyering@lucent.com>
91872
91873         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91874         Remove useless quotes: DF_PROG="df".
91875         * m4/strnlen.m4: New file.
91876
91877 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91878
91879         * lib/backupfile.c (ISDIGIT): Comment fix.
91880         * lib/getdate.y (ISDIGIT): Likewise.
91881         * lib/posixtm.c (ISDIGIT, year): Likewise.
91882         * lib/strverscmp.c (ISDIGIT): Likewise.
91883         * lib/userspec.c (ISDIGIT): Likewise.
91884
91885 2002-01-16  Jim Meyering  <meyering@lucent.com>
91886
91887         * lib/getdate.y: Add three semicolons, each just before a closing
91888         brace. Bison (as of version 1.31) no longer papers over that mistake.
91889
91890 2002-01-05  Jim Meyering  <meyering@lucent.com>
91891
91892         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91893
91894 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91895
91896         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91897         not silently exit merely because the output buffer happens to
91898         have nothing pending.
91899
91900 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91901
91902         See the big note in ../ChangeLog.
91903         * lib/human.c (suffixes): Prefer K to k for 1024.
91904         (generate_suffix_backwards): New function.
91905         (human_readable_inexact): Use it.
91906         * lib/xstrtol.c (__xstrtol): If there is no number but there
91907         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91908         Accept 'K' as well as 'k'.
91909
91910 2001-12-15  Jim Meyering  <meyering@lucent.com>
91911
91912         * lib/regex.h (__restrict_arr): Update from libc.
91913
91914         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91915         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91916         (STREQ): Define.
91917
91918 2001-12-14  Jim Meyering  <meyering@lucent.com>
91919
91920         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91921         Suggestion from Bruno Haible.
91922
91923 2001-12-10  Jim Meyering  <meyering@lucent.com>
91924
91925         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91926         xrealloc, Instead, include "xalloc.h".
91927         (initbuffer): Don't cast xmalloc return value to char*.
91928         (readline): Reword comment.
91929         Don't cast xrealloc return value to char*
91930         Return NULL, not 0.
91931
91932 2001-12-09  Jim Meyering  <meyering@lucent.com>
91933
91934         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91935         about `signed and unsigned type in conditional expression'.
91936         * lib/posixtm.c (posix_time_parse): Likewise.
91937
91938         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91939
91940         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91941         to avoid a pedantic warning.
91942
91943         * lib/getstr.c: Don't include assert.h.
91944         (getstr): Remove warning-evoking assertions.
91945         Return -1 if offset parameter is out of bounds.
91946         Change the type of a local from int to size_t.
91947
91948         * lib/strftime.c (my_strftime_localtime_r): Include this function
91949         definition in the `#if ! HAVE_TM_GMTOFF' block.
91950
91951         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91952         Include xalloc.h instead.
91953
91954 2001-12-02  Jim Meyering  <meyering@lucent.com>
91955
91956         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91957         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91958         included.
91959
91960         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91961         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91962
91963 2001-11-30  Akim Demaille  <akim@epita.fr>
91964
91965         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91966         before being defined.
91967
91968 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91969
91970         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91971         First arg is int, not unsigned.
91972         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91973         (SIZE_MAX, UINT_MAX): New macros.
91974         (quotearg_n_options): Abort if N is negative.
91975         Avoid overflow check on hosts where size_t is 64 bits and int
91976         is 32 bits, as overflow is impossible there.
91977         Fix off-by-one typo that caused unnecessary reallocation.
91978
91979 2001-11-27  Jim Meyering  <meyering@lucent.com>
91980
91981         * lib/tempname.c: Merge with version from libc.
91982         * lib/regex.c: Likewise.
91983
91984         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91985         systems for which STDC_HEADERS is 0, it was not included, resulting in
91986         a warning about an integer-to-pointer conversion problem with getenv.
91987         Reported by Volker Borchert.
91988
91989 2001-11-26  Jim Meyering  <meyering@lucent.com>
91990
91991         * lib/gtod.h: Remove file.
91992         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91993         * lib/gettimeofday.c: Don't include gtod.h.
91994         (GTOD_init): Remove function.
91995         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91996         Suggestion from Volker Borchert.
91997
91998 2001-11-23  Jim Meyering  <meyering@lucent.com>
91999
92000         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92001         it.
92002         * lib/hash.c (struct hash_table): Define it here instead.
92003
92004 2001-11-22  Jim Meyering  <meyering@lucent.com>
92005
92006         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92007
92008 2001-11-20  Jim Meyering  <meyering@lucent.com>
92009
92010         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92011         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92012
92013 2001-11-19  Jim Meyering  <meyering@lucent.com>
92014
92015         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92016         directory.  Use "conftestXXXXXX" as the template.
92017         Suggestion from Paul Eggert.
92018
92019         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92020         immediately, so the test doesn't mistakenly hit the max-open-files
92021         limit.
92022
92023 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92024
92025         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92026         (TEMPORARIES): New macro.
92027         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92028         removes an artificial limitation (e.g. HP-UX 10.20, where
92029         TMP_MAX is 17576).
92030
92031 2001-11-18  Jim Meyering  <meyering@lucent.com>
92032
92033         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92034
92035 2001-11-18  Jim Meyering  <meyering@lucent.com>
92036
92037         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92038         on SunOS 4.
92039
92040         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92041         files will be created before anything else.
92042
92043 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92044
92045         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92046         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92047
92048 2001-11-17  Jim Meyering  <meyering@lucent.com>
92049
92050         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92051         Prompted by a report from Bob Proulx.
92052
92053         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92054         Instead, require UTILS_FUNC_MKSTEMP.
92055
92056 2001-11-17  Jim Meyering  <meyering@lucent.com>
92057
92058         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92059         Now, that's done as part of AC_FUNC_STRTOD.
92060
92061 2001-11-17  Jim Meyering  <meyering@lucent.com>
92062
92063         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92064         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92065         rather than group writable.  Patch by Juan F. Codagnone.
92066
92067         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92068         xrealloc, Instead, include "xalloc.h".
92069
92070         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92071         Remove explicit declarations of xmalloc, xrealloc,
92072         and xstrdup.  Instead, include "xalloc.h".
92073
92074         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92075         unlocked-io.h.
92076         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92077         Likewise.
92078         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92079
92080         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92081         Reported by Padraig Brady.
92082
92083         * lib/mkstemp.c: #undef mkstemp.
92084         Include config.h.
92085         (rpl_mkstemp): Rename from mkstemp.
92086         Protoize.
92087
92088 2001-11-16  Jim Meyering  <meyering@lucent.com>
92089
92090         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92091         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92092         determine the amount of total physical memory, use pstat_getstatic.
92093         HPUX-11 doesn't define _SC_PHYS_PAGES.
92094         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92095         If sysconf couldn't be used to determine the amount of available
92096         physical memory, use both pstat_getstatic and pstat_getdynamic.
92097         Based on a patch from Bob Proulx.
92098
92099 2001-11-10  Jim Meyering  <meyering@lucent.com>
92100
92101         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92102         (jm_PREREQ): Use it.
92103
92104 2001-11-09  Jim Meyering  <meyering@lucent.com>
92105
92106         * m4/jm-macros.m4: Require autoconf-2.52f.
92107         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92108         Use these AC_-prefixed names, not the AM_-prefixed ones.
92109
92110         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92111
92112 2001-11-05  Jim Meyering  <meyering@lucent.com>
92113
92114         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92115
92116 2001-11-04  Jim Meyering  <meyering@lucent.com>
92117
92118         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92119         $DEFS.
92120
92121 2001-11-03  Jim Meyering  <meyering@lucent.com>
92122
92123         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92124         of AC_DEFUN.
92125
92126         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92127         know the name of the variable in the macro definition.
92128
92129 2001-11-03  Jim Meyering  <meyering@lucent.com>
92130
92131         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92132         in argmatch_to_argument call.
92133
92134         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92135         argument.
92136
92137         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92138         e.g., a fault due to an attempt to free a NULL pointer.
92139
92140 2001-11-01  Jim Meyering  <meyering@lucent.com>
92141
92142         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92143         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92144
92145 2001-11-01  Jim Meyering  <meyering@lucent.com>
92146
92147         * lib/dirfd.c, lib/dirfd.h: New files.
92148         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92149
92150         * lib/hash.c (hash_print) [TESTING]: Clean up.
92151
92152 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92153
92154         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92155         to avoid a warning if -Wall.
92156
92157 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92158
92159         * README: New file
92160         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92161         (per RMS's instructions, this is now the canonical source)
92162         * lgpl/, gpl/: New directories.
92163
92164 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92165
92166         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92167
92168 2001-10-21  Jim Meyering  <meyering@lucent.com>
92169
92170         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92171         this code would end up calling gettext even in packages built
92172         with --disable-nls.
92173         * lib/getopt.c (_): Likewise.
92174         * lib/regex.c (_): Likewise.
92175
92176 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92177
92178         * m4/error.m4 (jm_PREREQ_ERROR):
92179         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92180         AC_FUNC_STRERROR_R does that.
92181         Check for strerror declaration.
92182
92183         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92184         are supposed to have them these days.
92185         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92186         Merge changes from latest Autoconf CVS.
92187         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92188         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92189         POSIX decided to standardize on the int flavor of strerror_r.
92190
92191 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92192
92193         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92194         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92195         Use strerror_r that is only a macro, even if it is not a function.
92196         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92197         (private_strerror): Use prototypes, not old-style function definition.
92198         (print_errno_message): New function.
92199         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92200         char*-flavored one.
92201         (error_tail, error, error_at_line): Use it.
92202
92203 2001-10-11  Jim Meyering  <meyering@lucent.com>
92204
92205         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92206         and quote_n (1, ... to avoid clobbering a buffer.
92207
92208 2001-10-05  Jim Meyering  <meyering@lucent.com>
92209
92210         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92211         hash-pjw.h.
92212         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92213         * lib/hash-pjw.h: New file.
92214
92215 2001-09-30  Jim Meyering  <meyering@lucent.com>
92216
92217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92218         `struct fsstat' has the `f_fstypename' member.
92219         Use that to define FS_TYPE, which is now used to make
92220         the getfsstat link test tighter.
92221
92222 2001-09-30  Jim Meyering  <meyering@lucent.com>
92223
92224         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92225         Include <sys/ucred.h>, for Apple Darwin.
92226         Include sys/mount.h and sys/fs_types.h only if available.
92227         (FS_TYPE): Define.
92228         (read_filesystem_list): Use FS_TYPE.
92229
92230 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92231
92232         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92233         a boolean context.
92234
92235 2001-09-29  Jim Meyering  <meyering@lucent.com>
92236
92237         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92238         [one-argument getmntent function]): Include stdio.h before mntent.h.
92239         SunOS 4.1.x needs it for the declaration of `FILE'.
92240         Patch by Volker Borchert.
92241
92242         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92243         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92244         sys/fs_types.h, and make the link-test for getfsstat guard #include
92245         directives with appropriate #if HAVE_*_H tests so that we can
92246         detect getfsstat on Apple Darwin1.3.7 systems.
92247         Reported by Nelson Beebe.
92248         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92249
92250 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92251
92252         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92253         #defines strtoimax.  Also treat the other strto* functions
92254         like strtoimax.
92255
92256         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92257         Check for strtoul and strtoumax,
92258         as those declarations are made even in the signed case.
92259         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92260         Likewise, for strtol and strtoimax.
92261
92262 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92263
92264         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92265         #defines strtoimax.  Also treat the other strto* functions
92266         like strtoimax.
92267
92268         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92269         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92270         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92271
92272 2001-09-26  Jim Meyering  <meyering@lucent.com>
92273
92274         Most macros in unlocked-io.h had the wrong number of arguments.
92275         * lib/gen-uio: New script.
92276         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92277         * lib/unlocked-io.hin: Remove file.
92278         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92279         rather than trying to embed it here.
92280         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92281         Reported by Padraig Brady.
92282
92283 2001-09-25  Volker Borchert  <bt@teknon.de>
92284
92285         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92286         `result'.
92287
92288 2001-09-24  Jim Meyering  <meyering@lucent.com>
92289
92290         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92291
92292 2001-09-23  Jim Meyering  <meyering@lucent.com>
92293
92294         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92295         instead of the mere test for existence of mntent.h.  The latter
92296         would get a false-positive on AIX 3.4 systems.
92297         In the outer getmntent if-block, don't die if neither of the getmntent
92298         tests succeeds.  Instead, just fall through and continue with the
92299         remaining tests.
92300
92301 2001-09-23  Jim Meyering  <meyering@lucent.com>
92302
92303         * lib/mountlist.c: Remove useless parentheses in #if directives.
92304         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92305         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92306
92307 2001-09-22  Jim Meyering  <meyering@lucent.com>
92308
92309         * m4/gettext.m4: New file.  From gettext.
92310         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92311         * m4/progtest.m4: Likewise
92312         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92313         * m4/glibc21.m4: Likewise.
92314
92315         * m4/libintl.m4: Remove.  No longer used.
92316
92317 2001-09-22  Jim Meyering  <meyering@lucent.com>
92318
92319         * lib/localcharset.c: Update from latest gettext.
92320         * lib/config.charset: Likewise.
92321
92322 2001-09-20  Jim Meyering  <meyering@lucent.com>
92323
92324         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92325         strtoimax.
92326         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92327         strtoumax.
92328
92329 2001-09-20  Jim Meyering  <meyering@lucent.com>
92330
92331         * lib/xstrtol.c (strtoimax): Guard declaration with
92332         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92333         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92334         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92335         (strtoumax): Likewise, for completeness (it wasn't necessary).
92336
92337 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92338
92339         * lib/strtoimax.c (HAVE_LONG_LONG):
92340         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92341         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92342         to work around bug in IBM C compiler.
92343
92344 2001-09-17  Jim Meyering  <meyering@lucent.com>
92345
92346         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92347         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92348         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92349         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92350         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92351         whenever the right hand side need not be expanded by the shell.
92352
92353 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92354
92355         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92356         library.  It's not correct, as some older glibcs are buggy.
92357         fnmatch wasn't fixed until glibc 2.2.
92358
92359         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92360         special shell magic here.
92361
92362 2001-09-16  Jim Meyering  <meyering@lucent.com>
92363
92364         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92365         * m4/jm-macros.m4: Require it.
92366
92367 2001-09-16  Jim Meyering  <meyering@lucent.com>
92368
92369         * lib/mkdir.c: New file.
92370
92371 2001-09-15  Jim Meyering  <meyering@lucent.com>
92372
92373         * m4/jm-macros.m4: Check for help2man.
92374
92375 2001-09-11  Jim Meyering  <meyering@lucent.com>
92376
92377         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92378         The body, by Paul Eggert, was moved here from configure.in.
92379         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92380
92381 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92382
92383         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92384         (jm_PREREQ): Use it.
92385
92386 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92387
92388         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92389         Use ssize_t, not int, to store result of readlink.
92390         Check for ssize_t overflow as well as size_t overflow,
92391         as POSIX says the result of readlink is implementation-defined
92392         when ssize_t overflows.
92393         Remove unnecessary cast to char*.
92394         Use free+malloc instead of realloc, as the storage doesn't need
92395         to be preserved and it's clearer and can be more efficient that way.
92396         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92397         * lib/xreadlink.h (xreadlink): Update prototype.
92398
92399 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92400
92401         * lib/xgetcwd.c: Revert some of the previous change; intead,
92402         fix the HAVE_GETCWD_NULL code to behave more like the
92403         !HAVE_GETCWD_NULL code used to.
92404
92405         Include "xalloc.h".
92406         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92407         invoke xalloc_die.
92408
92409 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92410
92411         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92412         sys/param.h, as pathmax.h includes them.
92413
92414 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92415
92416         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92417         (jm_PREREQ_XGETCWD): New macro.
92418
92419         * m4/getcwd.m4: New file.
92420
92421 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92422
92423         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92424         like the HAVE_GETCWD_NULL code.
92425         Include pathmax.h if not HAVE_GETCWD.
92426         Do not include xalloc.h.
92427         (INITIAL_BUFFER_SIZE): New symbol.
92428         Do not use xmalloc / xrealloc, since the caller is responsible for
92429         handling errors.  Preserve errno around `free' during failure.
92430         Do not overrun buffer when using getwd.
92431
92432 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92433
92434         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92435         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92436         getcwd (NULL, 0).
92437
92438 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92439
92440         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92441         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92442         spotted by Jim Meyering.
92443
92444 2001-09-03  Jim Meyering  <meyering@lucent.com>
92445
92446         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92447         failure.
92448
92449 2001-09-02  Jim Meyering  <meyering@lucent.com>
92450
92451         * lib/error.c: Update from GNU libc.
92452
92453 2001-09-01  Jim Meyering  <meyering@lucent.com>
92454
92455         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92456         Used by df.
92457
92458 2001-09-01  Jim Meyering  <meyering@lucent.com>
92459
92460         * lib/xreadlink.c: New file.
92461         * lib/xreadlink.h: New file.
92462         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92463         xreadlink.h.
92464
92465         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92466         doesn't conflict with sparc Solaris 7's definition in
92467         /usr/include/sys/int_types.h.
92468
92469         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92470         files.
92471         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92472         and strncasecmp as r-values.  Unixware didn't have declarations.
92473
92474 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92475
92476         * lib/xstrtol.h: Add copyright notice.
92477         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92478         LONGINT_INVALID_SUFFIX_CHAR.
92479
92480 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92481
92482         * lib/xstrtol.c (strtoimax): New decl.
92483
92484 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92485
92486         * lib/xgetcwd.c: Don't include pathmax.h.
92487         Include stdlib.h and unistd.h if available.
92488         Include xalloc.h.
92489         (xmalloc, xstrdup, free): Remove decls.
92490         (xgetcwd): Don't assume sizes fit in unsigned.
92491         Check for overflow when computing sizes.
92492         Simplify reallocation code.
92493
92494 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92495
92496         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92497         a directory's st_size can have an arbitrary value, so the old
92498         usage could waste an arbitrary amount of memory.  All uses
92499         changed.
92500         * lib/savedir.h: Update prototype.
92501
92502 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92503
92504         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92505
92506         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92507         old strtoimax.c.
92508
92509         Also, make the following further changes to make this file's
92510         configuration more similar to that of strtol.c:
92511         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92512         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92513         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92514         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92515         changed to signed values.
92516
92517         And make the following changes as well:
92518         Fix copyright notice, as 1999 was missing.
92519         (verify): New macro.
92520         (strtoimax): Check sizes at compile-time, not run-time.
92521         Prefer strtol to strtoll if both work.
92522         (main): Remove; it was not that useful and was a pain to maintain.
92523
92524         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92525
92526 2001-08-31  Jim Meyering  <meyering@lucent.com>
92527
92528         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92529         Use an initial, malloc'd, buffer of length 128 rather than
92530         a statically allocated one of length 1024.
92531
92532 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92533
92534         Simplify code, partly by assuming autoconf 2.52 semantics.
92535
92536         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92537
92538         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92539         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92540         All uses removed.
92541         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92542         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92543         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92544         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92545         jm_AC_HEADER_INTTYPES_H.
92546         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92547
92548         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92549
92550         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92551         Quote first arg of AC_DEFUN.
92552         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92553         since they are needed to parse the include file even if we need
92554         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92555         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92556         but with opposite signedness.
92557
92558 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92559
92560         Merge 'exclude' changes from tar 1.13.22.
92561         This fixes one or two unlikely storage allocation overflow bugs,
92562         but doesn't change user-visible behavior otherwise.
92563
92564 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92565
92566         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92567         (jm_PREREQ_EXCLUDE): New macro.
92568
92569 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92570
92571         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92572         tm to be declared.
92573
92574 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92575
92576         * lib/hash.c: Remove '2001' from copyright notice.
92577
92578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92579
92580         * lib/full-write.h: New file.
92581         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92582         * lib/full-write.c: Correct credits, as cccp.c no longer
92583         exists and anyway it was so heavily changed from the old cccp
92584         code as to be unrecognizable.  Include full-write.h.
92585         (full_write): Return size_t, with short writes meaning failure.
92586         All callers changed.  This fixes a bug with large buffers
92587         on 64-bit hosts.
92588         * lib/utime.c: Include full-write.h.
92589
92590 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92591
92592         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92593         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92594         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92595         Include if available.
92596         (<xalloc.h>): Include
92597         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92598         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92599         collide with FNM macros.
92600         (struct patopts): New struct.
92601         (struct exclude): Use it, as exclude patterns now come with options.
92602         (new_exclude): Support above changes.
92603         (new_exclude, add_exclude_file):
92604         Initial size must now be a power of two to simplify overflow checking.
92605         (free_exclude, fnmatch_no_wildcards): New function.
92606         (excluded_filename): No longer requires options arg, as the options
92607         are determined by add_exclude.  Now returns bool, not int.
92608         (excluded_filename, add_exclude):
92609         Add support for the fancy new exclusion options.
92610         (add_exclude, add_exclude_file): Now takes int options arg.
92611         Check for arithmetic overflow when computing sizes.
92612         (add_exclude_file): xrealloc might modify errno, so don't
92613         realloc until after errno might be used.
92614
92615         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92616         New macros.
92617         (free_exclude): New decl.
92618         (add_exclude, add_exclude_file): Now takes int options arg.
92619         (excluded_filename): No longer requires options arg, as the options
92620         are determined by add_exclude.  Now returns bool, not int.
92621
92622 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92623
92624         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92625
92626 2001-08-27  Jim Meyering  <meyering@lucent.com>
92627
92628         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92629
92630         * lib/version-etc.c (N_): Remove definition.
92631         Revert most of last change.
92632         Instead, simply don't mark the `Copyright...' string for translation.
92633         Based on advice from Paul Eggert.
92634
92635         * lib/strtoxmax.c: Tweak comment.
92636
92637 2001-08-26  Jim Meyering  <meyering@lucent.com>
92638
92639         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92640
92641         * m4/xstrtoimax.m4: New file.
92642         * m4/xstrtoumax.m4: Add comments explaining why we
92643         AC_REPLACE_FUNCS(strtol).
92644
92645 2001-08-26  Jim Meyering  <meyering@lucent.com>
92646
92647         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92648         of copyright with `%s' so translators don't get an untranslated
92649         message in 2002.
92650         (COPYRIGHT_YEAR): Define.
92651         (version_etc): Use fprintf rather than fputs.
92652         Suggestion from Ulrich Drepper.
92653
92654         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92655
92656         * lib/strtoll.c: New file, from GNU libc.
92657         * lib/xstrtoimax.c: New file.
92658
92659         * lib/xstrtol.h: Add xstrtoimax.
92660         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92661         * lib/strtoimax.c: New file.  Likewise, but first define
92662         STRTOUXMAX_SIGNED.
92663
92664         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92665         ...
92666         * lib/strtoxmax.c: ... then renamed to this.
92667
92668 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92669
92670         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92671         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92672         (jm_AC_TYPE_INTMAX_T): New macro.
92673         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92674
92675         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92676
92677         * m4/longlong.m4: Renamed from ulonglong.m4.
92678         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92679         * m4/uintmax_t.m4: Removed.
92680
92681 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92682
92683         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92684         Port to Solaris 8, where 'sed' requires a space after the 'r'
92685         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92686         Redirect output to $tmp just once.
92687
92688 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92689
92690         * lib/addext.c (<errno.h>): Include.
92691         (errno): Declare if not defined.
92692         (addext): Work correctly when pathconf returns -1 and leaves
92693         errno alone because there is no limit.  Also, work even if
92694         pathconf returns a value greater than SIZE_MAX.
92695
92696 2001-08-12  Jim Meyering  <meyering@lucent.com>
92697
92698         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92699         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92700         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92701         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92702         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92703         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92704         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92705         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92706         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92707         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92708         utime.m4, utimes.m4, xstrtoumax.m4:
92709         Quote the first argument in each use of AC_DEFUN.
92710
92711 2001-08-12  Jim Meyering  <meyering@lucent.com>
92712
92713         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92714         Simply `return getcwd (NULL, 0);'.
92715         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92716         Use 1300 as initial value for length, not PATH_MAX.
92717
92718         * lib/pathmax.h: Clean up cpp syntax.
92719
92720 2001-08-12  Jim Meyering  <meyering@lucent.com>
92721
92722         * lib/gettimeofday.c: New file.
92723         * lib/gtod.h: New file.
92724         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92725
92726 2001-08-05  Jim Meyering  <meyering@lucent.com>
92727
92728         * m4/jm-macros.m4: Require autoconf-2.52.
92729
92730 2001-08-04  Jim Meyering  <meyering@lucent.com>
92731
92732         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92733         stmt, to get in sync with glibc.
92734
92735 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92736
92737         The following changes are from gettext 0.10.39 as maintained by
92738         Bruno Haible.
92739
92740         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92741         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92742         with inverted sense.  All uses changed.
92743
92744         * lib/mbswidth.c: Don't include <limits.h>.
92745         Include <stdlib.h> and <string.h> unconditionally.
92746         (iswcntrl, mbsinit, ISCNTRL): New macros.
92747         (mbsnwidth): Use K&R style function declarations.
92748         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92749         can optimize it when MB_CUR_MAX == 1.
92750         The width of control characters is zero, not 1.
92751
92752 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92753
92754         The following changes are from gettext 0.10.39 as maintained by
92755         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92756
92757         * m4/codeset.m4: Upgrade to serial AM1.
92758         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92759         all uses changed.  Quote first arg of AC_DEFUN.
92760         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92761
92762         * m4/iconv.m4: Upgrade to serial AM2.
92763         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92764         Add --with-libconv-prefix.
92765         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92766         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92767         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92768         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92769         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92770
92771         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92772         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92773         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92774         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92775         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92776         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92777         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92778         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92779         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92780
92781         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92782         string.h any more.
92783
92784         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92785         not the default value.
92786
92787         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92788         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92789         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92790         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92791         Also check for iswcntrl, used for wcwidth fallback.
92792         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92793         to Autoconf 2.13.
92794
92795 2001-08-03  Jim Meyering  <meyering@lucent.com>
92796
92797         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92798         as it was in the original.  Reported by Paul Eggert.
92799
92800 2001-07-16  Jim Meyering  <meyering@lucent.com>
92801
92802         * m4/gettimeofday.m4: New file.
92803         Prompted by a report from Bernhard Baehr.
92804
92805 2001-07-15  Jim Meyering  <meyering@lucent.com>
92806
92807         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92808         stuff. Now it's in ../Makefile.cfg.
92809
92810 2001-07-15  Jim Meyering  <meyering@lucent.com>
92811
92812         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92813         (BUILT_SOURCES): Add unlocked-io.h.
92814         (io_functions): Define.
92815         (unlocked-io.h): New rule.
92816         (DISTCLEANFILES): Add unlocked-io.h.
92817         (all-local): Depend on unlocked-io.h, to ensure it is created.
92818
92819         * lib/unlocked-io.hin: New file
92820
92821         * lib/regex.c: Update from glibc.
92822
92823 2001-07-05  Jim Meyering  <meyering@lucent.com>
92824
92825         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92826         recommendation.
92827         (libfetish_a_SOURCES): Put all .h files here instead.
92828         Remove a thus-exposed (better checks in automake) duplicate and
92829         two unnecessary .h files.
92830
92831 2001-07-04  Jim Meyering  <meyering@lucent.com>
92832
92833         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92834         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92835         distcheck failure.
92836
92837 2001-07-02  Jim Meyering  <meyering@lucent.com>
92838
92839         The following changes were prompted by suggestions from Bruno Haible.
92840
92841         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92842         is now generated.
92843         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92844         definition of EXTRA_DIST.
92845         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92846         ensure that the generated file is created/updated whenever the list
92847         of $(unlocked_functions) is changed.
92848         (jm-glibc-io.m4): New rule.
92849         (unlocked-io.h): New rule -- currently unused.
92850
92851 2001-06-24  Jim Meyering  <meyering@lucent.com>
92852
92853         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92854         unmatched right bracket, rather than kludging it with an extra,
92855         falsely-matching quote in a comment.  Patch by Akim Demaille.
92856
92857 2001-06-11  Jim Meyering  <meyering@lucent.com>
92858
92859         * lib/regex.c: Update from GNU libc.
92860
92861 2001-05-27  Jim Meyering  <meyering@lucent.com>
92862
92863         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92864         Check for ut_type in struct utmp.
92865
92866 2001-05-27  Jim Meyering  <meyering@lucent.com>
92867
92868         * lib/readutmp.h (UT_TYPE): Define.
92869
92870 2001-05-24  Jim Meyering  <meyering@lucent.com>
92871
92872         * lib/argmatch.c: Include "quote.h".
92873         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92874         quote function.  Reported by Göran Uddeborg.
92875
92876 2001-05-22  Jim Meyering  <meyering@lucent.com>
92877
92878         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92879         now that we use the package-supplied version unconditionally.
92880         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92881
92882 2001-05-21  Jim Meyering  <meyering@lucent.com>
92883
92884         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92885         shell syntax errors.
92886
92887 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92888
92889         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92890
92891 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92892
92893         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92894         Don't bother to check library strftime, since
92895         we'll be using our own my_strftime function anyway.
92896         Define my_strftime instead of strftime.
92897
92898 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92899
92900         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92901         which is not yet declared.
92902
92903 2001-05-15  Jim Meyering  <meyering@lucent.com>
92904
92905         * m4/regex.m4: Use proper quoting so brackets appear in the test
92906         program.
92907         Reported by, and with help from, Bruno Haible.
92908
92909 2001-05-13  Jim Meyering  <meyering@lucent.com>
92910
92911         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92912         undefined.
92913
92914 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92915
92916         dirname code cleanup.  base_name now behaves more compatibly
92917         with POSIX basename when given file names that have trailing
92918         slashes, and similarly for dir_name.  Add new primitives
92919         base_len and dir_len.  Put the directory-name-related decls
92920         into dirname.h.
92921
92922         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92923         * lib/backupfile.c (base_name): Likewise.
92924         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92925         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92926         * lib/makepath.c (strip_trailing_slashes): Likewise.
92927         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92928         ISSLASH): Likewise.
92929         * lib/rename.c (strip_trailing_slashes): Likewise.
92930         * lib/same.c (base_name): Likewise.
92931         * lib/stripslash.c (ISSLASH): Likewise.
92932
92933         * lib/addext.c: Include <dirname.h> after size_t is defined.
92934         * lib/backupfile.c: Likewise.
92935
92936         * lib/addext.c (addext): Use base_len to trim redundant
92937         trailing slashes instead of doing it ourselves.
92938         But do not trim the last slash if it is not redundant.
92939
92940         * lib/backupfile.c (find_backup_file_name,
92941         max_backup_version): Use base_len instead of rolling it ourselves.
92942         Handle the case of "" and (on DOS) "C:" correctly.
92943
92944         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92945         needed. Include <string.h>, <dirname.h>.
92946         (base_name): Allow file names ending in slashes, other than names
92947         that are all slashes.  In this case, return the basename followed
92948         by the slashes.  This is more general, and can be used in places
92949         where the original base_name purposely had an assertion failure.
92950         (base_len): New function.
92951
92952         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92953         Do not include <assert.h>; no longer needed.
92954         Include xalloc.h.
92955         (memrchr): Remove decl.
92956         (dir_name_r): Remove.
92957         (dir_len): Renamed from dirlen.  All callers changed.
92958         Rewrite in terms of base_name, for simplicity and consistency.
92959         (dir_name): Never return NULL.  All callers changed.
92960         Do not include <stdlib.h> in test program; no longer needed.
92961         return 0; is fine for test program.
92962
92963         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92964         New macros.
92965         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92966
92967         * lib/path-concat.c (path_concat): Use base_len to compute
92968         base length, not strlen; this means we cannot rely on memcpy
92969         to null-terminate.
92970
92971         * lib/same.c (STREQ): Remove.
92972         (same_name): Handle the case where the basename ends in trailing '/'.
92973
92974         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92975         a slash was stripped.  Do not strip the last slash after a
92976         file system prefix.
92977
92978 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92979
92980         * lib/Makefile.am (libfetish_a_SOURCES):
92981         Add strftime.c, since we now compile it on all hosts.
92982
92983         * lib/strftime.c (my_strftime):
92984         Define to nstrftime if emacs, but only if my_strftime is not defined.
92985         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92986         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92987         Add one more extra argument: a nanoseconds value.
92988         All uses changed.
92989         (ns): New macro.
92990         (my_strftime function): Add %N format.
92991         (emacs_strftimeu): Renamed from emacs_strftime,
92992         with extra ut argument.
92993
92994 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92995
92996         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92997
92998 2001-04-21  Jim Meyering  <meyering@lucent.com>
92999
93000         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93001         doesn't interfere.
93002
93003 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93004
93005         * m4/ftruncate.m4: Check for chsize.
93006         Link with ftruncate.o unconditionally if ftruncate is missing.
93007         This was required when cross-compiling to i586-mingw32msvc.
93008
93009 2001-04-08  Jim Meyering  <meyering@lucent.com>
93010
93011         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93012         recomputed; that's necessary when the offset spans a DST transition.
93013         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93014
93015 2001-04-02  Jim Meyering  <meyering@lucent.com>
93016
93017         * lib/regex.h, regex.c: Update from GNU libc.
93018
93019 2001-03-24  Jim Meyering  <meyering@lucent.com>
93020
93021         * m4/jm-macros.m4: Require autoconf-2.49d.
93022
93023 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93024
93025         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93026
93027 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93028
93029         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93030
93031 2001-03-17  Jim Meyering  <meyering@lucent.com>
93032
93033         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93034         now that the version in autoconf is equivalent.
93035         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93036
93037         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93038         Suggestion from Akim Demaille.
93039
93040         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93041         (jm_PREREQ_TEMPNAME): New function.
93042
93043 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93044
93045         * lib/tempname.c (uint64_t): Define to uintmax_t if
93046         not defined, and if UINT64_MAX is not defined.
93047         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93048         Reported by John David Anglin.
93049
93050 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93051
93052         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93053         resolve alias if codeset is empty.
93054         * lib/config.charset (BeOS): Use wildcard syntax.
93055
93056 2001-03-13  Jim Meyering  <meyering@lucent.com>
93057
93058         * lib/path-concat.c (path_concat)
93059         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93060         concatenating e.g., `C:' and `foo'.
93061         From Bruno Haible.
93062
93063 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93064
93065         * lib/localcharset.c (locale_charset): Don't use
93066         setlocale(LC_CTYPE,NULL). Don't return NULL.
93067         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93068
93069 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93070
93071         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93072         support for DOS/DJGPP.
93073
93074 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93075
93076         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93077         lacks mkstemp.  Compile our own tempname.c if we compile our own
93078         mkstemp.c, as mkstemp relies on tempname.
93079
93080 2001-03-01  Jim Meyering  <meyering@lucent.com>
93081
93082         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93083         AH_VERBATIM really does output its argument verbatim.
93084
93085 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93086
93087         * lib/Makefile.am (libfetish_a_SOURCES):
93088         Add dup-safer.c, fopen-safer.c.
93089         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93090
93091         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93092         * lib/unistd-safer.h: New files.
93093
93094 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93095
93096         The mkstemp replacement is taken from glibc 2.2.2, with some
93097         portability fixes for use outside glibc, as follows:
93098
93099         * lib/tempname.c (struct_stat64): New macro.
93100         (direxists, __gen_tempname): Use it.
93101         This avoids a portability problem with Solaris 8.
93102
93103         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93104         (<stddef.h>, <stdint.h>, <string.h>):
93105         Include only if STDC_HEADERS || _LIBC.
93106         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93107         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93108         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93109         (__set_errno): Define this macro if <errno.h> doesn't.
93110         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93111         Define these macros if <stdio.h> doesn't.
93112         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93113         Define these macros if <sys/stat.h>
93114         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93115         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93116         __xstat64): Define if not _LIBC.
93117         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93118         (__gen_tempname): Invoke gettimeofday only if
93119         HAVE_GETTIMEOFDAY || _LIBC;
93120         otherwise, fall back on plain "time".
93121         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93122
93123         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93124
93125         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93126
93127 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93128
93129         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93130
93131 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93132
93133         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93134         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93135         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93136         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93137
93138 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93139
93140         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93141         Remove workaround macros for hosts that have mbrtowc but not
93142         mbstate_t, as we now insist on proper declarations for both
93143         before using mbrtowc.
93144
93145 2001-02-17  Jim Meyering  <meyering@lucent.com>
93146
93147         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93148         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93149         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93150         UnixWare 7.1.1.
93151
93152         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93153         rather than AC_CACHE_VAL.
93154
93155 2001-02-17  Jim Meyering  <meyering@lucent.com>
93156
93157         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93158         around included file name.
93159
93160         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93161
93162         * lib/strftime.c: Update from GNU libc (the only changes were to
93163         comments).
93164
93165 2001-02-17  Jim Meyering  <meyering@lucent.com>
93166
93167         * lib/regex.c: Update from libc.
93168
93169 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93170
93171         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93172         clash.
93173
93174 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93175
93176         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93177         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93178         Reported by Mark Hounschell via Paul Eggert.
93179
93180 2001-02-07  Jim Meyering  <meyering@lucent.com>
93181
93182         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93183
93184 2001-02-05  Jim Meyering  <meyering@lucent.com>
93185
93186         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93187         it includes the patch required for `large file' support with at least
93188         HP-UX's 10.20 /bin/cc.
93189
93190 2001-02-03  Jim Meyering  <meyering@lucent.com>
93191
93192         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93193         AS_IF, now that it works once again (mysteriously).
93194         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93195
93196 2001-01-30  Jim Meyering  <meyering@lucent.com>
93197
93198         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93199         * m4/chown.m4: Rename conftestchown to conftest.chown.
93200         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93201         s/conftestdir2/conftest.d2/.
93202         * m4/utimes.m4: s/conftestdata/conftest.data/
93203         Inspired by Pavel Roskin's change in autoconf.
93204
93205 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93206
93207         * lib/config.charset: Update for FreeBSD 4.2.
93208
93209 2001-01-27  Jim Meyering  <meyering@lucent.com>
93210
93211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93212         a use of AS_IF.
93213         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93214
93215 2001-01-26  Jim Meyering  <meyering@lucent.com>
93216
93217         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93218         quotearg.c includes it.
93219
93220 2001-01-26  Jim Meyering  <meyering@lucent.com>
93221
93222         * lib/quotearg.c: Include stddef.h.
93223         * lib/quote.c: Include stddef.h.
93224         Reported by Axel Kittenberger.
93225
93226         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93227         line in double quotes so that it evokes a better diagnostic.
93228         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93229         Reported by Axel Kittenberger.
93230
93231 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93232
93233         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93234         as if it was a `charset'.
93235
93236 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93237
93238         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93239         has const.
93240
93241 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93242
93243         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93244         to avoid a warning.  Add back 'const' to inptr.
93245
93246 2001-01-20  Jim Meyering  <meyering@lucent.com>
93247
93248         Be sure that headers are checked before used in code compiled
93249         for the type checks.
93250         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93251         In place of that, invoke jm_CHECK_ALL_TYPES.
93252         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93253         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93254         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93255         The check for ssize_t was mistakenly run before the test for unistd.h.
93256
93257         The configure-time check for stdbool.h was missing.
93258         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93259         (jm_PREREQ_HASH): New function.
93260
93261 2001-01-17  Jim Meyering  <meyering@lucent.com>
93262
93263         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93264         for autoconf-2.49c.
93265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93266
93267 2001-01-16  Jim Meyering  <meyering@lucent.com>
93268
93269         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93270         From Bruno Haible.
93271
93272 2001-01-14  Jim Meyering  <meyering@lucent.com>
93273
93274         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93275         foo and bar.  Create conftestdir/ in the script, not in the C code.
93276         Remove directories in the script, not in the C code.
93277         Remove conftestdir{,2} before trying to create the directory.
93278         Make the entire configure script fail if the mkdir fails.
93279
93280 2001-01-14  Jim Meyering  <meyering@lucent.com>
93281
93282         * lib/rename.c: New file.  From Volker Borchert.
93283         Include stdlib.h, string.h or strings.h, and xalloc.h.
93284         Use strip_trailing_slashes rather than open-coding it.
93285
93286 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93287
93288         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93289
93290 2001-01-03  Jim Meyering  <meyering@lucent.com>
93291
93292         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93293         of local `inptr' to avoid warning with some system declarations of
93294         iconv.
93295
93296 2001-01-02  Volker Borchert  <bt@teknon.de>
93297
93298         * m4/rename.m4: New file.
93299         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93300
93301 2001-01-01  Jim Meyering  <meyering@lucent.com>
93302
93303         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93304         even on systems with utmpx.h.  It's necessary for the declaration of
93305         utmp's ut_user member.  Reported by Andreas Jaeger.
93306
93307         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93308         available. They are required for the declarations of getgrgid and
93309         getpwuid resp.
93310         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93311         Reported by Andreas Jaeger.
93312
93313 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93314
93315         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93316         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93317         so `make install' also works in VPATH builds.
93318
93319 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93320
93321         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93322         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93323         can be used in subdirectories.
93324
93325 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93326
93327         * lib/modechange.c: Do not assume that mode_t uses the
93328         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93329         the other-execute bit of FOO even if S_IXOTH != 1.
93330
93331         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93332         WOTH, XOTH, ALLM): New macros.
93333         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93334          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93335         Use them.
93336         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93337         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93338         (mode_compile):
93339         No need to use uintmax_t; unsigned long is long enough.
93340         Don't bother to get suffix since we don't use it.
93341
93342 2000-12-26  Jim Meyering  <meyering@lucent.com>
93343
93344         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93345         better with autoheader.
93346
93347 2000-12-24  Jim Meyering  <meyering@lucent.com>
93348
93349         * lib/hash.c (is_prime): Return explicit boolean values.
93350         (hash_get_first): Return NULL to appease Irix5.6's 89.
93351         Reported by Nelson Beebe.
93352
93353 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93354
93355         * lib/localcharset.c (locale_charset): Add support for Win32.
93356
93357 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93358
93359         * lib/physmem.h, lib/physmem.c: New files.
93360
93361         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93362         (noinst_HEADERS): Add physmem.h.
93363
93364         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93365         't' for compatibility with Solaris 8 sort.
93366
93367 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93368
93369         * lib/config.charset: Add support for BeOS.
93370
93371 2000-12-17  Jim Meyering  <meyering@lucent.com>
93372
93373         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93374         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93375
93376 2000-12-16  Jim Meyering  <meyering@lucent.com>
93377
93378         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93379         N and M) would have treated it like `chown N:N FILE'.
93380
93381         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93382
93383 2000-12-16  Jim Meyering  <meyering@lucent.com>
93384
93385         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93386         SHELLS_FILE to a file name that's useful on djgpp systems.
93387         Include stdlib.h.
93388         (ADDITIONAL_DEFAULT_SHELLS): Define.
93389         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93390         Based mostly on a patch from Prashant TR.
93391
93392 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93393
93394         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93395         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93396         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93397
93398 2000-12-08  Andreas Schwab  <schwab@suse.de>
93399
93400         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93401         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93402
93403 2000-12-07  Jim Meyering  <meyering@lucent.com>
93404
93405         * lib/stripslash.c (ISSLASH): Define.
93406         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93407         `/'.
93408         From Prashant TR.
93409
93410         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93411         (dir_name_r): Declare this function as static.
93412         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93413         manifest itself on a name containing a mix of slashes and
93414         backslashes.
93415         Make this function work with names starting with a DOS-style
93416         drive letter and colon prefix.
93417         (dir_name): Append `.' if necessary.
93418         Based mostly on patches from Prashant TR and Eli Zaretskii.
93419
93420         * lib/dirname.h (dir_name_r): Remove prototype.
93421
93422 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93423
93424         * m4/off_t-format.m4: Remove this file.
93425         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93426
93427 2000-12-06  Jim Meyering  <meyering@lucent.com>
93428
93429         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93430         replacement strtoull, we may well need the replacement strtoul, too.
93431         Check for declarations of strtoul and strtoull.
93432         Check for strtol.  Mainly as a cue to cause automake to include
93433         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93434         Check for limits.h -- strtol.c needs it.
93435
93436 2000-12-05  Jim Meyering  <meyering@lucent.com>
93437
93438         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93439
93440 2000-12-04  Jim Meyering  <meyering@lucent.com>
93441
93442         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93443         Also include memory.h, stdlib.h, unistd.h if appropriate.
93444         Reported by Andreas Jaeger (conflicting declaration of malloc).
93445
93446 2000-12-02  Jim Meyering  <meyering@lucent.com>
93447
93448         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93449         * m4/jm-macros.m4 (jm_MACROS): require it.
93450
93451 2000-12-02  Jim Meyering  <meyering@lucent.com>
93452
93453         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93454
93455 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93456
93457         * lib/memrchr.c: Include <config.h> before any system include file.
93458
93459 2000-11-30  Jim Meyering  <meyering@lucent.com>
93460
93461         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93462
93463 2000-11-30  Jim Meyering  <meyering@lucent.com>
93464
93465         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93466
93467 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93468
93469         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93470
93471 2000-11-26  Jim Meyering  <meyering@lucent.com>
93472
93473         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93474
93475 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93476
93477         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93478         size of (size_t) -1; it's not portable.
93479
93480 2000-11-17  Jim Meyering  <meyering@lucent.com>
93481
93482         * lib/strstr.c: Update from GNU libc.
93483
93484 2000-11-17  Akim Demaille  <akim@epita.fr>
93485
93486         * lib/obstack.h: Formatting changes.
93487         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93488         prevent type checking.
93489         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93490         cast the value to (void *): assigning a `foo *' to a `void *'
93491         variable is valid.
93492         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93493
93494 2000-11-16  Jim Meyering  <meyering@lucent.com>
93495
93496         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93497
93498 2000-11-11  Jim Meyering  <meyering@lucent.com>
93499
93500         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93501
93502 2000-11-10  Jim Meyering  <meyering@lucent.com>
93503
93504         * lib/obstack.h: Update from GNU libc.
93505         * lib/obstack.c: Likewise.
93506
93507 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93508
93509         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93510
93511 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93512
93513         * lib/getusershell.c (setusershell): Use rewind rather than
93514         fseek/fseeko, to avoid configuration hassles with fseeko.
93515         Don't bother opening SHELLS_FILE if shellstream is NULL;
93516         it's not necessary.
93517
93518 2000-11-05  Jim Meyering  <meyering@lucent.com>
93519
93520         * lib/makepath.h (make_dir): Declare.
93521         * lib/makepath.c (make_dir): Remove `static' attribute.
93522         Tweak a comment.
93523
93524 2000-11-04  Jim Meyering  <meyering@lucent.com>
93525
93526         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93527
93528 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93529
93530         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93531         last one in a bucket, advance to the next bucket.
93532
93533 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93534
93535         * lib/fnmatch.c: Do not comment out all the code if we are using
93536         the GNU C library, because in some cases we are replacing buggy
93537         code in the GNU C library itself.
93538
93539 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93540
93541         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93542         (regex_compile): Catch bogus \(\1\).
93543
93544 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93545
93546         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93547         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93548         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93549
93550 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93551
93552         * lib/error.h, getline.h, modechange.h:
93553         Remove "2000" from Copyright line, as the file hasn't been
93554         changed this year other than in the copyright notice.
93555
93556         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93557         was changed this year.
93558
93559 2000-10-29  Jim Meyering  <meyering@lucent.com>
93560
93561         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93562         renaming.
93563         * m4/ls-mntd-fs.m4: Likewise
93564
93565 2000-10-29  Jim Meyering  <meyering@lucent.com>
93566
93567         * lib/xstat.in: Fix grammar in comment.
93568
93569 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93570
93571         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93572         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93573         doesn't define __restrict_arr.
93574
93575 2000-10-28  Jim Meyering  <meyering@lucent.com>
93576
93577         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93578         (jm_PREREQ_MEMCHR): New function.
93579
93580 2000-10-28  Jim Meyering  <meyering@lucent.com>
93581
93582         * lib/memchr.c: Update from libc.
93583         Adjust for portability:
93584         [HAVE_STDLIB_H]: Include stdlib.h.
93585         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93586         Undef __memchr, too.
93587         [!weak_alias]: Define __memchr to memchr.
93588
93589         * lib/regex.c: Update from libc.
93590         * lib/regex.h: Likewise.
93591         * lib/getopt1.c: Likewise.
93592         * lib/memcmp.c: Likewise.
93593
93594         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93595         Avoid using fseek, when possible -- it's broken by design.
93596         Patch by Ulrich Drepper.
93597
93598 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93599
93600         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93601         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93602         Giving in to popular pressure to shut up the compiler with casts.
93603
93604 2000-10-26  Jim Meyering  <meyering@lucent.com>
93605
93606         * lib/strftime.c: Update from libc.
93607
93608 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93609
93610         * regex.c: More `unsigned char' -> `re_char' changes.
93611         Also change several `int' into `re_wchar_t'.
93612         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93613         (PUSH_FAILURE_POINTER): Don't cast any more.
93614         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93615         We want GCC to complain, since this piece of code makes
93616         re_match non-reentrant, which *should* be fixed.
93617         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93618         (EXTEND_BUFFER): Use RETALLOC.
93619         (SET_LIST_BIT): Don't cast.
93620         (re_wchar_t): New type.
93621         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93622         that those two functions will always properly return.
93623         (IMMEDIATE_QUIT_CHECK): Cast to void.
93624         (analyse_first): Use recursion rather than an explicit stack.
93625         (re_compile_fastmap): Can't fail anymore.
93626         (re_search_2): Don't check re_compile_fastmap for failure.
93627         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93628         Now also sets the new value (passed in a new argument).
93629         (re_match_2_internal): Use it.
93630         Also, use a new var `reg' of type size_t when looping through regs
93631         rather than reuse the inappropriate `mcnt'.
93632
93633 2000-10-25  Jim Meyering  <meyering@lucent.com>
93634
93635         * lib/obstack.c: Update from libc.
93636
93637 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93638
93639         * regex.c (regex_compile): Change the way of handling a range from
93640         a char less than 256 to a char not less than 256.
93641
93642 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93643
93644         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93645         NT-Emacs only.
93646         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93647         so that re_search functions only quit when callers expect them to.
93648
93649 2000-10-23  Jim Meyering  <meyering@lucent.com>
93650
93651         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93652         wrong.  That set_locale call must not have any side effects.
93653         From Paul Eggert.
93654
93655 2000-10-22  Jim Meyering  <meyering@lucent.com>
93656
93657         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93658         [CYCLIC]: Remove now-unused definition.
93659
93660         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93661         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93662         Suggestion from Ulrich Drepper.
93663
93664 2000-10-21  Jim Meyering  <meyering@lucent.com>
93665
93666         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93667         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93668         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93669
93670 2000-10-21  Jim Meyering  <meyering@lucent.com>
93671
93672         * lib/dirname.c (memrchr): Declare if necessary.
93673         (dir_name): Remove the restriction that there be no
93674         trailing slashes.  Now, this code skips past them, effectively
93675         ignoring them.
93676         [TEST_DIRNAME] (main): New unit tests.
93677
93678         * lib/memrchr.c: New file from GNU libc.
93679         Undef __memrchr, too.
93680         [!weak_alias]: Define __memrchr to memrchr.
93681         Guard weak_alias use with `#ifdef weak_alias'.
93682
93683 2000-10-21  Jim Meyering  <meyering@lucent.com>
93684
93685         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93686         (dir_name): Use dir_name_r.
93687         * lib/dirname.h (dir_name_r): Declare it.
93688
93689 2000-10-17  Jim Meyering  <meyering@lucent.com>
93690
93691         * lib/quote.h (PARAMS): Define and use.
93692         Reported by Akim Demaille.
93693
93694         * lib/getopt.c: Update from libc.
93695
93696 2000-10-16  Jim Meyering  <meyering@lucent.com>
93697
93698         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93699         setlocale.
93700         From Jan Fedak.
93701
93702 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93703
93704         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93705
93706 2000-09-25  Jim Meyering  <meyering@lucent.com>
93707
93708         * lib/md5.h (rol): Define (from GnuPG).
93709
93710         * lib/sha.c: Give credit (GnuPG) where due.
93711         (M): Use rol rather than open-coding it.
93712         Add a FIXME comment.
93713
93714 2000-09-21  Jim Meyering  <meyering@lucent.com>
93715
93716         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93717         Reported by Michael Stone.
93718
93719 2000-09-20  Jim Meyering  <meyering@lucent.com>
93720
93721         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93722         (noinst_HEADERS): Add sha.h.
93723         Based on code from Scott G. Miller and from GnuPG.
93724
93725 2000-09-18  Jim Meyering  <meyering@lucent.com>
93726
93727         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93728         LIBS. Otherwise, everyone ends up linking with -lelf for some
93729         configurations.
93730         Reported by Mike Stone.
93731
93732 2000-09-15  Jim Meyering  <meyering@lucent.com>
93733
93734         * lib/regex.c: Update from libc.
93735
93736 2000-09-10  Jim Meyering  <meyering@lucent.com>
93737
93738         * lib/getopt.c (_getopt_internal): Update from glibc.
93739
93740 2000-09-09  Jim Meyering  <meyering@lucent.com>
93741
93742         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93743         think it should be used as a general replacement for isascii.
93744         * lib/fnmatch.c: Likewise.
93745         * lib/mbswidth.c: Likewise
93746         * lib/regex.c: Likewise.
93747
93748         Don't use atoi.
93749         * lib/userspec.c: Include sys/param.h and limits.h.
93750         Include xstrtol.h.
93751         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93752         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93753         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93754         UID, GID.  Check range.
93755
93756 2000-09-06  Jim Meyering  <meyering@lucent.com>
93757
93758         * lib/getopt.c (_getopt_internal): Update from glibc.
93759
93760 2000-08-30  Jim Meyering  <meyering@lucent.com>
93761
93762         * lib/strftime.c: Merge in changes from GNU libc.
93763
93764 2000-08-26  Jim Meyering  <meyering@lucent.com>
93765
93766         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93767         * m4/fpending.m4: New file.
93768
93769 2000-08-26  Jim Meyering  <meyering@lucent.com>
93770
93771         * lib/closeout.c: Include "__fpending.h".
93772         (close_stdout_status): Return right away if there's nothing to flush.
93773
93774         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93775         * lib/__fpending.c: New file.
93776         * lib/__fpending.h: New file.
93777
93778 2000-08-20  Jim Meyering  <meyering@lucent.com>
93779
93780         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93781         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93782         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93783
93784 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93785
93786         Improve fileutils installation on systems where running
93787         programs (like install) can't be unlinked.
93788         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93789         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93790
93791 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93792
93793         Standardize on "memory exhausted" instead of "Memory exhausted"
93794         or "virtual memory exhausted".
93795         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93796         "virtual memory exhausted".
93797         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93798         our own message.
93799         * lib/userspec.c (parse_user_spec): Likewise.
93800         * lib/bumpalloc.h: comment fix
93801         * lib/same.c, userspec.c: Include xalloc.h.
93802
93803         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93804         not char *const and pointing to a constant array.
93805         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93806         (xrealloc): Comment fix.
93807
93808         * lib/userspec.c (parse_user_spec):
93809         Don't translate a message until just before returning,
93810         to avoid unnecessary translation.
93811
93812 2000-08-07  Jim Meyering  <meyering@lucent.com>
93813
93814         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93815         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93816         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93817         getgroups.c, gethostname.c, getopt.h, group-member.c,
93818         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93819         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93820         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93821         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93822         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93823         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93824         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93825         yesno.c: Back out Copyright date changes for each file with no change
93826         this year.  This eases coordination with other programs using the same
93827         source code modules.  From Paul Eggert.
93828
93829 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93830
93831         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93832         not char, for compatibility with glibc 2.1.3 strftime.c.
93833
93834 2000-08-03  Greg McGary  <greg@mcgary.org>
93835
93836         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93837         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93838         (EXTEND_BUFFER): Use them.
93839
93840 2000-08-01  Jim Meyering  <meyering@lucent.com>
93841
93842         * lib/dirname.c (ISSLASH): Define.
93843         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93844         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93845         both `\' and `/' may be use as path separators.
93846         Based on a patch from Prashant TR.
93847
93848 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93849
93850         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93851         slot vector a constant, since it might get modified.
93852
93853 2000-07-31  Jim Meyering  <meyering@lucent.com>
93854
93855         * lib/xmalloc.c: Use `virtual memory exhausted', not
93856         `Memory exhausted'.
93857         * lib/obstack.c (print_and_abort): Likewise.
93858
93859 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93860
93861         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93862         buffer, so that the caller can always quote one small
93863         component of a "memory exhausted" message in slot 0.
93864         From a suggestion by Jim Meyering.
93865
93866 2000-07-30  Jim Meyering  <meyering@lucent.com>
93867
93868         * lib/makepath.c (make_path): Quote the other instance, too.
93869
93870         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93871         (STATIC_BUF_SIZE): Define.
93872         (quotearg_n_options): Use only statically allocated storage when
93873         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93874         than STATIC_BUF_SIZE.
93875
93876 2000-07-29  Jim Meyering  <meyering@lucent.com>
93877
93878         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93879         * lib/dirname.c (dir_name): Likewise.
93880
93881         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93882         `/'.
93883
93884         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93885         (dir_name): Assert that there are no trailing slashes.
93886
93887 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93888
93889         * lib/mbswidth.h (mbswidth): Add a flags argument.
93890         (mbswidth): New declaration.
93891         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93892         * lib/mbswidth.c (mbswidth): Add a flags argument.
93893         (mbsnwidth): New function.
93894
93895 2000-07-24  Jim Meyering  <meyering@lucent.com>
93896
93897         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93898
93899 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93900
93901         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93902
93903 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93904
93905         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93906         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93907         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93908         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93909         invoke multibyte primitives.
93910
93911 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93912
93913         * lib/quotearg.c:
93914         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93915         so that mbstate_t is always defined.
93916
93917         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93918         be 1 in at least one GCC installation, and this configuration
93919         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93920         performance on hosts that have mbrtowc but have only unibyte
93921         locales, but I assume these hosts are rare.
93922
93923 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93924
93925         * lib/mbswidth.c (_XOPEN_SOURCE):
93926         Don't define; this causes problems on Solaris 7.
93927         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93928
93929 2000-07-23  Jim Meyering  <meyering@lucent.com>
93930
93931         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93932         too: getgrgid, getpwuid, getuid.
93933
93934 2000-07-23  Jim Meyering  <meyering@lucent.com>
93935
93936         * lib/basename.c (base_name): Add an assertion.
93937
93938 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93939
93940         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93941         shadow its mbsinit function.
93942
93943 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93944
93945         * lib/mbswidth.h: New file.
93946         * lib/mbswidth.c: New file.
93947         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93948         (noinst_HEADERS): Add mbswidth.h.
93949
93950 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93951
93952         * lib/config.charset: Add support for FreeBSD. Improve support for
93953         HP-UX and IRIX 6.
93954
93955 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93956
93957         * m4/mbswidth.m4: New file.
93958         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93959
93960 2000-07-15  Jim Meyering  <meyering@lucent.com>
93961
93962         * lib/makepath.c: Include quote.h.
93963         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93964         corresponding argument in a `quote (...)' call.
93965         Give better diagnostics.
93966
93967         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93968         (noinst_HEADERS): Add quote.h.
93969
93970         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93971         from tar's src/misc.c.
93972         * lib/quote.h: New file.  Prototypes for same.
93973
93974 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93975
93976         From a suggestion by Bruno Haible.
93977         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93978         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93979         to decide whether to define the BeOS workaround macro;
93980         this adjusts to the change to AC_MBSTATE_T.
93981
93982 2000-07-14  Jim Meyering  <meyering@lucent.com>
93983
93984         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93985         jm_AC_TYPE_UINTMAX_T.
93986
93987 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93988
93989         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93990
93991         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93992         quotearg_buffer_restyled): Add support for
93993         clocale_quoting_style.  Undo previous change to
93994         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93995         and "{RIGHT QUOTATION MARK}" msgids.
93996
93997 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93998
93999         From a suggestion by Bruno Haible.
94000         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94001         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94002         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94003         and mbstate_t, to a single-part test that simply defines mbstate_t.
94004         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94005         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94006
94007 2000-07-10  Jim Meyering  <meyering@lucent.com>
94008
94009         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94010
94011         * m4/gnu-source.m4: Output to confdefs.h directly.
94012         Suggestion from Akim Demaille.
94013
94014 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94015
94016         The old behavior of quoting `like this' doesn't look good with
94017         newer, ISO-style fonts.  See:
94018         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94019
94020         Instead, quote "like this" by default.  Let the translator
94021         tailor the locale-specific quoting behavior by providing
94022         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94023
94024         * lib/quotearg.c (N_): New macro.
94025         (gettext_default): New function.
94026         (quotearg_buffer_restyled): Use
94027         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94028         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94029
94030 2000-07-09  Jim Meyering  <meyering@lucent.com>
94031
94032         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94033         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94034
94035         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94036         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94037
94038 2000-07-09  Jim Meyering  <meyering@lucent.com>
94039
94040         * lib/Most files: Update copyright dates to include 2000.
94041
94042 2000-07-08  Jim Meyering  <meyering@lucent.com>
94043
94044         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94045         if not defined.
94046         (xgethostname): Remove now-unnecessary #ifdef.
94047         Move declaration of `err' into loop where it's used.
94048
94049 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94050         and Bruno Haible  <haible@clisp.cons.org>
94051
94052         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94053         only if the test for an object-type mbstate_t fails.  This
94054         prevents us from mistakenly reporting that mbstate_t is a
94055         system object type after we "#define mbstate_t int" to work
94056         around its lack.
94057
94058 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94059         and Bruno Haible  <haible@clisp.cons.org>
94060
94061         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94062
94063 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94064
94065         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94066         to strerror_r.
94067         Include <ctype.h> for use of isalpha.
94068
94069 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94070
94071         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94072         by allocating a larger buffer. Test the gethostname return value for
94073         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94074         returns an error and ENAMETOOLONG isn't defined.
94075
94076 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94077
94078         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94079         dimension.
94080
94081 2000-07-04  Jim Meyering  <meyering@lucent.com>
94082
94083         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94084         of the deprecated AC_CHECKING.
94085
94086 2000-07-04  Jim Meyering  <meyering@lucent.com>
94087
94088         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94089         Reported by Bruno Haible.
94090
94091 2000-07-04  Jim Meyering  <meyering@lucent.com>
94092
94093         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94094         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94095         lacks mbrtowc.
94096
94097 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94098
94099         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94100         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94101
94102 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94103         and Bruno Haible  <haible@clisp.cons.org>
94104
94105         * lib/quotearg.c (mbrtowc):
94106         Assign to *pwc, and return 1 only if result is nonzero.
94107         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94108
94109 2000-07-03  Jim Meyering  <meyering@lucent.com>
94110
94111         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94112
94113 2000-07-03  Jim Meyering  <meyering@lucent.com>
94114
94115         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94116         This is necessary to get a definition of e.g., UTMP_FILE on
94117         HP-UX 10.20.
94118         From Bob Proulx.
94119
94120 2000-07-02  Jim Meyering  <meyering@lucent.com>
94121
94122         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94123
94124         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94125         AC_LIBOBJ(function_name).
94126         * m4/chown.m4: Likewise.
94127         * m4/fnmatch.m4: Likewise.
94128         * m4/ftruncate.m4: Likewise.
94129         * m4/getgroups.m4: Likewise.
94130         * m4/getline.m4: Likewise.
94131         * m4/group-member.m4: Likewise.
94132         * m4/jm-macros.m4: Likewise.
94133         * m4/lstat.m4: Likewise.
94134         * m4/malloc.m4: Likewise.
94135         * m4/memcmp.m4: Likewise.
94136         * m4/nanosleep.m4: Likewise.
94137         * m4/putenv.m4: Likewise.
94138         * m4/realloc.m4: Likewise.
94139         * m4/regex.m4: Likewise.
94140         * m4/stat.m4: Likewise.
94141         * m4/strftime.m4: Likewise.
94142
94143 2000-07-02  Jim Meyering  <meyering@lucent.com>
94144
94145         * lib/quotearg.c (mbstate_t): Don't define here.
94146
94147 2000-07-02  Jim Meyering  <meyering@lucent.com>
94148
94149         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94150
94151 2000-07-01  Jim Meyering  <meyering@lucent.com>
94152
94153         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94154
94155 2000-07-01  Jim Meyering  <meyering@lucent.com>
94156
94157         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94158         problem.
94159
94160 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94161
94162         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94163         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94164
94165 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94166
94167         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94168         per change in ../m4/ls-mntd-fs.m4.
94169         (read_filesystem_list): Ignore symbolic links.
94170
94171 2000-06-29  Jim Meyering  <meyering@lucent.com>
94172
94173         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94174         for declaration of strcmp.
94175
94176         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94177
94178         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94179         Avoid warning by casting result to `char *' to remove `const'.
94180
94181 2000-06-28  Jim Meyering  <meyering@lucent.com>
94182
94183         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94184         included by quotearg.c, for which we perform this test.  From
94185         Bruno Haible.
94186
94187 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94188
94189         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94190         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94191         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94192
94193 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94194
94195         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94196
94197 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94198
94199         savedir now sets errno on failure and invokes xmalloc to get memory.
94200         Fix a couple of other minor bugs while we're at it.
94201
94202         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94203         (NAMLEN): Remove macro.
94204         (malloc, realloc): Remove decls.
94205         (stpcpy): Likewise.
94206         ("xalloc.h"): Include.
94207         (NAME_SIZE_DEFAULT): New macro.
94208         (savedir): Use xmalloc / xrealloc to allocate memory.
94209         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94210         Skip "" directory entries.
94211         Use strlen to calculate directory entry length, since the old method
94212         is rarely used these days and isn't worth supporting.
94213         Don't use a pointer after freeing it.
94214         Check for integer overflow when calculating allocation size.
94215         Use memcpy to copy entries, instead of stpcpy.
94216         Set errno properly when returning NULL.
94217         Check for readdir error.
94218
94219 2000-06-26  Jim Meyering  <meyering@lucent.com>
94220
94221         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94222
94223 2000-06-25  Jim Meyering  <meyering@lucent.com>
94224
94225         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94226         Linux header bug when _XOPEN_SOURCE is defined to 500.
94227
94228 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94229
94230         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94231         deficiency.
94232
94233 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94234
94235         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94236         Include xalloc.h.
94237         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94238
94239 2000-06-24  Jim Meyering  <meyering@lucent.com>
94240
94241         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94242         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94243         for which strerror does return char*, but which lacks a conveniently
94244         accessible declaration of the function.  If the compile-test says
94245         strerror_r doesn't work, then resort to a `run'-test that works on
94246         BeOS and segfaults on DEC Unix.
94247
94248 2000-06-24  Jim Meyering  <meyering@lucent.com>
94249
94250         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94251
94252 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94253
94254         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94255         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94256
94257 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94258
94259         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94260         (mbrtowc, mbstate_t): Define substitutes if
94261         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94262         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94263         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94264
94265 2000-06-23  Jim Meyering  <meyering@lucent.com>
94266
94267         * m4/afs.m4: Add missing AC_MSG_RESULT.
94268         Reported by Bruno Haible.
94269
94270         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94271         Suggestion from Bruno Haible.
94272
94273 2000-06-23  Jim Meyering  <meyering@lucent.com>
94274
94275         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94276
94277 2000-06-21  Jim Meyering  <meyering@lucent.com>
94278
94279         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94280
94281 2000-06-21  Jim Meyering  <meyering@lucent.com>
94282
94283         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94284         (noinst_HEADERS): Add getstr.h.
94285
94286         * lib/getline.c (getstr): Move into a separate file.
94287         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94288         the following changes: new parameter, delim2; both delim[12]
94289         parameters have type `int', not `char'.  The latter would lose
94290         with 8-bit delimiters.
94291         * lib/getstr.h: New file.
94292
94293 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94294
94295         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94296         than 1024, return a memory chunk of least possible size, instead
94297         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94298         Use free/xmalloc instead of xrealloc to avoid copying for very long
94299         paths.
94300
94301 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94302
94303         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94304         the empty string.
94305
94306 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94307
94308         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94309         address, not strdup.  Include <stdlib.h> and don't declare free().
94310
94311 2000-06-19  Jim Meyering  <meyering@lucent.com>
94312
94313         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94314
94315 2000-06-18  Jim Meyering  <meyering@lucent.com>
94316
94317         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94318
94319         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94320         `checking whether...' message to be consistent with that of the
94321         lstat test.
94322
94323 2000-06-18  Jim Meyering  <meyering@lucent.com>
94324
94325         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94326         Besides, these days every porting target provides a mkdir function.
94327
94328         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94329         needed. (this snippet comes from src/system.h).
94330
94331 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94332
94333         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94334
94335 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94336
94337         * lib/human.c (adjust_value): New function.
94338         (human_readable_inexact): Apply rounding style even when
94339         printing approximate values.
94340
94341 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94342
94343         * lib/human.c (human_readable_inexact): Allow an input block
94344         size that is not a multiple of the output block size, and vice versa.
94345         Reported by Piergiorgio Sartor.
94346
94347 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94348
94349         * lib/getdate.y (get_date): Apply relative times after time
94350         zone indicator, not before.  Reported by Todd A. Jacobs.
94351
94352 2000-06-13  Jim Meyering  <meyering@lucent.com>
94353
94354         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94355
94356         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94357
94358 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94359
94360         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94361
94362 2000-06-12  Jim Meyering  <meyering@lucent.com>
94363
94364         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94365         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94366         optional argument.
94367         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94368         the optional argument, `lib'.
94369
94370 2000-06-08  Jim Meyering  <meyering@lucent.com>
94371
94372         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94373
94374 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94375
94376         Rewrite largefile configuration so that we don't need to run
94377         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94378         AC_CANONICAL_HOST in configure.in -- jmm]
94379
94380         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94381         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94382         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94383         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94384         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94385         All uses changed.
94386         Instead of inspecting the output of getconf, try to compile the
94387         test program without and with the macro definition.
94388         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94389         for getconf.  Instead, check for the needed flags by compiling
94390         test programs.
94391
94392 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94393
94394         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94395
94396 2000-06-04  Jim Meyering  <meyering@lucent.com>
94397
94398         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94399         SunOS 4.1.4 for which gid_t is an unsigned type.
94400
94401 2000-06-03  Jim Meyering  <meyering@lucent.com>
94402
94403         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94404         now that autoconf requires that.
94405
94406         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94407         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94408         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94409
94410 2000-06-03  Jim Meyering  <meyering@lucent.com>
94411
94412         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94413
94414 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94415
94416         * m4/glibc21.m4: New file.
94417         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94418
94419 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94420
94421         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94422         newer, don't install charset.alias.
94423         * lib/config.charset: Change the Linux/glibc rules so they become empty
94424         on glibc-2.1 or newer.
94425
94426 2000-06-02  Jim Meyering  <meyering@lucent.com>
94427
94428         * lib/mountlist.c: Back out last change.  Instead, do this...
94429         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94430         me_dummy member using the same `ignore'-testing code.
94431         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94432         fs_type strings.
94433         From Mark D. Roth.
94434
94435 2000-05-29  Jim Meyering  <meyering@lucent.com>
94436
94437         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94438         mounts with the `ignore' attribute.  Based on a patch from
94439         Mark D. Roth.
94440
94441 2000-05-28  Jim Meyering  <meyering@lucent.com>
94442
94443         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94444         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94445         * m4/stat.m4: Likewise.
94446         * m4/lstat.m4: Likewise.
94447         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94448
94449         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94450         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94451
94452 2000-05-26  Jim Meyering  <meyering@lucent.com>
94453
94454         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94455
94456 2000-05-24  Jim Meyering  <meyering@lucent.com>
94457
94458         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94459         autoconf requires that.
94460         * m4/lib-check.m4: Likewise.
94461         * m4/jm-macros.m4: Likewise.
94462         * m4/strftime.m4: Likewise.
94463
94464         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94465         AC_CHECK_DECLS, now that autoconf requires that.
94466
94467 2000-05-22  Jim Meyering  <meyering@lucent.com>
94468
94469         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94470         * m4/lstat.m4: Likewise.
94471
94472 2000-05-22  Jim Meyering  <meyering@lucent.com>
94473
94474         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94475
94476 2000-05-20  Jim Meyering  <meyering@lucent.com>
94477
94478         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94479         (jm_PREREQ): Use it.
94480
94481 2000-05-18  Jim Meyering  <meyering@lucent.com>
94482
94483         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94484         back, too, since it may have been modified by allocate_entry.
94485         (hash_delete): Rewrite to use neither the assignment operator
94486         nor the comma operator in an if-expression.
94487
94488 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94489
94490         * lib/closeout.c:
94491         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94492         Remove; no longer needed.
94493         "quotearg.h": Add include.
94494         (file_name): Do not bother to explicitly initialize to NULL; it's less
94495         efficient on some hosts.
94496         (close_stdout_status): Remove test as to whether stdout was already
94497         closed; it breaks for the case "echo x | sort >&-".
94498         Quote file name colons.
94499         Do not assume that _("write error") lacks format strings.
94500
94501 2000-05-15  Jim Meyering  <meyering@lucent.com>
94502
94503         * lib/version-etc.c (version_etc_copyright): Update the copyright
94504         string used in all --version output.
94505
94506 2000-05-14  Jim Meyering  <meyering@lucent.com>
94507
94508         * lib/closeout.c (close_stdout_set_file_name): New function.
94509         (close_stdout_status): Use new file-scoped global.
94510         Return right away if fstat says the stdout file descriptor is invalid.
94511         * lib/closeout.h (close_stdout_set_file_name): Declare.
94512
94513 2000-05-10  Jim Meyering  <meyering@lucent.com>
94514
94515         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94516         (close_stdout_set_status): New function.
94517         * lib/closeout.h (close_stdout_set_status): Declare.
94518
94519 2000-05-09  Jim Meyering  <meyering@lucent.com>
94520
94521         * m4/gettext.m4: Rename this...
94522         * m4/libintl.m4: ...to this.
94523
94524 2000-05-08  Jim Meyering  <meyering@lucent.com>
94525
94526         * lib/long-options.c: Don't include closeout.h.
94527         (parse_long_options): Don't call close_stdout for --version.
94528
94529 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94530
94531         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94532         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94533         2.1.3 bug.  This avoids a clash when files like regex.c define
94534         _GNU_SOURCE.
94535
94536 2000-05-06  Jim Meyering  <meyering@lucent.com>
94537
94538         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94539         (AC_REPLACE_FUNCS): Add strnlen.
94540
94541         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94542         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94543
94544         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94545         AC_SEARCH_LIBS call for nanosleep.
94546         (LIB_NANOSLEEP): Set and AC_SUBST.
94547
94548 2000-05-06  Jim Meyering  <meyering@lucent.com>
94549
94550         * lib/strnlen.c: Undefine __strnlen and strnlen.
94551         [!weak_alias]: Define __strnlen to strnlen.
94552
94553         * lib/atexit.c: New file, from libiberty.
94554
94555 2000-05-06  Jim Meyering  <meyering@lucent.com>
94556
94557         * lib/closeout.c (close_stdout_status): Also check for errors on the
94558         stderr stream.
94559
94560 2000-05-05  Jim Meyering  <meyering@lucent.com>
94561
94562         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94563         AC_SEARCH_LIBS call for clock_gettime.
94564         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94565
94566         * m4/search-libs.m4: Update from autoconf.
94567
94568         su doesn't work on Solaris 2.6.
94569         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94570         <shadow.h>.  Reported by Dragos Harabor.
94571
94572 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94573
94574         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94575         memcpy instead of xmalloc, xrealloc, path_concat.
94576         (locale_charset): Treat empty environment variables as absent.
94577         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94578
94579 2000-05-04  Jim Meyering  <meyering@lucent.com>
94580
94581         * lib/getopt.c: Update from glibc.
94582         * lib/obstack.c: Likewise.
94583         * lib/obstack.h: Likewise.
94584         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94585         file
94586
94587         * lib/regex.h: Likewise.
94588         * lib/strndup.c: Likewise.
94589         * lib/strnlen.c: New file, from glibc.
94590
94591 2000-05-03  Jim Meyering  <meyering@lucent.com>
94592
94593         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94594
94595 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94596
94597         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94598         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94599         compile-time test, rather than inspecting host and OS, to
94600         decide whether to define _LARGEFILE_SOURCE.
94601
94602 2000-05-01  Jim Meyering  <meyering@lucent.com>
94603
94604         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94605
94606         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94607         Based on a patch from Bruno Haible.
94608
94609 2000-05-01  Jim Meyering  <meyering@lucent.com>
94610
94611         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94612
94613 2000-04-29  Jim Meyering  <meyering@lucent.com>
94614
94615         * lib/path-concat.c: Declare strdup only if it's not defined.
94616         * lib/canon-host.c: Likewise.
94617
94618 2000-04-28  Jim Meyering  <meyering@lucent.com>
94619
94620         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94621         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94622         is included first, then limits.h is included by locale.h by libintl.h.
94623         From John David Anglin.
94624
94625 2000-04-25  Jim Meyering  <meyering@lucent.com>
94626
94627         * lib/makepath.c (S_IRWXUGO): Define.
94628         (make_path): Always perform explicit chmod if MODE specifies any
94629         of the `special' permission bits.  Prompted by a bug report against
94630         install from Mate Wierdl and Joost van Baal.
94631
94632 2000-04-18  Jim Meyering  <meyering@lucent.com>
94633
94634         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94635         (jm_PREREQ): Use it.
94636
94637 2000-04-18  Jim Meyering  <meyering@lucent.com>
94638
94639         * lib/README: New file.
94640
94641         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94642         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94643
94644 2000-04-17  Jim Meyering  <meyering@lucent.com>
94645
94646         Get it right :-)
94647         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94648         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94649         Suggestion from Akim Demaille.
94650
94651 2000-04-17  Jim Meyering  <meyering@lucent.com>
94652
94653         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94654         the definition of it to rpl_strftime also defined-away the system's
94655         declaration.
94656
94657 2000-04-15  Jim Meyering  <meyering@lucent.com>
94658
94659         Use `C' to denote so-called `contiguous' files, the same way
94660         that tar does.
94661         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94662         (ftypelet): Use S_ISCTG.
94663         From Michael Deutschmann.
94664
94665 2000-04-14  Jim Meyering  <meyering@lucent.com>
94666
94667         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94668         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94669         clobbered.
94670
94671 2000-04-14  Jim Meyering  <meyering@lucent.com>
94672
94673         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94674
94675 2000-04-13  Jim Meyering  <meyering@lucent.com>
94676
94677         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94678         AH_VERBATIM to insert required #ifndef into config.h.in.
94679         Suggestion from Akim Demaille.
94680
94681 2000-04-12  Jim Meyering  <meyering@lucent.com>
94682
94683         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94684         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94685         Christian Krackowizer.
94686
94687         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94688         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94689         (AC_SYS_LARGEFILE): Require.
94690         (AM_C_PROTOTYPES): Require.
94691
94692 2000-04-08  Jim Meyering  <meyering@lucent.com>
94693
94694         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94695         names don't conflict.  Reported by Eli Zaretskii.
94696
94697 2000-04-07  Jim Meyering  <meyering@lucent.com>
94698
94699         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94700         sys/types.h, to work around system header problems on AIX 3.2.5.
94701         From Bruno Haible.
94702
94703 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94704
94705         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94706         bug.  Deal with the different error behavior of Irix iconv.
94707
94708 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94709
94710         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94711         IRIX if the installer said otherwise.
94712
94713 2000-04-05  Jim Meyering  <meyering@lucent.com>
94714
94715         Portability tweaks required for ultrix4.3.
94716         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94717         (jm_CHECK_DECLS): Add getutent to the list of functions.
94718         (_jm_DECL_HEADERS): Add utmpx.h.
94719         From John David Anglin.
94720
94721         * m4/strftime.m4: Back out the 2000-04-02 change.
94722         Instead of that change, simply undefine putenv in the test program.
94723
94724 2000-04-05  Jim Meyering  <meyering@lucent.com>
94725
94726         Portability tweaks required for ultrix4.3.
94727         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94728         getutent.
94729         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94730         * lib/canon-host.c: Declare strdup.
94731         * lib/path-concat.c: Likewise.
94732         From John David Anglin.
94733
94734 2000-04-04  Jim Meyering  <meyering@lucent.com>
94735
94736         Be more DOS 8.3-friendly.
94737         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94738         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94739         * lib/Makefile.am: Reflect renaming.
94740         Reported by Eli Zaretskii.
94741
94742         Use a temporary file name that won't clash with `charset.alias'
94743         in the DOS 8.3 name space.
94744         * lib/Makefile.am (charset_tmp): Define.
94745         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94746         (uninstall-local): Likewise.
94747         Reported by Eli Zaretskii.
94748
94749 2000-04-03  Jim Meyering  <meyering@lucent.com>
94750
94751         * m4/gettext.m4: Fix typo in comment.
94752
94753         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94754         textutils/configure.in).  Suggestion from Paul Eggert.
94755         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94756
94757 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94758
94759         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94760         variable in the shell rather than using putenv, which isn't
94761         portable.  This avoids the configure-time inter-test dependency
94762         on the potentially-renamed putenv function.
94763
94764 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94765
94766         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94767         before checking struct stat.st_blksize, so that
94768         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94769
94770 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94771
94772         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94773         since strftime.c uses HAVE_STRFTIME to decide whether to use
94774         the underlying strftime.
94775
94776 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94777
94778         * lib/time/strftime.c (my_strftime): Make sure we call the system
94779         strftime, not ourselves, when invoking the underlying strftime.
94780
94781 2000-03-24  Jim Meyering  <meyering@lucent.com>
94782
94783         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94784         (charset_alias): Define.
94785         (install-exec-local): Factor out common code.
94786         (uninstall-local): Split lines longer than 80.
94787         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94788         (SUFFIXES): Define.
94789         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94790         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94791
94792 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94793
94794         * lib/config.charset: Output a line containing "Packages using this
94795         file".
94796         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94797         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94798         ref-del.sed): New rules.
94799
94800 2000-03-17  Jim Meyering  <meyering@lucent.com>
94801
94802         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94803         Otherwise, include <strings.h>
94804
94805 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94806
94807         * lib/unicodeio.c (utf8_wctomb): New function.
94808         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94809         format instead of in UCS-4 with platform dependent endianness.
94810
94811 2000-03-10  Jim Meyering  <meyering@lucent.com>
94812
94813         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94814         From Marco Franzen.
94815
94816 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94817
94818         * lib/savedir.c (savedir): Work even if directory size is
94819         negative; this can happen with some screwy NFS configurations.
94820
94821 2000-03-06  Jim Meyering  <meyering@lucent.com>
94822
94823         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94824         if it's NULL (because we ran out of memory).  From Bruno Haible.
94825
94826 2000-03-05  Jim Meyering  <meyering@lucent.com>
94827
94828         * lib/localcharset.c ("path-concat.h"): Include.
94829         (get_charset_aliases): Use path_concat instead of ANSI string
94830         concatenation.
94831
94832         * lib/unicodeio.h (PARAMS): Define.
94833         Use it to guard prototype.
94834
94835 2000-03-04  Jim Meyering  <meyering@lucent.com>
94836
94837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94838         for lib/localcharset.c.
94839
94840 2000-03-04  Jim Meyering  <meyering@lucent.com>
94841
94842         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94843         installing into it.
94844         (uninstall-local): Uncomment this rule so `make distcheck' works
94845         once again.
94846
94847         * lib/unicodeio.c (<errno.h>): Include it.
94848         (errno): Declare if not defined.
94849
94850         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94851
94852         * lib/config.charset: New version, incorporating remarks from a linux
94853         i18n mailing list.  From Bruno Haible.
94854
94855 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94856
94857         * m4/codeset.m4: New file.
94858         * m4/iconv.m4: New file.
94859         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94860
94861 2000-03-03  Jim Meyering  <meyering@lucent.com>
94862
94863         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94864
94865 2000-03-02  Jim Meyering  <meyering@lucent.com>
94866
94867         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94868         the messages come out on separate lines.
94869
94870         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94871         rather than jm_CHECK_DECLARATIONS.
94872         * m4/decl.m4: Remove now-unused file.
94873
94874         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94875         geteuid.
94876
94877 2000-03-02  Jim Meyering  <meyering@lucent.com>
94878
94879         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94880
94881 2000-03-01  Jim Meyering  <meyering@lucent.com>
94882
94883         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94884         * lib/unicodeio.c: Likewise.
94885
94886 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94887
94888         * lib/config.charset: New file.
94889         * lib/localcharset.c: New file.
94890         * lib/unicodeio.h, lib/unicodeio.c: New files.
94891         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94892         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94893         (noinst_HEADERS): Add unicodeio.h.
94894         (all-local, install-exec-local, charset.alias): New targets.
94895
94896 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94897
94898         * lib/quotearg.c (ALERT_CHAR): New macro.
94899         (quotearg_buffer_restyled): Use it.
94900
94901 2000-02-27  Jim Meyering  <meyering@lucent.com>
94902
94903         * m4/check-decl.m4: Add getenv to the list.
94904
94905 2000-02-27  Jim Meyering  <meyering@lucent.com>
94906
94907         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94908         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94909
94910         * lib/backupfile.c: Guard inclusion of stdlib.h with
94911         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94912         Declare malloc if needed.
94913
94914         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94915         `#ifndef HAVE_DECL..'
94916         now that autoconf always defines the HAVE_DECL_ symbols.
94917         * lib/human.c: Likewise.
94918         * lib/same.c: Likewise.
94919         * lib/strtoumax.c: Likewise.
94920
94921         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94922         declaration check was not run.
94923         * lib/hash.c: Likewise.
94924         * lib/human.c: Likewise.
94925         * lib/same.c: Likewise.
94926         * lib/strtoumax.c: Likewise.
94927
94928         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94929         `.', then first look up the entire `.'-containing string as a login
94930         name.
94931
94932 2000-02-23  Jim Meyering  <meyering@lucent.com>
94933
94934         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94935         in place of my hack.
94936
94937 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94938
94939         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94940         (textint): New typedef.
94941         (parser_control): Member year changed from int to textint.
94942         All uses changed.
94943         (YYSTYPE): Removed; replaced by %union with int and textint members.
94944         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94945         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94946         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94947         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94948         (date, number, to_year): Use width of number in digits, not its value,
94949         to determine whether it's a 2-digit year, or a 2-digit time.
94950         (yylex): Store number of digits of numeric tokens.
94951         Reported by John Kendall.
94952
94953         (parser_control): Changed from struct parser_control to typedef (for
94954         consistency).  All uses changed.
94955
94956         (tID): Removed; not used.
94957         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94958
94959 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94960
94961         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94962         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94963
94964 2000-02-12  Jim Meyering  <meyering@lucent.com>
94965
94966         * lib/userspec.c (ISDIGIT): Define it.
94967         (isdigit): Remove definition.
94968         (is_number): Use ISDIGIT, not isdigit.
94969         <libintl.h>: Include.
94970         (_ and N_): Define.
94971         (parse_user_spec): Mark translatable strings.
94972
94973 2000-02-10  Jim Meyering  <meyering@lucent.com>
94974
94975         With these changes, nanosleep.[ch] are finally enough like the other
94976         lib/* replacement files to compile on a few more losing systems.
94977
94978         * lib/nanosleep.h: Don't include config.h.
94979         Remove prototype from declaration of nanosleep.
94980         (PARAMS): Remove now-unneeded definition.
94981         * lib/nanosleep.c: #undef nanosleep.
94982         (rpl_nanosleep): Rename from nanosleep.
94983
94984 2000-02-10  Jim Meyering  <meyering@lucent.com>
94985
94986         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94987         gnu_nanosleep to rpl_nanosleep.
94988
94989 2000-02-09  Jim Meyering  <meyering@lucent.com>
94990
94991         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94992         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94993
94994 2000-02-08  Akim Demaille  <akim@epita.fr>
94995
94996         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94997         `[' and `]' and remove uses of `changequote'.
94998         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94999         (AC_SYS_LARGEFILE): Likewise.
95000         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95001         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95002         of changequote.
95003         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95004         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95005         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95006         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95007
95008 2000-02-05  Jim Meyering  <meyering@lucent.com>
95009
95010         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95011         Remove explicit use of AC_HEADER_TIME.  It is required by
95012         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95013         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95014         in autoconf whereby the expansion of the latter ended up preceding
95015         the expansion of its prerequisite, AC_HEADER_TIME.
95016         Reported by Volker Borchert.
95017
95018 2000-02-03  Jim Meyering  <meyering@lucent.com>
95019
95020         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95021
95022 2000-02-03  Jim Meyering  <meyering@lucent.com>
95023
95024         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95025         rather than with `#if HAVE_UTMPNAME'.
95026
95027 2000-02-02  Jim Meyering  <meyering@lucent.com>
95028
95029         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95030         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95031         Reported by Eli Zaretskii.
95032
95033 2000-02-01  Jim Meyering  <meyering@lucent.com>
95034
95035         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95036
95037 2000-01-31  Jim Meyering  <meyering@lucent.com>
95038
95039         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95040         functions.  Add the time.h and sys/time.h headers along with the
95041         AC_REQUIRE'ment of AC_HEADER_TIME.
95042
95043 2000-01-31  Jim Meyering  <meyering@lucent.com>
95044
95045         * lib/nanosleep.h (nanosleep): Guard declaration with
95046         `#if ! HAVE_DECL_NANOSLEEP'.
95047         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95048         the declaration in that vendor's sys/timers.h.
95049         Reported by Christian Krackowizer.
95050
95051         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95052         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95053         (ISPRINT): Likewise.
95054         Reported by Tom Tromey.
95055
95056 2000-01-30  Jim Meyering  <meyering@lucent.com>
95057
95058         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95059
95060         * m4/prereq.m4 (utmp_includes): Define.
95061         Check for ut_user and ut_name members in both struct utmpx
95062         and struct utmp.
95063
95064 2000-01-30  Jim Meyering  <meyering@lucent.com>
95065
95066         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95067         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95068         header files where only utmpx.ut_user is declared.
95069
95070         * lib/readutmp.h (UT_USER): Define.
95071
95072 2000-01-29  Jim Meyering  <meyering@lucent.com>
95073
95074         * m4/lib-check.m4: New file containing library-related checks from
95075         fileutils and sh-utils (textutils had none).
95076
95077 2000-01-28  Jim Meyering  <meyering@lucent.com>
95078
95079         * m4/perl.m4: Change format of warning message to look more like that
95080         from the missing script.  Suggestion from François Pinard.
95081
95082 2000-01-25  Jim Meyering  <meyering@lucent.com>
95083
95084         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95085         well as time.h in the compile check.
95086         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95087         Fix typo in cross-compiling case: s/yes/no/.
95088
95089 2000-01-23  Jim Meyering  <meyering@lucent.com>
95090
95091         * m4/jm-macros.m4: Move df-related tests here from
95092         fileutils/configure.in
95093
95094         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95095         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95096
95097         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95098         s/space/ac_fsusage_space/.
95099         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95100
95101         * m4/ftruncate.m4: New file (derived from part of
95102         fileutils/configure.in).
95103         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95104         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95105
95106         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95107         AC_SUBST these here, rather than just in sh-util/configure.in, so
95108         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95109         all the same.
95110         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95111         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95112         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95113         (AC_SUBST(POW_LIBM)): Likewise.
95114         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95115
95116 2000-01-23  Jim Meyering  <meyering@lucent.com>
95117
95118         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95119         obstack.c.
95120
95121 2000-01-22  Jim Meyering  <meyering@lucent.com>
95122
95123         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95124
95125         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95126
95127         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95128         configure.in
95129         (AC_CHECK_HEADERS): Likewise for sh-utils.
95130         (AC_CHECK_HEADERS): Likewise for textutils.
95131         Merge the three lists of headers.
95132
95133         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95134         from fileutils' configure.in.
95135
95136         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95137         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95138         check-decl.m4.
95139
95140         * m4/check-decl.m4: Use #if rather than #ifdef.
95141         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95142         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95143         (_jm_DECL_HEADERS): Define new function.
95144         (jm_CHECK_DECLARATIONS): Require it.
95145
95146 2000-01-22  Jim Meyering  <meyering@lucent.com>
95147
95148         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95149         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95150         Required for some AIX systems.  Reported by Christian Krackowizer.
95151         [TESTING] (main): New function.
95152
95153         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95154         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95155         letters.
95156
95157         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95158         iswprint.
95159
95160         * lib/strverscmp.c (ISDIGIT): Define.
95161         (strverscmp): Use ISDIGIT, not isdigit.
95162
95163 2000-01-19  Jim Meyering  <meyering@lucent.com>
95164
95165         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95166         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95167         defines `struct timespec' in <sys/time.h>
95168
95169         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95170         Thanks to Akim for explaining.
95171
95172 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95173
95174         * lib/nanosleep.c (nanosleep):
95175         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95176         POSIX.1 doesn't require SA_INTERRUPT and some systems
95177         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95178         it's been part of POSIX.1 since day 1 (in 1988).
95179
95180 2000-01-17  Jim Meyering  <meyering@lucent.com>
95181
95182         * lib/interlock: Remove unused file.  Reported by François Pinard.
95183
95184 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95185
95186         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95187         alert, backslash, formfeed, and vertical tab unnecessarily in
95188         shell quoting style.
95189
95190 2000-01-16  Jim Meyering  <meyering@lucent.com>
95191
95192         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95193         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95194         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95195         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95196
95197 2000-01-16  Jim Meyering  <meyering@lucent.com>
95198
95199         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95200         because the latter didn't work.
95201
95202 2000-01-15  Jim Meyering  <meyering@lucent.com>
95203
95204         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95205         (AC_REPLACE_FUNCS): Add memcpy and memset.
95206         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95207         Add strpbrk.
95208         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95209
95210 2000-01-12  Jim Meyering  <meyering@lucent.com>
95211
95212         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95213         (jm_PREREQ): Use it.
95214         (jm_PREREQ_READUTMP): New macro.
95215         (jm_PREREQ): Use it.
95216
95217 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95218
95219         Quote multibyte characters correctly.
95220         * m4/c-bs-a.m4: New file.
95221         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95222         (jm_PREREQ): Use it.
95223
95224 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95225
95226         * m4/uintmax_t.m4: Port to autoconf 2.13.
95227
95228 2000-01-08  Jim Meyering  <meyering@ascend.com>
95229
95230         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95231         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95232
95233 2000-01-04  Jim Meyering  <meyering@ascend.com>
95234
95235         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95236         jm_STRUCT_DIRENT_D_TYPE.
95237         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95238         jm_STRUCT_DIRENT_D_INO.
95239         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95240         jm_STRUCT_UTIMBUF.
95241         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95242         renamings.
95243         * m4/utime.m4: Likewise.
95244
95245         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95246         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95247
95248 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95249
95250         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95251         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95252
95253 2000-01-02  Jim Meyering  <meyering@ascend.com>
95254
95255         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95256         remember if this is necessary.
95257
95258 1999-12-26  Jim Meyering  <meyering@ascend.com>
95259
95260         * m4/jm-macros.m4: Use it here.
95261         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95262
95263 1999-12-23  Jim Meyering  <meyering@ascend.com>
95264
95265         * m4/jm-macros.m4: Check for clock_gettime (moved from
95266         fileutils/configure.in)
95267         Check for gettimeofday.
95268
95269 1999-12-20  Jim Meyering  <meyering@ascend.com>
95270
95271         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95272         autoconf-2.14a-1999-12-20.
95273
95274 1999-12-19  Jim Meyering  <meyering@ascend.com>
95275
95276         * m4/lstat-slash.m4: New file.
95277         * m4/jm-macros.m4: Use the new macro:
95278         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95279
95280 1999-12-07  Jim Meyering  <meyering@ascend.com>
95281
95282         * m4/perl.m4: Require that File::Compare be available, too.
95283         Too many systems seem to lack it.
95284
95285         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95286         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95287
95288 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95289
95290         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95291         problem with the QNX 4.25 shell, which doesn't propagate exit
95292         status of failed commands inside shell assignments.
95293
95294 1999-11-17  Jim Meyering  <meyering@ascend.com>
95295
95296         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95297
95298 1999-11-07  Jim Meyering  <meyering@ascend.com>
95299
95300         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95301
95302 1999-11-06  Jim Meyering  <meyering@ascend.com>
95303
95304         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95305         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95306
95307 1999-11-05  Jim Meyering  <meyering@ascend.com>
95308
95309         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95310         configure.in of textutils, fileutils, and sh-utils into this one
95311         (shared between those packages) file.
95312         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95313         AC_STRUCT_ST_BLKSIZE.
95314
95315 1999-11-03  Jim Meyering  <meyering@ascend.com>
95316
95317         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95318         of AC_CHECK_TYPE checks includes unistd.h.
95319         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95320         Suggestion from Akim Demaille.
95321
95322 1999-10-30  Jim Meyering  <meyering@ascend.com>
95323
95324         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95325         m4-quoted string.
95326         * m4/ls-mntd-fs.m4: Likewise.
95327         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95328         * m4/jm-winsz1.m4: Likewise.
95329
95330         * m4/const.m4: Remove file, since the fix made it into the experimental
95331         version of autoconf.
95332         * m4/mktime.m4: Likewise.
95333
95334         * m4/check-type.m4: Remove file, now that the latest version of
95335         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95336
95337         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95338         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95339         AC_CHECK_TYPE.
95340
95341 1999-10-04  Jim Meyering  <meyering@ascend.com>
95342
95343         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95344
95345 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95346
95347         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95348         2.95.1 bug with HP-UX 10.20.
95349
95350 1999-09-17  Jim Meyering  <meyering@ascend.com>
95351
95352         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95353         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95354         due to missing strdup (against sh-utils-2.0).
95355
95356 1999-08-29  Jim Meyering  <meyering@ascend.com>
95357
95358         * m4/jm-macros.m4: Require jm_BISON.
95359         * m4/bison.m4: New file.
95360
95361 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95362
95363         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95364         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95365
95366 1999-08-05  Jim Meyering  <meyering@ascend.com>
95367
95368         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95369         to avoid conflicts with `conftest' on 8+3 filesystems.
95370         Suggestion from Eli Zaretskii.
95371
95372 1999-08-04  Jim Meyering  <meyering@ascend.com>
95373
95374         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95375         fileutils and sh-utils (textutils's getline test was inadequate).
95376         (AM_FUNC_GETLINE): Run this test.
95377         (AC_CHECK_FUNCS): Check for getdelim.
95378         Reported by Bob Proulx.
95379
95380 1999-08-02  Jim Meyering  <meyering@ascend.com>
95381
95382         * m4/jm-macros.m4: Add a comment.
95383
95384 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95385
95386         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95387         <inttypes.h> defines strtoumax as a macro (and not as a
95388         function).
95389
95390 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95391
95392         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95393         that we can shift, multiply and divide unsigned long long
95394         values; Ultrix cc can't do it.
95395
95396 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95397
95398         * m4/mktime.m4: New file, which is a preview of what should appear
95399         in the next public autoconf release.
95400
95401 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95402
95403         * m4/lfs.m4: Remove this file.
95404         * m4/largefile.m4: New file.  It contains the old contents of
95405         lfs.m4, except that all names with prefix AC_LFS have been
95406         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95407         compatible with future autoconf versions.  Also, some minor m4
95408         quoting problems have been fixed.
95409
95410 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95411
95412         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95413         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95414         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95415         and simplify the shell code.
95416
95417 1999-08-01  Jim Meyering  <meyering@ascend.com>
95418
95419         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95420         m4.
95421
95422 1999-07-20  Jim Meyering  <meyering@ascend.com>
95423
95424         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95425
95426 1999-07-15  Jim Meyering  <meyering@ascend.com>
95427
95428         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95429
95430 1999-05-22  Jim Meyering  <meyering@ascend.com>
95431
95432         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95433
95434 1999-05-20  Jim Meyering  <meyering@ascend.com>
95435
95436         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95437         Add a colon after each `then' in case $4 is empty.
95438
95439 1999-05-16  Jim Meyering  <meyering@ascend.com>
95440
95441         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95442
95443 1999-05-10  Jim Meyering  <meyering@ascend.com>
95444
95445         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95446
95447         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95448         AC_FUNC_MKTIME.
95449
95450 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95451
95452         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95453
95454 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95455
95456         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95457         not CPPFLAGS, so that linking works correctly in IRIX.
95458
95459 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95460
95461         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95462
95463 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95464
95465         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95466         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95468         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95469         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95470
95471         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95472
95473 1999-04-20  Jim Meyering  <meyering@ascend.com>
95474
95475         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95476         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95477         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95478
95479 1999-04-18  Jim Meyering  <meyering@ascend.com>
95480
95481         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95482         * m4/jm-macros.m4: Use it.
95483
95484 1999-04-06  Jim Meyering  <meyering@ascend.com>
95485
95486         * m4/strftime.m4: Remove test for %f.
95487
95488 1999-03-29  Jim Meyering  <meyering@ascend.com>
95489
95490         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95491         superset of the AC_TYPE_* checks in the textutils, fileutils,
95492         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95493         AC_TYPE_PID_T.
95494
95495 1999-03-28  Jim Meyering  <meyering@ascend.com>
95496
95497         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95498         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95499         replaced e.g., in the *.sh files of the sh-utils.
95500
95501 1999-03-20  Jim Meyering  <meyering@ascend.com>
95502
95503         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95504         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95505         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95506
95507 1999-03-19  Jim Meyering  <meyering@ascend.com>
95508
95509         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95510
95511 1999-03-12  Jim Meyering  <meyering@ascend.com>
95512
95513         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95514
95515 1999-03-07  Jim Meyering  <meyering@ascend.com>
95516
95517         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95518         declared.
95519
95520 1999-02-17  Jim Meyering  <meyering@ascend.com>
95521
95522         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95523         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95524
95525 1999-02-07  Jim Meyering  <meyering@ascend.com>
95526
95527         * m4/group-member.m4: New file -- extracted from sh-utils'
95528         configure.in.
95529
95530         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95531         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95532
95533 1999-02-06  Jim Meyering  <meyering@ascend.com>
95534
95535         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95536         * m4/fnmatch.m4: Likewise.
95537         * m4/getgroups.m4: Likewise.
95538         * m4/lstat.m4: Likewise.
95539         * m4/malloc.m4: Likewise.
95540         * m4/putenv.m4: Likewise.
95541         * m4/realloc.m4: Likewise.
95542         * m4/regex.m4: Likewise.
95543         * m4/stat.m4: Likewise.
95544         * m4/strftime.m4: Likewise.
95545         Suggestion from Alain Magloire.
95546
95547         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95548         * m4/fnmatch.m4: Likewise.
95549         * m4/getgroups.m4: Likewise.
95550         * m4/getline.m4: Likewise.
95551         * m4/lstat.m4: Likewise.
95552         * m4/malloc.m4: Likewise.
95553         * m4/memcmp.m4: Likewise.
95554         * m4/putenv.m4: Likewise.
95555         * m4/realloc.m4: Likewise.
95556         * m4/regex.m4: Likewise.
95557         * m4/stat.m4: Likewise.
95558         * m4/strftime.m4: Likewise.
95559         Suggestion from Alain Magloire.
95560
95561         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95562         an argument.
95563
95564         * m4/regex.m4: Add a run-time Test for proper operation of
95565         re_compile_pattern.
95566
95567 1999-01-31  Jim Meyering  <meyering@ascend.com>
95568
95569         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95570
95571 1999-01-30  Jim Meyering  <meyering@ascend.com>
95572
95573         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95574
95575         * m4/jm-mktime.m4: Make this a wrapper around the official
95576         AM_FUNC_MKTIME rather than my private copy, now that the official one
95577         is up to date.
95578         * m4/mktime.m4: Remove file.
95579
95580         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95581         * m4/uptime.m4: Likewise.
95582         * m4/uintmax_t.m4: Likewise.
95583
95584 1999-01-28  Jim Meyering  <meyering@ascend.com>
95585
95586         * m4/jm-macros.m4: Use jm_AFS.
95587         * m4/afs.m4: New file (from fileutils' configure.in).
95588
95589         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95590         * m4/chown.m4: Likewise.
95591         * m4/d-ino.m4: Likewise.
95592         * m4/d-type.m4: Likewise.
95593         * m4/fnmatch.m4: Likewise.
95594         * m4/getgroups.m4: Likewise.
95595         * m4/gettext.m4: Likewise.
95596         * m4/jm-mktime.m4: Likewise.
95597         * m4/jm-winsz2.m4: Likewise.
95598         * m4/lcmessage.m4: Likewise.
95599         * m4/ls-mntd-fs.m4: Likewise.
95600         * m4/malloc.m4: Likewise.
95601         * m4/memcmp.m4: Likewise.
95602         * m4/putenv.m4: Likewise.
95603         * m4/realloc.m4: Likewise.
95604         * m4/st_mtim.m4: Likewise.
95605         * m4/strftime.m4: Likewise.
95606
95607 1999-01-16  Jim Meyering  <meyering@ascend.com>
95608
95609         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95610         (ARGMATCH_DIE_DECL): Define.
95611
95612 1999-01-12  Jim Meyering  <meyering@ascend.com>
95613
95614         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95615         Reported by Lars Hecking.
95616
95617 1999-01-10  Jim Meyering  <meyering@ascend.com>
95618
95619         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95620         gross kludge.
95621         * m4/inttypes_h.m4: Likewise.
95622         * m4/lstat.m4: Likewise.
95623         * m4/malloc.m4: Likewise.
95624         * m4/readdir.m4: Likewise.
95625         * m4/realloc.m4: Likewise.
95626         * m4/st_dm_mode.m4: Likewise.
95627         * m4/stat.m4: Likewise.
95628         * m4/utimbuf.m4: Likewise.
95629         * m4/utimes.m4: Likewise.
95630
95631         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95632         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95633         comments in config.h.in are meaningful.
95634
95635         * m4/jm-macros.m4: Require autoconf-2.13 here.
95636
95637         * m4/regex.m4: By default, don't use the included regex.c on systems
95638         with glibc 2.  Suggestion from Uli Drepper.
95639
95640 1999-01-02  Jim Meyering  <meyering@ascend.com>
95641
95642         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95643
95644 1998-12-18  Jim Meyering  <meyering@ascend.com>
95645
95646         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95647         Based on a suggestion from Lars Hecking.
95648
95649 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95650
95651         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95652
95653 1998-11-16  Jim Meyering  <meyering@ascend.com>
95654
95655         * m4/lfs.m4: Double-quote the `uname...` expression.
95656
95657 1998-11-14  Jim Meyering  <meyering@ascend.com>
95658
95659         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95660         * m4/stat.m4: Likewise.
95661
95662 1998-11-03  Jim Meyering  <meyering@ascend.com>
95663
95664         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95665         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95666
95667 1998-10-18  Jim Meyering  <meyering@ascend.com>
95668
95669         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95670
95671 1998-10-17  Jim Meyering  <meyering@ascend.com>
95672
95673         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95674         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95675         calls for those previously hard-coded headers.  Instead, take a new
95676         parameter.
95677         (jm_CHECK_DECLARATIONS): Reflect interface change.
95678         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95679         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95680
95681         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95682
95683 1998-10-14  Jim Meyering  <meyering@ascend.com>
95684
95685         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95686         instead of "TZ=America/Vancouver".  From Paul Eggert.
95687
95688 1998-10-11  Jim Meyering  <meyering@ascend.com>
95689
95690         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95691         This adds a test for a recently added compatibility fix for mktime.c.
95692         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95693
95694 1998-09-27  Jim Meyering  <meyering@ascend.com>
95695
95696         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95697
95698         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95699         ../configure.in, including a change from Gordon Matzigkeit to allow
95700         cross-compiling for the Hurd.
95701
95702         * m4/glibc.m4: New file/macro to test for the GNU C Library
95703         versions 1 and 2.  From Gordon Matzigkeit.
95704         Indent.
95705
95706 1998-09-21  Jim Meyering  <meyering@ascend.com>
95707
95708         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95709
95710 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95711
95712         Port nanosecond-resolution times to UnixWare 2.1.2 and
95713         pedantic Solaris 2.6.
95714
95715         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95716         AC_STRUCT_ST_MTIM.
95717         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95718         Generate name of ns member, instead of just 1 or undef.
95719         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95720
95721 1998-08-15  Jim Meyering  <meyering@ascend.com>
95722
95723         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95724         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95725         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95726         instead of jm_TYPE_SSIZE_T.
95727
95728 1998-08-12  Jim Meyering  <meyering@ascend.com>
95729
95730         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95731
95732 1998-08-02  Jim Meyering  <meyering@ascend.com>
95733
95734         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95735         in acconfig.h manually.
95736
95737 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95738
95739         * m4/st_mtim.m4: New file.
95740
95741 1998-07-28  Jim Meyering  <meyering@ascend.com>
95742
95743         * m4/utimes.m4: Undef stat.
95744
95745 1998-07-25  Jim Meyering  <meyering@ascend.com>
95746
95747         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95748         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95749
95750 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95751
95752         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95753         uid and gid actually remain unchanged.
95754
95755 1998-07-07  Jim Meyering  <meyering@ascend.com>
95756
95757         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95758
95759 1998-07-04  Jim Meyering  <meyering@ascend.com>
95760
95761         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95762         to prove that this macro can be used in packages without regex.c.
95763
95764 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95765
95766         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95767         is to be used.
95768
95769 1998-07-03  Jim Meyering  <meyering@ascend.com>
95770
95771         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95772
95773         * m4/gettext.m4: New file -- from gettext-0.10.35.
95774         * m4/lcmessage.m4: Likewise.
95775         * m4/progtest.m4: Likewise.
95776
95777         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95778         * m4/jm-macros.m4: Require the new macro.
95779
95780 1998-06-29  Jim Meyering  <meyering@ascend.com>
95781
95782         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95783         for the definition of NGROUPS (used in a system header included
95784         by sys/mount.h).
95785
95786 1998-06-28  Jim Meyering  <meyering@ascend.com>
95787
95788         * m4/ls-mntd-fs.m4: New file.
95789         * m4/fstypename.m4: New file.
95790
95791         * m4/jm-macros.m4: Require the new macro.
95792         * m4/jm-glibc-io.m4: New file.
95793
95794 1998-05-19  Jim Meyering  <meyering@ascend.com>
95795
95796         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95797         * m4/lchown.m4: New file.
95798
95799         * m4/Makefile.am.in: New file.
95800         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95801
95802 1998-05-14  Jim Meyering  <meyering@ascend.com>
95803
95804         * m4/Makefile.am (EXTRA_DIST): Add them.
95805         * m4/jm-macros.m4: New file.
95806         * m4/utimbuf.m4: New file.
95807
95808 1998-05-12  Jim Meyering  <meyering@ascend.com>
95809
95810         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95811
95812 1998-05-11  Jim Meyering  <meyering@ascend.com>
95813
95814         * m4/isc-posix.m4: New file.
95815
95816 1998-05-10  Jim Meyering  <meyering@ascend.com>
95817
95818         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95819
95820 1998-05-09  Jim Meyering  <meyering@ascend.com>
95821
95822         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95823         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95824         with automake.
95825
95826         * m4/ssize_t.m4: New file.
95827         * m4/mktime.m4: Remove file -- the new automake has this now.
95828
95829 1998-04-26  Jim Meyering  <meyering@ascend.com>
95830
95831         * m4/assert.m4: New file.
95832         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95833
95834 1998-04-05  Jim Meyering  <meyering@ascend.com>
95835
95836         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95837         (jm_PREREQ): Use it here.
95838
95839 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95840
95841         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95842         in acconfig.h.
95843
95844 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95845
95846         * m4/prereq.m4: New file.
95847         * m4/error.m4: New file.
95848         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95849
95850 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95851
95852         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95853         cache-check for the same variable -- that defeated the purpose of
95854         the test; the test program was never run.  This was a problem only
95855         on systems with losing getline functions -- HP-UX 10.20 is one.
95856         Reported by Bjorn Helgaas.
95857
95858 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95859
95860         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95861
95862 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95863
95864         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95865
95866         * m4/const.m4: New file.  Use an initializer in this declaration
95867         typedef int charset[2]; const charset x;
95868         Reported by Bob Glickstein.
95869
95870 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95871
95872         * m4/chown.m4: Fix reversed types on -1 args to chown.
95873         From Kaveh Ghazi.
95874
95875 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95876
95877         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95878         Add lseek and memchr.
95879
95880         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95881         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95882         have a 20-character limit on names.
95883
95884 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95885
95886         * m4/inttypes_h.m4: New file.
95887         * m4/uintmax_t.m4: New file.
95888         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95889
95890
95891         -----
95892
95893         Local Variables:
95894         coding: utf-8
95895         End:
95896
95897         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95898
95899         Copying and distribution of this file, with or without
95900         modification, are permitted provided the copyright notice
95901         and this notice are preserved.